/* Wan Dee Brown · interim portfolio · site.css v1.0 (2026-10-22)
   Brand: studio/brand/brand-guide.md (synced from Figma v0.20). Tokens below are the brand's light-mode roles.
   Layout: Material 3 window classes from the guide (Compact <600, Medium 600-839, Expanded 840-1199, Large 1200+),
   content max 1200, reading measure 600, section rhythm 96 / 64, 4px baseline.
   Motion is NOT in this file: site.js writes opacity/transform inline while scrolling, and only when JS runs and the
   visitor allows motion. With JS off every element simply shows (nothing here hides anything). */

/* ---------- Tokens ---------- */
:root {
  --paper: #FCF9F3;          /* surface / page */
  --ink: #16181D;            /* onSurface, Ink bands */
  --ink-2: #424751;          /* onSurfaceVariant, secondary text (8.87:1 on paper) */
  --primary: #B91E0B;        /* red text, links, eyebrows (6.14:1 on paper) */
  --primary-hover: #BF301E;
  --click: #EF481C;          /* Click red: stat figures 44px+ only, and kickers on Ink (4.75:1) */
  --card: #F8F3E9;           /* surfaceContainerLow: cards */
  --card-2: #F2EDE3;         /* surfaceContainer: cards nested on a #F8F3E9 band */
  --tag: #FFE088;            /* tertiaryContainer: status tags (Ink 13.76:1) */
  --outline-variant: #CDC6B6;/* decorative dividers only */
  --on-ink-2: #CDC6B6;       /* secondary text on Ink (10.44:1) */
  --ink-hover: #282A2E;      /* secondary-on-Ink hover */
  --paper-hover: #EAE7E2;    /* Surface button on Ink, hover */
  --focus: #565E71;          /* focus ring on light (6.18:1) */
  --focus-on-ink: #BEC6DC;   /* focus ring on Ink (10.40:1) */

  --font-display: "Unbounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-editorial: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: 16px;
  --section: 64px;
  --radius-art: 12px;        /* case-study images */
  --radius-thumb: 8px;       /* thumbnails */
  --radius-card: 12px;
  color-scheme: light;       /* the site launches in light mode only (brand guide) */
}
@media (min-width: 600px) { :root { --gutter: 24px; --section: 96px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/24px var(--font-body); letter-spacing: 0.15px;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
a:visited { color: var(--primary); }
/* Focus ring: 3px, 2px offset, follows the shape, :focus-visible only, never removed (brand). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.band-ink :focus-visible { outline-color: var(--focus-on-ink); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }
/* Fragment targets land with a little air above them. */
[id^="s"] { scroll-margin-top: 16px; }

/* ---------- Type ---------- */
.eyebrow {                     /* Brand/Kicker: typed in sentence case, shown in caps */
  font: 600 12px/16px var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--primary);
}
.meta { font: 500 12px/16px var(--font-body); letter-spacing: 0.4px; color: var(--ink-2); margin-top: 8px; }
.h1 { font: 700 34px/46px var(--font-display); letter-spacing: -0.02em; margin-top: 12px; }
.h2 { font: 600 24px/32px var(--font-display); letter-spacing: -0.2px; margin-top: 12px; max-width: 600px; text-wrap: balance; }
.h3 { font: 500 20px/28px var(--font-display); }
.lede { font: 500 italic 22px/32px var(--font-editorial); letter-spacing: -0.4px; max-width: 760px; margin-top: 16px; }
.editorial { font: 400 18px/28px var(--font-editorial); max-width: 600px; }
.body-l { font: 400 16px/24px var(--font-body); letter-spacing: 0.15px; }
.small { font: 400 14px/20px var(--font-body); letter-spacing: 0.25px; color: var(--ink-2); }
.stat {                        /* Stat/Figure: Click red, 64/72 -> 52/60 (large text, 3.56:1 on paper, 3.38:1 on cards) */
  font: 700 52px/60px var(--font-display); color: var(--click); font-variant-numeric: lining-nums;
}
.stat--phrase { font: 600 italic 26px/34px var(--font-editorial); color: var(--primary); }  /* Stat/Phrase, >8 chars */
.stat-caption { font: 400 16px/24px var(--font-body); color: var(--ink-2); max-width: 420px; margin-top: 4px; }
@media (min-width: 600px) {
  .h1 { font-size: 52px; line-height: 66px; }
  .h2 { font-size: 28px; line-height: 36px; }
  .h3 { font-size: 22px; line-height: 28px; }
  .lede { font-size: 28px; line-height: 40px; }
  .editorial { font-size: 20px; line-height: 32px; }
  .stat--phrase { font-size: 30px; line-height: 40px; }
}
@media (min-width: 1024px) {
  .h1 { font-size: 72px; line-height: 88px; }
  .h2 { font-size: 36px; line-height: 42px; letter-spacing: -0.02em; }
  .stat { font-size: 64px; line-height: 72px; }
}

/* ---------- Status tag: word + decorative shape icon, never colour alone ---------- */
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--tag); color: var(--ink); font: 500 12px/16px var(--font-body); letter-spacing: 0.5px;
}
.tag svg { width: 16px; height: 16px; flex: none; }
.tag-note { font: 400 14px/20px var(--font-body); letter-spacing: 0.25px; color: var(--ink-2); max-width: 420px; }

