/* ============================================================
   boldstephiven.com — "The Sentinel Bulletin"
   Palette: wild hive — warm paper · ink · clay (clay = live/verified)
   Type: Newsreader (editorial serif, everything) + IBM Plex Mono
   (registry apparatus). Two families, seven real steps of scale.
   Device: the Sentinel Cell — six edges = six independent signals;
   edge treatment is a factual claim (solid clay = live, dashed = in
   development, solid ink = platform). Radius: 3px interactive, 0
   structural. One motion moment (hero cell assembly), CSS only.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper:       #F5EFE6;
  --paper-deep:  #EDE4D3;
  --paper-soft:  #CFC5B4;  /* secondary text on the ink plate only (~10:1) */
  --ink:         #1A1712;
  --ink-soft:    #5A544B;  /* 6.79:1 on paper */
  --line:        #E2D9CC;
  --line-plate:  rgba(245, 239, 230, 0.22);
  --clay:        #B5502E;  /* the signal color: live / verified only */
  --clay-deep:   #8A3A20;  /* interactive on paper (AA) */
  --clay-bright: #E08B63;  /* clay's twin for the ink plate (6.8:1 on ink) */

  /* radius — one rule: 3px interactive, 0 structural */
  --r: 3px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans:  var(--serif); /* legacy alias — no sans-serif on this site */

  /* type scale (~1.28 modular, seven real steps) */
  --t-display: clamp(2.75rem, 7vw, 5rem);
  --t-plate-h: clamp(2rem, 4vw, 2.75rem);
  --t-h2:      clamp(1.75rem, 3.5vw, 2.5rem);
  --t-h3:      1.375rem;
  --t-body-lg: 1.25rem;
  --t-body:    1.125rem;
  --t-small:   0.9375rem;
  --t-caption: 0.8125rem;

  /* spacing (8px base) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-10: 5rem;
  --s-12: 6rem;
  --s-16: 8rem;

  --shell: 72rem;      /* page grid */
  --measure: 42rem;    /* prose cap (~68ch) */
  --rail: 11rem;       /* left rail at ≥880px */
  --col: 760px;        /* legacy shell for legal pages */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* backstop — nothing may scroll the page sideways */
}

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { font-size: var(--t-display); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.01em; margin-bottom: var(--s-3); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.28; }

::selection { background: var(--clay); color: var(--paper); }

a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

svg { max-width: 100%; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--line);
  z-index: 60;
}
.skip-link:focus { left: var(--s-2); }

/* mono apparatus — the registry voice */
.eyebrow,
.rail-label,
.record-date,
.hero-cell-caption,
.fig-label,
.fig-caption,
.plate-fullname,
.plate-flag,
.plate-live,
.chip,
.tag,
.check-eyebrow {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono { font-family: var(--mono); font-size: 0.9em; }

/* ============================================================
   THE SENTINEL CELL — one symbol, many honest states.
   Custom properties cross the <use> boundary; the edge/dot rules
   below style every instance, the state classes set the claim.
   ============================================================ */
.cell { flex: none; display: inline-block; }

.cell-e {
  fill: none;
  stroke: var(--cell-edge, currentColor);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: var(--cell-dash, none);
}
.cell-dot {
  fill: var(--cell-dot, currentColor);
  stroke: var(--cell-ring, none);
  stroke-width: 6;
  stroke-dasharray: var(--cell-ring-dash, none);
}

.cell--brand    { color: var(--ink); --cell-dot: var(--clay); }             /* header mark */
.cell--seal     { color: var(--clay); }                                     /* footer: comb completed */
.cell--open     { color: var(--ink-soft); --cell-dot: transparent; }        /* rail markers */
.cell--live     { color: var(--clay); }                                     /* live: all six edges solid clay */
.cell--dev      { color: var(--ink-soft); --cell-dash: 0.26 0.2; }          /* in dev: dashed, never partial */
.cell--platform {                                                           /* platform: solid ink, dotted centre */
  color: var(--ink);
  --cell-dot: transparent;
  --cell-ring: var(--ink);
  --cell-ring-dash: 0.09 0.11;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.site-nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-2) var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 500;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-cell { align-self: center; }

/* legacy hexagon mark — still used by privacy/terms/404 */
.hex-mark { color: var(--ink); flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font: 500 var(--t-caption) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-2);
  cursor: pointer;
  transition: border-color 150ms ease;
}
.nav-toggle:hover { border-color: var(--ink-soft); }
.nav-toggle:active { border-color: var(--ink); }
.nav-toggle.open { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.site-menu {
  display: flex;
  gap: var(--s-3);
  list-style: none;
  min-width: 0;
}

.site-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.site-menu a:hover { color: var(--clay-deep); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-menu { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: var(--s-1) 0; border-top: 1px solid var(--line); }
  .site-menu.open { display: flex; }
  .site-menu a { display: block; padding: 0.75rem 0; }
}

/* ---------- hero (the manifesto) ---------- */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-10) var(--s-3) 3.5rem;
}
@media (min-width: 880px) {
  .hero { padding: var(--s-16) var(--s-3) var(--s-12); }
}

