/* omarchycrt.com
 *
 * Every colour here comes from one of the ten values an Omarchy theme
 * exports, so pressing the theme button repaints the whole page. The
 * defaults below are Tokyo Night, which is what a visitor with JavaScript
 * off gets, and assets/js/themes.js carries the other twenty one.
 *
 * The three phosphor colours are the exception and they are deliberate:
 * they only ever appear on a ground this page keeps dark on every theme,
 * which is to say inside a picture frame or inside a code block. A
 * terminal is a terminal in a light theme too.
 */

:root {
  --accent: #7aa2f7;
  --bg: #1a1b26;
  --dark: #13141c;
  --darker: #0e0e14;
  --dim: #565f89;
  --fg: #a9b1d6;
  --lighter: #24283b;
  --muted: #414868;
  --paper: #c0caf5;
  --sel: #292e42;

  --green: #9ece6a;
  --amber: #e0af68;
  --cyan: #7dcfff;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 82rem;
  --gut: clamp(1.25rem, 4vw, 4rem);
  --band: clamp(3.5rem, 7vw, 5.75rem);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--darker);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  scroll-padding-top: 5rem;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--green);
}

em {
  font-style: italic;
  color: var(--paper);
}

/* Long paragraphs need somewhere for the eye to land. Emphasis takes the
 * heading colour rather than a weight alone, so it reads on every theme. */
strong,
b {
  font-weight: 600;
  color: var(--paper);
}

/* ------------------------------------------------------------- structure */

.wrap {
  width: min(100% - (var(--gut) * 2), var(--wrap));
  margin-inline: auto;
}

.band {
  padding-block: var(--band);
  background: var(--darker);
}

.band-quiet {
  background: var(--dark);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--darker);
  border-radius: 3px;
  font-weight: 600;
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: 0.9rem var(--gut);
  background: color-mix(in srgb, var(--darker) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sel);
}

.brand {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.brand a {
  color: var(--paper);
}

.brand a:hover {
  text-decoration: none;
}

.topnav {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.topnav a {
  color: var(--fg);
}

.chip {
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px solid var(--sel);
  border-radius: 3px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--paper);
}

/* ------------------------------------------------------------- the picker */

/* The launcher has a Style page listing every installed theme, and this is
 * that page. A name alone read as a label rather than a control, which is
 * why nobody found it: four tints and a key hint say what it does. */
.picker {
  position: relative;
  flex-shrink: 0;
}

.picker-open {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.picker-swatch,
.picker-tints {
  display: inline-flex;
  gap: 2px;
}

.picker-swatch > span,
.picker-tints > span {
  width: 8px;
  height: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.picker-key {
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.05rem 0.3rem;
  border: 1px solid var(--sel);
  color: var(--fg);
}

.picker-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 20;
  width: min(24rem, calc(100vw - 2rem));
  padding: 0.85rem;
  background: #10131f;
  border-top: 2px solid #3d4a78;
  border-left: 2px solid #3d4a78;
  border-right: 2px solid #080a12;
  border-bottom: 2px solid #080a12;
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.8);
}

.picker-head,
.picker-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  max-width: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #78829f;
}

.picker-foot {
  display: block;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid #232a45;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.6;
}

.picker-foot kbd,
.picker-panel kbd {
  font-family: var(--mono);
  padding: 0 0.25rem;
  border: 1px solid #2b3557;
  color: #ccd3ec;
}

.picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  max-height: 52vh;
  overflow-y: auto;
  margin-top: 0.7rem;
}

.picker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: #ccd3ec;
  text-align: left;
}

.picker-item:hover {
  background: #1a1f33;
}

.picker-item.is-on {
  background: #1a1f33;
  box-shadow: inset 2px 0 0 var(--green);
  color: #fff;
}

.picker-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- type */

