/* From Monday. One world: a rhythm machine's step row, where the sixteen
   keys are the next sixteen Mondays. Charcoal panel, keys quartered red,
   orange, yellow and white, LEDs as the only glow, silkscreen caps for labels. */

@font-face { font-family: "Goldman"; src: url("/assets/fonts/Goldman-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Goldman"; src: url("/assets/fonts/Goldman-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DSEG14"; src: url("/assets/fonts/DSEG14Classic-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }

:root {
  --panel: #1b1b1d;
  --panel-hi: #252528;
  --panel-lo: #111112;
  --rule: #3b3b40;
  --silk: #e6e3dc;
  --silk-dim: #aaa79f;
  --red: #ff3b30;
  --red-deep: #d92a1f;
  --orange: #ff9a00;
  --yellow: #ffd60a;
  --key-white: #f2f0ea;
  --key-off: #2d2d31;
  --ink: #151515;

  --display: "Goldman", "Eurostile", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --silkscreen: "Barlow Condensed", "Arial Narrow", sans-serif;
  --segment: "DSEG14", ui-monospace, monospace;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 88rem;
  --who: 13.5rem;
  --act: 6.75rem;
  --gap: clamp(2px, 0.45vw, 6px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--panel);
  color: var(--silk);
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #55555b var(--panel-lo);
  caret-color: var(--red);
  accent-color: var(--red);
}

body {
  margin: 0;
  min-height: 100vh;
  /* The matte of moulded plastic: a fixed grain under everything. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.field :focus-visible { outline-color: var(--ink); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.5vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.15; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--yellow); color: var(--ink); font-weight: 600; }
.skip:focus { top: 0.5rem; }

/* Silkscreen: the small printed caps that label every control. */
.silk {
  display: block;
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silk-dim);
}

/* ---- LEDs: the only thing on the panel that glows ---------------------- */

.led {
  --led: var(--red);
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--led) 22%, #0a0a0a);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.6);
  transition: background-color 0.12s, box-shadow 0.12s;
}
.led.on, input:checked + .led {
  background: radial-gradient(circle at 40% 35%, #fff 0 12%, var(--led) 45%);
  box-shadow: 0 0 0.5rem 0.1rem color-mix(in srgb, var(--led) 70%, transparent);
}
.q-orange .led, .q-yellow .led { --led: #ffb300; }
.q-white .led { --led: #f4f1e9; }

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 2.75rem;
  padding: 0.55em 1.25em;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.08s, background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(2px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.btn-line { background: transparent; border-color: var(--silk-dim); color: var(--silk); }
.btn-line:hover { background: var(--silk); border-color: var(--silk); color: var(--ink); }

.btn-run {
  background: var(--red-deep);
  color: #fff;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 -4px 0 rgb(0 0 0 / 0.2), 0 3px 6px rgb(0 0 0 / 0.5);
}
.btn-run:hover { background: #e8342a; }
.btn-run .led { --led: #fff; background: rgb(0 0 0 / 0.35); }
.btn-run:hover .led, .btn-run.running .led { background: #fff; box-shadow: 0 0 0.5rem 0.1rem rgb(255 255 255 / 0.7); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ink-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ink-line:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 2.25rem; padding: 0.3em 0.85em; font-size: 0.875rem; }
.btn-big { min-height: 3.5rem; padding-inline: 2em; font-size: 1.15rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Top ------------------------------------------------------------------ */

.top {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-keys { flex: none; }
.top-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); margin-inline-start: auto; }
.top-nav a {
  padding-block: 0.6rem;
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--silk-dim);
  border-bottom: 2px solid transparent;
}
.top-nav a:hover { color: var(--silk); }
.top-nav a[aria-current] { color: var(--red); border-bottom-color: var(--red); }

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 10fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(3rem, 6vw, 5.5rem);
}
.hero-say { position: sticky; top: 1.5rem; padding-top: clamp(0.5rem, 2vw, 2rem); }
.hero-say h1 + p { margin-top: 1.5rem; }
.hero-say p { max-width: 34rem; font-size: 1.1875rem; }
.hero-say .hero-small {
  margin-top: 1.25rem;
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silk-dim);
}
.crumbs {
  margin-bottom: 1rem;
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.875rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silk-dim);
}
.hero-role h1 { font-size: clamp(1.9rem, 3.2vw, 3.1rem); }

/* ---- The machine ---------------------------------------------------------- */

.machine {
  position: relative;
  padding: clamp(1rem, 2vw, 1.75rem);
  background: var(--panel-hi);
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 1.5rem 3rem -1.25rem rgb(0 0 0 / 0.8);
}

.machine-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.875rem 1rem;
  align-items: end;
}
.brief label { margin-bottom: 0.4rem; }
.brief textarea {
  display: block;
  width: 100%;
  min-height: 4.4rem;
  padding: 0.7rem 0.9rem;
  resize: vertical;
  background: var(--panel-lo);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.7);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--silk);
}
.brief textarea::placeholder { color: #9a978f; }
.brief textarea:focus-visible { outline-offset: 1px; }
.machine-top .btn-run { min-height: 4.4rem; padding-inline: 1.6em; }

.banks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.bank { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.bank legend { float: left; margin-inline-end: 0.6rem; line-height: 2.25rem; }
.bank-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0 0.7rem;
  background: var(--panel);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silk-dim);
  cursor: pointer;
}
.bank-btn input { position: absolute; opacity: 0; pointer-events: none; }
.bank-btn:hover { color: var(--silk); }
.bank-btn:has(input:checked) { color: var(--silk); border-color: var(--silk-dim); }
.bank-btn:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }

.readouts {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.875rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.readout .silk { margin-bottom: 0.4rem; }

.seg {
  display: inline-block;
  padding: 0.4rem 0.6rem 0.35rem;
  background: #150a09;
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 2px 6px #000;
  font-family: var(--segment);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1;
  color: var(--red);
  white-space: nowrap;
}
.seg [data-ghost] { position: relative; display: inline-block; text-shadow: 0 0 0.5rem rgb(255 59 48 / 0.55); }
.seg [data-ghost]::before { content: attr(data-ghost); position: absolute; inset: 0 auto auto 0; opacity: 0.12; text-shadow: none; }

.switch {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-inline-start: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.switch-track {
  display: block;
  width: 3rem;
  height: 1.6rem;
  padding: 3px;
  background: var(--panel-lo);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.7);
}
.switch-track span {
  display: block;
  width: 50%;
  height: 100%;
  background: #6a6a70;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
  transition: transform 0.18s var(--ease), background-color 0.18s;
}
.switch[aria-pressed="true"] .switch-track span { transform: translateX(100%); background: var(--red); }

.read-as { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 1rem; }
.read-as .silk { margin-inline-end: 0.35rem; }
.tag {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The row and the lanes share three columns, so a lane's cells sit exactly
   under the keys they belong to. */
.grid { margin-top: 1.5rem; }
.steprow, .lane {
  display: grid;
  grid-template-columns: var(--who) minmax(0, 1fr) var(--act);
  column-gap: 1rem;
}
.steprow { align-items: end; }
.steprow-name { padding-bottom: 0.35rem; }
.steps { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: var(--gap); }
.step { display: grid; justify-items: center; gap: 0.3rem; min-width: 0; }
.step-num {
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #8e8b84;
}
.step-date { display: grid; justify-items: center; line-height: 1; font-family: var(--silkscreen); font-weight: 600; color: var(--silk); }
.step-date b { font-weight: 600; font-size: clamp(0.72rem, 1.1vw, 0.95rem); font-variant-numeric: tabular-nums; }
.step-date span { margin-top: 0.2rem; font-size: 0.625rem; letter-spacing: 0.1em; color: var(--silk-dim); visibility: hidden; white-space: nowrap; }
.step-date.new-month span { visibility: visible; }

.key {
  --key: var(--red);
  position: relative;
  display: block;
  width: 100%;
  height: clamp(3rem, 5.4vw, 4.75rem);
  padding: 0;
  background: var(--key);
  border: 0;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), inset 0 -0.4rem 0 rgb(0 0 0 / 0.16), 0 3px 5px rgb(0 0 0 / 0.55);
  cursor: pointer;
  transition: transform 0.08s, filter 0.12s, box-shadow 0.08s;
}
.key::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  width: 46%;
  max-width: 1rem;
  height: 0.28rem;
  translate: -50% 0;
  background: rgb(0 0 0 / 0.72);
  border-radius: 1px;
}
.q-orange .key { --key: var(--orange); }
.q-yellow .key { --key: var(--yellow); }
.q-white .key { --key: var(--key-white); }
.key:hover { filter: brightness(1.1); }
.key:active, .key[aria-pressed="true"] {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -0.15rem 0 rgb(0 0 0 / 0.2), 0 0 0 rgb(0 0 0 / 0);
}
.key[aria-pressed="true"]::before { background: #fff; box-shadow: 0 0 0.4rem #fff; }
/* Keys past the chosen "must start by" week go dark. */
.step.past .key { filter: brightness(0.32) saturate(0.6); }
.step.chase .led { background: #fff; box-shadow: 0 0 0.6rem 0.15rem rgb(255 255 255 / 0.8); }

.lanes { margin-top: 0.875rem; border-top: 1px solid var(--rule); }
.lane {
  align-items: center;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.2s;
}
.lane.late { opacity: 0.32; }
.lane-who { display: grid; gap: 0.1rem; min-width: 0; }
.lane-who strong { font-weight: 600; font-size: 1.0625rem; line-height: 1.2; }
.lane-title { font-size: 0.9375rem; line-height: 1.25; color: var(--silk); }
.lane-meta { font-size: 0.8125rem; color: var(--silk-dim); }
.lane-track { display: grid; gap: 0.4rem; min-width: 0; }
.cells { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: var(--gap); }
.cells i {
  --key: var(--red);
  height: 1.35rem;
  background: var(--key-off);
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.5);
  transition: background-color 0.14s, box-shadow 0.14s;
}
.cells i.q-orange { --key: var(--orange); }
.cells i.q-yellow { --key: var(--yellow); }
.cells i.q-white { --key: var(--key-white); }
.cells i.on { background: var(--key); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 -0.18rem 0 rgb(0 0 0 / 0.16); }
.cells i.start { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 -0.18rem 0 rgb(0 0 0 / 0.16), 0 0 0.6rem color-mix(in srgb, var(--key) 65%, transparent); }
/* No published date: the lane is outlined, not lit. */
.lane.undated .cells i { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--key) 70%, var(--key-off)); }
/* While the chase runs, a lane waits dark for the light to reach its step. */
.machine.running .cells i { background: var(--key-off); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.5); }
.machine.running .cells i.lit { background: var(--key); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4); }
.lane-when {
  font-family: var(--silkscreen);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silk-dim);
}
.lane > .btn, .lane-private { justify-self: end; }
.lane-private { font-size: 0.75rem; text-align: end; }

