/* ==========================================================================
   NZWS — Brand-aligned theme (Phase 9)
   Geist only (no serif) · strict two-tone tan #947656 + cream #f0eeeb ·
   marker-box headings (style-guide pp. 15–16/18). Variables are repointed so
   legacy `var(--ink)` / `var(--signal)` / `var(--font-serif)` references all
   resolve to the brand without rewriting every rule.
   ========================================================================== */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Brand two-tone (the entire palette) */
  --cream:      #f0eeeb;
  --cream-2:    #e7e3dd;   /* slightly deeper surface for cards/wells */
  --tan:        #947656;   /* THE brand brown */
  --tan-2:      #82654a;   /* darker shade — hover/pressed only */

  /* Legacy names kept, repointed to the brand (no third colour) */
  --ink:        var(--tan);     /* was dark brown; now the brand tan */
  --ink-2:      var(--tan-2);
  --signal:     var(--tan);     /* amber accent collapsed into the brand */
  --signal-700: var(--tan-2);   /* hover / pressed */
  --signal-tint: var(--cream);  /* emphasis over tan grounds */

  /* Semantic roles */
  --bg:         var(--cream);
  --surface:    var(--cream);
  --surface-2:  var(--cream-2);
  --text:       var(--tan);
  --muted:      rgba(148,118,86,.72);   /* same hue, lighter — keeps hierarchy */
  --rule:       rgba(148,118,86,.28);
  --rule-2:     rgba(148,118,86,.5);

  /* Inverse (tan grounds / bands) */
  --bg-invert:  var(--tan);
  --text-invert:var(--cream);
  --muted-invert: rgba(240,238,235,.74);
  --rule-invert: rgba(240,238,235,.28);

  /* Type families — Geist only; --font-serif repointed so legacy refs render Geist */
  --font-sans:  'Geist', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:  'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: var(--font-sans);

  /* Fluid type scale */
  --fs-display: clamp(2.6rem, 1.2rem + 6vw, 5.25rem);
  --fs-h1:      clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  --fs-h2:      clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  --fs-h3:      clamp(1.2rem, 1.08rem + .6vw, 1.5rem);
  --fs-body:    1.0625rem;
  --fs-lede:    clamp(1.15rem, 1.05rem + .5vw, 1.45rem);
  --fs-small:   .875rem;
  --fs-meta:    .75rem;    /* mono labels */

  /* Spacing scale (8pt) */
  --s1: .5rem;  --s2: 1rem;   --s3: 1.5rem; --s4: 2.5rem;
  --s5: 4rem;   --s6: 6rem;   --s7: 7.5rem;

  /* Layout */
  --maxw: 1280px;
  --measure: 68ch;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --header-h: 64px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; height: auto; }

a { color: inherit; }

::selection { background: var(--signal); color: var(--cream); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s5) 0; }

/* ----- Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;                /* Geist carries display weight */
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

p { margin: 0 0 1em; }

strong { font-weight: 600; }

/* ----- Layout primitives ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 8vw, var(--s7)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--s5)); }

/* Full-bleed brown band (the colour-block rhythm, kept monochrome) */
.band { background: var(--bg-invert); color: var(--text-invert); }
.band h1, .band h2, .band h3, .band h4 { color: var(--text-invert); }
.band .eyebrow { color: var(--muted-invert); }

/* Generic responsive grids */
.grid { display: grid; gap: var(--gutter); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ----- Meta / labels (Geist Mono) -------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s2);
  display: block;
}
.eyebrow--signal { color: var(--signal); }

.meta {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .35rem .85rem;
  align-items: center;
}
.meta__sep { opacity: .5; }

.tag {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: .2rem .6rem;
  white-space: nowrap;
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans);
  font-size: .95rem; font-weight: 500;
  line-height: 1; letter-spacing: .01em;
  padding: .9rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--cream); }
