/* ==========================================================================
   MUNET — Visual DNA V2: American Editorial × Contemporary Indie, Vintage Olive palette
   (STEP 05C accepted layout + STEP 05D-1 brand palette). Independent cultural media: literary, warm, earthy, curious about the world.
   Not a tech product, not a luxury boutique magazine.
   Archivo Black = display · IBM Plex Sans = body / interface · IBM Plex Mono = metadata, numbers, index labels.
   Every page is built from the shared components below; there is no page-specific styling.
   ========================================================================== */

/* ---- 1. Tokens -------------------------------------------------------------------------- */
:root {
  /* palette — MUNET Visual DNA V2 "Vintage Olive" (approved: cream, olive, terracotta, sand, deep ink).
     Derived shades are mixed only from approved colours, where an approved colour fails WCAG AA for text. */
  --paper: #f0e9d9;          /* Cream Paper — ground */
  --paper-hi: #f6f2e8;       /* derived: cream + 40% white — raised cell / input */
  --ink: #292b25;            /* Deep Ink — 11.8:1 on cream */
  --olive: #666d4e;          /* Olive Green — rules, large numerals (4.5:1 on cream: large text / graphics only) */
  --olive-ink: #515640;      /* derived: olive + 35% ink — muted small text (6.3:1 cream, 4.6:1 olive tint) */
  --olive-tint: #cecab6;     /* derived: cream + 25% olive — panels, plates */
  --terracotta: #b96a4a;     /* Terracotta — markers, focus halo, hover rules; never text (3.3:1) */
  --terracotta-ink: #87543d; /* derived: terracotta + 35% ink — accent text on cream, fill behind cream text (5.2:1) */
  --sand: #d0b78d;           /* Sand — plates, hover fills, muted text on ink (7.4:1) */
  --rule: #292b25;           /* structural borders are ink */
  --rule-soft: #c7c4af;      /* derived: cream + 30% olive — inner dividers */
  --focus: #292b25;
  --ink-line: #4d4d45;       /* derived: ink + 18% cream — dividers inside the ink masthead */
  --ink-hover: #363832;      /* derived: ink + 6% white — hover inside the ink masthead */

  /* type */
  --f-display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
  --f-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-hero: clamp(2.5rem, 1.4rem + 5vw, 5.75rem);
  --t-h1: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);
  --t-title: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --t-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-mono: 0.75rem;
  --track-mono: 0.06em;

  /* 8px spacing system */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem; --s-7: 5rem;
  --s-half: 0.25rem;
  --section: var(--s-5);

  /* measures */
  --page: 80rem;
  --read: 42rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius: 2px;
  --bw: 1px;                 /* structural border */
  --bw-heavy: 3px;

  --ease: cubic-bezier(.2, .6, .2, 1);
  --t-fast: 140ms;
  --touch: 2.75rem;          /* 44px */
  color-scheme: light;
}

/* ---- 2. 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 var(--t-body)/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Print texture: one tiny inline SVG noise tile, fixed, non-interactive, static. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 {
  font: 400 var(--t-h1)/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
p { text-wrap: pretty; }
img { max-width: 100%; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
a:hover { text-decoration-thickness: 2px; }

/* keyboard focus: always visible — ink outline with a terracotta halo */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--terracotta); border-radius: var(--radius); }
main:focus { outline: none; }

.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 200; padding: var(--s-1) var(--s-2); background: var(--terracotta-ink); color: var(--paper);
  font: 600 var(--t-mono)/1 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; text-decoration: none; }
.skip:focus { top: var(--s-1); }

