/* ===========================================================================
   PANOPTICON. One printed OBSERVATION SHEET, two inks on black.

   The grammar comes off his MASTERMINDS poster:
     - a wide square monoline display for the masthead, title case
     - every block is a CELL: a 2 px cyan hairline frame with ONE cut corner,
       a title strip carrying a segmented tick bar and a two line mono label
     - the ground is black with a fine star field, never a gradient
     - two inks: cyan and white. No third colour, no bevel, no shadow, no panel

   The SCALE is his order of 2026-10-19: one type ladder, 14 / 16 / 20 / 24 /
   32 / 48, nothing in mono under 14 px, one spacing ladder, 4 / 8 / 12 / 16 /
   24 / 32 / 48, and ONE display element a screen. Caps keep one tracking token
   so a word reads as a word. The poster's composition, type classes, density,
   treatment and palette are kept; its absolute sizes are not.
   =========================================================================== */

@font-face { font-family: "Michroma"; src: url("/fonts/Michroma.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "RX100"; src: url("/fonts/RX100-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Excon"; src: url("/fonts/Excon-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Excon"; src: url("/fonts/Excon-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Excon"; src: url("/fonts/Excon-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #050507;
  --ink: #16b4c6;
  --ink-hi: #8ff4ff;
  --ink-dim: #35c2d4;   /* secondary TEXT, 9:1 on the ground. lines use ink-deep */
  --ink-mute: #2f93a1;  /* separators, chevrons and disabled keys: still 5.5:1 */
  --ink-deep: #0a4f5c;
  --ink-ghost: #06303a;
  --paper: #e6eef0;
  --paper-dim: #8ba1a6;

  --display: "Michroma", "Arial Black", sans-serif;
  --mono: "RX100", ui-monospace, "Cascadia Mono", monospace;
  --body: "Excon", system-ui, sans-serif;

  --sheet: 1392px;
  --rail: 232px;
  --gutter: 16px;
  --pad: 24px;
  --cut: 16px;
  --rule: 2px;
  --row: 44px;

  /* the ladder: 4 8 12 16 24 32 48 for space, 14 16 20 24 32 48 for type */
  --t-body: 16px;
  --t-label: 14px;
  --t-read: 16px;
  --t-title: 20px;
  --t-figure: 24px;
  --t-display: clamp(32px, 3.4vw, 48px);
  --track: 0.08em;        /* every capital label, one value */

  --fast: 0.08s;
  --quick: 0.12s;
  --hover: 0.18s;

  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the even scan the sheet is printed through: 1 row on 4, regular, drifting slowly */
body::after {
  content: "";
  position: fixed;
  inset: -4px 0 0;
  pointer-events: none;
  z-index: 40;
  background: repeating-linear-gradient(to bottom, rgba(22, 180, 198, 0.045) 0 1px, transparent 1px 4px);
  animation: scan 7s linear infinite;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(4px); } }

/* the star field, dimmed and behind the sheet: a speck must never land next to a letter */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("/img/grain.png") repeat;
  background-size: 512px 512px;
  opacity: 0.45;
}

::selection { background: var(--ink); color: #04161a; }
a { color: var(--ink); }
a:focus-visible { outline: var(--rule) solid var(--ink-hi); outline-offset: 3px; }

.sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--sheet);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* --------------------------------------------------------------- masthead */

.masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 32px;
}

.masthead__word {
  font-family: var(--display);
  color: var(--ink);
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 0 26px rgba(22, 180, 198, 0.26);
}

.masthead__rule {
  grid-column: 1 / -1;
  height: var(--rule);
  background: var(--ink);
  margin: 16px 0 0;
}

/* the ident sits on the masthead's own baseline: its tick bar is centred out of the way */
.ident {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}
.ident__sep { color: var(--ink-mute); }
.ident b { color: var(--paper); font-weight: 400; }
.ident .ticks { height: 12px; align-self: center; }
.ident .ticks i { width: 3px; }

/* ------------------------------------------------------------ lamp column */
/* His 5 x 8 dot matrix, turned into the station list. */

.band {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
  padding-top: 20px;
}

.lamps { display: block; }
.lamps__keys { display: grid; gap: 4px; }

/* every key is the same 44 px box with the same 16 px matrix: the open one is filled, the
   others carry the hairline, so the column reads as one ladder and not as one button */
