/*
Theme Name: DCAA Editorial
Author: DCAA
Description: A single-page editorial theme for Cathy Cao and DCAA.
Version: 2.2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dcaa-editorial
*/

:root {
  --paper: #f4efe5;
  --forest: #283c32;
  --terracotta: #b86348;
  --sand: #d5c69f;
  --ink: #252525;
  --white: #ffffff;
  --muted: #5c5b56;
  --line: rgba(37, 37, 37, .2);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --measure: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
::selection { background: rgba(184, 99, 72, .24); }
.wrap { width: min(var(--measure), calc(100% - 100px)); margin-inline: auto; }
.section-anchor { scroll-margin-top: 86px; }
.eyebrow { margin: 0 0 25px; color: var(--terracotta); font-size: .68rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 26px; height: 1px; margin: 0 14px 4px 0; background: var(--terracotta); }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; line-height: 1.03; }
h1 em, h2 em { font-weight: 400; }
h2 { font-size: clamp(3.3rem, 6.1vw, 6.8rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.35rem); }
p { margin-bottom: 1.15em; }
.lead { font-size: clamp(1.16rem, 1.55vw, 1.45rem); line-height: 1.65; }
.small-copy { font-size: .83rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 210px; padding-bottom: 11px; border-bottom: 1px solid var(--ink); font-size: .77rem; font-weight: 600; text-decoration: none; }
.text-link span { color: var(--terracotta); font-size: 1.3rem; font-weight: 400; line-height: 1; }
.text-link:hover { border-color: var(--terracotta); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-180%); padding: 10px 14px; background: var(--ink); color: var(--white); }
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; flex: none; align-items: center; text-decoration: none; }
.site-header .brand-lockup { display: block; width: clamp(230px, 23vw, 290px); height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.055em; line-height: 1; }
.brand-dot { color: var(--terracotta); }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .72rem; font-weight: 600; text-decoration: none; }
.primary-nav .nav-partner a { min-height: 40px; padding: 8px 16px; border: 1px solid var(--terracotta); color: var(--terracotta); }
.primary-nav .nav-partner a:hover { background: var(--terracotta); color: var(--white); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }

/* About */
.hero-section { padding: clamp(64px, 8vw, 125px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .91fr); gap: clamp(50px, 8vw, 130px); align-items: center; }
.hero-copy { position: relative; z-index: 1; padding: 30px 0; }
.hero-copy h1 { margin: 0 0 32px; font-size: clamp(5.7rem, 10vw, 11rem); line-height: .84; }
.hero-copy h1 em { color: var(--terracotta); }
.hero-role { margin-bottom: 30px; color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-thesis { max-width: 600px; margin-bottom: 43px; font-family: var(--serif); font-size: clamp(1.6rem, 2.65vw, 2.8rem); letter-spacing: -.035em; line-height: 1.18; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: .79; object-fit: cover; object-position: 62% center; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 13px; font-size: .66rem; font-weight: 600; }
.hero-figure figcaption span:last-child { color: var(--terracotta); font-weight: 400; }
.about-grid { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); gap: clamp(50px, 11vw, 180px); margin-top: clamp(100px, 12vw, 200px); padding-top: clamp(70px, 9vw, 130px); padding-bottom: clamp(120px, 12vw, 180px); border-top: 1px solid var(--line); }
.about-grid .eyebrow { margin-bottom: 0; }
.about-detail { padding-top: 4px; }
.about-detail > p { max-width: 560px; }
.about-detail > p:not(.lead) { color: var(--muted); }
.sand-box { max-width: 575px; margin-top: 48px; padding: clamp(24px, 3vw, 44px); background: var(--sand); }
.sand-box .eyebrow { color: var(--ink); }
.sand-box p { max-width: 480px; margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 2.8vw, 3rem); letter-spacing: -.04em; line-height: 1.18; }