.btn--signal:hover { --btn-bg: var(--signal-700); border-color: var(--signal-700); }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--rule-2);
}
.btn--ghost:hover { border-color: var(--text); background: transparent; }
.band .btn--ghost { color: var(--cream); border-color: var(--rule-invert); }
.band .btn--ghost:hover { border-color: var(--cream); }

/* Inline text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-sans); font-size: var(--fs-small);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--signal); text-decoration: none;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.tlink:hover { border-color: var(--signal); gap: .65rem; }
.tlink .arrow { transition: transform .2s var(--ease); }
.tlink:hover .arrow { transform: translateX(3px); }

/* ===== Masthead (header) =============================================== */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.masthead__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text);
}
.masthead__brand svg { width: 30px; height: 26px; fill: var(--ink); }
.brandmark {
  font-family: var(--font-sans); font-weight: 600;
  letter-spacing: .18em; font-size: .9rem;
}
.masthead__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.masthead__link {
  font-size: .92rem; font-weight: 450; text-decoration: none; color: var(--text);
  position: relative; padding: .25rem 0;
}
.masthead__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--signal); transition: right .25s var(--ease);
}
.masthead__link:hover::after, .masthead__link.is-active::after { right: 0; }
.masthead__link.is-active { color: var(--signal); }
.masthead__link--cta { color: var(--signal); }  /* the one signal item */
.masthead__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--text);
}
.masthead__toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .masthead__toggle { display: inline-flex; }
  .masthead__nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: var(--s2) var(--gutter) var(--s3);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .masthead__nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .masthead__link { padding: .75rem 0; width: 100%; font-size: 1.1rem; }
}

/* ===== Colophon (footer) ============================================== */
.colophon { background: var(--bg-invert); color: var(--text-invert); }
.colophon a { color: var(--text-invert); text-decoration: none; }
.colophon__inner {
  max-width: var(--maxw); margin-inline: auto; padding: var(--s5) var(--gutter) var(--s3);
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .colophon__inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.colophon__brand .brandmark { color: var(--cream); }
.colophon__brand p { color: var(--muted-invert); max-width: 42ch; margin-top: var(--s2); font-size: var(--fs-small); }
.colophon h4 {
  font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-invert);
  margin: 0 0 var(--s2);
}
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.colophon li a { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s var(--ease); }
.colophon li a:hover { border-color: var(--cream); }
.colophon__bar {
  max-width: var(--maxw); margin-inline: auto; padding: var(--s3) var(--gutter);
  border-top: 1px solid var(--rule-invert);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-family: var(--font-sans); font-size: var(--fs-meta);
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted-invert);
}

