/* Tickerbook. Sand and ink, rules only, wide-margin editorial canvas.
   Every colour goes through the tokens below; three theme states (auto, light, dark). */

@font-face { font-family: "Shoulders"; src: url("../fonts/display.woff2") format("woff2"); font-weight: 500 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url("../fonts/displaylt.woff2") format("woff2"); font-weight: 1 499; font-style: normal; font-display: swap; }
@font-face { font-family: "Work"; src: url("../fonts/body.woff2") format("woff2"); font-weight: 1 499; font-style: normal; font-display: swap; }
@font-face { font-family: "Work"; src: url("../fonts/body700.woff2") format("woff2"); font-weight: 500 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/mono.woff2") format("woff2"); font-weight: 1 499; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/mono700.woff2") format("woff2"); font-weight: 500 1000; font-style: normal; font-display: swap; }

:root {
  --ground: #DCD7C6;
  --ground-2: #D2CCB9;
  --ink: #1C1D17;
  --ink-2: #47473B;
  --hair: rgba(28, 29, 23, .2);
  --hair-strong: rgba(28, 29, 23, .62);
  --olive: #505A16;
  --on-olive: #E9E5D6;
  --up: #1B6646;
  --down: #9A3522;
  --window-ink: #000;
  --window-blend: lighten;
  --plot-fill: rgba(80, 90, 22, .16);

  --f-display: "Shoulders", "Arial Narrow", sans-serif;
  --f-body: "Work", system-ui, sans-serif;
  --f-mono: "Plex", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --out: cubic-bezier(.16, 1, .3, 1);
  --out-quart: cubic-bezier(.25, 1, .5, 1);
  --gap-band: clamp(4.5rem, 9vw, 8rem);
  --gap-head: clamp(1.25rem, 2.4vw, 2rem);
  --cols: [full-start] minmax(1.25rem, 1fr) [side-start] minmax(0, 8.5rem) [side-end main-start] minmax(0, 44rem) [main-end] minmax(0, 13rem) [wide-end] minmax(1.25rem, 1fr) [full-end];
  --col-gap: clamp(1rem, 2.4vw, 2.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #15160F; --ground-2: #1D1E16; --ink: #E4DFCD; --ink-2: #ACA893;
    --hair: rgba(228, 223, 205, .16); --hair-strong: rgba(228, 223, 205, .55);
    --olive: #B6C05A; --on-olive: #15160F; --up: #5BC08F; --down: #EE7A5E;
    --window-ink: #fff; --window-blend: darken; --plot-fill: rgba(182, 192, 90, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #15160F; --ground-2: #1D1E16; --ink: #E4DFCD; --ink-2: #ACA893;
  --hair: rgba(228, 223, 205, .16); --hair-strong: rgba(228, 223, 205, .55);
  --olive: #B6C05A; --on-olive: #15160F; --up: #5BC08F; --down: #EE7A5E;
  --window-ink: #fff; --window-blend: darken; --plot-fill: rgba(182, 192, 90, .14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--f-body);
  font-synthesis-weight: none; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: .98; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.75rem); text-transform: uppercase; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; text-transform: uppercase; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
::selection { background: var(--olive); color: var(--on-olive); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--ink); color: var(--ground); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- top line: inline header, no fixed chrome ---------- */
.topline {
  display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap);
  padding-block: 1.1rem; align-items: center;
}
.topline > .brandmark { grid-column: side-start / side-end; }
.topline > .topnav { grid-column: main-start / main-end; }
.topline > .themeswitch { grid-column: main-end / wide-end; justify-self: end; }
.brandmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; white-space: nowrap; }
.brandmark-glyph { font: 700 .78rem/1 var(--f-mono); background: var(--ink); color: var(--ground); padding: .38rem .34rem; letter-spacing: .04em; }
.brandmark-name { font: 800 1.45rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); white-space: nowrap; }
.topnav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: .3rem; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--out); }
.topnav a:hover, .topnav a[aria-current="page"] { background-size: 100% 2px; }
.themeswitch {
  font: 500 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); background: transparent; border: 1px solid var(--hair-strong);
  padding: .55rem .8rem; cursor: pointer; transition: background-color .2s var(--out), color .2s var(--out);
}
.themeswitch:hover { background: var(--ink); color: var(--ground); }

