/* Open Indus site. Look: fired steatite and baked brick, set like an excavation report.
   Warm steatite-white paper (kiln-dark in dark mode), lapis-blue links, carnelian only for motifs.
   Two motifs, used sparingly: brick courses in the 1:2:4 Indus ratio as section dividers, carnelian beads as list markers. */

:root {
  --paper: #F4F0E7; --surface: #FAF7F0; --plate: #E7E1D4; --ink: #1E1A16; --muted: #594F45; --faint: #675D52;
  --line: #DED6C7; --line-strong: #C3B9A7; --rule: #8A7F70;
  --accent: #2A4D84; --accent-ink: #223F6D; --accent-soft: #DCE3EE; --on-accent: #FFFFFF;
  --chance: #857A6D; --clay: #A9482C; --brick: #D2BCA4;
  --img-edge: rgb(0 0 0 / 0.1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --warn: #7E5300; --warn-soft: #F0E3C8;
  /* The project's typeface, two cuts (site/font/, copied to assets/fonts/ by build.py). No external font requests.
     --oi-display: drawn capitals and figures. ONLY for text set in capitals (caps titles, labels, kickers, big figures).
     --oi-text: Instrument Sans shapes with our spacing. Everything in mixed case. --display and --body both point at Text,
     so any heading or label not in capitals can never pick up the Display capitals. */
  --oi-display: "Open Indus Display", "Open Indus Text", system-ui, sans-serif;
  --oi-text: "Open Indus Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--oi-text);
  --body: var(--oi-text);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --head-h: 68px;
  --section: clamp(44px, 5vw, 72px); /* section rhythm: the same space above and below every divider */
  /* Optical tracking, defined once and resolved against each element's own size (em = that element's font size).
     Mixed case in Open Indus Text, which already carries +12 units (0.012em) of built-in spacing: 0.4px - 0.018em gives
     +0.013em at 13px, +0.007em at 16px, +0.004em at 18px, +0.002em at 20px, 0 at 22px, -0.006em at 32px, -0.013em at 80px, floored at -0.015em.
     Caps titles: 1.4px clamped to 0.02-0.04em gives +0.04em at 28-35px, +0.03em at 48px, +0.02em at 64px+.
     Small all-caps labels: +0.065em. Word spacing opens slightly at body sizes and falls to 0 at headline sizes. */
  --track: clamp(-0.015em, calc(0.4px - 0.018em), 0.02em); /* by size: smaller text gets a little more, 0 at 22px, tighter above */
  --track-caps: clamp(0.02em, 1.4px, 0.04em);
  --track-label: 0.065em;
  --word: clamp(0px, calc(1.2px - 0.025em), 0.06em);
  /* the carved seal and the pressed sign band */
  --seal-side-hi: #DCD0BD; --seal-side-lo: #A38E74; --seal-shadow: rgb(70 45 25 / 0.42); --seal-dim: 0;
  --field-op: 0.85; --press-bg: #E9E2D4; --press-hi: rgb(255 255 255 / 0.75); --press-lo: rgb(70 45 25 / 0.2); --band-op: 1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14110E; --surface: #1B1713; --plate: #0C0A08; --ink: #EDE6DA; --muted: #ADA292; --faint: #8F8475;
    --line: #2D2721; --line-strong: #433A31; --rule: #706657;
    --accent: #93B2E2; --accent-ink: #ADC5EC; --accent-soft: #1B2436; --on-accent: #0D1625;
    --chance: #766B5E; --clay: #D9805F; --brick: #3D3027; --img-edge: rgb(255 255 255 / 0.1);
    --warn: #E2B05A; --warn-soft: #382B12;
    --seal-side-hi: #C2B198; --seal-side-lo: #6F5D4A; --seal-shadow: rgb(0 0 0 / 0.75); --seal-dim: 0.1;
    --field-op: 0.5; --press-bg: #0F0C0A; --press-hi: rgb(255 255 255 / 0.06); --press-lo: rgb(0 0 0 / 0.55); --band-op: 0.55;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14110E; --surface: #1B1713; --plate: #0C0A08; --ink: #EDE6DA; --muted: #ADA292; --faint: #8F8475;
  --line: #2D2721; --line-strong: #433A31; --rule: #706657;
  --accent: #93B2E2; --accent-ink: #ADC5EC; --accent-soft: #1B2436; --on-accent: #0D1625;
  --chance: #766B5E; --clay: #D9805F; --brick: #3D3027; --img-edge: rgb(255 255 255 / 0.1);
  --warn: #E2B05A; --warn-soft: #382B12;
  --seal-side-hi: #C2B198; --seal-side-lo: #6F5D4A; --seal-shadow: rgb(0 0 0 / 0.75); --seal-dim: 0.1;
  --field-op: 0.5; --press-bg: #0F0C0A; --press-hi: rgb(255 255 255 / 0.06); --press-lo: rgb(0 0 0 / 0.55); --band-op: 0.55;
  color-scheme: dark;
}

@font-face { font-family: "Open Indus Display"; src: url("fonts/OpenIndus-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Indus Display"; src: url("fonts/OpenIndus-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Indus Text"; src: url("fonts/OpenIndusText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Indus Text"; src: url("fonts/OpenIndusText-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-padding-top: calc(var(--head-h) + 20px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; }
h2 { font-size: clamp(25px, 3.1vw, 36px); line-height: 1.1; font-weight: 700; font-stretch: 108%; letter-spacing: -0.012em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; font-stretch: 104%; margin-top: 12px; }
p { margin: 0; }
p, li, dd, figcaption { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
main { display: block; outline: none; }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; gap: 12px 28px; min-height: var(--head-h); flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .wordmark { height: 32px; width: auto; flex: none; stroke-width: 13; }
.brand-name { font-family: var(--display); font-weight: 700; font-stretch: 118%; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 17px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--clay); }
.ext-ic { margin-left: 3px; }
.theme, .menu-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 40px; }
.theme:hover, .menu-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.menu-btn { display: none; color: var(--ink); border-color: var(--line-strong); }
.menu-btn path { transition: transform 160ms var(--ease-out), opacity 120ms; transform-origin: 10px 10px; }
.menu-btn[aria-expanded="true"] .m1 { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .m2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .m3 { transform: translateY(-4px) rotate(-45deg); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: var(--section); padding: 32px 0 48px; font-size: 14.5px; color: var(--muted); }
.foot-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand .mark { width: 40px; height: 40px; flex: none; color: var(--ink); }
.foot-brand b { font-family: var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.foot-links { display: flex; flex-direction: column; gap: 2px; }
.foot-links a { padding: 3px 0; }
.foot-h { white-space: nowrap; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-note { grid-column: 1 / -1; font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }

/* hero */
.hero, .page-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; padding-top: clamp(32px, 6vw, 72px); padding-bottom: 0; }
.page-head.one { grid-template-columns: minmax(0, 1fr); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 760px; }
.kicker { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.state { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; color: var(--ink); font-weight: 500; max-width: 46ch; }
.hero .lede { font-size: clamp(16px, 1.3vw, 18px); }
.lede b { color: var(--ink); font-weight: 600; }
.foot-goal { color: var(--ink); font-weight: 600; }
/* Hero object: a carved steatite seal (build.py seal_object; site.js turns it). Thickness = 15 stacked slices of the
   same rounded square as the face, so the sides meet the front edge exactly and the corners stay closed at any tilt. */
.stage { position: relative; display: grid; place-items: center; min-height: clamp(400px, 38vw, 520px); min-width: 0; }
.field { position: absolute; inset: -24px -48px 0 -16px; opacity: var(--field-op); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 55% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side at 55% 50%, #000 35%, transparent 100%); }
.field svg { width: 100%; height: 100%; display: block; }
.seal-fig { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.scene { position: relative; perspective: 1400px; width: min(340px, 70vw); aspect-ratio: 1; }
.seal { --depth: 34px; position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50% calc(var(--depth) / -2);
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)); }
.seal .sl { position: absolute; inset: 0; border-radius: 7%; transform: translateZ(calc(var(--z) * -1));
  background: linear-gradient(rgb(40 25 12 / var(--a)), rgb(40 25 12 / var(--a))), linear-gradient(135deg, var(--seal-side-hi) 30%, var(--seal-side-lo) 75%); }
.seal .face { position: absolute; inset: 0; border-radius: 7%; overflow: hidden; transform: translateZ(0.01px); background: #E9DFCD; }
.seal .face svg { display: block; width: 100%; height: 100%; }
.seal .face::after { content: ""; position: absolute; inset: 0; background: rgb(20 12 6 / var(--seal-dim)); pointer-events: none; }
.seal .rim { position: absolute; inset: 0; border-radius: 7%; transform: translateZ(0.6px); pointer-events: none;
  box-shadow: inset 3px 3px 1px rgb(255 255 255 / 0.55), inset 6px 6px 10px rgb(255 255 255 / 0.2), inset -3px -3px 2px rgb(90 62 40 / 0.35), inset -8px -8px 14px rgb(90 62 40 / 0.16); }
.contact { position: absolute; left: 4%; right: -2%; bottom: -13%; height: 18%; border-radius: 50%; display: block;
  background: radial-gradient(closest-side, var(--seal-shadow), transparent); filter: blur(12px); transform: translateX(var(--sx, 14px)); }
.seal-note { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stage { min-height: 340px; } .scene { width: min(250px, 66vw); } .seal { --depth: 26px; } }

/* Section divider: a recessed band with signs pressed into it */
.band { margin-top: var(--section); }
.band-in { height: 60px; border-radius: 0; background: var(--press-bg); position: relative; overflow: hidden;
  box-shadow: inset 2px 3px 6px var(--press-lo), inset -1px -1px 0 var(--press-hi); }
.band-in svg { position: absolute; top: 0; left: 0; height: 100%; width: auto; aspect-ratio: 5824 / 64; max-width: none; opacity: var(--band-op); }
@keyframes band-run { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: no-preference) { .band-in svg { animation: band-run 90s linear infinite; will-change: transform; } }
.band + .block::before { display: none; }  /* the sign strip is the divider; .block padding-top gives the space below it */
@media (max-width: 760px) { .band-in { height: 44px; } }

/* Goal: ten slots, one per sign that needs a tested sound value */
.goal-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.slot { aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 3px; }
.slot.on { background: var(--accent); border-color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 4px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; }
.btn, .theme, .filters button { transition: transform 160ms var(--ease-out); }
.btn:active, .theme:active, .filters button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--surface); } }
.btn.primary { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); } }
.jump a { padding: 6px 0; }
.jump { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }

/* plates: photographs from the 1930s reports */
.plate { margin: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: calc(var(--w) + 32px); min-width: 0; }
.plate-ground { background: var(--plate); padding: 16px; border-radius: 2px; }
.plate img { display: block; width: 100%; height: auto; max-width: var(--w); margin: 0 auto; filter: grayscale(1); outline: 1px solid var(--img-edge); outline-offset: -1px; }
.hero .plate-ground { position: relative; }
.hero .plate-ground::before, .hero .plate-ground::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--rule); pointer-events: none; }
.hero .plate-ground::before { top: -7px; left: -7px; border-top-width: 1px; border-left-width: 1px; }
.hero .plate-ground::after { bottom: -7px; right: -7px; border-bottom-width: 1px; border-right-width: 1px; }
:root[data-theme="dark"] .plate img { filter: grayscale(1) brightness(0.86) contrast(1.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate img { filter: grayscale(1) brightness(0.86) contrast(1.06); } }
figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
figcaption .cat { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.02em; color: var(--ink); }
.hero .plate { justify-self: end; }
.figs { display: flex; flex-direction: column; gap: 20px; min-width: 0; align-items: flex-start; }
.head-figs { align-items: flex-end; }

/* ladder */
.ladder-fig { margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.claim { font-family: var(--display); font-weight: 650; font-stretch: 104%; font-size: 17px; color: var(--ink); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; border-bottom: 2px solid var(--ink); max-width: 880px; }
.rung { border: 1.5px solid var(--rule); border-bottom: 0; border-radius: 3px 3px 0 0; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.rung b { font-family: var(--display); font-stretch: 106%; font-size: 15.5px; }
.rung span { color: var(--muted); }
.rung.done { background: var(--accent); border-color: var(--accent); }
.rung.done b, .rung.done span { color: var(--on-accent); }
.rung.part { background: linear-gradient(var(--paper), var(--paper)) top / 100% 62% no-repeat, repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 6px); border-color: var(--accent); }
.r1 { height: 62px; } .r2 { height: 88px; } .r3 { height: 114px; } .r4 { height: 140px; } .r5 { height: 166px; }
.ladder-key, .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.key.obs { background: var(--accent); }
.key.half { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 4px); border: 1px solid var(--accent); }
.key.open { border: 1.5px solid var(--rule); }
.key.chance { background: repeating-linear-gradient(135deg, var(--chance) 0 2px, transparent 2px 4px); border: 1px solid var(--chance); }

/* sections with a catalogue rail */
/* Section rhythm, one token: every section is [divider][--section][rail + content], and starts --section below the end of the
   previous one. So the divider sits exactly midway, and nothing at the edges of .content may add margin or padding of its own. */
.block { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 40px; padding-top: var(--section); padding-bottom: 0; }
.content > :first-child { margin-top: 0; }
.content > :last-child, .content > :last-child > :last-child, .split > * > :last-child { margin-bottom: 0; }
.flow > .step:last-child { padding-bottom: 0; }
/* Brick course: one row of stretchers (4 units long) over one row of headers (2 units), each 1 unit high, as in Indus baked brick. */
.block::before { content: ""; grid-column: 1 / -1; height: 13px; margin-bottom: var(--section); background: var(--brick);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='13'%3E%3Cpath d='M0 0h23v6H0zM24 0h23v6H24zM0 7h11v6H0zM12 7h11v6H12zM24 7h11v6H24zM36 7h11v6H36z'/%3E%3C/svg%3E") 0 0 / 48px 13px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='13'%3E%3Cpath d='M0 0h23v6H0zM24 0h23v6H24zM0 7h11v6H0zM12 7h11v6H12zM24 7h11v6H24zM36 7h11v6H36z'/%3E%3C/svg%3E") 0 0 / 48px 13px repeat-x; }
.block + .block { border-top: 0; }
.rail { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.rail span { line-height: 1; font-size: 28px; font-family: var(--display); font-stretch: 112%; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.intro { color: var(--muted); max-width: 68ch; }
.note { font-size: 15px; color: var(--muted); max-width: 72ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
.split.narrow-fig { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* method rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: r; border-top: 1px solid var(--line); }
.rules li { counter-increment: r; padding: 16px 20px 16px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 15.5px; }
.rules li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.rules b { font-family: var(--display); font-stretch: 104%; font-size: 17px; line-height: 1.25; }
.rules span { color: var(--muted); }
.rules.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules.compact li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.rules.compact li:nth-child(n+4) { border-top: 1px solid var(--line); }
.figures { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.figures a { color: inherit; text-decoration: none; }
.figures a:hover span, .figures a:hover { color: var(--ink); }
.figures b { font-family: var(--display); font-stretch: 108%; font-size: 24px; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* charts: bars to scale from zero */
.chart { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pair { display: flex; flex-direction: column; gap: 5px; }
.pl { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.bar { display: grid; grid-template-columns: 124px minmax(0, 1fr) 76px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.bar .bl { min-width: 0; }
.bar .bl em { font-style: normal; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--accent-ink); white-space: nowrap; }
.track { height: 12px; background: transparent; border-left: 1.5px solid var(--ink); position: relative; display: block; }
.track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px dashed var(--line-strong); pointer-events: none; }
.fill { display: block; height: 100%; background: var(--accent); position: relative; z-index: 1; min-width: 1.5px; }
.fill.chance { background: repeating-linear-gradient(135deg, var(--chance) 0 2px, transparent 2px 4px); border: 1px solid var(--chance); }
.bv { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.axis { display: grid; grid-template-columns: 124px minmax(0, 1fr) 76px; column-gap: 12px; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--faint); position: relative; }
.axis span:nth-child(1) { grid-column: 2; grid-row: 1; justify-self: start; }
.axis span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: center; }
.axis span:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 44px; }
.mini { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mini .bar, .mini .axis { grid-template-columns: 92px minmax(0, 1fr) 48px; }

/* inline sign glyphs */
.sig { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -0.42em; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }

/* lists */
.closed, .groups, .levels { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.closed > div, .groups > div, .levels > div { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.closed dt, .groups dt { font-weight: 650; }
.closed dd, .groups dd, .levels dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.levels { grid-template-columns: minmax(0, 1fr); }
.levels > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.caveats, .ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.ticks { list-style: none; padding-left: 0; }
.ticks li { position: relative; padding-left: 22px; }
/* Carnelian bead: a short barrel with a drilled hole, lit from the upper left. */
.ticks li::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 11px; height: 7px; border-radius: 3.5px;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0 1px, transparent 1.4px), linear-gradient(180deg, color-mix(in oklab, var(--clay) 70%, white) 0, var(--clay) 55%, color-mix(in oklab, var(--clay) 75%, black) 100%); }
.caveats li::marker { color: var(--faint); }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.plainlist .pt { font-weight: 650; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.plainlist p { color: var(--muted); font-size: 15.5px; max-width: 72ch; }
.plainlist .why { font-size: 14px; color: var(--faint); }
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }

/* tags */
.tag, .lvl { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 500; line-height: 1.6; display: inline-block; }
.tag.good, .tag.ok, .lvl.strong { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lvl.moderate, .tag.run, .tag.next { border-color: var(--accent); color: var(--accent-ink); }
.tag.weak, .tag.fail, .lvl.weak { border-color: var(--warn); color: var(--warn); }
.tag.out { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag.wait, .lvl.exploratory, .lvl.descriptive { border-style: dashed; }
.legend-row { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.legend-row li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* plan flow */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--muted); }
.step.ok .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step.fail .dot { border-color: var(--warn); color: var(--warn); }
.step.next .dot { border: 2px solid var(--accent); color: var(--accent-ink); }
.flow.plain .dot { border-color: var(--ink); color: var(--ink); }
.step .sh { font-weight: 650; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-top: 3px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 64ch; }
.odds { border-top: 2px solid var(--ink); padding-top: 14px; max-width: 72ch; }

/* findings */
.findings { list-style: none; margin: 0; padding: 0; }
.finding { border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; }
.finding .num, .route .rn, .sid { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.finding .ft { font-weight: 600; min-width: 0; }
.finding details { grid-column: 1 / -1; }
.finding:has(details) { display: block; padding: 0; }
.finding summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; list-style: none; }
.fbody { padding: 0 0 18px 46px; display: flex; flex-direction: column; gap: 8px; max-width: 80ch; }
.fbody .nums { font-family: var(--mono); font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; border-radius: 3px; }
.caveat { color: var(--warn); font-size: 15px; }
.where { font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
a.file { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
details > summary { position: relative; }
.finding summary::after, .group summary::after, .starter summary::after, .more > summary::before {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); align-self: center; justify-self: end; margin-right: 4px; transition: transform 200ms var(--ease-out); }
details[open] > summary::after { transform: rotate(225deg); }
.finding summary { grid-template-columns: 34px minmax(0, 1fr) auto 16px; }
.more { border-top: 1px solid var(--line); }
.more > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--accent-ink); display: flex; align-items: center; gap: 12px; }
.more > summary::before { justify-self: start; margin: 0 2px; transform: rotate(-45deg); }
.more[open] > summary::before { transform: rotate(45deg); }
.more > .findings, .more > .rev { margin-bottom: 14px; }

/* closed routes */
.group { border-top: 1px solid var(--line); }
.group > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 14px 0; cursor: pointer; }
.gt { font-family: var(--display); font-stretch: 104%; font-weight: 650; font-size: 18px; }
.gc { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.routes { list-style: none; margin: 0 0 16px; padding: 0; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 10px 0 10px 16px; border-top: 1px dashed var(--line); align-items: baseline; }
.rt { font-weight: 600; min-width: 0; }
.rt .rn { margin-right: 10px; }
.rd { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--muted); }
.rev { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; color: var(--muted); }
.rev b { color: var(--ink); }

/* tasks */
.starters { list-style: none; margin: 0; padding: 0; }
.starters + .starters { margin-top: -18px; }
.starter { border-top: 1px solid var(--line); }
.starter summary, .starter .row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: 4px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.starter .row { grid-template-columns: 40px minmax(0, 1fr) auto; cursor: default; padding-bottom: 2px; }
.st { font-weight: 600; min-width: 0; }
.sw { font-size: 13px; color: var(--muted); text-align: right; }
.sb { padding: 0 0 16px 52px; display: flex; flex-direction: column; gap: 8px; max-width: 80ch; font-size: 15.5px; }
.sb p { color: var(--muted); }
.sb b { color: var(--ink); font-weight: 600; }
.starter .sub { padding: 0 0 12px 52px; color: var(--muted); font-size: 14.5px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.steps-small { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15.5px; }

/* tracker */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat b { font-family: var(--display); font-stretch: 108%; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
.ms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 260px) 64px; gap: 8px 14px; align-items: center; font-size: 15px; max-width: 760px; }
.ms .mtrack { height: 10px; border-left: 1.5px solid var(--ink); display: block; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 100%); }
.ms .mfill { height: 100%; background: var(--accent); display: block; }
.ms .n { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: 14px; min-height: 36px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tasks { display: flex; flex-direction: column; }
.task { border-top: 1px solid var(--line); }
.task summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.task .id { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.task .t { min-width: 0; }
.task .more-t { font-size: 15px; color: var(--muted); padding: 0 0 14px 52px; max-width: 76ch; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 960px) {
  .block { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { flex-direction: row; align-items: baseline; gap: 12px; padding-bottom: 6px; }
  .rail span { font-size: 20px; }
  .content { padding-top: 6px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules li:nth-child(3) { padding-left: 0; border-left: 0; }
  .rules li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rules.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules.compact li { padding-left: 20px; border-left: 1px solid var(--line); border-top: 0; }
  .rules.compact li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rules.compact li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero, .page-head { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .hero .plate, .head-figs .plate { justify-self: start; max-width: min(calc(var(--w) + 32px), 300px); }
  .head-figs { align-items: flex-start; }
  .split, .split.narrow-fig, .minis, .closed, .groups, .asks, .two-col, .foot-row { grid-template-columns: minmax(0, 1fr); }
  .figs { flex-direction: row; flex-wrap: wrap; }
  .figs .plate { max-width: min(calc(var(--w) + 32px), 100%); }
  .rules, .rules.compact { grid-template-columns: minmax(0, 1fr); }
  .rules li, .rules li + li, .rules.compact li, .rules.compact li:nth-child(odd) { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .rules li:first-child { border-top: 0; }
  .bar, .axis { grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 8px; }
  .mini .bar, .mini .axis { grid-template-columns: 84px minmax(0, 1fr) 44px; }
  .ladder { gap: 3px; }
  .rung { padding: 6px 5px; font-size: 11px; }
  .rung b { font-size: 12px; overflow-wrap: anywhere; }
  .rung span { display: none; }
  .r1 { height: 50px; } .r2 { height: 76px; } .r3 { height: 98px; } .r4 { height: 120px; } .r5 { height: 142px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ms { grid-template-columns: minmax(0, 1fr) 64px 56px; }
  .fbody, .sb, .starter .sub, .task .more-t { padding-left: 0; }
  .levels > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sw { display: none; }
  .starter summary { grid-template-columns: 34px minmax(0, 1fr) 16px; }
  .starter .row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .finding summary { grid-template-columns: 28px minmax(0, 1fr) 16px; }
  .finding summary .lvl { grid-column: 2; grid-row: 2; justify-self: start; }
  .finding summary::after { grid-column: 3; grid-row: 1; }
  :root { --head-h: 60px; }
  .brand .mark { width: 36px; height: 36px; }
  .brand .wordmark { height: 28px; }
  .theme { padding: 6px 10px; }
  .theme #theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route { padding-left: 0; }
}
/* Compact header: below 900px the page links fold into a menu (without JS they wrap under the brand instead). */
@media (max-width: 900px) {
  .head-row { gap: 6px 8px; flex-wrap: nowrap; }
  .site-nav ul { gap: 2px 16px; font-size: 16px; }
  html:not(.js) .head-row { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 14px 24px -16px rgb(0 0 0 / 0.35); padding: 4px max(var(--gutter), env(safe-area-inset-left, 0px)) 14px; max-height: calc(100dvh - var(--head-h)); overflow-y: auto; }
  .js .site-head.open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; font-size: 19px; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { display: flex; min-height: 50px; padding: 12px 0; border-bottom: 0; }
  .js .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
/* Motion: opt-in only. Disclosure bodies settle in; the landing hero rises once on load. */
@media (prefers-reduced-motion: no-preference) {
  details[open] > :not(summary) { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { details[open] > :not(summary) { opacity: 0; transform: translateY(-4px); } }
  .hero .hero-text > *, .hero .stage { animation: rise 320ms var(--ease-out) both; }
  .hero .hero-text > :nth-child(2) { animation-delay: 50ms; }
  .hero .hero-text > :nth-child(3) { animation-delay: 100ms; }
  .hero .hero-text > :nth-child(4) { animation-delay: 150ms; }
  .hero .hero-text > :nth-child(5) { animation-delay: 200ms; }
  .hero .stage { animation-delay: 100ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (forced-colors: active) {
  .fill, .mfill, .rung.done, .key.obs, .sig { forced-color-adjust: none; background: CanvasText; }
  .fill.chance, .key.chance, .rung.part, .key.half { forced-color-adjust: none; background: repeating-linear-gradient(135deg, CanvasText 0 2px, Canvas 2px 5px); }
  .track, .ms .mtrack { border-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .theme, .filters button, summary::after, summary::before, .menu-btn path { transition: none; }
  .btn:active, .theme:active, .filters button:active { transform: none; }
  details[open] > :not(summary) { transition: opacity 150ms ease; }
  @starting-style { details[open] > :not(summary) { opacity: 0; } }
}

/* ---------------------------------------------------------------- Open Indus Display
   Landing page (body.oi-page), the shared header and footer, and the Resources specimen. Titles are set in capitals with
   text-transform, so the source text stays in sentence case for screen readers and copying. */
:where(body) :where(*:not(code, pre, code *)) { letter-spacing: var(--track); word-spacing: var(--word); }
.oi-page { font-size: 19px; line-height: 1.6; }
.oi-page h1, .oi-page h2 { font-family: var(--oi-display); text-transform: uppercase; font-weight: 700; letter-spacing: var(--track-caps); }
.oi-page h1 { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.04; }
.oi-page h2 { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.08; }
.oi-page h3 { font-size: 21px; font-weight: 700; }
.oi-page :is(.kicker, .rail, .tag, .lvl), .site-foot .foot-h { letter-spacing: var(--track-label); }
/* Everything set in capitals takes the Display cut, on every page */
:is(.kicker, .rail, .rail span, .tag, .lvl, .foot-h, .brand-name, .foot-brand b, .spec-name, .spec-set, .spec-cap, .figures b, .stat b) { font-family: var(--oi-display); }
.oi-page .rail span { letter-spacing: 0; }
.oi-page .state { font-size: clamp(21px, 2vw, 26px); line-height: 1.35; max-width: 40ch; }
.oi-page .hero .lede { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.oi-page :is(.intro, .note, .caveats, .ticks, .step p, .plainlist p, .closed dd, .groups dd, .rules li, .figures, .odds, .starter .sub) { font-size: 18px; line-height: 1.58; }
.oi-page .rules b, .oi-page .gt, .oi-page .pl { font-size: 19px; }
.oi-page .btn { font-size: 18px; font-weight: 700; }
.site-foot { font-size: 16px; }
.site-foot .foot-note { font-size: 14.5px; }
@media (max-width: 760px) {
  .oi-page { font-size: 18px; }
  .oi-page :is(.intro, .note, .caveats, .ticks, .step p, .plainlist p, .closed dd, .groups dd, .rules li, .figures, .odds, .starter .sub) { font-size: 17px; }
}

/* ---------------------------------------------------------------- Resources */
.spec { display: flex; flex-direction: column; gap: 18px; padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 28px; color: var(--ink); }
.spec-name { font-weight: 700; text-transform: uppercase; font-size: clamp(56px, 11vw, 148px); line-height: 0.98; letter-spacing: var(--track-caps); }
.spec-head { font-size: clamp(28px, 4.2vw, 52px); line-height: 1.1; }
.spec-set { font-size: clamp(26px, 4vw, 48px); line-height: 1.15; letter-spacing: var(--track-caps); overflow-wrap: anywhere; }
.spec-fig { font-weight: 700; }
.spec-text { font-size: 20px; line-height: 1.55; max-width: 34em; }
.spec-cap { font-size: 14px; color: var(--muted); letter-spacing: var(--track-label); text-transform: uppercase; }
.res-body { display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.res-body h3 { margin-top: 14px; }
.dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.dl li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl a { font-weight: 600; overflow-wrap: anywhere; }
.dl span { color: var(--muted); font-size: 15px; }
.dl.later li { flex-direction: column; gap: 2px; }
pre.code { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.logo-show { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 24px; }
.logo-tile { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 28px; display: grid; place-items: center; color: var(--ink); }
.logo-tile .mark-big { width: 120px; height: 120px; }
.logo-tile.wide { flex: 1 1 320px; }
.logo-tile .wordmark-big { width: min(100%, 380px); height: auto; stroke-width: 11; }

/* Footer column headings stay small labels on every page (the landing page's large caps h2 rule must not reach them) */
.site-foot h2.foot-h, .oi-page .site-foot h2.foot-h { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: var(--track-label); margin: 0 0 6px; }

/* ---------------------------------------------------------------- Broad landing sections and short overviews */
.broad .content { gap: 22px; }
.say { display: flex; flex-direction: column; gap: 14px; max-width: 36em; }
.say h2 { margin-bottom: 4px; }
.found { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 40em; border-top: 1px solid var(--line); }
.found li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.found b { font-weight: 700; }
.more-link a { font-weight: 600; text-underline-offset: 3px; }
.more-link a::after { content: " \2192"; }
.overview { gap: 12px; max-width: 40em; }
.overview p { color: var(--ink); }
.oi-page .say p, .oi-page .found li { text-wrap: pretty; }
@media (max-width: 480px) {
  .rung { padding: 6px 4px; }
  .rung b { font-size: 12px; letter-spacing: 0; }
}
.nw { white-space: nowrap; }
.dirs .st { display: block; width: fit-content; margin-top: 2px; font-size: 15px; }
.dirs span.st { color: var(--muted); }

/* ---------------------------------------------------------------- Newsletter (footer) */
.foot-row { grid-template-rows: auto 1fr auto; grid-template-areas: "brand cols" "news cols" "note note"; }
.foot-brand { grid-area: brand; }
.foot-news { grid-area: news; max-width: 34rem; }
.foot-cols { grid-area: cols; align-self: start; }
.foot-note { grid-area: note; }
.nl-what { margin: 0 0 14px; color: var(--ink); }
.nl-label { display: block; font-size: 14.5px; margin-bottom: 6px; }
.nl-row { display: flex; gap: 8px; }
.nl-input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; }
.nl-input::placeholder { color: var(--faint); opacity: 1; }
.nl-input[aria-invalid="true"] { border-color: var(--warn); }
.site-foot .nl-btn { flex: none; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.nl-btn:disabled { opacity: 0.6; cursor: progress; }
.nl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-status { margin: 8px 0 0; min-height: 1.5em; font-size: 14.5px; color: var(--ink); }
.nl[data-state="error"] .nl-status { color: var(--warn); }
.nl[data-state="success"] .nl-status { font-weight: 600; }
.site-foot .nl-privacy { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .foot-row { grid-template-rows: none; grid-template-areas: "brand" "news" "cols" "note"; }
  .foot-news { max-width: none; }
}
@media (max-width: 380px) { .nl-row { flex-wrap: wrap; } .nl-btn { width: 100%; justify-content: center; } }