h1,
h2,
h3 {
  color: var(--paper);
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.125rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.875rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0;
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-amber {
  color: var(--accent);
}

.lead {
  font-size: 1.0625rem;
  max-width: 52ch;
}

.pull {
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem);
  line-height: 1.52;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--paper);
  max-width: 40ch;
}

.note {
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--fg);
  max-width: 84ch;
}

.note-rule {
  padding-top: 1.5rem;
  border-top: 1px solid var(--sel);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.75rem;
}

.section-head-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.section-head-wide > div {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.section-lead {
  max-width: 46ch;
}

.closer {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sel);
  max-width: 88ch;
  font-size: 1rem;
}

.closer strong {
  color: var(--paper);
  font-weight: 600;
}

/* ---------------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: none;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.875rem;
  padding: 0 1.4rem;
  background: var(--accent);
  color: var(--darker);
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
}

.button:hover,
.button:focus-visible {
  background: var(--paper);
  color: var(--darker);
  text-decoration: none;
}

.button-quiet {
  background: transparent;
  border: 1px solid var(--sel);
  color: var(--paper);
  font-weight: 500;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  background: transparent;
  border-color: var(--accent);
  color: var(--paper);
}

/* ------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 45rem);
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--sel);
}

.hero-words {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem)
    var(--gut);
  justify-content: center;
}

.hero-foot {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

/* A grid rather than two absolutely positioned corners. The badge and the
 * caption are cells in the bottom row, one left and one right, so no length
 * of either can put it on top of the other. */
.hero-shot {
  position: relative;
  margin: 0;
  min-height: 26rem;
  background: #000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0.75rem 1.5rem;
  align-items: end;
  padding: 1.5rem 1.75rem;
  box-sizing: border-box;
}

.hero-shot img,
.hero-shot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
}

/* The left edge of the frame is the rack and its cables, which are nobody's
 * business. It gets blurred and then darkened, and both stop before the
 * cabinet starts at about a tenth of the way in. */
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 15%;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(14px);
  mask-image: linear-gradient(to right, #000 0%, #000 30%, transparent 100%);
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Pulled back deliberately. The box is taller than the film, so cover
   * enlarges it and crops the sides, which moves the cabinet leftwards into
   * whatever this covers. Solid to four per cent, gone by eighteen. */
  background: linear-gradient(
    to right,
    var(--darker) 0%,
    var(--darker) 4%,
    color-mix(in srgb, var(--darker) 55%, transparent) 11%,
    transparent 18%
  );
  box-shadow: inset 0 0 10rem 2.5rem color-mix(in srgb, var(--darker) 55%, transparent);
}

/* The set in the photograph is on, so the hero says so, in the same words
 * the bar popout uses further down the page. The dot is a pilot light and
 * that is the only reason it moves. */
/* Bottom left, where the room in the picture is dark and empty. Top left is
 * where the television is, and a badge sitting on the picture is a badge in
 * the way. */
.on-air {
  grid-row: 2;
  grid-column: 1;
  justify-self: start;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: none;
  padding: 0.45rem 0.8rem;
  background: rgba(6, 8, 14, 0.82);
  box-shadow: inset 0 0 0 1px rgba(158, 206, 106, 0.35);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.on-air-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px 2px rgba(158, 206, 106, 0.65);
  animation: on-air-pilot 3.6s steps(2, end) infinite;
}

@keyframes on-air-pilot {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.62;
  }
}

.on-air-state {
  color: var(--green);
  font-weight: 500;
}