/* ---- 3. Mono metadata / labels -------------------------------------------------------------- */
.kicker, .meta, .label, .count, .more, .tag, .plate-type, .plate-coord, .index-n, .index-note, .nav-n, .facts dt, .section-head h2, .note h2 {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  line-height: 1.35;
}
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-half) var(--s-1); color: var(--olive-ink); margin-bottom: var(--s-2); }
.kicker > span + span::before { content: '/'; margin-right: var(--s-1); color: var(--olive-ink); }
.kicker > :first-child, .kicker > a:first-child { background: var(--ink); color: var(--paper); padding: 0.2em 0.5em; text-decoration: none; }
.kicker a:first-child:hover { background: var(--sand); color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-half) var(--s-1); color: var(--olive-ink); font-variant-numeric: tabular-nums; }
.meta > span + span::before { content: '/'; margin-right: var(--s-1); color: var(--olive-ink); }
.count { color: var(--olive-ink); margin: var(--s-2) 0; }
.more { color: var(--ink); text-decoration: none; white-space: nowrap; }
a.more::after { content: ' →'; }
a.more:hover { background: var(--sand); }
.empty { color: var(--olive-ink); padding: var(--s-2) 0; font-family: var(--f-mono); font-size: var(--t-small); }
.tag { display: inline-flex; align-items: center; padding: 0.15em 0.45em; border: var(--bw) solid var(--ink); border-radius: var(--radius); color: var(--ink); }
.tag[data-status="EMERGING"] { background: var(--terracotta-ink); border-color: var(--terracotta-ink); color: var(--paper); }
.tag[data-status="OBSERVED"] { background: var(--ink); color: var(--paper); }
.tag[data-status="UNCERTAIN"] { border-style: dashed; }

/* ---- 4. Masthead / section navigation ------------------------------------------------------- */
.masthead { background: var(--ink); color: var(--paper); }
.masthead-inner, .page, .colophon-inner { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.masthead-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; gap: 0 var(--s-3); min-height: 3.5rem; }
/* Temporary text wordmark (no symbol) until final vector assets are approved. */
.brand { display: inline-flex; align-items: center; font: 400 1.625rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: inherit; padding-block: var(--s-1); }
.brand:hover { color: var(--sand); }
.masthead-tag { align-self: center; font: 400 var(--t-mono)/1.3 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--sand); }
.nav { display: flex; align-items: stretch; }
.nav a { display: inline-flex; align-items: center; gap: 0.5em; min-height: var(--touch); padding-inline: var(--s-2);
  font: 600 var(--t-small)/1 var(--f-sans); letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; color: var(--paper);
  border-left: var(--bw) solid var(--ink-line); }
.nav a:last-child { border-right: var(--bw) solid var(--ink-line); }
.nav-n { color: var(--sand); font-weight: 600; }
.nav a::after { content: '→'; font-family: var(--f-mono); opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.nav a:hover { background: var(--ink-hover); }
.nav a:hover::after { opacity: 1; transform: none; }
/* current section: a cream tab that joins the page, with a terracotta top bar */
.nav a[aria-current] { background: var(--paper); color: var(--ink); box-shadow: inset 0 3px 0 var(--terracotta); }
.nav a[aria-current] .nav-n { color: var(--terracotta-ink); }

/* ---- 5. Page + sections ------------------------------------------------------------------------ */
.page { padding-block: var(--s-4) var(--s-6); min-height: 60vh; }
.section { margin-top: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); border-top: var(--bw-heavy) solid var(--olive);
  padding-top: var(--s-1); margin-bottom: var(--s-2); }
.section-head h2 { display: inline-flex; align-items: center; gap: 0.6em; color: var(--ink); font-weight: 600; }
.section-head h2::before { content: ''; width: 0.75em; height: 0.75em; background: var(--terracotta); }

.page-head { padding-bottom: var(--s-3); border-bottom: var(--bw) solid var(--ink); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-top: var(--s-2); }
.lede { font: 400 var(--t-lede)/1.5 var(--f-sans); color: var(--ink); max-width: var(--read); }

.colophon { background: var(--ink); color: var(--paper); margin-top: var(--s-4); border-top: var(--bw-heavy) solid var(--terracotta); }
.colophon-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); padding-block: var(--s-3);
  font: 400 var(--t-small)/1.5 var(--f-sans); }
.colophon .brand { font-size: 1.25rem; padding: 0; }
.colophon .meta { margin-left: auto; color: var(--sand); }