/* ---------- canvas ---------- */
.frame { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); }
.frame > * { grid-column: main; }
.frame > .wide, .band > .wide, .pagehead > .wide { grid-column: side-start / wide-end; }

.band, .pagehead {
  grid-column: full; display: grid; grid-template-columns: subgrid;
  padding-bottom: var(--gap-band);
}
.band > *, .pagehead > * { grid-column: main; }
.band::before {
  content: ""; grid-column: side-start / wide-end; grid-row: 1;
  height: 1px; background: var(--hair-strong); margin-bottom: var(--gap-head);
}
.band > .sidenote { grid-column: side; grid-row: 2; align-self: start; padding-top: .35rem; }
.band > h2 { grid-row: 2; margin-bottom: 1.4rem; }
.band-tight { padding-bottom: clamp(3rem, 6vw, 5rem); }
.band-tight::before { display: none; }
.band-tight > .sidenote { grid-row: 1; }
.sidenote { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.band-foot { margin-top: 2rem; }
.note { font-size: .92rem; color: var(--ink-2); max-width: 65ch; margin-top: 1.5rem; }
.textlink { text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-color .2s; }
.textlink:hover { text-decoration-color: var(--olive); text-decoration-thickness: 2px; }

/* ---------- hook: type as window ---------- */
.hook { grid-column: full; display: grid; grid-template-columns: subgrid; padding-bottom: clamp(2rem, 4vw, 3rem); }
.window { grid-column: full; position: relative; isolation: isolate; overflow: hidden; }
.window-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.window-word {
  position: relative; z-index: 1; margin: 0;
  background: var(--ground); color: var(--window-ink); mix-blend-mode: var(--window-blend);
  font: 900 min(25.5vw, 27rem)/.8 var(--f-display); text-transform: uppercase; text-align: center;
  letter-spacing: -.012em; padding: .035em 0 .005em; white-space: nowrap; user-select: none;
}
.hook-copy { grid-column: side-start / main-end; margin-top: clamp(1.4rem, 3vw, 2.4rem); display: grid; grid-template-columns: subgrid; }
.hook-copy > * { grid-column: main; }
.hook-copy h1 { grid-column: side-start / main-end; max-width: 24ch; }
.hook-sub { font-size: 1.22rem; color: var(--ink-2); margin: 1.1rem 0 1.6rem; max-width: 46ch; }
.hook-acts, .closing-acts { display: flex; flex-wrap: wrap; gap: .75rem; }

.act {
  display: inline-flex; align-items: center; gap: .8rem; white-space: nowrap;
  font: 600 1rem/1 var(--f-body); text-decoration: none;
  padding: 1rem 1.25rem; border: 1px solid var(--ink);
  transition: transform .2s var(--out), background-color .25s var(--out), color .25s var(--out);
}
.act::after { content: "\2192"; font-family: var(--f-mono); transition: transform .4s var(--out); }
.act:hover::after { transform: translateX(5px); }
.act:active { transform: translateY(1px) scale(.985); }
.act-main { background: var(--ink); color: var(--ground); }
.act-main:hover { background: var(--olive); border-color: var(--olive); color: var(--on-olive); }
.act-quiet { color: var(--ink); }
.act-quiet:hover { background: var(--ground-2); }

/* ---------- tape (the one marquee) ---------- */
.tape { grid-column: full; border-block: 1px solid var(--hair-strong); overflow: hidden; height: 2.9rem; display: none; margin-bottom: var(--gap-band); }
.js .tape.is-ready { display: block; }
.tape-track { display: flex; width: max-content; height: 100%; align-items: center; will-change: transform; }
.tape-item { display: inline-flex; gap: .6rem; align-items: baseline; padding-inline: 1.6rem; border-right: 1px solid var(--hair); font: 400 .9rem/1 var(--f-mono); white-space: nowrap; }
.tape-item b { font-weight: 700; }

/* ---------- tabs with the morphing ink (signature) ---------- */
.rangeset { position: relative; display: inline-flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; border-bottom: 1px solid var(--hair-strong); }
.rangeset::-webkit-scrollbar { display: none; }
.rangeset-wide { margin-bottom: 2.2rem; }
.range-btn {
  appearance: none; background: none; border: 0; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  font: 500 .86rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em;
  padding: .85rem .95rem; position: relative; z-index: 1; transition: color .3s var(--out);
}
.range-btn[aria-selected="true"] { color: var(--ink); }
.range-btn:hover { color: var(--ink); }
.rangeset-ink {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 1px; background: var(--olive);
  transform-origin: 0 50%; transform: translateX(var(--ink-x, 0)) scaleX(var(--ink-w, 0));
  transition: transform .55s var(--out);
}
.rangeset-ink::before { content: ""; position: absolute; inset: auto 0 3px 0; height: 2.6rem; background: var(--olive); opacity: .1; }

/* ---------- directory rails ---------- */
.rails { columns: 2 24rem; column-gap: clamp(2rem, 4vw, 4rem); }
.rail { break-inside: avoid; margin-bottom: 2.6rem; transition: opacity .35s var(--out), transform .45s var(--out); }
.rail[hidden] { display: none; }
.rail-h { font-size: 1.15rem; letter-spacing: .04em; padding-bottom: .55rem; border-bottom: 2px solid var(--ink); }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 7.6rem 4.8rem 5.5rem; gap: .9rem; align-items: center;
  padding: .82rem 0; border-bottom: 1px solid var(--hair);
}
.rail-link { display: flex; gap: .9rem; align-items: baseline; text-decoration: none; min-width: 0; }
.rail-sym { font-weight: 700; font-size: .82rem; min-width: 3.4rem; color: var(--olive); }
.rail-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rail-row:hover .rail-name { font-weight: 700; }
.rail-price { justify-self: end; font-size: .95rem; }
.rail-chg { justify-self: end; font-size: .86rem; }
.rail-spark { width: 100%; height: 26px; }
.rail-spark path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }

.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- split-flap figures ---------- */
.flap { font-family: var(--f-mono); font-variant-numeric: tabular-nums; display: inline-flex; white-space: nowrap; transition: color .6s var(--out); }
.flap .ch { display: inline-block; perspective: 300px; }
.flap .ch-in { display: inline-block; transform-origin: 50% 0; }
.flap .ch-in.turn { animation: flap .42s var(--out) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes flap { 0% { transform: rotateX(-88deg); opacity: .2; } 100% { transform: rotateX(0); opacity: 1; } }
.flap.tick-up { color: var(--up); }
.flap.tick-down { color: var(--down); }
.flap-xl { font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.03em; line-height: 1; }

/* ---------- accordion list ---------- */
.folds { border-top: 2px solid var(--ink); }
.fold { border-bottom: 1px solid var(--hair-strong); }
.fold summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1.4rem; gap: 1.2rem; align-items: center;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.12rem;
}
.fold summary::-webkit-details-marker { display: none; }
.fold-mark { position: relative; width: 1.1rem; height: 1.1rem; }
.fold-mark::before, .fold-mark::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: var(--ink); transition: transform .45s var(--out); }
.fold-mark::after { transform: rotate(90deg); }
.fold[open] .fold-mark::after { transform: rotate(0deg); }
.fold summary:hover .fold-q { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.fold-a { padding: 0 2.6rem 1.4rem 0; color: var(--ink-2); max-width: 64ch; }
.fold[open] .fold-a { animation: foldin .55s var(--out); }
@keyframes foldin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- horizontal accordion slices ---------- */
.slices { display: grid; gap: 2.5rem; margin-top: .5rem; }
.slice { background: var(--ground); }
.slice-tab { display: none; }
.slice-film { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #15160F; }
.slice-copy { padding-top: 1.1rem; max-width: 40ch; }
.slice-copy h3 { margin-bottom: .6rem; }
.slice-copy p { color: var(--ink-2); margin: 0; }

@media (min-width: 900px) {
  .js .slices { position: relative; display: block; height: clamp(30rem, 40vw, 34rem); overflow: hidden; overflow: clip; border-block: 2px solid var(--ink); }
  .js .slice {
    position: absolute; top: 0; left: 0; height: 100%; width: var(--slice-w, 60%);
    display: grid; grid-template-columns: 4.25rem 1fr;
    border-left: 1px solid var(--hair-strong);
    transform: translateX(var(--slice-x, 0));
  }
  .js .slices.is-ready .slice { transition: transform .8s var(--out); }
  .js .slice:first-child { border-left: 0; }
  .js .slice-tab {
    display: flex; align-items: flex-start; justify-content: center; padding: 1.3rem 0;
    background: var(--ground); border: 0; border-right: 1px solid var(--hair); color: var(--ink); cursor: pointer;
    font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em;
  }
  .js .slice-tab-label { writing-mode: vertical-rl; transform: rotate(180deg); }
  .js .slice-tab:hover, .js .slice.is-open .slice-tab { background: var(--ink); color: var(--ground); }
  .js .slice-body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem 1.4rem 1.4rem; min-width: 0; }
  .js .slice-film { position: absolute; top: 1.2rem; left: 1.4rem; width: calc(100% - 2.8rem); height: calc(100% - 12.6rem); aspect-ratio: auto; }
  .js .slice-copy { max-width: 58ch; }
  .js .slice-copy { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--out), transform .6s var(--out); }
  .js .slice.is-open .slice-copy { opacity: 1; transform: none; transition-delay: .25s; }
}