.on-air-mode {
  color: #cdd5ea;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* A loop that runs on its own needs a way to stop it. */
.on-air-hold {
  margin-left: 0.2rem;
  padding: 0.15rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(158, 206, 106, 0.4);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.on-air-hold:hover {
  background: rgba(158, 206, 106, 0.16);
}

.hero-shot figcaption {
  grid-row: 2;
  grid-column: 2;
  justify-self: end;
  z-index: 3;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #e8ecf4;
  text-shadow: 0 1px 0.5rem rgba(0, 0, 0, 0.9);
}

/* ----------------------------------------------------------------- frames */

figure {
  margin: 0;
}

figcaption {
  font-size: 0.9375rem;
  line-height: 1.66;
  color: var(--fg);
}

figcaption strong {
  color: var(--paper);
  font-weight: 600;
}

/* A picture the launcher drew: the framebuffer, or a video of it. Held in a
 * plate, with a vignette and nothing else. No scanlines are painted here or
 * anywhere: the launcher does not fake a tube and neither does this page. */
.tube-frame > img,
.tube-frame > video {
  width: 100%;
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  background: #05050a;
  padding: 8px;
  box-shadow: 0 1rem 2.75rem -1.6rem rgba(0, 0, 0, 0.95);
}

.tube-frame figcaption,
.set-frame figcaption,
.plain-frame figcaption {
  margin-top: 0.7rem;
}

/* A photograph of the set. The scanlines in it belong to the glass. */
.set-frame > img,
.set-frame > video {
  width: 100%;
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  box-shadow: 0 1.1rem 3rem -1.5rem rgba(0, 0, 0, 0.9);
}

/* A picture of the desktop, or the drawn diagram. No tube involved. */
.plain-frame > img,
.plain-frame > video {
  width: 100%;
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  background: var(--dark);
  padding: 10px;
}

.tube-frame-small figcaption {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}

.tick {
  color: var(--accent);
}

.tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tag-green {
  color: var(--accent);
}

.tag-amber {
  color: var(--accent);
}

/* The two halves of the comparison are the same screen, so they are shown at
 * the same shape and the same height. The framebuffer is 4:3 because the tube
 * is; the photograph is wider than that and gets cropped to match, which also
 * puts the two pictures of the same menu at the same size. */
.compare > img,
.compare > video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.set-frame.compare > img {
  object-position: 46% center;
}

/* ------------------------------------------------------------- the splits */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-words {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.split-wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
}

.split-diagram,
.split-cli {
  grid-template-columns: minmax(0, 1fr) minmax(0, 35rem);
  margin-bottom: 3.5rem;
}

/* The panel is a tall portrait popout, so its column is narrow: at 35rem it
 * would run nine hundred pixels down the page beside five hundred of text. */
.split-omarchy {
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Two large items rather than one: the collection and the music are the two
 * halves of the thing, so they get the same room. */
.pair-tube {
  margin-bottom: 2.25rem;
}

.split-ritual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sel);
}

/* Two columns of text over a row of pictures, rather than a tall ribbon of
 * prose beside a short row with half the section empty underneath it. */
/* Prose on one side, one picture on the other, which is the only shape that
 * does not leave one column short. */
.split-idle {
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: 2.75rem;
}

.split-idle h3 {
  font-size: 1.5rem;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.triptych {
  margin-bottom: 0.5rem;
}

.split-monitor {
  grid-template-columns: minmax(0, 1fr) minmax(0, 35rem);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--sel);
}

.split-monitor h3 {
  font-size: 1.5rem;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.split-machine {
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  align-items: start;
  padding-top: 2.75rem;
  border-top: 1px solid var(--sel);
}

.split-install {
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
}

.split-credits {
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.pair-menu {
  margin-block: 3.5rem;
}

.plain-frame-wide {
  max-width: 62rem;
}

/* --------------------------------------------------------------- the grids */

.strip,
.triptych,
.cards,
.details,
.grid-eight,
.notes,
.credits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.strip-title {
  margin-top: 3.25rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Four moments of the same window, so the strip that holds the boot's four
 * beats holds these too. */
.weather-strip {
  margin-bottom: 0.5rem;
}

.weather-strip .tick {
  font-variant-numeric: tabular-nums;
}

/* The close reading of the dither sits in the text column, beside the
 * sentence that claims it, rather than in the row of skies. */
.dither-proof {
  margin-top: 0.5rem;
}

.dither-proof figcaption {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.66;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2.25rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sel);
  counter-reset: none;
}

.details > li {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.step-n {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Drawn rather than numbered: a number told the reader nothing, and these
 * say what the detail is about before the heading does. Text colour, not an
 * accent, because they are part of the sentence and not decoration. */
.detail-mark {
  display: block;
  color: var(--paper);
  margin-bottom: 0.1rem;
}

.detail-mark svg {
  display: block;
}

.details p:not(.step-n) {
  font-size: 1rem;
  line-height: 1.7;
}

.grid-eight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sel);
}

.grid-eight > li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* One drawn mark per integration point, in the accent the label already
 * uses, so the eight read as eight things rather than eight paragraphs. */
.item-mark {
  display: block;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.item-mark svg {
  display: block;
}

.grid-eight h3 {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid-eight p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.75rem;
  margin-block: 2.25rem;
}

.notes > li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.notes h3 {
  font-size: 1.0625rem;
  color: var(--accent);
}

/* A chip, a plug and a floppy disk: written with an AI, built for Omarchy,
 * and about keeping old things readable. Text colour, like the marks on the
 * details, because they are part of the sentence. */
.note-mark {
  display: block;
  color: var(--paper);
  margin-bottom: 0.15rem;
}

.note-mark svg {
  display: block;
}

.notes p {
  font-size: 0.9375rem;
  line-height: 1.72;
}

.credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 3.5rem;
}

.credits > li {
  font-size: 0.9375rem;
  line-height: 1.72;
}

/* --------------------------------------------------------- the signal path */

/* A status screen the launcher could have drawn, and one the visitor works.
 *
 * Nothing here animates on a loop, because nothing in the machine does. The
 * one thing that happens is the handover, and it has a before and an after:
 * the connector belongs to the desktop, and then it does not. So five native
 * radios hold the state and CSS does the rest. No script is involved, which
 * means it works with scripting off, it is operable from the keyboard, and
 * there is nothing to load.
 *
 * Everything inside the frame keeps a dark ground on every theme, the way a
 * code block does, so the phosphor colours are allowed in here.
 *
 * The drawing of a television shows scanlines, and that does not break the
 * rule the page keeps elsewhere. The rule is that no picture of a screen has
 * scanlines painted onto it. This is an illustration of a tube, not a
 * picture of one. */

.path {
  --lit: #3d4a78;
  --shade: #080a12;
  --ink: #ccd3ec;
  --quiet: #8d97ba;
  --rule: #232a45;
  --blue: #7aa2f7;
  --gold: #e0af68;

  position: relative;
  margin: 0 0 3.5rem;
  background: #161a2b;
  border-top: 3px solid var(--lit);
  border-left: 3px solid var(--lit);
  border-right: 3px solid var(--shade);
  border-bottom: 3px solid var(--shade);
  box-shadow: inset 0 0 0 1px var(--rule);
}

/* The radios stay in the layout so they can still take focus, and the key
 * they belong to shows the focus ring for them. */
.path > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.path-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: #0b0d15;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.path-bar p {
  margin: 0;
  max-width: none;
}

.path-bar-hint {
  font-weight: 400;
  letter-spacing: 0.05em;
}

.path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem minmax(0, 1fr) 23rem;
  padding: 1.6rem;
}

.zone {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-inline: 1.6rem;
}

.zone:first-of-type {
  padding-left: 0;
}

.zone-set {
  border-left: 1px solid var(--rule);
  align-items: center;
  padding-right: 0;
}

.zone-band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.45rem 0.9rem;
  color: #0b0d15;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.zone-note {
  font-weight: 400;
  letter-spacing: 0.05em;
}