.hero-grid { display: block; }
@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--s-8);
    align-items: center;
  }
}

.hero-copy { min-width: 0; }
.hero-art { min-width: 0; margin-top: var(--s-8); }
@media (min-width: 900px) { .hero-art { margin-top: 0; } }

.eyebrow { color: var(--ink-soft); }

.hero h1 { margin-top: var(--s-3); }

.hero-sub {
  color: var(--ink-soft);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: var(--s-3);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

/* ---------- buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--clay-deep);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--clay-deep);
  border-radius: var(--r);
  font: 500 0.875rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, filter 150ms ease;
}
.cta:hover { filter: brightness(0.92); }
.cta:active { filter: brightness(0.82); }

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-soft);
}
.cta--ghost:hover { filter: none; border-color: var(--ink); background: var(--paper-deep); }
.cta--ghost:active { filter: none; background: var(--line); }

/* ---------- hero cell: the one motion moment (CSS only, plays once) ----------
   Resting values ARE the finished, sealed state. The keyframes only create
   the assembly, so reduced-motion and no-JS both land on the complete cell. */
.hero-cell {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin: 0 auto;
}

.hc-e {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.1;
  stroke-linecap: round;
  animation: hc-draw 0.28s ease-out both;
}
.hc-e1 { animation-delay: 0.10s; }
.hc-e2 { animation-delay: 0.18s; }
.hc-e3 { animation-delay: 0.26s; }
.hc-e4 { animation-delay: 0.34s; }
.hc-e5 { animation-delay: 0.42s; }
.hc-e6 { animation-delay: 0.50s; }

.hc-t {
  fill: var(--ink-soft);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  animation: hc-fade 0.3s ease-out both;
}
.hc-t--end { text-anchor: end; }
.hc-t1 { animation-delay: 0.38s; }
.hc-t2 { animation-delay: 0.46s; }
.hc-t3 { animation-delay: 0.54s; }
.hc-t4 { animation-delay: 0.62s; }
.hc-t5 { animation-delay: 0.70s; }
.hc-t6 { animation-delay: 0.78s; }

.hc-dot {
  fill: var(--clay);
  transform-box: fill-box;
  transform-origin: center;
  animation: hc-seal 0.45s ease-out both;
  animation-delay: 2.1s;
}

@keyframes hc-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes hc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hc-seal {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-cell-caption {
  color: var(--ink-soft);
  text-align: center;
  margin-top: var(--s-2);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ---------- the WASID plate (the single dark, full-bleed surface) ---------- */
.plate {
  background: var(--ink);
  color: var(--paper);
}

.plate-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-12) var(--s-3);
}

.plate a { color: var(--clay-bright); }
.plate :focus-visible { outline-color: var(--paper); }

.plate-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line-plate);
  min-width: 0;
}

.plate-flag { color: var(--clay-bright); }