/* ===== Hero (editorial) =============================================== */
.hero { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(2.5rem, 6vw, 5rem); }
.hero__title {
  font-size: var(--fs-display); font-weight: 420; line-height: 1.02;
  letter-spacing: -0.02em; max-width: 16ch; margin: 0 0 var(--s3);
}
.hero__title em { font-style: italic; color: var(--signal); }
.hero__lede {
  font-size: var(--fs-lede); color: var(--text); max-width: 56ch;
  margin: 0 0 var(--s4); font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Page header (interior pages) */
.pagehead { padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.pagehead__title { font-size: var(--fs-h1); margin: 0 0 var(--s3); }
.pagehead__lede { font-size: var(--fs-lede); color: var(--muted); max-width: 60ch; }

/* ===== Tiles (home dispatch) ========================================== */
.tiles { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 800px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  display: block; text-decoration: none; color: var(--text);
  padding: var(--s4) 0; border-bottom: 1px solid var(--rule);
  transition: background .25s var(--ease), padding-inline .25s var(--ease);
}
@media (min-width: 800px) {
  .tile { padding: var(--s4) var(--s3); border-bottom: 0; border-right: 1px solid var(--rule); }
  .tile:last-child { border-right: 0; }
}
.tile:hover { background: var(--surface-2); }
.tile__num { font-family: var(--font-sans); font-size: var(--fs-meta); color: var(--signal); letter-spacing: .14em; }
.tile__title { font-size: var(--fs-h3); margin: var(--s2) 0 .4rem; }
.tile__desc { color: var(--muted); font-size: var(--fs-small); margin: 0 0 var(--s2); }

/* ===== Listing / entries (Reports) ==================================== */
.listing { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.entry {
  display: grid; grid-template-columns: 1fr; gap: var(--s2);
  padding: var(--s4) 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--text);
  transition: background .2s var(--ease);
}
.entry:hover { background: var(--surface-2); }
@media (min-width: 720px) {
  .entry { grid-template-columns: 200px 1fr auto; gap: var(--s4); align-items: start; }
}
.entry__media {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  background: var(--surface-2); filter: saturate(.9);
}
.entry--noimg .entry__media { display: none; }
@media (min-width: 720px) { .entry--noimg { grid-template-columns: 1fr auto; } }
.entry__body { min-width: 0; }
.entry__title {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); line-height: 1.1; margin: .4rem 0 .5rem;
}
.entry:hover .entry__title { color: var(--signal); }
.entry__excerpt { color: var(--muted); max-width: 60ch; margin: 0 0 var(--s2); }
.entry__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.entry__ext {
  align-self: center; justify-self: end;
  font-family: var(--font-sans); font-size: 1.1rem; color: var(--signal);
}
@media (max-width: 719px) { .entry__ext { justify-self: start; } }

/* Featured first entry */
.entry--feature { grid-template-columns: 1fr; padding-block: var(--s5); }
.entry--feature .entry__media { aspect-ratio: 21/9; }
.entry--feature .entry__title { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); }

/* ===== Filter bar ====================================================== */
.filterbar { display: flex; flex-wrap: wrap; gap: 1.25rem; padding-block: var(--s3); }
.filter {
  background: none; border: 0; cursor: pointer; padding: .35rem 0;
  font-family: var(--font-sans); font-size: var(--fs-small);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1.5px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--signal); border-bottom-color: var(--signal); }

/* ===== Action blocks (Take Action) =================================== */
.action {
  display: grid; gap: var(--s2); grid-template-columns: auto 1fr;
  padding: var(--s4) 0; border-bottom: 1px solid var(--rule);
}
.action__num {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1; color: var(--signal); font-weight: 420;
}
.action__title { font-size: var(--fs-h3); margin: 0 0 .4rem; }
.action__body { color: var(--text); max-width: var(--measure); }
.action__body p { margin: 0 0 .6em; }