.zone-desk .zone-band {
  background: var(--blue);
}

.zone-leased .zone-band {
  background: var(--gold);
}

.zone-set .zone-band {
  background: var(--green);
}

.zone-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.zone-rows > li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #10131f;
  box-shadow:
    inset 1px 1px 0 #2a3454,
    inset -1px -1px 0 #070911;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink);
}

.led {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: #3a4a75;
}

.zone-leased .led {
  background: #6d5a2f;
}

.led-on {
  background: var(--blue);
  box-shadow: 0 0 11px 2px rgba(122, 162, 247, 0.6);
}

.led-white {
  background: var(--paper);
}

.zone-foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.66;
  color: var(--quiet);
}

/* ----------------------------------------- the connector, which moves once */

.slot {
  position: relative;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  min-height: 2.85rem;
}

.slot-empty {
  display: flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px dashed #2b3557;
  font-family: var(--mono);
  font-size: 1rem;
  color: #4b5476;
}

.conn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #1a1f33;
  box-shadow:
    inset 1px 1px 0 #3a4a75,
    inset -1px -1px 0 #070911;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--paper);
  transition:
    opacity 0.28s steps(4, end),
    transform 0.28s steps(4, end);
}

.lease-slot .conn {
  opacity: 0;
  transform: translateX(-1.5rem);
}