/* ---------- s1 hero ---------- */
.hero { padding-top: 48px; padding-bottom: var(--section); }
.hero .editorial { margin-top: 16px; }
.skip { display: inline-block; margin-top: 20px; font: 500 16px/24px var(--font-body); padding: 12px 0; }
.hero-art { margin-top: 32px; }
@media (min-width: 600px) { .hero { padding-top: 64px; } .hero-art { margin-top: 40px; } }

/* ---------- Art frames (shared by s1 and s3-s6) ----------
   Two wrappers per picture: the 16:10 desktop file (751px and up) and the 4:5 mobile file (750px and down), the
   motion code's drawing switch. The hidden wrapper's lazy image is never downloaded. */
.art { position: relative; overflow: hidden; border-radius: var(--radius-art); background: var(--card); }
.art img { width: 100%; height: auto; border-radius: var(--radius-art); }
.art--m { display: none; }
@media (max-width: 750px) { .art--d { display: none; } .art--m { display: block; } }
/* JS off (noscript) / motion failure: the finished AFTER picture sits on top of the BEFORE one. */
.art .art-after { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3; }
/* Crossfade fallback (art without wash data): the line-only twin over the washed image, faded by site.js. */
.art .art-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ---------- s2 How I work ---------- */
.intro { margin-top: 16px; }
.principles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.principle { background: var(--card); border-radius: var(--radius-card); padding: 24px 16px; }
.principle .num { font: 700 14px/20px var(--font-display); color: var(--primary); }
.principle .h3 { margin-top: 8px; }
.principle p { margin-top: 8px; }
@media (min-width: 600px) { .principles { grid-template-columns: 1fr 1fr; gap: 24px; } .principle { padding: 24px; } }
@media (min-width: 1024px) { .principles { grid-template-columns: repeat(4, 1fr); } }

/* ---------- s3-s6 case studies ---------- */
.case { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
.case-art { width: 100%; max-width: 736px; }
.case-art--thumb { max-width: 736px; }
.case-text { max-width: 600px; }
.case-text .editorial { margin-top: 16px; }
.case-stat { margin-top: 28px; }
.case + .case { margin-top: 0; }
@media (min-width: 1024px) {
  .case { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .case-art { grid-column: 1 / span 6; max-width: none; }
  .case-text { grid-column: 7 / span 6; }
  .case--flip .case-art { grid-column: 7 / span 6; grid-row: 1; }
  .case--flip .case-text { grid-column: 1 / span 6; grid-row: 1; }
}
@media (min-width: 1200px) {
  .case-art { grid-column: 1 / span 7; }
  .case-text { grid-column: 8 / span 5; }
  .case--flip .case-art { grid-column: 6 / span 7; }
  .case--flip .case-text { grid-column: 1 / span 5; }
}
.alt-band { background: var(--card); }
.alt-band .art { background: var(--paper); }
/* QA r1 #4: cards on the alt band step up one surface level (surfaceContainer #F2EDE3). Checked on it:
   Ink 15.3:1, #424751 8.0:1, Primary #B91E0B 5.5:1 (Stat/Phrase). No Click red is used in the cards. */
.alt-band .card { background: var(--card-2); }

/* ---------- s7 Also worth a look ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 40px; }
.card { background: var(--card); border-radius: var(--radius-card); padding: 16px; }
.card img { width: 100%; height: auto; border-radius: var(--radius-thumb); }
.card .h3 { margin-top: 20px; }
.card .stat--phrase { margin-top: 16px; }
.card .body-l { margin-top: 8px; max-width: 600px; }
.card .tag-note { margin-top: 12px; }
.card .tag-row { margin-top: 12px; }
@media (min-width: 600px) { .card { padding: 24px; } }
@media (min-width: 840px) { .cards { grid-template-columns: 1fr 1fr; } }

/* ---------- s8 close: Ink band ---------- */
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .eyebrow { color: var(--click); }          /* Click red on Ink 4.75:1; Primary red is never used on Ink */
.close { padding-bottom: 48px; }
.close .editorial { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btn {                                                /* 48px tall: the visible button is the whole target */
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font: 500 14px/20px var(--font-display); letter-spacing: 0.2px; text-decoration: none;
  border: 2px solid var(--paper); text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--surface { background: var(--paper); color: var(--ink); }               /* the one filled button on Ink */
.btn--surface:visited { color: var(--ink); }
.btn--surface:hover { background: var(--paper-hover); border-color: var(--paper-hover); }
.btn--ghost { background: var(--ink); color: var(--paper); }                  /* Secondary on Ink */
.btn--ghost:visited { color: var(--paper); }
.btn--ghost:hover { background: var(--ink-hover); }
.btn:active { filter: brightness(0.94); }
.address { margin-top: 20px; font: 400 16px/24px var(--font-body); color: var(--paper); }
.footer { padding: 32px 0 48px; border-top: 1px solid #2E3036; }
.footer p { font: 400 12px/16px var(--font-body); letter-spacing: 0.4px; color: var(--on-ink-2); }
@media (max-width: 599px) { .btn { width: 100%; } }

/* ---------- Print: everything finished and static ---------- */
@media print {
  [data-beat], [data-art] { opacity: 1 !important; transform: none !important; }
  ccs-scroll-wash, ccs-home-hero, .ccs-wash-cover, .ccs-home-hero-stage { display: none !important; }
  .band-ink { background: #fff; color: #000; }
}