.lamp {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: var(--row);
  padding: 0 16px;
  text-decoration: none;
  color: var(--ink-dim);
  background: rgba(22, 180, 198, 0.04);
  box-shadow: inset 0 0 0 1px var(--ink-ghost);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: color var(--hover), background var(--hover), box-shadow var(--hover);
}
.lamp__dots {
  width: 16px; height: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.lamp__dots i { background: var(--ink-deep); transition: background var(--hover); }
.lamp:hover { color: var(--ink-hi); background: rgba(22, 180, 198, 0.1); box-shadow: inset 0 0 0 1px var(--ink-deep); }
.lamp:hover .lamp__dots i { background: var(--ink); }
.lamp:active { transform: translateY(1px); transition: transform var(--fast); }
.lamp:focus-visible { outline: var(--rule) solid var(--ink-hi); outline-offset: -2px; }
.lamp[aria-current="page"] { background: var(--ink); color: #03161a; box-shadow: none; }
.lamp[aria-current="page"] .lamp__dots i { background: #03161a; }

/* the three standing facts: the figure carries the weight, its words sit under it */
.lamps__note {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: var(--t-label);
  line-height: 1.35;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lamps__note span { display: block; }
.lamps__note b {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink-hi);
  font-weight: 400;
}

/* the rail carries real state under the stations, the way his left column carries the subject */
.rail {
  margin-top: 24px;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  color: var(--ink-dim);
}
.rail h3 { padding: 0; margin-bottom: 12px; }
.rail__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 24px;
  text-decoration: none;
  color: var(--ink-dim);
}
a.rail__row:hover { color: var(--ink); }
a.rail__row:focus-visible { outline: var(--rule) solid var(--ink-hi); outline-offset: 2px; }
.rail__n { color: var(--paper); }
.rail__hits { display: flex; gap: 4px; justify-self: end; }
.rail__hits i { width: 8px; height: 8px; box-shadow: inset 0 0 0 1px var(--ink-deep); }
.rail__hits i.right { background: var(--ink); box-shadow: none; }
.rail__hits i.wrong { background: var(--ink-deep); box-shadow: none; }

/* an empty state is a state: it gets the same box a row would get, not a dimmed sentence */
.rail__empty {
  margin: 0;
  padding: 16px;
  max-width: none;
  background: rgba(22, 180, 198, 0.04);
  box-shadow: inset 0 0 0 1px var(--ink-ghost);
  color: var(--ink-dim);
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-transform: none;
}
.rail__empty b { display: block; color: var(--ink-hi); font-weight: 400; letter-spacing: var(--track); text-transform: uppercase; margin-bottom: 8px; }

/* ------------------------------------------------------------------ cells */
/* A cell is the one surface of this sheet: a hairline frame with one cut
   corner, drawn as an ink polygon with the ground laid back on top of it. */

.cell {
  position: relative;
  --cut-size: var(--cut);
  padding: var(--rule);
  clip-path: polygon(var(--cut-size) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-size));
}
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-deep);
  clip-path: polygon(var(--cut-size) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-size));
  z-index: 0;
}
.cell--lit::before { background: var(--ink); }
.cell__in {
  position: relative;
  z-index: 1;
  background: var(--ground);
  clip-path: polygon(calc(var(--cut-size) - 2px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--cut-size) - 2px));
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* the field inside a cell is dimmer still: nothing may read as punctuation beside a value */
.cell__in::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("/img/grain.png") repeat;
  background-size: 512px 512px;
  opacity: 0.22;
}
.cell__in > * { position: relative; z-index: 1; }

/* the title strip: a segmented tick bar and a two line label, his own */
.strip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px var(--pad);
  min-height: 64px;
}
.strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--rule);
  background: var(--ink-ghost);
}
.ticks { display: flex; gap: 3px; height: 16px; align-items: stretch; }
.ticks i { width: 4px; background: var(--ink-ghost); transition: background var(--quick); }
.ticks i.on { background: var(--ink); }

.strip__label {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-hi);
  line-height: 1.45;
}
.strip__label span { display: block; color: var(--paper-dim); letter-spacing: var(--track); }

.cell__body { padding: var(--pad); flex: 1 1 auto; container-type: inline-size; }
.cell__body > :first-child { margin-top: 0; }
.cell__body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ the cameras */