.lease-rows > li:not(.slot) {
  opacity: 0.34;
  transition: opacity 0.28s steps(4, end);
}

/* ------------------------------------------------- the television, drawn */

.set {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.set-cab {
  width: 18.875rem;
  padding: 1.1rem 1.1rem 0.8rem;
  background: #171a22;
  border-top: 4px solid #3a4252;
  border-left: 4px solid #3a4252;
  border-right: 4px solid #070910;
  border-bottom: 4px solid #070910;
}

.set-glass {
  position: relative;
  height: 12.875rem;
  overflow: hidden;
  border-radius: 20px / 28px;
  background: radial-gradient(120% 130% at 50% 38%, #0d1420 0%, #05080f 78%);
  box-shadow:
    inset 0 0 34px 8px rgba(0, 0, 0, 0.9),
    inset 0 0 0 2px #0a0d15;
}

.set-off {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2c3550;
}

.set-picture {
  position: absolute;
  inset: 12px;
  border-radius: 12px / 17px;
  opacity: 0;
}

/* The raster: one bright line that opens into a picture. */
.set-raster {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%) scaleY(1);
  background: #d8f0bd;
  box-shadow: 0 0 22px 6px rgba(216, 240, 189, 0.8);
  opacity: 0;
}

.set-read {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-family: var(--mono);
  color: var(--green);
  text-shadow: 0 0 16px rgba(158, 206, 106, 0.7);
  opacity: 0;
}

.set-n {
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
}

.set-lines-label {
  font-size: 0.9375rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.set-hz {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  color: #6f9a4a;
}

.set-front {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
}

.set-grille {
  width: 7.5rem;
  height: 12px;
  background: repeating-linear-gradient(to right, #262d3b 0 2px, #12151d 2px 4px);
}

.set-knobs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.set-knobs > span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1c2130;
  box-shadow: inset 1px 1px 0 #333c50;
}

.set-pilot {
  width: 9px !important;
  height: 9px !important;
  background: #43202a !important;
  box-shadow: none !important;
}

.set-feet {
  display: flex;
  gap: 9.375rem;
}

.set-feet > span {
  width: 30px;
  height: 9px;
  background: #12151d;
}

/* ------------------------------------------ the instrument, and its keys */

.path-panel {
  margin: 0 1.6rem 1.6rem;
  padding: 1.4rem 1.5rem 1.25rem;
  background: #0d1019;
  box-shadow:
    inset 2px 2px 0 #232c4a,
    inset -2px -2px 0 #060810;
}

.readout {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: end;
}

.readout > li {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.readout-cap {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78829f;
}

.readout-big {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.875rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  color: #4c5680;
}

.readout-drawn {
  color: var(--blue);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.key {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  background: #10131f;
  color: var(--ink);
  border-top: 2px solid #2a3454;
  border-left: 2px solid #2a3454;
  border-right: 2px solid #070911;
  border-bottom: 2px solid #070911;
  font-family: var(--mono);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
}

.key:hover {
  color: var(--paper);
  border-top-color: #3d4a78;
  border-left-color: #3d4a78;
}

/* ------------------------------------------------- what the state changes */

#lease-off:checked ~ .path-body .key-off,
#lines-240:checked ~ .path-body .key-240,
#lines-224:checked ~ .path-body .key-224,
#lines-288:checked ~ .path-body .key-288 {
  background: var(--blue);
  color: #0b0d15;
  border-top-color: #a6c1fa;
  border-left-color: #a6c1fa;
  border-right-color: #3f5a99;
  border-bottom-color: #3f5a99;
}

#lines-240:checked ~ .path-body .key-240,
#lines-224:checked ~ .path-body .key-224,
#lines-288:checked ~ .path-body .key-288 {
  background: var(--gold);
  border-top-color: #f4cd93;
  border-left-color: #f4cd93;
  border-right-color: #8a6221;
  border-bottom-color: #8a6221;
}

#lease-on:checked ~ .path-body .key-on {
  background: var(--green);
  color: #0b0d15;
  border-top-color: #c3e69b;
  border-left-color: #c3e69b;
  border-right-color: #5c7a3a;
  border-bottom-color: #5c7a3a;
}

/* The focus ring lands on the key, since the radio itself is a single pixel. */
#lease-off:focus-visible ~ .path-body .key-off,
#lease-on:focus-visible ~ .path-body .key-on,
#lines-240:focus-visible ~ .path-body .key-240,
#lines-224:focus-visible ~ .path-body .key-224,
#lines-288:focus-visible ~ .path-body .key-288 {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* The handover itself. */
#lease-on:checked ~ .path-body .desk-slot .conn {
  opacity: 0;
  transform: translateX(1.5rem);
}