/* ---- 6. Home -------------------------------------------------------------------------------- */
/* hero sits on a map panel with a faint graticule (decorative grid, not a map) */
.hero { position: relative; padding: var(--s-4) var(--s-3) 0; border: var(--bw) solid var(--ink); background-color: var(--olive-tint);
  background-image: linear-gradient(rgba(41, 43, 37, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 43, 37, 0.09) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.hero .kicker { margin-bottom: var(--s-2); }
.hero-title { font-size: var(--t-hero); line-height: 0.95; max-width: 15ch; letter-spacing: -0.015em; }
.hero-sub { margin-top: var(--s-2); font: 500 var(--t-lede)/1.4 var(--f-sans); max-width: var(--read); }

/* index: numbered section blocks (home + 404) */
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s-4) calc(-1 * var(--s-3)) 0; border-top: var(--bw) solid var(--ink); background: var(--paper); }
.index a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--s-2); min-height: var(--touch);
  padding: var(--s-2) var(--s-3); text-decoration: none; }
.index a + a { border-left: var(--bw) solid var(--ink); }
.index-n { font: 400 1.75rem/1 var(--f-display); letter-spacing: 0; color: var(--olive); font-variant-numeric: tabular-nums; }
.index-label { min-width: 0; font: 600 var(--t-title)/1.1 var(--f-sans); text-transform: uppercase; letter-spacing: 0.01em; }
.index-note { grid-column: 2; color: var(--olive-ink); }
.index a::after { content: '→'; grid-column: 3; grid-row: 1 / 3; font: 500 1.5rem/1 var(--f-mono); transition: transform var(--t-fast) var(--ease); }
.index a:hover { background: var(--sand); }
.index a:hover .index-n { color: var(--ink); }
.index a:hover::after { transform: translateX(4px); }
.index--compact { margin: var(--s-4) 0 0; max-width: 40rem; border: var(--bw) solid var(--ink); }

/* ---- 7. Plates (documentary image placeholder; V1 has no images) ------------------------------- */
.plate { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; overflow: hidden;
  background-color: var(--olive-tint); border-bottom: var(--bw) solid var(--ink);
  background-image: linear-gradient(rgba(41, 43, 37, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 43, 37, 0.1) 1px, transparent 1px);
  background-size: 32px 32px; filter: grayscale(0.2) contrast(1.05); }
/* crosshair at the plate centre */
.plate::before, .plate::after { content: ''; position: absolute; background: rgba(41, 43, 37, 0.35); }
.plate::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.plate::after { top: 50%; left: 0; right: 0; height: 1px; }
.plate[data-type="PERSON"], .plate[data-type="EVENT"], .plate[data-type="BRAND"] { background-color: var(--sand); }
.plate-mark { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 2.2em; height: 2.2em; font: 400 clamp(1.75rem, 3vw, 2.25rem)/1 var(--f-display); text-transform: uppercase; background: var(--paper); border: var(--bw) solid var(--ink); }
.plate-type, .plate-coord { position: relative; z-index: 1; align-self: flex-start; margin: var(--s-1); padding: 0.2em 0.5em; background: var(--ink); color: var(--paper); }
.plate-coord { align-self: flex-end; background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); font-variant-numeric: tabular-nums; }
.plate--large { aspect-ratio: 1 / 1; border: var(--bw) solid var(--ink); }
.plate--large .plate-mark { font-size: clamp(3rem, 7vw, 5rem); }

/* ---- 8. Cards: an editorial grid of cells sharing 1px ink rules (no floating cards) -------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  border-top: var(--bw) solid var(--ink); border-left: var(--bw) solid var(--ink); }
.card { min-width: 0; background: var(--paper); border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.card .card-body { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-2); }
.card-title { font: 600 var(--t-title)/1.15 var(--f-sans); overflow-wrap: break-word; }
.card-desc { font-size: var(--t-small); line-height: 1.5; color: var(--olive-ink); }
.card a:hover { background: var(--paper-hi); }
.card a:hover .card-title { text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 3px; text-underline-offset: 0.15em; }
@media (min-width: 52rem) {
  .cards--feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--feature .card:first-child { grid-column: span 2; grid-row: span 2; }
  .cards--feature .card:first-child .card-title { font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.05 var(--f-display); text-transform: uppercase; }
  .cards--feature .card:first-child .card-desc { font-size: var(--t-body); }
  .cards--feature .card:first-child .plate { aspect-ratio: auto; flex: 1 1 auto; min-height: 16rem; }
}

/* ---- 9. Signal index ------------------------------------------------------------------------- */
.signal-list { counter-reset: signal; border-top: var(--bw) solid var(--ink); }
.signal-item { counter-increment: signal; border-bottom: var(--bw) solid var(--ink); }
.signal-item a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; column-gap: var(--s-2); row-gap: var(--s-1);
  padding-block: var(--s-2); text-decoration: none; color: var(--ink); }
