/* ACCELERATIONISM. One CRT screen running one program: the ladder.
   Everything here is measured off art/ref/heavens-gate.jpg (NOTE.md > Reference teardown):
   black ground over half the frame, a quarter of it solid spectrum ink, two type classes, and
   every block a 2 px white hairline rectangle with its legend printed ON the rule. */

@font-face {
  font-family: "Galmuri";
  src: url("/assets/fonts/galmuri-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mono";
  src: url("/assets/fonts/mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mono";
  src: url("/assets/fonts/mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Text";
  src: url("/assets/fonts/text.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the ZX bright set, picked off his jpeg */
  --black: #000000;
  --paper: #f4f4f4;
  --body: #c3c7cf;
  --muted: #8b8f99;
  --slot: #848484;
  --slot-ink: #0a0a0a;

  --cyan: #00f0f0;
  --yellow: #f8f818;
  --green: #18f838;
  --magenta: #e818e8;
  --red: #ff3a5e;
  --blue: #4d86ff;
  --orange: #ff8a18;

  /* one page column and one gutter: every block measures itself against this, never against vw */
  --page: min(1480px, 100vw - 48px);
  --gap: 24px;
  --rule: 2px;

  /* one type scale, nothing off it */
  --t-label: 16px;
  --t-row: 17px;
  --t-legend: 17px;
  --t-value: 20px;
  --t-head: 22px;
  --t-big: 33px;
  --t-display: 110px;

  --pad-body: 32px;
  --pad-tight: 14px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--body);
  font-family: "Mono", ui-monospace, monospace;
  font-size: var(--t-row);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- the world behind the screen */

.field,
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.field {
  background: url("/assets/img/field.webp") center / 120% auto no-repeat;
  filter: blur(72px) saturate(1.3);
  opacity: 0.3;
  animation: drift 96s linear infinite;
}

@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1.1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.22); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.1); }
}

/* even and regular, one row of ink on four: a CRT, not a noise effect */
.scan {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0 1px, transparent 1px 4px);
  z-index: 60;
}

/* ---------------------------------------------------------------- the page */

.page {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: 46px 0 64px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* the slab the screen is printed on. The bleed is a shadow, not a size: a box that is wider
   than the page would widen the scrollable area at a phone width. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  box-shadow: 0 0 0 22px var(--black);
  z-index: -1;
}

a { color: inherit; }

.skip {
  position: fixed;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--black);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 80;
}
.skip:focus { left: 0; }

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

/* ---------------------------------------------------------------- the frame, his one surface */

.frame {
  position: relative;
  border: var(--rule) solid var(--paper);
  background: transparent;
  padding: calc(var(--pad-body) - 2px) var(--pad-body) var(--pad-body);
  min-width: 0;
}

/* the legend sits ON the rule, the rule broken either side of the word */
.tag {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  background: var(--black);
  padding: 8px 18px;
  font-size: var(--t-legend);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag--c { left: 50%; transform: translate(-50%, -50%); }
.tag--l { left: 10px; }
.tag--r { right: 10px; }
.tag--b { top: auto; bottom: 0; transform: translateY(50%); }
.tag--b.tag--c { left: 50%; transform: translate(-50%, 50%); }
.tag em { font-style: normal; color: var(--cyan); }

/* the small clip marks that ride his frame edges */
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 22px;
  background: var(--paper);
  top: 50%;
  margin-top: -11px;
}
.frame::before { left: -5px; }
.frame::after { right: -5px; }
.frame--noclip::before,
.frame--noclip::after { display: none; }

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

.top {
  display: grid;
  grid-template-columns: 20.6% 1fr;
  gap: var(--gap);
  align-items: stretch;
}

.mark {
  display: block;
  border: var(--rule) solid var(--paper);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

/* the air around the display word lives ON the word, so its own box carries it at every size */
.wordmark {
  margin: 0;
  padding: 22px 36px;
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-display);
  max-width: 100%;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-font-smoothing: none;
  /* the ink of this face fills 26.9% to 77.6% of its own box (tools/_accink.mjs), so the ramp is
     compressed to exactly that band: anything outside it would be painted on nothing */
  background-image: linear-gradient(180deg,
    var(--magenta) 26.9%, var(--blue) 37%, var(--cyan) 50%, var(--green) 64%, var(--yellow) 77.6%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ramp 19s ease-in-out infinite;
}

/* a ZX loading screen never sat still: the ramp drifts a few degrees and comes back */
@keyframes ramp {
  0%, 100% { filter: hue-rotate(-14deg); }
  50% { filter: hue-rotate(14deg); }
}

.masthead .tag--r { color: var(--cyan); }

/* ---------------------------------------------------------------- the channels (nav) */

.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 24px;
  border: var(--rule) solid transparent;
  background: var(--ink);
  color: var(--black);
  text-decoration: none;
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1;
  -webkit-font-smoothing: none;
  transition: filter 0.18s, transform 0.08s;
}
.channel img {
  width: 40px;
  height: 40px;
  flex: none;
  image-rendering: pixelated;
}
.channel b {
  font-weight: 700;
  font-size: var(--t-label);
}
.channel:hover { filter: brightness(1.12); }
.channel:active { transform: translateY(2px); }