#lease-on:checked ~ .path-body .lease-slot .conn {
  opacity: 1;
  transform: none;
}

#lease-on:checked ~ .path-body .lease-rows > li:not(.slot) {
  opacity: 1;
}

#lease-on:checked ~ .path-body .zone-leased .led {
  background: var(--gold);
  box-shadow: 0 0 11px 2px rgba(224, 175, 104, 0.55);
}

#lease-on:checked ~ .path-body .gate > span {
  background: var(--green);
  border-top-color: #c3e69b;
  border-left-color: #c3e69b;
  border-right-color: #5c7a3a;
  border-bottom-color: #5c7a3a;
}

#lease-on:checked ~ .path-body .gate::before {
  border-left-style: solid;
  border-left-color: var(--green);
}

#lease-on:checked ~ .path-body .set-off {
  opacity: 0;
}

#lease-on:checked ~ .path-body .set-pilot {
  background: #f7768e !important;
  box-shadow: 0 0 10px 3px rgba(247, 118, 142, 0.6) !important;
}

#lease-on:checked ~ .path-body .set-raster {
  animation: raster-up 620ms steps(9, end) forwards;
}

#lease-on:checked ~ .path-body .set-picture {
  animation: picture-in 220ms steps(3, end) 560ms forwards;
}

#lease-on:checked ~ .path-body .set-read {
  animation: picture-in 220ms steps(3, end) 700ms forwards;
}

#lease-on:checked ~ .path-body .readout-lease,
#lease-on:checked ~ .path-body .readout-timing {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(224, 175, 104, 0.4);
}

#lease-on:checked ~ .path-body .readout-glass {
  color: var(--green);
  text-shadow: 0 0 24px rgba(158, 206, 106, 0.4);
}

@keyframes raster-up {
  0% {
    opacity: 0;
    transform: translateY(-50%) scaleY(1);
  }
  12% {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scaleY(62);
  }
}

@keyframes picture-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* The line count, changed live, as it is at every launch. The spacing on the
 * glass really does follow the number. */
.v {
  display: none;
}