/* ---------- live panel ---------- */
.livehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.4rem; }
.livehead-label { margin: 0 0 .5rem; font-weight: 600; color: var(--ink-2); }
.livehead-price { margin: 0; }
.livehead-chg { margin: 0; font-size: 1.25rem; padding-bottom: .4rem; }

.plotbox { margin: 0; }
.plotbox-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .6rem 1.5rem; margin-bottom: 1rem; }
.plotbox-read { margin: 0; font-size: .86rem; color: var(--ink-2); }
.plotbox-area { position: relative; height: clamp(15rem, 34vw, 23rem); border-bottom: 1px solid var(--hair-strong); touch-action: pan-y; }
.plotbox-svg { width: 100%; height: 100%; overflow: visible; clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--out); }
.plotbox-svg.is-wiping { clip-path: inset(0 100% 0 0); transition: none; }
.plotbox-svg .p-area { fill: var(--plot-fill); opacity: 0; transition: opacity .9s var(--out) .2s; }
.plotbox-svg .p-line { fill: none; stroke: var(--olive); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plotbox-svg .p-grid { stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plotbox-svg.is-drawn .p-area { opacity: 1; }
.plotbox-cross { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--hair-strong); opacity: 0; pointer-events: none; transition: opacity .2s; }
.plotbox-area.is-hover .plotbox-cross { opacity: 1; }
.plotbox-dot { position: absolute; left: -5px; width: 11px; height: 11px; background: var(--olive); border: 2px solid var(--ground); border-radius: 50%; }
.plotbox-tip { position: absolute; top: .4rem; left: .7rem; white-space: nowrap; font-size: .8rem; background: var(--ink); color: var(--ground); padding: .4rem .55rem; }
.plotbox-cross.flip .plotbox-tip { left: auto; right: .7rem; }
.plotbox-state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-2); font-size: .95rem; text-align: center; padding: 1rem; }
.plotbox-state[hidden] { display: none; }
.plotbox-cap { margin-top: .7rem; font-size: .85rem; color: var(--ink-2); }
.plotbox-area.is-loading::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--olive), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: sweep 1.3s var(--out-quart) infinite; }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.tallies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2.2rem 0 0; }
.tallies-dense { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 1.6rem; margin-top: .4rem; }
.tally { padding: .2rem 1.1rem .2rem 1.1rem; border-left: 1px solid var(--hair-strong); }
.tally dt { font-size: .85rem; color: var(--ink-2); margin-bottom: .45rem; }
.tally dd { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; }
.stamp { margin-top: 1.2rem; font-size: .8rem; color: var(--ink-2); }
.stamp.is-stale { color: var(--down); }

/* ---------- closing split panel ---------- */
.closing {
  grid-column: side-start / wide-end; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem clamp(2rem, 5vw, 5rem);
  border-block: 3px solid var(--ink); padding-block: clamp(2.6rem, 5vw, 4rem); margin-bottom: var(--gap-band); align-items: center;
}
.closing-arg p { color: var(--ink-2); font-size: 1.15rem; max-width: 42ch; margin: 1rem 0 0; }
.closing-acts { flex-direction: column; align-items: stretch; }
.closing-acts .act { justify-content: space-between; }