.signal-item a::before { content: counter(signal, decimal-leading-zero); grid-row: 1 / 4; font: 400 2.5rem/0.9 var(--f-display); font-variant-numeric: tabular-nums; color: var(--olive); }
.signal-item a::after { content: '→'; grid-column: 3; grid-row: 1 / 4; align-self: center; font: 500 1.5rem/1 var(--f-mono); padding-inline: var(--s-1);
  transition: transform var(--t-fast) var(--ease); }
.signal-item .meta, .signal-title, .signal-lead { grid-column: 2; }
.signal-title { font: 600 clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem)/1.15 var(--f-sans); max-width: 40ch; }
.signal-lead { color: var(--olive-ink); max-width: var(--read); }
.signal-item a:hover { background: var(--paper-hi); }
.signal-item a:hover::after { transform: translateX(4px); color: var(--terracotta-ink); }
.signal-item a:hover::before { color: var(--terracotta-ink); }

/* ---- 10. Line lists (connections): source → relation → target ------------------------------------ */
.lines { border-top: var(--bw) solid var(--ink); }
.lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-half) var(--s-1); padding-block: var(--s-1); border-bottom: var(--bw) solid var(--rule-soft);
  font: 600 var(--t-title)/1.3 var(--f-sans); overflow-wrap: anywhere; }
.lines li:last-child { border-bottom-color: var(--ink); }
.lines a { text-decoration-color: var(--olive); }
.lines a:hover { text-decoration-color: var(--terracotta); }
.rel { display: inline-flex; align-items: center; gap: 0.4em; font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase;
  color: var(--olive-ink); padding: 0.3em 0.5em; border: var(--bw) solid var(--olive); border-radius: var(--radius); }
.rel::after { content: '→'; color: var(--ink); }

/* ---- 11. Entry detail ------------------------------------------------------------------------ */
.entry-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4); align-items: start; }
.entry-intro .lede { margin-top: var(--s-2); }
.facts { margin-top: var(--s-3); border-top: var(--bw-heavy) solid var(--olive); max-width: var(--read); }
.facts div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s-2); padding-block: var(--s-1); border-bottom: var(--bw) solid var(--rule-soft); }
.facts dt { color: var(--olive-ink); padding-top: 0.35em; }
.facts dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---- 12. Signal detail ----------------------------------------------------------------------- */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  border-top: var(--bw) solid var(--ink); border-left: var(--bw) solid var(--ink); margin-top: var(--s-3); }
.note { background: var(--paper); padding: var(--s-2); border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.note:first-child { background: var(--olive-tint); }
.note h2 { display: inline-block; margin-bottom: var(--s-1); padding: 0.2em 0.5em; background: var(--ink); color: var(--paper); }
.note p { font: 500 var(--t-lede)/1.5 var(--f-sans); max-width: var(--read); }

/* ---- 13. Discover filters ------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); align-items: end; }
.filters label { display: flex; flex-direction: column; gap: var(--s-half); }
.filters .grow { flex: 1 1 16rem; max-width: 30rem; }
.filters .label { color: var(--olive-ink); }
.filters input, .filters select { min-height: var(--touch); width: 100%; padding: var(--s-1) var(--s-2); font: 400 1rem/1.3 var(--f-sans); color: var(--ink);
  background: var(--paper-hi); border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.filters select { padding-right: var(--s-5); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.85rem) 52%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.filters input:hover, .filters select:hover { box-shadow: inset 0 -3px 0 var(--terracotta); }
.filters input::placeholder { color: var(--olive-ink); }

/* ---- 14. 404 ---------------------------------------------------------------------------------- */
.missing { padding-block: var(--s-3); }
.missing .kicker > :first-child { background: var(--terracotta-ink); color: var(--paper); }
.missing h1 { font-size: var(--t-hero); }
.missing .lede { margin-top: var(--s-2); }

/* ---- 14b. About / The Desk / Contact (shared tokens and components only) ---------------------- */
.about-brand { margin-top: var(--s-3); font: 500 var(--t-lede)/1.45 var(--f-sans); max-width: var(--read); }
.about-line { margin-top: var(--s-1); font: 500 var(--t-small)/1.4 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--terracotta-ink); }
.desk-note { max-width: var(--read); margin-bottom: var(--s-3); padding: var(--s-1) var(--s-2); background: var(--paper-hi);
  border-left: var(--bw-heavy) solid var(--terracotta); font-size: var(--t-small); }