.plate-live {
  color: var(--clay-bright);
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.plate-live:hover { text-decoration: underline; text-underline-offset: 3px; }

.plate-title {
  font-size: var(--t-plate-h);
  line-height: 1.1;
  font-weight: 500;
  color: var(--paper);
  margin: var(--s-6) 0 0;
}

.plate-fullname {
  color: var(--paper-soft);
  margin-top: var(--s-1);
}

.plate-def {
  color: var(--paper-soft);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: var(--s-3);
}

/* FIG. 01 — the six-signal schematic (static; the motion budget lives in the hero) */
.fig { margin-top: var(--s-6); }

.fig-label { color: var(--paper-soft); margin-bottom: 0.75rem; }

.fig-frame {
  border: 1px dashed rgba(245, 239, 230, 0.35);
  padding: var(--s-3);
}

.fig-svg { display: block; width: 100%; height: auto; }
.fig-svg--tall { display: none; max-width: 24rem; margin: 0 auto; }
@media (max-width: 879px) {
  .fig-svg--wide { display: none; }
  .fig-svg--tall { display: block; }
}

.fs-struct  { fill: none; stroke: var(--paper-soft); stroke-width: 1.5; stroke-linecap: round; }
.fs-flow    { fill: none; stroke: var(--paper-soft); stroke-width: 1.5; stroke-dasharray: 6 6; }
.fs-signal  { fill: none; stroke: var(--clay-bright); stroke-width: 2; stroke-linecap: round; }
.fs-verdict { fill: none; stroke: var(--clay-bright); stroke-width: 2; stroke-linecap: round; }
.fs-leader  { fill: none; stroke: rgba(245, 239, 230, 0.4); stroke-width: 1; }
.fs-claim   { fill: var(--paper-soft); }
.fs-label {
  fill: var(--paper-soft);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.fs-strong { fill: var(--paper); }
.fs-mid { text-anchor: middle; }
.fs-end { text-anchor: end; }

.fig-caption {
  color: var(--paper-soft);
  margin-top: 0.75rem;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.plate-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.chip {
  color: var(--paper-soft);
  border: 1px solid #3A342B;
  border-radius: var(--r);
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

.plate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: var(--s-4);
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: var(--r);
  font: 500 0.875rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s-1) var(--s-3);
  transition: background-color 150ms ease, color 150ms ease;
}
.plate a.plate-cta { color: var(--paper); }
.plate a.plate-cta:hover { background: var(--paper); color: var(--ink); }

/* ---------- standard sections: left-rail editorial grid ---------- */
.section { border-top: 1px solid var(--line); }
.plate + .section { border-top: none; } /* the surface change is the divider */

.section-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-10) var(--s-3);
}
.section--record .section-inner { padding-top: var(--s-8); padding-bottom: var(--s-8); } /* compressed beat */

@media (min-width: 880px) {
  .section-inner {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }
}

.rail {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-3);
  min-width: 0;
}
@media (min-width: 880px) {
  .rail { margin-bottom: 0; padding-top: 0.5rem; }
}

.rail-label { color: var(--ink-soft); white-space: nowrap; }
.rail-cell { align-self: center; }

.section-body { min-width: 0; }
.section-body > p { max-width: var(--measure); }
.section-body p + p { margin-top: var(--s-2); }

.section-lead {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: var(--s-2);
}

/* ---------- the work: the registry ---------- */
.reg {
  list-style: none;
  margin-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.reg-item { border-bottom: 1px solid var(--line); }

.reg-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-2);
  margin: 0 calc(-1 * var(--s-2));
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

a.reg-row { transition: background-color 150ms ease; }
a.reg-row:hover { background: var(--paper-deep); }

.reg-cell { margin-top: 0.3rem; }

.reg-body { flex: 1; min-width: 0; }

.reg-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  min-width: 0;
}

.reg-name {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.28;
  transition: color 150ms ease;
}

a.reg-row:hover .reg-name { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
a.reg-row:active .reg-name { color: var(--clay); }

.reg-line {
  display: block;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: 0.25rem;
}

/* a URL is evidence — always mono */
.reg-url {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay-deep);
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
}

.reg-arrow {
  flex: none;
  align-self: center;
  color: var(--ink-soft);
  font-size: var(--t-body-lg);
  transition: color 150ms ease, transform 150ms ease;
}
a.reg-row:hover .reg-arrow { color: var(--clay-deep); transform: translateX(4px); }

.reg-row--static { cursor: default; }

.tag {
  flex: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.05rem 0.5rem;
  white-space: nowrap;
}
.tag--live { color: var(--clay-deep); border-color: var(--clay); }
.tag--flagship { color: var(--clay-deep); border-color: var(--clay-deep); }