/* ---------- inner pages ---------- */
.pagehead { padding-bottom: clamp(2.4rem, 5vw, 3.6rem); padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.pagehead > .crumbs { grid-row: 1; margin-bottom: 2.2rem; }
.pagehead > .sidenote { grid-column: side; grid-row: 2; padding-top: .5rem; }
.pagehead > h1 { grid-row: 2; grid-column: main-start / wide-end; }
.pagehead > .lede { margin-top: 1.3rem; }
.crumbs { font: 400 .82rem/1.4 var(--f-mono); color: var(--ink-2); }
.crumbs a { text-underline-offset: .2em; }

.cover { margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.cover img { width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; background: #15160F; }

.prose { max-width: 66ch; padding-bottom: var(--gap-band); }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 2.6rem 0 1rem; }
.prose > h2:first-child, .prose > .note:first-child + h2 { margin-top: 0; }
.prose p { max-width: 66ch; }
.band > p, .band > .factlist { max-width: 66ch; }
.band > h3 { margin: 2rem 0 1rem; }
.chapter { padding-top: 1rem; }
.chapter + .chapter { margin-top: 1.4rem; border-top: 1px solid var(--hair); padding-top: 2rem; }
.chapter h2 { margin-top: 0; }
.filmfig { margin: 1.8rem 0 .5rem; }
.filmfig video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #15160F; }
.filmfig figcaption { font-size: .85rem; color: var(--ink-2); margin-top: .6rem; }

.factlist { margin: 0 0 1.5rem; border-top: 2px solid var(--ink); }
.factlist > div { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--hair); }
.factlist dt { font-weight: 600; }
.factlist dd { margin: 0; color: var(--ink-2); }

.toc { margin-bottom: 3rem; border-left: 3px solid var(--olive); padding-left: 1.2rem; }
.toc-h { font: 500 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: .9rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2 15rem; column-gap: 2rem; }
.toc li { margin-bottom: .35rem; }

.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); }
.gloss-group { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1rem 0 1.2rem; border-top: 1px solid var(--hair-strong); break-inside: avoid; }
.gloss-letter { font: 800 2.4rem/.9 var(--f-display); color: var(--olive); margin: 0; }
.gloss-list { margin: 0; }
.gloss-list > div + div { margin-top: .9rem; }
.gloss-list dt { font-weight: 700; }
.gloss-list dd { margin: .15rem 0 0; color: var(--ink-2); font-size: .97rem; }

.rel-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rel-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--hair); }
.rel-list a { text-decoration: none; }
.rel-list a:hover { text-decoration: underline; text-underline-offset: .2em; }
.rel-list .mono { color: var(--olive); font-weight: 700; margin-right: .5rem; font-size: .85rem; }

.bigmail { font: 800 clamp(1.8rem, 5vw, 3rem)/1.1 var(--f-display); margin: 0 0 1.2rem; word-break: break-word; }
.bigmail a { text-decoration-thickness: 2px; text-underline-offset: .15em; }
.plainlist { padding-left: 1.2rem; }
.plainlist li { margin-bottom: .5rem; }