.cameras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: var(--gutter);
}
.camera__stage {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.camera__lens {
  display: block;
  width: 100%;
  max-width: 184px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(22, 180, 198, 0.26));
  animation: breathe 11s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.88; } 50% { opacity: 1; } }

/* one spacing system for the pairs: 4 px from a label to its value, 24 px between pairs */
.readout { display: grid; gap: 24px; min-width: 0; }
.cell__body > .camera__lens { margin: 0 0 16px; max-width: 220px; }
.readout__row { display: grid; gap: 4px; min-width: 0; }
.readout__k {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}
.readout__v {
  font-family: var(--display);
  font-size: var(--t-figure);
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.readout__v--small { font-size: 20px; }
.readout__v--paper { color: var(--paper); }
/* a value that is not there yet is grey, so the cyan always means a real reading */
.readout__v--none {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--paper-dim);
  line-height: 1.45;
}
.readout__sub {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* the pill bars of his bottom block, carrying the accuracy. The track is always visible and
   always full width, and with nothing scored yet it keeps a dead notch in the line colour, so
   an empty bar reads as empty and never as a very small number. A box shadow, not a border:
   a border would make this row the box the padding gate measures text against. */
.bars { display: grid; gap: 8px; padding-top: 8px; }
.bar {
  position: relative;
  height: 10px;
  background: rgba(22, 180, 198, 0.12);
  box-shadow: inset 0 0 0 1px var(--ink-deep);
  border-radius: 5px;
  overflow: hidden;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  width: 0;
  min-width: 4px;
  transition: width 0.4s ease;
}
.bar--empty i { background: var(--ink-mute); }

/* the tape: the last 48 rounds as his dot matrix. 48 slots, three states and no fourth:
   an empty slot is an outline, a right call is solid ink, a wrong call is solid deep. */
.tape { display: grid; grid-template-columns: repeat(48, 1fr); gap: 3px; padding-top: 8px; }
.tape i { aspect-ratio: 1; background: transparent; box-shadow: inset 0 0 0 1px var(--ink-deep); }
.tape i.right { background: var(--ink); box-shadow: none; }
.tape i.wrong { background: var(--ink-deep); box-shadow: none; }
.tape i.pending { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-deep); }

/* -------------------------------------------------------------- the clock */

.clock { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: start; }
.dial { position: relative; width: 168px; height: 168px; }
.dial canvas { width: 100%; height: 100%; display: block; }
.dial__read { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 30px; pointer-events: none; }
.dial__num { font-family: var(--display); font-size: var(--t-figure); line-height: 1; color: var(--ink); }
.dial__num.readout__v--none { font-size: var(--t-label); }
.dial__unit {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 6px;
  max-width: 100%;
  line-height: 1.35;
}

/* --------------------------------------------------------------- the text */

.lede {
  font-size: var(--t-read);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 680px;
}
.lede b { color: var(--ink); font-weight: 500; }

/* the two probes, as a pair rather than as colour in the middle of a paragraph: the emphasis
   belongs to the two cameras below, so it is given their shape */
.pair { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; max-width: 680px; }
.pair li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.pair__k {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-hi);
}
.pair__v { color: var(--paper); }
p { margin: 0 0 12px; max-width: 72ch; }
p:last-child { margin-bottom: 0; }

h2 {
  font-family: var(--display);
  font-size: var(--t-title);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
}
h3 {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 12px;
  font-weight: 400;
}

.rows { display: grid; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.8fr);
  gap: 16px;
  padding: 12px 0;
  min-height: var(--row);
  align-content: center;
}
.row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink-ghost); }
.row:last-child::after { display: none; }
.row dt {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
}
.row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.chev { color: var(--ink-mute); font-family: var(--mono); letter-spacing: -0.14em; margin-right: 8px; }

/* -------------------------------------------------------------- the stack */

.stack { display: grid; gap: var(--gutter); margin-top: var(--gutter); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--gutter); }
.split--wide { grid-template-columns: 1.6fr 1fr; }
.split--narrow { grid-template-columns: 1fr 1.6fr; }

/* --------------------------------------------------------------- the plot */

.plot { width: 100%; display: block; }
.plot__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 12px 0 0;
  margin: 0 0 10px;
  max-width: none;
}
.plot__legend i { display: inline-block; width: 20px; height: 3px; margin-right: 8px; vertical-align: middle; }

/* ------------------------------------------------------------ the carrier */