/* ---------- approach: three tenets ---------- */
.tenets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
@media (min-width: 720px) {
  .tenets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
}

.tenet { min-width: 0; }

.tenet-head {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
}

.tenet-title {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
}

.tenet p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- the record: honest proof ---------- */
.record-date { color: var(--ink-soft); margin-bottom: var(--s-3); }

.record-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.record-table th,
.record-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  overflow-wrap: anywhere;
}

.record-table thead th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}

.record-table tbody th { font-weight: 500; color: var(--ink); }
.record-table tbody td { color: var(--ink-soft); }
.record-table tbody tr:nth-child(even) { background: var(--paper-deep); }
.record-table tbody td a { color: var(--clay-deep); text-decoration: none; }
.record-table tbody td a:hover { text-decoration: underline; text-underline-offset: 3px; }

.check-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
@media (min-width: 640px) {
  .check-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.check-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.check-card:hover { background: var(--paper-deep); border-color: var(--ink-soft); }

.check-eyebrow { color: var(--ink-soft); }

.check-name {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.28;
}
.check-card:hover .check-name { color: var(--clay-deep); }

.check-url {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay-deep);
  overflow-wrap: anywhere;
}

.record-close {
  font-style: italic;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-top: var(--s-4);
}

/* ---------- contact ---------- */
.contact-mail { margin-top: var(--s-2); }
.contact-mail a {
  font-family: var(--mono);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--clay-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-mail a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-sub { color: var(--ink-soft); margin-top: var(--s-2); }

.contact-alt { margin-top: var(--s-3); }
.contact-alt a {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.contact-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-6) var(--s-3) var(--s-8);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--serif);
  font-weight: 500;
}

.footer-legal {
  font-family: var(--mono);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  margin-top: var(--s-2);
}
.footer-legal a { color: var(--ink-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }

.footer-line {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  margin-top: var(--s-1);
}

/* the cookie bar must never occlude the footer (class set by main.js) */
body.has-cookie-bar .site-footer {
  padding-bottom: calc(var(--cookiebar-h, 7rem) + var(--s-3));
}

/* ---------- legal pages (privacy, terms) ---------- */
.legal {
  max-width: var(--col);
  margin: 0 auto;
  padding: var(--s-8) var(--s-3) var(--s-12);
}
.legal h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: var(--s-6);
  margin-bottom: var(--s-1);
}
.legal p { margin-top: var(--s-2); color: var(--ink-soft); }
.legal p.legal-meta { margin-top: var(--s-1); font-family: var(--mono); font-size: var(--t-caption); letter-spacing: 0.04em; }
.legal p.legal-lead { margin-top: var(--s-4); color: var(--ink); }
.legal ul { margin-top: var(--s-2); padding-left: var(--s-3); }
.legal li { margin-top: var(--s-1); color: var(--ink-soft); }
.legal p.legal-foot {
  margin-top: var(--s-8);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
}

/* legal/404 pages keep a plain shell footer */
.legal ~ .site-footer,
.page-404 .site-footer { max-width: var(--col); }
.page-404 .hero { max-width: var(--col); }

/* ---------- cookie notice ---------- */
.cookie-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  width: calc(100% - 1rem);
  max-width: 44rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-2) var(--s-3);
  padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom) * 0.25);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  z-index: 50;
}
.cookie-text {
  flex: 1;
  min-width: 14em;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--t-caption);
  letter-spacing: 0.01em;
  line-height: 1.55;
}
.cookie-text a { color: var(--clay-deep); }
.cookie-actions { flex: none; }
.cookie-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  background: var(--clay-deep);
  color: var(--paper);
  border: none;
  border-radius: var(--r);
  font: 500 var(--t-caption) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  cursor: pointer;
  transition: filter 150ms ease;
}
.cookie-accept:hover { filter: brightness(0.92); }
.cookie-accept:active { filter: brightness(0.82); }

/* ---------- 404 ---------- */
.page-404 main { padding-top: var(--s-16); padding-bottom: var(--s-16); }

/* ---------- global reduced-motion kill-switch ----------
   Every animated element's resting CSS values are its finished,
   composed state (the sealed hero cell, all tick labels visible),
   so removing animation yields the complete static page for free. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