/* DCAA and projects */
.section { padding: clamp(110px, 12vw, 185px) 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: clamp(55px, 7vw, 110px); }
.section-heading h2 { max-width: 950px; margin-bottom: 0; }
.section-heading h2 em, .tj-copy h2 em, .connect-copy h2 em { color: var(--terracotta); }
.dcaa-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(55px, 10vw, 170px); }
.dcaa-copy { max-width: 480px; padding-top: 18px; }
.dcaa-copy p:not(.lead), .tj-copy p:not(.lead) { color: var(--muted); }
.editorial-image { margin: 0; }
.editorial-image img { width: 100%; object-fit: cover; }
.editorial-image figcaption { padding-top: 10px; color: var(--muted); font-size: .65rem; }
.editorial-image figcaption a { text-decoration: none; }
.dcaa-image img { aspect-ratio: 1.28; }
.platform-details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); margin-top: 85px; border-top: 1px solid var(--line); }
.platform-detail { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.platform-detail .eyebrow { margin: 5px 0 0; }
.platform-detail p { margin: 0; font-size: .9rem; }
.platform-detail .text-link { margin-top: 24px; }
.platform-detail .reference-link { display: block; width: fit-content; margin-top: 16px; font-size: .77rem; }
.projects-heading { display: grid; grid-template-columns: .42fr 1.2fr .55fr; gap: 35px; align-items: end; }
.projects-heading .eyebrow { align-self: start; }
.projects-heading p:last-child { max-width: 290px; margin: 0 0 10px; font-size: .95rem; color: var(--muted); }
.projects-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(60px, 9vw, 145px); align-items: start; }
.projects-image img { aspect-ratio: .92; }
.project-list { border-top: 1px solid var(--line); }
.project-row { padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.project-row h3 { margin-bottom: 11px; }
.project-row p { max-width: 380px; margin: 0; color: var(--muted); font-size: .92rem; }
.project-note { max-width: 430px; margin: 30px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.project-stories { display: grid; grid-template-columns: 1.17fr .83fr; gap: clamp(38px, 6vw, 90px); margin-top: 105px; align-items: start; }
.project-story:nth-child(2) { padding-top: 100px; }
.project-story img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.project-story:nth-child(2) img { aspect-ratio: .88; }
.project-story__copy { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.project-story__copy h3 { margin: 0; }
.project-story__copy p { margin: 0; font-size: .8rem; line-height: 1.65; }
.experience-strip { display: grid; grid-template-columns: .45fr 1.55fr; gap: 7vw; margin-top: 150px; padding-top: 28px; border-top: 1px solid var(--line); }
.experience-strip h3 { max-width: 780px; margin-bottom: 40px; font-size: clamp(2rem, 3.7vw, 4rem); }
.experience-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 23px; }
.experience-item { padding-top: 15px; border-top: 1px solid var(--line); }
.experience-item strong { display: block; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.18; }
.experience-item span { display: block; margin-top: 10px; font-size: .68rem; line-height: 1.5; }

/* TJ */
.tj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(55px, 10vw, 155px); align-items: center; }
.tj-copy h2 { margin-bottom: 42px; }
.tj-copy p { max-width: 530px; }
.tj-copy .small-copy { margin: 28px 0 30px; padding-left: 18px; border-left: 2px solid var(--terracotta); }
.tj-image img { aspect-ratio: .93; }

/* Let's Connect */
.connect-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(60px, 10vw, 170px); align-items: start; }
.connect-copy h2 { margin-bottom: 40px; }
.connect-copy > p { max-width: 520px; }
.connect-copy > p:not(.lead, .eyebrow) { color: var(--muted); }
.formlayer-embed { min-width: 0; border-top: 1px solid var(--ink); padding-top: 19px; }
.native-form-wrap { min-width: 0; }
.partner-form { border-top: 1px solid var(--ink); padding-top: 19px; }
.partner-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 25px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 8px 0 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); }
.field select { padding-right: 18px; }
.field textarea { min-height: 135px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom: 2px solid var(--terracotta); }
.form-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-top: 32px; }
.form-foot .small-copy { max-width: 270px; margin: 0; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; gap: 18px; padding: 11px 21px; border: 1px solid var(--terracotta); background: var(--terracotta); color: var(--white); cursor: pointer; font-size: .76rem; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease; }
.button:hover, .button:focus-visible { background: transparent; color: var(--terracotta); }
.button .arrow { font-size: 1.2rem; font-weight: 400; }
.form-notice { margin: 0 0 25px; padding: 13px 16px; border-left: 2px solid var(--terracotta); font-size: .9rem; }
.form-notice--error { font-weight: 600; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Forest footer */
.site-footer { padding: clamp(72px, 9vw, 130px) 0 28px; background: var(--forest); color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer a:hover { opacity: .72; }
.footer-main { display: flex; justify-content: space-between; gap: 70px; padding-bottom: clamp(75px, 9vw, 130px); }
.footer-brand .brand-name { font-size: clamp(3.5rem, 7.5vw, 8rem); }
.footer-brand .brand-dot { color: var(--white); }
.footer-brand p { margin: 27px 0 0; font-size: .9rem; }
.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 38px; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 45px; margin: 0; padding: 16px 0 0; list-style: none; }
.footer-nav a { font-size: .8rem; text-decoration: none; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 22px; max-width: 430px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; text-decoration: none; white-space: nowrap; }
.footer-social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-icon { display: block; flex: none; width: 17px; height: 17px; }
.footer-icon--letters { display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: .63rem; line-height: 1.8; }
.footer-bottom > span:last-child { max-width: 620px; text-align: right; }
.not-found { padding: 120px 0; }

@media (max-width: 1000px) {
  .wrap { width: min(var(--measure), calc(100% - 56px)); }
  .hero-grid { gap: 45px; }
  .projects-heading { grid-template-columns: 1fr 1fr; }
  .projects-heading .eyebrow { grid-column: 1 / -1; }
  .projects-heading p:last-child { justify-self: end; }
  .dcaa-grid, .projects-grid, .tj-grid, .connect-grid { gap: 50px; }
  .platform-detail { grid-template-columns: 1fr; }
  .primary-nav { gap: 16px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 38px); }
  .header-inner { min-height: 72px; }
  .site-header .brand-lockup { width: min(228px, 62vw); }
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 10px 19px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 1px; }
  .primary-nav a { display: flex; padding: 10px 4px; }
  .primary-nav .nav-partner a { display: inline-flex; margin-top: 8px; }
  .section-anchor { scroll-margin-top: 72px; }
  .hero-section { padding-top: 58px; }
  .hero-grid, .about-grid, .dcaa-grid, .projects-grid, .tj-grid, .connect-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(5.3rem, 20vw, 8rem); }
  .hero-figure img { max-height: 680px; aspect-ratio: .92; }
  .about-grid { gap: 20px; margin-top: 100px; padding-top: 72px; padding-bottom: 110px; }
  .section { padding: 100px 0; }
  .section-heading { margin-bottom: 50px; }
  .projects-heading { grid-template-columns: 1fr; gap: 0; }
  .projects-heading .eyebrow { grid-column: auto; }
  .projects-heading p:last-child { justify-self: start; margin-top: 25px; }
  .dcaa-grid, .projects-grid, .tj-grid, .connect-grid { gap: 42px; }
  .platform-details, .project-stories, .experience-strip { grid-template-columns: 1fr; }
  .platform-details { gap: 0; margin-top: 60px; }
  .platform-detail { grid-template-columns: 120px 1fr; }
  .project-stories { gap: 60px; margin-top: 80px; }
  .project-story:nth-child(2) { padding-top: 0; }
  .project-story:nth-child(2) img { aspect-ratio: 1.12; }
  .experience-strip { gap: 35px; margin-top: 100px; }
  .experience-list { grid-template-columns: 1fr; }
  .dcaa-image img { aspect-ratio: 1.2; }
  .projects-image img { aspect-ratio: 1.15; }
  .tj-image img { aspect-ratio: 1.1; }
  .footer-main { flex-direction: column; gap: 45px; padding-bottom: 70px; }
  .footer-side { align-items: flex-start; }
  .footer-nav ul { padding: 0; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 18px; }
  .footer-bottom > span:last-child { text-align: left; }
}
@media (max-width: 520px) {
  h2 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-role { line-height: 1.8; }
  .hero-thesis { font-size: 1.75rem; }
  .partner-form__grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .form-foot { align-items: start; flex-direction: column; }
  .platform-detail { grid-template-columns: 1fr; }
  .project-story__copy { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}