.carrier { margin-top: 34px; }
.carrier__word {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 14px;
}
.mint {
  display: block;
  width: 100%;
  background: rgba(8, 22, 26, 0.6);
  box-shadow: inset 0 0 0 var(--rule) var(--ink-ghost);
  padding: 14px 18px;
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-read);
  letter-spacing: 0.01em;
  color: var(--paper);
  word-break: break-all;
  overflow-wrap: anywhere;
  min-width: 0;
  user-select: all;
  max-width: none;
}
pre.mint { white-space: pre-wrap; line-height: 1.6; font-size: var(--t-label); }
.mint--empty { color: var(--paper-dim); letter-spacing: var(--track); text-transform: uppercase; user-select: none; }

.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.key {
  --cut-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--row);
  padding: 0 18px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  clip-path: polygon(var(--cut-size) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-size));
  box-shadow: inset 0 0 0 var(--rule) var(--ink-deep);
  text-align: center;
  transition: background var(--hover), box-shadow var(--hover), color var(--hover);
}
.key:hover { box-shadow: inset 0 0 0 var(--rule) var(--ink); background: rgba(22, 180, 198, 0.08); }
.key:active { transform: translateY(1px); transition: transform var(--fast); }
.key:focus-visible { outline: var(--rule) solid var(--ink-hi); outline-offset: 2px; }
/* a disabled key is told apart by its frame, not by text nobody can read */
.key[aria-disabled="true"], .key:disabled {
  color: var(--ink-mute);
  box-shadow: inset 0 0 0 var(--rule) var(--ink-ghost);
  cursor: not-allowed;
  pointer-events: none;
}
.key img { width: 15px; height: 15px; display: block; flex: 0 0 auto; }
.key--wide { grid-column: 1 / -1; }
.keys--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.key--go { color: #03161a; background: var(--ink); box-shadow: none; }
.key--go:hover { background: var(--ink-hi); box-shadow: none; }
.key--go:disabled, .key--go[aria-disabled="true"] { background: var(--ink-ghost); color: var(--ink-dim); box-shadow: none; }

.say {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
  min-height: 18px;
  padding-top: 12px;
  margin: 0;
  max-width: none;
}
.say--ok { color: var(--ink); }
.say--bad { color: var(--paper); }

/* --------------------------------------------------------------- controls */

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.pick { display: grid; grid-template-columns: auto 120px auto; gap: 10px; align-items: center; justify-content: start; margin-top: 12px; }
.pick .key { padding: 0 26px; }
.pick label {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
}
input[type="number"], input[type="text"] {
  height: var(--row);
  background: rgba(8, 22, 26, 0.6);
  box-shadow: inset 0 0 0 var(--rule) var(--ink-ghost);
  border: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--t-read);
  padding: 0 14px;
  width: 100%;
  min-width: 0;
}
input[type="number"]:focus-visible, input[type="text"]:focus-visible { outline: var(--rule) solid var(--ink-hi); outline-offset: 2px; }
.field > label {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
}
.slider { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 16px; align-items: center; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--ink-ghost); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 26px;
  margin-top: -10px;
  background: var(--ink);
  border: 0;
}
input[type="range"]::-moz-range-track { height: 6px; background: var(--ink-ghost); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 26px; background: var(--ink); border: 0; border-radius: 0; }
input[type="range"]:focus-visible { outline: var(--rule) solid var(--ink-hi); outline-offset: 4px; }
.slider__v { font-family: var(--display); font-size: 20px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- tables */

.board { width: 100%; border-collapse: collapse; }
.board th, .board td {
  position: relative;
  text-align: left;
  padding: 12px 14px;
  height: var(--row);
  font-variant-numeric: tabular-nums;
}
.board th::after, .board td::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink-ghost); }
.board th {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 400;
}
.board th::after { height: var(--rule); background: var(--ink-deep); }
.board td { font-family: var(--mono); font-size: var(--t-label); color: var(--paper); }
.board td.empty { text-align: left; padding-left: 0; }
.board td:first-child, .board th:first-child { padding-left: 0; }
.board td:last-child, .board th:last-child { padding-right: 0; text-align: right; }
.board tr.me td { color: var(--ink); }
.board tr:last-child td::after { display: none; }

.empty {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 24px 0;
  margin: 0;
  max-width: none;
}