.tray {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--panel-lo);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6);
}
.tray p { max-width: 46rem; }
.tray-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; }
.tray-left { display: flex; align-items: center; gap: 0.6rem; }
.tray-left .credit-leds i { background: #3a1512; }
.tray-left .credit-leds i.on { background: var(--red); box-shadow: 0 0 0.5rem rgb(255 59 48 / 0.7); }
.tray form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tray input {
  flex: 1 1 14rem;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.machine-foot { display: grid; gap: 0.75rem; margin-top: 1.1rem; }
.status { max-width: 52rem; font-size: 0.9375rem; color: var(--silk-dim); }
.status strong { color: var(--silk); font-weight: 600; }
.status a { color: var(--silk); }
.status-alert { padding: 0.8rem 1rem; background: var(--panel-lo); border: 1px solid var(--red-deep); border-radius: 3px; color: var(--silk); }
.status-key { display: flex; align-items: center; gap: 0.6rem; }
.cell-demo { flex: none; width: 1.35rem; height: 1rem; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--red); }
.question { display: grid; gap: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }
.question p { font-weight: 500; }
.question-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---- Panel sections ------------------------------------------------------- */

.legend, .panel-in { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.legend { padding-block: 0 clamp(3.5rem, 7vw, 6rem); }
.legend dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  border-block: 1px solid var(--rule);
}
.legend dl > div { padding: 1.75rem clamp(1rem, 2.5vw, 2.25rem); border-inline-start: 1px solid var(--rule); }
.legend dl > div:first-child { padding-inline-start: 0; border: 0; }
.legend dt { display: grid; gap: 1rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; text-transform: uppercase; }
.legend dd { margin-top: 0.6rem; max-width: 26rem; color: var(--silk-dim); }

.demo { display: flex; gap: 4px; height: 2.25rem; align-items: stretch; }
.demo i { width: 1.4rem; border-radius: 2px; background: var(--key-off); }
.demo-keys i:nth-child(1) { background: var(--red); }
.demo-keys i:nth-child(2) { background: var(--orange); }
.demo-keys i:nth-child(3) { background: var(--yellow); }
.demo-keys i:nth-child(4) { background: var(--key-white); }
.demo-lane i { height: 1.35rem; align-self: center; }
.demo-lane i.on:nth-child(3) { background: var(--yellow); box-shadow: 0 0 0.6rem rgb(255 214 10 / 0.6); }
.demo-lane i.on:nth-child(4) { background: var(--key-white); }
.demo-title { align-items: center; gap: 0.5rem; font-family: var(--silkscreen); font-size: 0.875rem; letter-spacing: 0.12em; }
.demo-title s { color: #8e8b84; }
.demo-title b { padding: 0.15rem 0.5rem; background: var(--key-white); border-radius: 2px; font-weight: 600; color: var(--ink); }

.panel-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.panel-raised { background: var(--panel-lo); border-block: 1px solid #000; }
.page-head { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.lede { margin-top: 1rem; max-width: 44rem; font-size: 1.125rem; color: var(--silk-dim); }
.lede a { color: var(--silk); }
.panel-in > .lede + * { margin-top: 2rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split > div > h2 + p { margin-top: 1.1rem; }
.split p + p { margin-top: 1rem; }

.role-bank { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.role-bank a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.3rem 1rem;
  background: var(--panel-hi);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 2px 4px rgb(0 0 0 / 0.4);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.role-bank a:hover { background: var(--key-white); color: var(--ink); }
.role-bank-big a { min-height: 3.25rem; font-size: 1.0625rem; }

pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  background: #0b0b0c;
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6);
  font-family: var(--code);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--silk);
  tab-size: 2;
}
code { font-family: var(--code); font-size: 0.92em; }
.code-stack { display: grid; gap: 0.6rem; min-width: 0; }
.code-stack pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-stack pre + .silk { margin-top: 0.9rem; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3a1512;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.faq details[open] summary::before { background: var(--red); box-shadow: 0 0 0.5rem 0.1rem rgb(255 59 48 / 0.7); }
.faq details p { max-width: 44rem; padding: 0 0 1.4rem 1.45rem; color: var(--silk-dim); }

/* ---- Colour fields: each key colour owns one region of the page ----------- */

.field { padding-block: clamp(4rem, 8vw, 7rem); color: var(--ink); }
.field-in { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.field-yellow { background: var(--yellow); --soft: #4b3e00; }
.field-orange { background: var(--orange); --soft: #4a2800; }
.field-white { background: var(--key-white); --soft: #56534c; }
.field ::selection { background: var(--ink); color: #fff; }
.field p { max-width: 38rem; font-size: 1.0625rem; }
.field .silk { color: var(--soft); }
.field-action { justify-self: end; align-self: center; }
.field-orange .split { align-items: center; }

.credits { display: grid; gap: 1rem; margin-top: 2rem; }
.credits li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: start; max-width: 38rem; }
.credit-leds { display: inline-flex; gap: 0.35rem; padding-top: 0.45rem; }
.credit-leds i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.credit-leds i.on { background: var(--ink); }

.waitlist, .suggest {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--panel);
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 1.25rem 2.5rem -1.25rem rgb(0 0 0 / 0.6);
  color: var(--silk);
}
.waitlist ::selection, .suggest ::selection { background: var(--yellow); color: var(--ink); }
.waitlist :focus-visible, .suggest :focus-visible { outline-color: var(--yellow); }
.waitlist p, .suggest p { margin-top: 0.6rem; color: var(--silk-dim); font-size: 1rem; }
.waitlist .silk, .suggest .silk { margin: 1.25rem 0 0.4rem; color: var(--silk-dim); }
.waitlist-row { display: flex; gap: 0.6rem; }
.waitlist .btn-ink, .suggest .btn-ink { background: var(--red-deep); }
.waitlist .btn-ink:hover, .suggest .btn-ink:hover { background: #e8342a; }
.suggest .btn { margin-top: 1rem; }

input:not([type="radio"]), .sheet textarea, .suggest textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  background: var(--panel-lo);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.7);
  color: var(--silk);
  color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: #9a978f; }
.form-note { min-height: 1.5rem; font-size: 0.9375rem !important; }
.form-note.ok { color: var(--silk) !important; font-weight: 500; }
.field-error { min-height: 0; margin-top: 0.3rem !important; font-size: 0.875rem !important; color: #ff8a82 !important; }
.field-error:empty { display: none; }

.field-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: end; }
.field-head h1 { font-size: clamp(3rem, 8vw, 6rem); white-space: nowrap; }
.field-head p { padding-bottom: 0.6rem; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2.5rem 0 2rem; border-top: 2px solid var(--ink); }
.post-list li { padding: 1.5rem clamp(1rem, 2.5vw, 2.5rem) 1.75rem 0; border-bottom: 1px solid rgb(0 0 0 / 0.25); }
.post-list li:nth-child(even) { padding-inline: clamp(1rem, 2.5vw, 2.5rem) 0; border-inline-start: 1px solid rgb(0 0 0 / 0.25); }
.post-list h2, .post-list h3, .post-list h4 { margin: 0.6rem 0; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.08; }
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.post-list p:not(.silk) { color: var(--soft); }
.post-list-tight { grid-template-columns: 1fr; margin-top: 1rem; border-top-width: 1px; }
.post-list-tight li, .post-list-tight li:nth-child(even) { padding: 1rem 0; border-inline-start: 0; }
.post-list-tight h4 { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; }
.feed-line { font-family: var(--silkscreen); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.nominate-line, .share-take {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgb(0 0 0 / 0.08);
  border-radius: 3px;
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 38rem;
}

/* ---- Candidate sheet and docs ----------------------------------------------- */

.facts { display: grid; gap: 1.1rem; margin-top: 2rem; max-width: 34rem; }
.facts > div { padding-top: 1rem; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--silkscreen); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silk-dim); }
.facts dd { margin-top: 0.25rem; }

.sheet { display: grid; gap: 1.1rem; }
.sheet h2 + p, .sheet p + p { margin-top: 0; }
.sheet-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-cell label { margin-bottom: 0.4rem; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 0.5rem; }
.sheet-foot .form-note { flex: 1 1 16rem; color: var(--silk-dim); }
.sheet-hello { color: var(--silk-dim); }
.sheet-hello strong { color: var(--silk); }
.pledge { display: grid; gap: 0.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.pledge li { display: flex; gap: 0.7rem; align-items: baseline; font-weight: 500; }
.pledge li::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; translate: 0 -0.1rem; border-radius: 50%; background: var(--key-white); box-shadow: 0 0 0.5rem rgb(244 241 233 / 0.6); }

.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.prose h3 { margin-top: 2rem; }
.prose ul:not(.dodont), .prose ol { display: grid; gap: 0.5rem; padding-inline-start: 1.25rem; }
.prose ul:not(.dodont) { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--red-deep); }
.prose-panel { max-width: 52rem; }
.prose-panel p, .prose-panel li { color: #cfccc5; }
.prose-panel code { padding: 0.1em 0.35em; background: var(--panel-lo); border-radius: 2px; color: var(--silk); }
.prose-panel pre code { padding: 0; background: none; }
.prose-panel a { color: var(--silk); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th { text-align: start; font-family: var(--silkscreen); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silk-dim); }
th, td { padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { white-space: nowrap; }

/* ---- Article ---------------------------------------------------------------- */

.article-in { max-width: 46rem; margin-inline: auto; padding-inline: var(--gutter); }
.article .crumbs, .article-meta { color: var(--soft); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.article-meta { margin-top: 1.25rem; font-family: var(--silkscreen); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9375rem !important; }
.article .prose { margin-top: 2.75rem; font-size: 1.1875rem; line-height: 1.62; }
.article .prose p, .article .prose li { max-width: none; font-size: inherit; }
.article .prose strong { font-weight: 600; }
.article .prose blockquote { padding: 0.25rem 0 0.25rem 1.25rem; border-inline-start: 1px solid var(--ink); font-size: 1.3rem; font-weight: 500; line-height: 1.4; }
.article .prose code { padding: 0.1em 0.35em; background: rgb(0 0 0 / 0.08); border-radius: 2px; }
.article .prose pre { color: var(--silk); }
.article .prose pre code { padding: 0; background: none; }

/* Do on a lit key, Don't on a dark one. */
.dodont { display: grid; gap: 4px; margin-block: 1.75rem; }
.dodont li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); border-radius: 3px; overflow: hidden; }
.dodont li > span { padding: 0.85rem 1rem; font-size: 1.0625rem; line-height: 1.4; }
.dodont-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.dodont .do { background: #fff; }
.dodont .do .dodont-label { background: var(--yellow); }
.dodont .dont { background: var(--panel); color: var(--silk); }
.dodont .dont .dodont-label { background: var(--ink); color: var(--red); }
.dodont .dont ::selection, .dodont .dont::selection { background: var(--yellow); color: var(--ink); }

.share-card { margin-top: 3.5rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.share-card h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.share-inline { margin-top: 1.5rem; }
.share-keys { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* One key per network, in the page's own ink; the network's colour shows on hover. */
.share-key {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.22);
  border-radius: 3px;
  box-shadow: inset 0 -0.2rem 0 rgb(0 0 0 / 0.08), 0 2px 3px rgb(0 0 0 / 0.12);
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.08s;
}
.share-key svg { width: 1.2rem; height: 1.2rem; }
.share-key:hover { color: var(--brand); border-color: var(--brand); }
.share-key:active { transform: translateY(2px); }
.share-status { min-height: 1.4rem; margin-top: 0.5rem; font-size: 0.9375rem !important; font-weight: 500; }
.share-status:empty { display: none; }
.share-note { margin-top: 1rem; font-size: 0.9375rem !important; color: var(--soft); }

/* ---- Foot ------------------------------------------------------------------- */

.foot { background: var(--panel-lo); border-top: 1px solid #000; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
}
.foot-mark { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; }
.foot-note { margin-top: 0.75rem; max-width: 30rem; font-size: 0.9375rem; color: var(--silk-dim); }
.foot nav { display: grid; gap: 0.55rem; align-content: start; font-size: 0.9375rem; }
.foot nav .silk { margin-bottom: 0.35rem; }
.foot nav a { text-decoration: none; color: var(--silk); }
.foot nav a:hover { text-decoration: underline; }

/* ---- Narrower ------------------------------------------------------------- */

@media (max-width: 68rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-say { position: static; }
  .hero-say p { max-width: 42rem; }
  .top-app { display: none; }
}

@media (max-width: 52rem) {
  :root { --who: 0px; --act: 0px; }
  .top { flex-wrap: wrap; row-gap: 0.25rem; }
  .top-nav { order: 3; flex-basis: 100%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .top-nav a { padding-block: 0.75rem; }

  .machine-top { grid-template-columns: minmax(0, 1fr); }
  .machine-top .btn-run { min-height: 3.25rem; }
  .brief textarea { min-height: 6rem; }
  .switch { margin-inline-start: 0; }

  .steprow, .lane { grid-template-columns: minmax(0, 1fr); }
  .steprow-name span { display: none; }
  .step-num { font-size: 0.625rem; }
  .step-date.new-month span { position: relative; z-index: 1; }
  .lane { grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 0.75rem; }
  .lane-track { grid-column: 1 / -1; grid-row: 2; }
  .key { height: 3rem; }
  .key::before { height: 0.2rem; }

  .legend dl, .split, .faq, .field-head, .post-list, .sheet-row { grid-template-columns: minmax(0, 1fr); }
  .legend dl > div, .legend dl > div:first-child { padding: 1.5rem 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .legend dl > div:first-child { border-top: 0; }
  .post-list li, .post-list li:nth-child(even) { padding-inline: 0; border-inline-start: 0; }
  .field-action { justify-self: start; }
  .field-head h1 { white-space: normal; }
  .waitlist-row { flex-direction: column; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > div { grid-column: 1 / -1; }
  td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