.channel[aria-current="page"] {
  border-color: var(--paper);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.45);
}

/* a channel that is not open is the same block, darkened, with the word in paper */
.channel:not([aria-current="page"]) {
  background: color-mix(in srgb, var(--ink) 46%, var(--black));
  color: var(--paper);
}
.channel:not([aria-current="page"]) img { filter: invert(1); }

/* ---------------------------------------------------------------- the three column body */

.grid {
  display: grid;
  grid-template-columns: 46% 1fr 19.5%;
  gap: var(--gap);
  align-items: stretch;
}

.col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

/* the premise, in the slot his picture gives its three mono lines */
.premise {
  margin: 0;
  font-size: var(--t-head);
  line-height: 1.32;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.premise span { color: var(--cyan); }

/* ---------------------------------------------------------------- the ladder strip (his inventory) */

.rungs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.rung {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-decoration: none;
}

.rung__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--slot);
  border: 2px solid #9c9c9c;
  border-right-color: #4e4e4e;
  border-bottom-color: #4e4e4e;
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1;
  color: var(--slot-ink);
  -webkit-font-smoothing: none;
}

.rung--done .rung__cell { background: var(--ink); border-color: var(--paper); }
.rung--now .rung__cell { background: var(--ink); border-color: var(--paper); animation: breathe 1.8s steps(2, end) infinite; }
/* a rung still to come is an EMPTY SLOT in his grey, exactly as his inventory prints one */
.rung--todo .rung__cell { color: #0a0a0a; }

/* a liveness cue, not a state: the state is the word under the cell */
@keyframes breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(0.84); }
}

.rung__label {
  font-size: var(--t-label);
  line-height: 1.25;
  text-align: center;
  color: var(--body);
  min-height: 2.5em;
}
.rung__label b { display: block; color: var(--paper); font-weight: 700; }
.rung--todo .rung__label { color: var(--muted); }

a.rung:hover .rung__cell { filter: brightness(1.18); }

/* ---------------------------------------------------------------- label and value rows */