#lines-240:checked ~ .path-body .v240,
#lines-224:checked ~ .path-body .v224,
#lines-288:checked ~ .path-body .v288 {
  display: inline;
}

#lines-240:checked ~ .path-body .set-picture {
  background: repeating-linear-gradient(
    to bottom,
    rgba(158, 206, 106, 0.17) 0 2px,
    rgba(0, 0, 0, 0) 2px 5px
  );
}

#lines-224:checked ~ .path-body .set-picture {
  background: repeating-linear-gradient(
    to bottom,
    rgba(158, 206, 106, 0.17) 0 2px,
    rgba(0, 0, 0, 0) 2px 6px
  );
}

#lines-288:checked ~ .path-body .set-picture {
  background: repeating-linear-gradient(
    to bottom,
    rgba(158, 206, 106, 0.17) 0 2px,
    rgba(0, 0, 0, 0) 2px 4px
  );
}

/* One roll and a lock, which is what a tube does when the timing changes
 * under it. */
#lines-224:checked ~ .path-body .set-picture,
#lines-288:checked ~ .path-body .set-picture {
  animation:
    picture-in 220ms steps(3, end) 560ms forwards,
    roll 520ms steps(8, end) 1;
}

@keyframes roll {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-38%);
  }
  70% {
    transform: translateY(9%);
  }
  100% {
    transform: translateY(0);
  }
}

.path-foot {
  padding: 0 1.6rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--quiet);
  max-width: 96ch;
}

/* The border between the two territories: a gate with a name on it. */
.gate {
  position: relative;
  margin: 0;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 3px dashed var(--gold);
}

.gate > span {
  position: relative;
  padding: 1.4rem 0.7rem;
  background: var(--gold);
  border-top: 3px solid #f4cd93;
  border-left: 3px solid #f4cd93;
  border-right: 3px solid #8a6221;
  border-bottom: 3px solid #8a6221;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #0b0d15;
}

/* --------------------------------------------------------------- the timing */

.timing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 3.25rem;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3rem);
  background: var(--darker);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
}

.band .timing {
  background: var(--dark);
}

.band-quiet .timing {
  background: var(--darker);
}

.timing-words,
.timing-code {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timing-words p:not(.pull) {
  font-size: 1rem;
}

/* A square wave for the line rate, and four raster lines for the modeline:
 * both are pictures of the thing the words are about. */
.pull-mark {
  display: block;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.pull-mark svg,
.label-mark svg {
  display: block;
}

.label-mark {
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.4rem;
}

.code-label {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}

/* A code block keeps a dark ground on every theme, because a terminal does. */
.code,
.timing-code pre {
  background: #0b0c12;
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
}

.timing-code pre {
  margin: 0;
  padding: 1rem 1.2rem;
}

.code {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

pre {
  margin: 0;
  overflow-x: auto;
}

pre code {
  display: block;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.95;
  color: #b6bedd;
}

pre .c {
  color: #6c7594;
}

pre .v {
  color: var(--green);
}

.soon {
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--fg);
  font-size: 1rem;
}

.soon strong {
  color: var(--paper);
  font-weight: 600;
}

/* ---------------------------------------------------------------- the origin */

.origin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--dark);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
}

.band .origin {
  background: var(--dark);
}

.origin .pull {
  max-width: 62ch;
}

.origin p:not(.pull):not(.eyebrow) {
  max-width: 74ch;
  font-size: 1rem;
}

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

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 1.05rem 1.5rem 1.05rem 0;
  border-bottom: 1px solid var(--sel);
  font-size: 0.9375rem;
  line-height: 1.66;
}

thead th {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 0.75rem;
}

tbody th {
  width: 9.5rem;
  color: var(--paper);
  font-weight: 600;
}

td {
  color: var(--fg);
}

.plain-table {
  min-width: 32rem;
}

.plain-table tbody th {
  width: 8.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 1.05rem;
}

/* ---------------------------------------------------------------- the film */

.set-frame-film {
  max-width: 58rem;
  margin-inline: auto;
}