/* ===== Prose (article + long-form) =================================== */
.prose { max-width: var(--measure); font-size: 1.12rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-h2); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.4em; }
.prose a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote {
  margin: 1.6em 0; padding-left: var(--s3); border-left: 3px solid var(--signal);
  font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.35; font-style: italic; color: var(--ink);
}
.prose img { margin-block: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .image-caption,
.image-caption { font-family: var(--font-sans); font-size: var(--fs-meta); color: var(--muted); letter-spacing: .04em; margin-top: .5rem; }

/* Retrofit: lift legacy article chrome into the new system */
.article-container { max-width: var(--maxw); margin-inline: auto; padding: var(--s5) var(--gutter); }
.article-title { font-family: var(--font-serif); font-size: var(--fs-h1); letter-spacing: -.01em; }
.article-meta { font-family: var(--font-sans); font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 1rem; margin-top: var(--s2); }
.article-body { max-width: var(--measure); font-size: 1.12rem; line-height: 1.7; margin-top: var(--s4); }
.article-body h2 { margin-top: 1.6em; }
.article-body a { color: var(--signal); }
.article-body img { margin-block: 1.5em; }
.related-articles { max-width: var(--maxw); margin-inline: auto; padding: var(--s5) var(--gutter); border-top: 1px solid var(--rule); }

/* ----- Utilities -------------------------------------------------------- */
.u-measure { max-width: var(--measure); }
.u-mt0 { margin-top: 0; } .u-mb0 { margin-bottom: 0; }
.u-center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem;
}
.skip-link:focus { left: var(--gutter); top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   BOLD HOME (Phase 6) — full-bleed earthy bands
   ========================================================================== */
/* (Phase 9) --signal-tint now resolves to cream via the token block above */

/* Full-bleed image hero with the nav overlaid */
.hero--cover {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: flex-end;
  margin-top: calc(-1 * var(--header-h));            /* slide up under the sticky nav */
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background: var(--ink); color: var(--cream);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(42,32,19,.62) 0%, rgba(42,32,19,.18) 30%, rgba(42,32,19,.45) 66%, rgba(42,32,19,.94) 100%);
}
.hero--cover > .container { position: relative; z-index: 2; }
.hero--cover .eyebrow { color: var(--cream); opacity: .92; }
.hero--cover .hero__title {
  color: var(--cream);
  font-size: clamp(2.8rem, 1rem + 7.5vw, 6.5rem);
  font-weight: 500; line-height: .98; letter-spacing: -0.025em; max-width: 18ch;
  text-shadow: 0 1px 40px rgba(0,0,0,.3);
}
.hero--cover .hero__title em { font-style: italic; color: var(--signal-tint); }
.hero--cover .hero__lede { color: var(--cream); opacity: .95; max-width: 52ch; }
.hero--cover .btn--ghost { color: var(--cream); border-color: rgba(240,238,235,.55); }
.hero--cover .btn--ghost:hover { border-color: var(--cream); background: rgba(240,238,235,.08); }

/* Masthead overlaid on the hero (toggled by JS at the top of the page) */
.masthead--over { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.masthead--over .masthead__brand svg { fill: var(--cream); }
.masthead--over .brandmark,
.masthead--over .masthead__link,
.masthead--over .masthead__link--cta,
.masthead--over .masthead__toggle { color: var(--cream); }
.masthead--over .masthead__link::after { background: var(--cream); }

/* Fact ticker / marquee */
.ticker { background: var(--ink); color: var(--cream); border-top: 1px solid var(--rule-invert); border-bottom: 1px solid var(--rule-invert); overflow: hidden; }
.ticker__track { display: inline-flex; align-items: center; white-space: nowrap; padding-block: .85rem; animation: ticker 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; }
.ticker__item::after { content: "●"; color: var(--signal); font-size: .55em; margin-inline: 2.6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Big serif statement — quieted to a plain pull-quote on cream (Phase 8) */
.statement { background: transparent; }
.statement__text {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.6rem, .85rem + 3vw, 3.1rem); line-height: 1.16; letter-spacing: -0.01em;
  max-width: 26ch; margin: 0;
}
.statement__text em { font-style: italic; color: var(--signal); }

/* Boxed dispatch tiles (framed cells, invert on hover) */
.tiles--boxed { display: grid; gap: var(--s2); border-top: 0; }
@media (min-width: 800px) { .tiles--boxed { grid-template-columns: repeat(3, 1fr); } }
.tiles--boxed .tile { border: 1.5px solid var(--rule-2); padding: var(--s3); }
.tiles--boxed .tile:hover { background: var(--ink); color: var(--cream); }
.tiles--boxed .tile:hover .tile__desc { color: var(--muted-invert); }
.tiles--boxed .tile:hover .tlink { color: var(--cream); }

/* ==========================================================================
   HOME INFOGRAPHICS (Phase 7) — earthy, fact-driven
   ========================================================================== */

/* Big-number stats (on a brown band) */
.stats { display: grid; gap: var(--s3) var(--s4); grid-template-columns: 1fr; margin-top: var(--s3); }
@media (min-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--rule-invert); padding-top: var(--s2); }
.stat__num { font-family: var(--font-serif); font-weight: 420; font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.5rem); line-height: .95; letter-spacing: -0.02em; color: var(--cream); }
.stat__unit { color: var(--signal-tint); }
.stat__label { margin: .7rem 0 0; color: var(--muted-invert); font-size: var(--fs-small); max-width: 28ch; }