.desk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  border-top: var(--bw) solid var(--ink); border-left: var(--bw) solid var(--ink); }
.profile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); min-width: 0; padding: var(--s-2);
  background: var(--paper); border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.profile[data-desk="nij"] { background: var(--olive-tint); }
.profile-name { font: 400 var(--t-title)/1.1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.profile-focus { font: 500 var(--t-small)/1.45 var(--f-sans); }
.profile-bio { font-size: var(--t-small); line-height: 1.55; }
.profile-bio p + p { margin-top: var(--s-1); }
.tag[data-persona="ai"] { background: var(--terracotta-ink); border-color: var(--terracotta-ink); color: var(--paper); }
.tag[data-persona="human"] { background: var(--ink); color: var(--paper); }
.contact-note { max-width: var(--read); color: var(--olive-ink); margin-bottom: var(--s-2); }
.colophon-link { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--paper); font: 500 var(--t-small)/1 var(--f-sans); }
.colophon-link:hover { color: var(--sand); }

/* ---- 14c. Editorial stories (contract V2; shown only when approved stories are published) -------
   Story headlines use the display face in sentence case: still MUNET, but read as a headline, not a poster.
   Reading order: headline → deck → byline → story → why it matters → sources → connections. */
.lead-story { margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: var(--bw-heavy) solid var(--ink); }
.lead-title, .story-head h1 { font: 400 clamp(2rem, 1.35rem + 2.4vw, 3.25rem)/1.08 var(--f-display); text-transform: none; letter-spacing: -0.012em;
  max-width: 22ch; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.lead-title { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4rem); max-width: 20ch; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 3px; }
.hero--compact .hero-title { font-size: var(--t-h1); max-width: 22ch; } /* the lead story leads; the brand panel steps back */
.lead-dek, .story-head .lede { margin-top: var(--s-2); font: 400 var(--t-lede)/1.5 var(--f-sans); max-width: 38rem; }
.lead-story .more { display: inline-flex; align-items: center; min-height: var(--touch); margin-top: var(--s-2); font: 600 var(--t-small)/1 var(--f-sans); text-transform: uppercase; }
.byline { display: grid; gap: var(--s-half); margin-top: var(--s-3); max-width: 38rem; }
.byline-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-half) var(--s-1); font: 600 var(--t-body)/1.3 var(--f-sans); }
.persona { margin-top: var(--s-half); padding-left: var(--s-1); border-left: 2px solid var(--terracotta); font-size: var(--t-small); line-height: 1.5; color: var(--olive-ink); }
.story-title { font: 400 var(--t-title)/1.15 var(--f-display); overflow-wrap: break-word; }
.story-head { padding-bottom: var(--s-4); border-bottom: var(--bw) solid var(--ink); }
.story-body { max-width: 38rem; margin-top: var(--s-5); font: 400 clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem)/1.7 var(--f-sans); overflow-wrap: break-word; }
.story-body p + p { margin-top: 1em; }
.story .notes { max-width: 38rem; margin-top: var(--s-5); }
.sources { max-width: var(--read); border-top: var(--bw) solid var(--ink); }
.sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-half) var(--s-2); padding-block: var(--s-1); border-bottom: var(--bw) solid var(--rule-soft);
  overflow-wrap: anywhere; }
.sources a { display: inline-flex; align-items: center; min-height: var(--touch); font-weight: 600; text-decoration-color: var(--olive); }
.sources a:hover { text-decoration-color: var(--terracotta); }
.sources-note { max-width: var(--read); margin-top: var(--s-2); font-size: var(--t-small); color: var(--olive-ink); }
.entry-name { font: 400 var(--t-title)/1.1 var(--f-display); text-transform: uppercase; }
.line-note { flex: 0 0 100%; padding-right: calc(100% - min(100%, var(--read))); font: 400 var(--t-body)/1.55 var(--f-sans); color: var(--olive-ink); }