/* ---------- market board ---------- */
.boardtools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.4rem; }
.field { display: grid; gap: .4rem; min-width: min(100%, 20rem); }
.field label { font-weight: 600; font-size: .95rem; }
.field input {
  font: 400 1rem/1.2 var(--f-body); color: var(--ink); background: var(--ground-2);
  border: 0; border-bottom: 2px solid var(--ink); padding: .8rem .9rem; border-radius: 0; width: 100%;
}
.field input:focus { outline: none; border-bottom-color: var(--olive); background: var(--ground); box-shadow: 0 0 0 2px var(--olive); }
.field-help { margin: 0; font-size: .82rem; color: var(--ink-2); }
.boardtools .stamp { margin: 0 0 .3rem; }
.tablewrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.board { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .95rem; }
.board th, .board td { padding: .78rem .7rem; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
.board thead th { padding: 0; border-bottom: 1px solid var(--hair-strong); font-weight: 500; }
.board thead button { all: unset; cursor: pointer; display: block; padding: .85rem .7rem; font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.board thead button:hover, .board thead [aria-sort="ascending"] button, .board thead [aria-sort="descending"] button { color: var(--ink); }
.board thead [aria-sort="ascending"] button::after { content: " \2191"; }
.board thead [aria-sort="descending"] button::after { content: " \2193"; }
.board thead button:focus-visible { outline: 2px solid var(--olive); }
.board .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.board thead .num button { text-align: right; }
.board .spark-h { padding: .85rem .7rem; font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.board tbody th { font-weight: 600; }
.board tbody th a { text-decoration: none; }
.board tbody th a:hover { text-decoration: underline; text-underline-offset: .2em; }
.board tbody th span.plain { font-weight: 500; }
.board-sym { color: var(--olive); font-size: .8rem; margin-right: .5rem; font-weight: 700; }
.board tbody tr { transition: background-color .25s; }
.board tbody tr:hover { background: var(--ground-2); }
.spark-cell svg { width: 110px; height: 30px; }
.spark-cell path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.board-empty { padding: 2rem 0; color: var(--ink-2); }
.board-skel td { color: transparent; }
.board-skel td::before { content: ""; display: block; height: .7rem; background: var(--ground-2); animation: pulse 1.4s ease-out infinite alternate; }
@keyframes pulse { from { opacity: .5; } to { opacity: 1; } }

/* ---------- basement footer ---------- */
.basement {
  display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap);
  border-top: 3px solid var(--ink); padding-block: 3.2rem 2.4rem; font-size: .95rem;
}
.basement > * { grid-column: side-start / wide-end; }
.basement-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.basement-brand { font: 800 1.8rem/1 var(--f-display); text-transform: uppercase; margin-bottom: 1rem; }
.basement-about p:not(.basement-brand) { color: var(--ink-2); max-width: 36ch; }
.basement-h { font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 1rem; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { margin-bottom: .5rem; }
.basement a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.basement nav a { text-decoration: none; }
.basement nav a:hover { text-decoration: underline; }
.basement-legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--hair); font-size: .85rem; color: var(--ink-2); max-width: 100ch; }
.basement-copy { font: 400 .8rem/1.4 var(--f-mono); color: var(--ink-2); margin: 0; }

/* ---------- motion: hidden only behind .js, with a failsafe ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--out), transform 1.1s var(--out); }
.js [data-reveal].is-in, .js-failsafe [data-reveal] { opacity: 1; transform: none; }
.js [data-split]:not(.is-split) { visibility: hidden; }
.js-failsafe [data-split] { visibility: visible !important; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
[data-split] .w > i { display: inline-block; font-style: normal; transform: translateY(110%); transition: transform 1s var(--out); transition-delay: calc(var(--i, 0) * 42ms); }
[data-split].is-in .w > i { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tallies-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --cols: [full-start] minmax(1rem, 1fr) [side-start] 0 [side-end main-start] minmax(0, 44rem) [main-end] 0 [wide-end] minmax(1rem, 1fr) [full-end]; --col-gap: 0px; }
  .topline { row-gap: .9rem; }
  .topline > .brandmark { grid-column: main; grid-row: 1; }
  .topline > .themeswitch { grid-column: main; grid-row: 1; }
  .topline > .topnav { grid-column: main; grid-row: 2; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
  .band > .sidenote, .pagehead > .sidenote { grid-column: main; grid-row: auto; padding: 0 0 .6rem; }
  .band > h2 { grid-row: auto; }
  .pagehead > h1 { grid-column: main; grid-row: auto; }
  .hook-copy h1 { grid-column: main; }
  .closing { grid-template-columns: 1fr; }
  .basement-cols { grid-template-columns: 1fr 1fr; }
  .basement-about { grid-column: 1 / -1; }
  .gloss { grid-template-columns: 1fr; }
  .tallies, .tallies-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .tally:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .rail-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .rail-spark { display: none; }
  .factlist > div { grid-template-columns: 1fr; gap: .2rem; }
  .act { width: 100%; justify-content: space-between; }
  .hook-sub { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-split] .w > i { transform: none; transition: none; }
  .js [data-split]:not(.is-split) { visibility: visible; }
  .flap .ch-in.turn, .fold[open] .fold-a, .plotbox-area.is-loading::after, .board-skel td::before { animation: none; }
  .rangeset-ink, .js .slice, .js .slice-copy, .act, .act::after, .topnav a, .plotbox-svg .p-area { transition: none; }
}
@media print {
  .topline, .tape, .themeswitch, .window { display: none; }
}

/* without JavaScript, hide controls that would do nothing */
html:not(.js) .themeswitch, html:not(.js) .rangeset { display: none; }