.rows { display: block; width: 100%; }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 8px 0;
  position: relative;
}
.row + .row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #272727;
}
.row__k {
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.row__v {
  font-size: var(--t-value);
  font-weight: 700;
  color: var(--paper);
  text-align: right;
  margin-left: auto;
  white-space: nowrap;
}

/* the narrow rail prints its label above its value, so nothing is ever squeezed sideways */
.rows--stack .row { display: block; }
.rows--stack .row__k { display: block; white-space: normal; }
.rows--stack .row__v { display: block; text-align: left; margin-left: 0; white-space: normal; overflow-wrap: anywhere; }
.row__v--lit { color: var(--cyan); }
.row__v--warn { color: var(--yellow); }
.row__v--off { color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- the curve */

.curve {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.curve__canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
}
.curve__read {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  min-height: 3.4em;
  font-size: var(--t-row);
  color: var(--body);
  padding-top: 12px;
}
.curve__read::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #272727;
}
.curve__read b { color: var(--paper); }
.curve__read a { color: var(--cyan); }

/* ---------------------------------------------------------------- the bank rail */

.bank { display: flex; flex-direction: column; gap: 12px; }

.bank__stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}
.bank__seg {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 16px;
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--black);
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.bank__seg--empty {
  background: repeating-linear-gradient(135deg, #1c1c1c 0 6px, #111 6px 12px);
  color: var(--muted);
}

/* ---------------------------------------------------------------- the contract window */

.contract { display: grid; grid-template-columns: 1fr 268px; gap: var(--gap); align-items: stretch; }

.contract__main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.mint {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.mint__value {
  flex: 1 1 auto;
  min-width: 0;
  background: #101010;
  border: 2px solid #343434;
  padding: 14px 22px;
  font-size: var(--t-value);
  color: var(--paper);
  overflow-wrap: anywhere;
  user-select: all;
  display: flex;
  align-items: center;
}
.mint__value--empty { color: var(--muted); font-size: var(--t-row); user-select: none; }

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 1.3em;
  border: 2px solid var(--paper);
  background: var(--black);
  color: var(--paper);
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1;
  -webkit-font-smoothing: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.08s;
}
/* an official mark is never recoloured, inverted or redrawn, so a key lights its own frame
   instead of knocking itself out */
.key:hover { border-color: var(--cyan); color: var(--cyan); background: #0d0d0d; }
.key:active { transform: translateY(2px); }
.key img { width: 22px; height: 22px; display: block; }
/* a key that cannot be pressed yet is DIMMED, never faded: a faded key is grey on grey and he
   reads every one of them (his review of 2026-10-20) */
.key[aria-disabled="true"],
.key:disabled {
  border-color: #50545c;
  color: #9ba1ac;
  cursor: not-allowed;
}
.key[aria-disabled="true"]:hover,
.key:disabled:hover { background: var(--black); color: var(--muted); border-color: #4a4a4a; }
.key[aria-disabled="true"] img,
.key:disabled img { opacity: 0.72; }

.keys { display: flex; flex-wrap: wrap; gap: 10px; }

.contract__raster {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #343434;
  background: #060606;
  overflow: hidden;
}
.contract__raster img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* a frame whose legend hangs under its bottom rule needs the room for it */
.frame--btag { margin-bottom: 22px; }

/* the four all time figures, across the full width */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px var(--gap);
}
.figure { min-width: 0; }
.figure__k {
  display: block;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.figure__v {
  display: block;
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-big);
  line-height: 1.2;
  color: var(--paper);
  -webkit-font-smoothing: none;
  overflow-wrap: anywhere;
}
.figure__v em { font-style: normal; color: var(--ink, var(--cyan)); }

/* ---------------------------------------------------------------- the burn band */

.band__blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 22px;
}
.band__blocks:empty { display: none; }
.band__block {
  width: 30px;
  height: 46px;
  background: var(--ink);
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.band__block--todo {
  background: transparent;
  border: 2px solid #333;
  cursor: default;
}
.band__block--collapse { box-shadow: inset 0 0 0 3px var(--black), inset 0 0 0 6px var(--ink); }
a.band__block:hover { filter: brightness(1.3); }

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

.table { width: 100%; border-collapse: collapse; font-size: var(--t-row); }
.table th,
.table td {
  text-align: right;
  padding: 9px 14px;
  position: relative;
  white-space: nowrap;
}
.table th:first-child,
.table td:first-child { text-align: left; padding-left: 0; }
.table th:last-child,
.table td:last-child { padding-right: 0; }
.table th {
  font-size: var(--t-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.table td { color: var(--body); }
.table tbody tr td::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #272727;
}
.table b { color: var(--paper); }
.table .swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--ink);
  margin-right: 10px;
  vertical-align: -2px;
}
.table a { color: var(--cyan); }
.table__wrap { width: 100%; }

/* On a phone a table of five columns cannot be a table. Every row becomes a block of label and
   value lines, so no column is ever cut off and nothing scrolls sideways. */
@media (max-width: 860px) {
  .row__k { white-space: normal; }
  .row__v { white-space: normal; overflow-wrap: anywhere; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { position: relative; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .table tbody tr td::before { display: none; }
  .table tbody tr + tr::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: #272727;
  }
  /* a phone row is not five rows: the step heads it and the rest wraps under it in pairs */
  .table td {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    padding: 3px 0;
    width: auto;
    text-align: left;
    white-space: normal;
  }
  .table td:first-child { width: 100%; }
  .table td[data-k]::before {
    display: block;
    content: attr(data-k);
    position: static;
    height: auto;
    background: none;
    color: var(--muted);
    font-size: var(--t-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    white-space: normal;
  }
  .table td:first-child { font-size: var(--t-value); width: auto; margin-right: 6px; }
  .table td[data-k]::before { margin-right: 2px; }
  .table td b { font-weight: 700; }
}

/* ---------------------------------------------------------------- the memo feed */

.feed { display: flex; flex-direction: column; }
.memo {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 8px 0;
  position: relative;
  color: var(--blue);
  text-decoration: none;
  font-size: var(--t-row);
}
.memo + .memo::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #1d1d1d;
}
.memo__text { color: var(--cyan); white-space: nowrap; }
.memo__when { color: var(--muted); margin-left: auto; white-space: nowrap; }
.memo__sig { color: #5a86ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.memo:hover .memo__text { color: var(--paper); }
/* a line the ladder has not written yet: the mid ink, and the row says so in words */
.memo--ahead .memo__text { color: #6f9bff; }
.memo--ahead .memo__when { color: var(--muted); }

/* ---------------------------------------------------------------- the calculator */

.calc__row { display: flex; align-items: center; gap: 16px; }
.calc__range {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.calc__range::-webkit-slider-runnable-track {
  height: 14px;
  background: linear-gradient(90deg, var(--blue), var(--magenta), var(--red), var(--yellow), var(--green), var(--cyan));
}
.calc__range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 32px;
  margin-top: -9px;
  background: var(--paper);
  border: 2px solid var(--black);
}
.calc__range::-moz-range-track {
  height: 14px;
  background: linear-gradient(90deg, var(--blue), var(--magenta), var(--red), var(--yellow), var(--green), var(--cyan));
}
.calc__range::-moz-range-thumb {
  width: 18px;
  height: 32px;
  border-radius: 0;
  background: var(--paper);
  border: 2px solid var(--black);
}
.calc__step {
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-big);
  line-height: 1;
  color: var(--paper);
  -webkit-font-smoothing: none;
  min-width: 3.2ch;
  text-align: right;
}

/* ---------------------------------------------------------------- prose, the only grotesque */

.prose {
  font-family: "Text", system-ui, sans-serif;
  font-size: var(--t-row);
  line-height: 1.6;
  color: var(--body);
  max-width: 68ch;
}
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: var(--paper); font-weight: 700; }
.prose code {
  font-family: "Mono", monospace;
  color: var(--cyan);
  font-size: 0.95em;
}

.head {
  margin: 0 0 14px;
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1.1;
  color: var(--paper);
  -webkit-font-smoothing: none;
}

.note {
  font-size: var(--t-row);
  color: var(--muted);
  margin: 0;
}

/* the rule, in four steps, in his colour blocks */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step {
  border: var(--rule) solid var(--paper);
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.step__n {
  background: var(--ink);
  color: var(--black);
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-big);
  line-height: 1.2;
  padding: 20px 32px;
  -webkit-font-smoothing: none;
}
.step h3 {
  margin: 20px 32px 10px;
  font-family: "Galmuri", monospace;
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1.15;
  color: var(--paper);
  -webkit-font-smoothing: none;
}
.step p {
  margin: 0 32px;
  font-family: "Text", system-ui, sans-serif;
  font-size: var(--t-row);
  line-height: 1.55;
  color: var(--body);
}

/* ---------------------------------------------------------------- widths */

@media (max-width: 1340px) {
  :root { --t-display: 88px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .col--rail { grid-column: 1 / -1; }
  .bank__stack { flex-direction: row; }
  .bank__seg { flex: 1 1 0; min-height: 44px; }
  .contract { grid-template-columns: 1fr 230px; }
}

@media (max-width: 1040px) {
  :root { --t-display: 66px; --pad-body: 28px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .top { grid-template-columns: 160px 1fr; }
  .grid { grid-template-columns: 1fr; }
  .rungs { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* four channels stop fitting one row well before the phone: two rows from here down */
@media (max-width: 900px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
  .channel { padding: 10px 16px; gap: 10px; font-size: var(--t-value); }
  .channel img { width: 26px; height: 26px; }
}

@media (max-width: 760px) {
  :root { --page: min(1480px, 100vw - 32px); --t-display: 44px; }
  .premise { font-size: var(--t-value); }
  /* the word needs the whole width to itself down here, so the mark steps out of its row */
  .top { grid-template-columns: 1fr; }
  .mark { width: 104px; justify-self: start; }
  .wordmark { padding-top: 18px; padding-bottom: 18px; }
  .contract { grid-template-columns: 1fr; }
  .contract__raster { max-height: 200px; }
  .mint { flex-direction: column; }
  .band__block { width: 24px; height: 38px; }
}

@media (max-width: 460px) {
  :root { --page: min(1480px, 100vw - 24px); --t-display: 33px; --pad-body: 24px; --t-big: 22px; }
  .channel { min-height: 58px; }
  .rungs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .frame::before, .frame::after { display: none; }
  .memo { flex-wrap: wrap; gap: 8px 14px; }
  .memo__sig { width: 100%; }
}

/* under about 360 the two channel columns stop holding their words */
@media (max-width: 364px) {
  .channels { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .field { animation: none; }
  .wordmark { animation: none; }
  .rung--now .rung__cell { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