/* Trade-route diagram */
.route { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: stretch; margin-top: var(--s3); }
.route__node { flex: 1 1 170px; border-top: 2px solid var(--ink); padding-top: var(--s2); }
.route__step { font-family: var(--font-sans); font-size: var(--fs-meta); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.route__title { font-family: var(--font-serif); font-size: var(--fs-h3); margin: .45rem 0 .35rem; }
.route__desc { color: var(--muted); font-size: var(--fs-small); margin: 0; }
.route__arrow { flex: 0 0 auto; align-self: center; color: var(--tan); font-size: 1.6rem; }
.route__foot { margin-top: var(--s3); }
@media (max-width: 700px) { .route__arrow { display: none; } }

/* Timeline */
.timeline { margin-top: var(--s3); border-bottom: 1px solid var(--rule); }
.timeline__row { display: grid; grid-template-columns: 1fr; gap: .3rem; padding: var(--s3) 0; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .timeline__row { grid-template-columns: 8rem 1fr; gap: var(--s4); } }
.timeline__year { font-family: var(--font-sans); font-size: 1rem; letter-spacing: .04em; color: var(--signal); padding-top: .15rem; }
.timeline__text h3 { font-size: var(--fs-h3); margin: 0 0 .3rem; }
.timeline__text p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Holdout comparison (on a brown band) */
.holdout { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-top: var(--s3); }
@media (min-width: 720px) { .holdout { grid-template-columns: 1fr 1fr; } }
.holdout h4 { font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-invert); margin: 0 0 var(--s2); }
.holdout__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.holdout__list li { font-family: var(--font-sans); font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; padding: .45rem .85rem; border: 1px solid var(--rule-invert); color: var(--muted-invert); }
.holdout--left li { text-decoration: line-through; text-decoration-color: var(--tan); }
.holdout--still li { background: var(--signal); border-color: var(--signal); color: var(--cream); font-weight: 500; text-decoration: none; }

/* ==========================================================================
   HOME — typographic masthead · featured lead · cards (Phase 8)
   Bold wordmark leads, photo is subordinate. Earth-tone kept; fewer bands,
   more air. Cuts the home module-stack down to a few distinct moments.
   ========================================================================== */

/* ----- Big typographic masthead --------------------------------------- */
.bigmast { padding-block: clamp(2.25rem, 5vw, var(--s6)) clamp(2rem, 5vw, var(--s5)); }
.bigmast__util {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  font-family: var(--font-sans); font-size: var(--fs-meta);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-bottom: var(--s2); border-bottom: 1px solid var(--rule);
}
.bigmast__word {
  font-family: var(--font-serif); font-weight: 220; font-optical-sizing: auto;
  font-size: clamp(2.9rem, .6rem + 9vw, 7rem); line-height: 1.35;
  letter-spacing: -0.025em; margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  max-width: 20ch;
}
.bigmast__word em { font-style: italic; color: var(--signal); }
.bigmast__lede { font-size: var(--fs-lede); color: var(--muted); max-width: 56ch; margin: var(--s3) 0 0; }