/* --------------------------------------------------------------- answers */

.talk { display: grid; }
.talk__item { position: relative; padding: 11px 0; }
.talk__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink-ghost); }
.talk__item:last-child::after { display: none; }
.talk__q { display: grid; grid-template-columns: 30px minmax(0, 1fr) 56px; gap: 12px; align-items: baseline; }
.talk__n { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-ghost); }
.talk__p { font-family: var(--mono); font-size: var(--t-read); color: var(--ink); text-align: right; }
.talk__p--paper { color: var(--paper); }

/* a cell narrower than its rows can carry stacks them: a 130 px label column plus a value
   column inside 150 px prints one letter per line */
/* a camera cell narrower than its own stage puts the lens over the readout, so a label like
   RIGHT, LAST 7 DAYS never has to wrap inside a 160 px column */
@container (max-width: 440px) {
  .row { grid-template-columns: 1fr; gap: 4px; }
  .clock { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .talk__q { grid-template-columns: 28px minmax(0, 1fr); }
  .talk__p { grid-column: 1 / -1; text-align: left; }
}

/* ------------------------------------------------------------- responsive */
/* Every override lives at the END of the file, after the base rules. */

@media (max-width: 1240px) {
  :root { --rail: 200px; --gutter: 16px; }
  .split--wide, .split--narrow { grid-template-columns: 1fr 1fr; }
  .camera__stage { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .camera__lens { max-width: 150px; }
}

@media (max-width: 1000px) {
  .band { grid-template-columns: 1fr; }
  .lamps__keys { grid-template-columns: repeat(3, 1fr); }
  .lamps__note { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding-left: 0; }
  .rail { padding-left: 0; margin-top: 16px; }
  .rail__row { max-width: 320px; }
  .cameras, .split, .split--wide, .split--narrow { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; --gutter: 12px; --cut: 12px; }
  .sheet { padding: 24px 16px 48px; }
  .masthead { grid-template-columns: 1fr; }
  .ident { justify-content: flex-start; }
  .lamps__keys { grid-template-columns: 1fr 1fr; }
  .lamps__note { grid-template-columns: 1fr 1fr; }
  /* four rounds is enough of a tail on a phone: the stations and the lede come first */
  .rail__row:nth-of-type(n+5) { display: none; }
  .camera__stage { grid-template-columns: 1fr; gap: 14px; }
  .camera__lens { max-width: 200px; margin: 0 auto; }
  .clock { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .keys { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .talk__q { grid-template-columns: 28px minmax(0, 1fr); }
  .talk__p { grid-column: 1 / -1; text-align: left; }
  .tape { grid-template-columns: repeat(24, 1fr); }
  /* a six column table cannot be a table at 320: every row becomes its own block, each cell
     carrying the heading it belongs under */
  .board thead { display: none; }
  .board tr { display: block; position: relative; padding: 10px 0; }
  .board tr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink-ghost); }
  .board tr:last-child::after { display: none; }
  .board td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 4px 0;
    height: auto;
  }
  .board td::after { display: none; }
  .board td::before {
    content: attr(data-label);
    color: var(--ink-dim);
    letter-spacing: var(--track);
    text-transform: uppercase;
  }
  .board td:last-child, .board td:first-child { text-align: right; padding-left: 0; padding-right: 0; }
  .board td.empty { display: block; text-align: left; }
  .board td.empty::before { content: none; }
  .pick { grid-template-columns: 1fr; }
  .pick label { letter-spacing: var(--track); }
}

@media (max-width: 380px) {
  .lamps__keys { grid-template-columns: 1fr; }
  .lamps__note { grid-template-columns: 1fr; }
  .tape { grid-template-columns: repeat(16, 1fr); }
}

/* A camera cell narrower than its own stage puts the lens over the readout, so a label like
   RIGHT, LAST 7 DAYS never has to wrap inside a 160 px column. It lives after the media queries
   on purpose: source order decides between two rules of the same weight. */
@container (max-width: 430px) {
  .cell__body .camera__stage { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
  .cell__body .camera__lens { max-width: 180px; }
  .cell__body .pair li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* 48 slots in a 320 px cell is a dotted line: two rows of 24 stay countable */
  .cell__body .tape { grid-template-columns: repeat(24, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .camera__lens { animation: none; }
  body::after { animation: none; }
  * { transition: none !important; }
}