/* ---- 15. Responsive ----------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  .masthead-tag { display: none; }
  .index a { column-gap: var(--s-1); padding-inline: var(--s-2); }
  .index-n { font-size: 1.375rem; }
  .index-label { font-size: 1.0625rem; overflow-wrap: anywhere; }
  .masthead-inner { grid-template-columns: auto 1fr; }
  .nav { justify-content: flex-end; }
}
@media (max-width: 56rem) {
  .entry-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .entry-head .plate--large { aspect-ratio: 16 / 9; }
}
@media (max-width: 40rem) {
  .masthead-inner { grid-template-columns: 1fr; padding-inline: 0; }
  .brand { padding-inline: var(--gutter); min-height: 3rem; }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--bw) solid var(--ink-line); }
  .nav a { flex-direction: column; justify-content: center; gap: 0.2em; padding-inline: var(--s-half); font-size: 0.75rem; min-height: 3.25rem; }
  .nav a:first-child { border-left: 0; }
  .nav a:last-child { border-right: 0; }
  .nav a::after { display: none; }
  .page { padding-block: var(--s-3) var(--s-5); }
  .hero { padding: var(--s-3) var(--s-2) 0; }
  .index { grid-template-columns: minmax(0, 1fr); margin-inline: calc(-1 * var(--s-2)); }
  .index a { padding-inline: var(--s-2); }
  .index a + a { border-left: 0; border-top: var(--bw) solid var(--ink); }
  .index--compact { margin-inline: 0; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .signal-item a { grid-template-columns: 3rem minmax(0, 1fr); }
  .signal-item a::before { font-size: 1.75rem; }
  .signal-item a::after { display: none; }
  .card .plate { aspect-ratio: 21 / 9; }
  .colophon .meta { margin-left: 0; }
}

/* ---- 16. Motion --------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* UI locale utility: independent of the three section links. */
.masthead-inner:has(.locale-select:not([hidden])) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.locale-select { align-self: center; min-width: 4.5rem; min-height: var(--touch); margin: 0;
  padding: var(--s-half); font: 600 var(--t-small)/1.3 var(--f-sans); color: var(--paper);
  background: var(--ink); border: var(--bw) solid var(--ink-line); border-radius: var(--radius); }
.locale-select[hidden] { display: none; }
@media (max-width: 64rem) {
  .masthead-inner:has(.locale-select:not([hidden])) { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 40rem) {
  .masthead-inner:has(.locale-select:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }
  .locale-select { grid-column: 2; grid-row: 1; margin-inline-end: var(--gutter); }
  .nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 20rem) {
  .masthead-inner:has(.locale-select:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .locale-select { grid-column: 1; grid-row: 2; justify-self: end; margin-bottom: var(--s-half); }
  .masthead-inner:has(.locale-select:not([hidden])) .nav { grid-row: 3; }
  .nav a { min-width: 0; }
  .nav a span { max-width: 100%; overflow-wrap: anywhere; }
}

/* Legal Lite uses the existing section and reading measure. */
.legal-copy { max-width: var(--read); line-height: 1.65; }
.legal-copy p + p { margin-top: var(--s-1); }

/* Owner-approved About portraits and short editorial profiles. */
.desk { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); border: 0; }
.profile, .profile[data-desk="nij"] { display: block; padding: 0; border: 0; background: transparent; }
.profile-photo { width: 100%; aspect-ratio: 379 / 643; overflow: hidden; }
.profile-portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile[data-desk="nij"] .profile-portrait { object-position: 15% 35%; transform: scale(1.3); transform-origin: 50% 15%; }
.profile-copy { padding-top: var(--s-2); }
.profile-name { font: 400 clamp(1.75rem, 2.4vw, 2.4rem)/1.15 Georgia, 'Times New Roman', serif; text-transform: none; }
.profile-role { min-height: 2.24rem; margin-top: var(--s-1); font: 400 0.7rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.profile-bio { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--rule-soft); font: 400 1.0625rem/1.5 Georgia, 'Times New Roman', serif; }
.profile-work { margin-top: var(--s-3); }
.profile-story { margin-top: var(--s-1); font: 400 1.125rem/1.4 Georgia, 'Times New Roman', serif; overflow-wrap: anywhere; }
@media (max-width: 64rem) { .desk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .desk { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