/* ----- Featured lead (the investigation) ------------------------------ */
.lead { padding-block: clamp(1.5rem, 4vw, var(--s4)) clamp(2.5rem, 6vw, var(--s5)); }
.lead__media {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: var(--surface-2); filter: saturate(.92);
}
.lead__body { margin-top: var(--s3); display: grid; gap: var(--s2) var(--s5); grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .lead__body { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .lead__cat { grid-column: 1 / -1; }
}
.lead__cat { font-family: var(--font-sans); font-size: var(--fs-meta); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.lead__title { font-size: clamp(1.9rem, 1.05rem + 3.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.lead__title em { font-style: italic; color: var(--signal); }
.lead__aside { display: grid; gap: var(--s3); align-content: start; }
.lead__dek { color: var(--muted); max-width: 44ch; margin: 0; }
.lead__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ----- Numbered wayfinding index (replaces boxed tiles) --------------- */
.index-list { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1px solid var(--rule-2); }
.index-list a {
  display: flex; align-items: baseline; gap: var(--s2) var(--s4); flex-wrap: wrap;
  padding: var(--s3) 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--text);
  transition: padding-inline .25s var(--ease), color .2s var(--ease);
}
.index-list a:hover { color: var(--signal); padding-inline: var(--s2); }
.index-list__num { font-family: var(--font-sans); font-size: var(--fs-meta); letter-spacing: .14em; color: var(--signal); flex: 0 0 auto; padding-top: .35rem; }
.index-list__label { font-family: var(--font-serif); font-size: var(--fs-h3); line-height: 1.1; }
.index-list__desc { color: var(--muted); font-size: var(--fs-small); margin-left: auto; max-width: 40ch; }
@media (max-width: 640px) { .index-list__desc { margin-left: 0; flex-basis: 100%; } }

/* ----- Latest cards (3-up, photo-led, text-first fallback) ------------ */
.cards { display: grid; gap: var(--gutter) var(--s4); grid-template-columns: 1fr; margin-top: var(--s3); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border-top: 1px solid var(--rule-2); padding-top: var(--s2);
}
.card__media { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); filter: saturate(.9); margin-bottom: var(--s3); }
.card--noimg .card__media { display: none; }
.card__cat {
  font-family: var(--font-sans); font-size: var(--fs-meta); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .3rem .6rem; margin-bottom: .55rem;
}
.card__cat .meta__sep { opacity: .5; }
.card__title { font-size: var(--fs-h3); line-height: 1.12; margin: 0 0 .45rem; }
.card:hover .card__title { color: var(--signal); }
.card__excerpt { color: var(--muted); font-size: var(--fs-small); margin: 0; max-width: 42ch; }
.card__ext { font-family: var(--font-sans); color: var(--signal); }

/* ==========================================================================
   BRAND ALIGNMENT (Phase 9) — Geist weights · marker boxes · two-tone fixes
   Repointed tokens already flipped colour + font; these add the style-guide
   signature (pp. 15–16/18) and fix affordances the recolor would wash out on
   tan grounds.
   ========================================================================== */

/* ----- Marker-box headings -------------------------------------------- */
.boxed {
  display: inline;
  background: var(--tan); color: var(--cream);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: .0em .0em;
}
.band .boxed { background: var(--cream); color: var(--tan); }   /* invert on tan grounds */
/* breathing room so stacked line-boxes don't collide */
:where(h1, h2, h3, .bigmast__word, .statement__text, .pagehead__title):has(.boxed) { line-height: 1.5; }

/* ----- Geist display weights (heavier than the old serif) -------------- */
.bigmast__word { font-weight: 500; line-height: 1.32; letter-spacing: -0.025em; }
.statement__text { font-weight: 600; }
.stat__num { font-weight: 700; }
.action__num { font-weight: 700; }
.index-list__label { font-weight: 650; }
.hero--cover .hero__title { font-weight: 700; }

/* ----- Two-tone button affordances ------------------------------------ */
/* On cream: tan button → invert to cream/tan outline on hover */
.btn:hover { background: var(--cream); color: var(--tan); border-color: var(--tan); }
.btn--ghost:hover { background: transparent; color: var(--tan); border-color: var(--tan); }
/* On tan bands: cream button → invert to tan on hover (stays visible) */
.band .btn { --btn-bg: var(--cream); --btn-fg: var(--tan); border-color: var(--cream); }
.band .btn:hover { background: var(--tan); color: var(--cream); border-color: var(--cream); }
.band .btn--ghost { background: transparent; color: var(--cream); border-color: var(--rule-invert); }
.band .btn--ghost:hover { background: transparent; color: var(--cream); border-color: var(--cream); }