/* The montage sits under the argument it is evidence for, with room above it
 * so it does not look like a caption to the photograph beside it. */
.wrap > .set-frame-film {
  margin-top: 3.5rem;
}

.set-frame-film video {
  background: #000;
}

/* --------------------------------------------------------------- the closing */

.closing {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.closing-line {
  margin-top: 1.1rem;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.375rem);
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 30ch;
}

/* ------------------------------------------------------------ nothing here */

.lost {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.lost-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

/* ---------------------------------------------------------------- the footer */

.footer {
  background: var(--dark);
  border-top: 1px solid var(--sel);
  padding-block: 2.25rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 74ch;
}

.footer .small {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.footer-mark {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ------------------------------------------------------------- narrow first */

@media (max-width: 68rem) {
  .hero,
  .split,
  .split-wide,
  .split-diagram,
  .split-omarchy,
  .split-cli,
  .split-ritual,
  .split-idle,
  .split-monitor,
  .split-machine,
  .split-install,
  .split-credits,
  .section-head-wide,
  .timing,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    display: grid;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .hero-words {
    padding: clamp(2rem, 6vw, 3rem) var(--gut) 2.5rem;
    order: 2;
  }

  /* The picture stops filling the box and simply sits at the top of it, so
   * the caption has somewhere to go. With the caption below the picture
   * there is nothing for a gradient to rescue, so it goes. */
  .hero-shot {
    order: 1;
    min-height: 0;
  }

  .hero-shot img,
  .hero-shot video {
    position: static;
    height: clamp(14rem, 46vw, 20rem);
  }

  .hero-shot::after,
  .hero-shot::before {
    display: none;
  }

  /* Stacked, and both out of the picture: at this width the photograph sits
   * above the words rather than behind them. */
  .hero-shot {
    display: block;
    padding: 0;
  }

  .on-air {
    position: absolute;
    bottom: 0.85rem;
    left: var(--gut);
    font-size: 0.8125rem;
  }

  .on-air-mode {
    display: none;
  }

  .hero-shot figcaption {
    position: static;
    max-width: none;
    text-align: left;
    padding: 0.85rem var(--gut) 0;
    text-shadow: none;
  }

  .hero-shot img,
  .hero-shot video {
    position: static;
  }

  .cards,
  .details,
  .grid-eight,
  .notes,
  .credits,
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The status screen stacks: the two territories one under the other, the
   * gate turned on its side between them, and the set under both. Every
   * control and every state change goes on working. */
  .path-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  /* The title bar has two things to say and not enough room for both on one
   * line, so it says them one under the other. */
  .path-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    letter-spacing: 0.06em;
  }

  .zone,
  .zone:first-child,
  .zone-set {
    padding-inline: 0;
    border-left: 0;
  }

  .zone-set {
    align-items: flex-start;
  }

  .gate {
    justify-content: flex-start;
  }

  .gate::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    border-left: 0;
    border-top: 3px dashed #e0af68;
  }

  .gate > span {
    writing-mode: horizontal-tb;
    padding: 0.35rem 0.9rem;
  }

  .readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.75rem;
  }

  .section-head-wide {
    gap: 1.4rem;
  }

  .footer-mark {
    display: none;
  }
}

@media (max-width: 44rem) {
  body {
    font-size: 16px;
  }

  .topnav {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .cards,
  .details,
  .grid-eight,
  .notes,
  .credits,
  .pair,
  .strip,
  .readout {
    grid-template-columns: minmax(0, 1fr);
  }

  .actions .button {
    width: 100%;
    justify-content: center;
  }

  table {
    min-width: 34rem;
  }
}

/* -------------------------------------------------------------- preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* The signal path needs no special case. Its animations all end on the
   * state they were showing, and the global rule above collapses them, so
   * the handover and the mode change simply happen at once, with no raster
   * sweep and no roll. */
}

@media print {
  .topbar,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }
}
