/* THE ORRERY: layout, components, motion. Consumes tokens.css only.
   The component vocabulary is the observatory's own: domes, plates, orbits,
   orbs, almanacs, ground entries, logsheets. No generic card/grid classes. */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  padding-top: 4.75rem; /* fixed horizon bar */
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* author display rules must never outrank the hidden attribute:
   the fallback panel and the error summary are display:grid when shown */
[hidden] { display: none !important; }

::selection { background: var(--ion); color: var(--starlight-hot); }

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -6rem;
  z-index: var(--z-skip);
  background: var(--starlight);
  color: var(--void);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-1);
  text-decoration: none;
  font-weight: 700;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- shared roles ---------- */
.dome {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.block {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section-pad);
}
.block--flush { padding-block: calc(var(--section-pad) * 0.55); }
.block--hair { border-top: 1px solid var(--line); }

.mag {
  font-family: var(--font-body);
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.mag--muted { color: var(--muted); }
.mag--accent { color: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-round);
  padding: 0.25rem 0.7rem;
  max-width: 100%;
  /* long sample chips must wrap rather than push the page sideways at 320px */
  white-space: normal;
}
.chip--sample {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

h1, h2, h3, .sky-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: var(--lh-heading);
}
h1 {
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  font-weight: 500;
}
.sky-title, h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--fg);
}
.log {
  max-width: var(--measure);
  color: var(--muted);
}
.log strong { color: var(--fg); font-weight: 700; }
.log + .log { margin-top: var(--s-4); }
.log a, .lead a { color: var(--accent); }

.head-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}
.head-stack .log { margin-top: var(--s-2); }

.sight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-round);
  font-size: var(--t-mag);
  font-weight: 800;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.sight:hover { transform: translateY(-2px); }
.sight--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.sight--ghost:hover { border-color: var(--accent); color: var(--accent); }
.sight--small { padding: 0.55rem 1rem; }
@media (prefers-reduced-motion: reduce) {
  .sight:hover { transform: none; }
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--s-6);
}

/* ---------- reveals (js gate: no-JS shows everything) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out);
}
.js .reveal[data-delay="1"] { transition-delay: 90ms; }
.js .reveal[data-delay="2"] { transition-delay: 180ms; }
.js .reveal[data-delay="3"] { transition-delay: 270ms; }
.js .reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- the horizon bar (fixed header) ---------- */
.horizon {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-horizon);
  background: var(--void);
  border-bottom: 0;
  color: var(--starlight);
}
/* the hairline under the bar is a horizon of stars: a dark line with fixed
   specks along it, drawn from tokens, no filter and no transparency games */
.horizon::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background:
    repeating-linear-gradient(
      to right,
      color-mix(in srgb, var(--starlight) 62%, transparent) 0 1px,
      transparent 1px 7px,
      color-mix(in srgb, var(--starlight) 34%, transparent) 7px 8px,
      transparent 8px 23px
    ),
    var(--line);
}
.horizon-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 4.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark svg { width: 1.5rem; height: 1.5rem; color: var(--ion-bright); }
.horizon-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.sky-nav {
  display: flex;
  gap: var(--s-5);
}
.sky-nav a {
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dust);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}
.sky-nav a:hover { color: var(--starlight); }
.sky-nav a[aria-current="true"] {
  color: var(--ion-bright);
  border-bottom-color: var(--ion-bright);
}
.readout {
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--dust);
  border: 1px solid var(--line);
  border-radius: var(--r-round);
  padding: 0.25rem 0.75rem;
}
.readout b { color: var(--ion-bright); font-weight: 700; }
.horizon-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-round);
  padding: 0.5rem 0.95rem;
  font-size: var(--t-mag);
  font-weight: 800;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 62rem) {
  .sky-nav, .readout { display: none; }
  .horizon-toggle { display: inline-flex; }
}
@media (max-width: 30rem) {
  .horizon-cta { display: none; }
}

/* ---------- menu veil (focus-trapped dialog) ---------- */
.menu-veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--void);
  color: var(--starlight);
  padding: var(--s-7) var(--edge) var(--s-7);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  overflow-y: auto;
}
.menu-veil.is-open { display: flex; }
.horizon-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-round);
  padding: 0.5rem 0.95rem;
  font-size: var(--t-mag);
  font-weight: 800;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  cursor: pointer;
}
.menu-veil nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.menu-veil nav a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
}
.menu-veil nav a span {
  font-family: var(--font-body);
  font-size: var(--t-mag);
  letter-spacing: var(--track-mag);
  color: var(--ion-bright);
}
html:not(.js) .horizon-toggle { display: none; }

/* ---------- starfield (decorative, deterministic) ---------- */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.starfield svg { width: 100%; height: 100%; opacity: 0.85; }
.starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 38%, color-mix(in srgb, var(--ion) 22%, transparent), transparent 70%),
    radial-gradient(90% 70% at 80% 0%, color-mix(in srgb, var(--ion) 10%, transparent), transparent 65%);
}

/* ---------- 01 the orrery (the mechanic) ---------- */
#tonight-01 { overflow: hidden; }
#tonight-01 .dome { position: relative; z-index: var(--z-plate); }

.tonight-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.tonight-lede { margin-top: var(--s-5); }

.orrery {
  margin-top: var(--s-8);
  display: grid;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 60rem) {
  .orrery {
    grid-template-columns: var(--plate) minmax(0, 1fr);
    gap: var(--s-8);
  }
}

/* pause control: a real checkbox, so the orbits stop with JavaScript off */
.orbit-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.orbit-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-round);
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  cursor: pointer;
  margin-block: var(--s-6) var(--s-5);
}
.orbit-box {
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex: none;
}
.orbit-box::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 1px;
  background: transparent;
}
.orbit-check:checked + .orbit-switch .orbit-box {
  border-color: var(--ion-bright);
}
.orbit-check:checked + .orbit-switch .orbit-box::after { background: var(--ion-bright); }
.orbit-check:checked + .orbit-switch { color: var(--fg); }
.orbit-switch:hover { color: var(--fg); border-color: var(--line-strong); }
.orbit-check:focus-visible + .orbit-switch {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.plate {
  position: relative;
  width: var(--plate);
  height: var(--plate);
  max-width: 100%;
  margin-inline: auto;
}
.plate-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.plate-rings circle,
.plate-rings line { vector-effect: non-scaling-stroke; }

.arm {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  pointer-events: none;
}
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orb-size);
  height: var(--orb-size);
  margin: calc(var(--orb-size) / -2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  pointer-events: auto;
  background: var(--void-3);
  border: 1px solid color-mix(in srgb, var(--ion) 70%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ion) 12%, transparent);
  color: var(--starlight);
  transform: translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  transition: background var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.orb-num {
  font-size: var(--t-mag);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.orb-name {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dust);
  white-space: nowrap;
}
.orb:hover,
.orb:focus-visible {
  background: var(--ion);
  border-color: var(--ion-bright);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--ion) 22%, transparent);
}
.orb[aria-current="true"] {
  background: var(--ion);
  border-color: var(--starlight);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--ion) 26%, transparent);
}
.orb[aria-current="true"] .orb-name { color: var(--starlight); }

/* the sun: the dome at the centre of the plate */
.plate-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  height: 22%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 42% 38%, var(--ion-halo), var(--ion) 58%, var(--ion-deep));
  box-shadow: 0 0 44px color-mix(in srgb, var(--ion) 55%, transparent);
  color: var(--ion-wash);
}
.plate-sun svg { width: 46%; height: 46%; }

/* motion: arms sweep, orbs counter-rotate so labels stay upright.
   Rest state is the declared angle. Pause is a real checkbox, not JS. */
@keyframes arm-sweep {
  to { transform: rotate(calc(var(--a) + 360deg)); }
}
@keyframes orb-upright {
  to { transform: translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a) - 360deg)); }
}
@media (prefers-reduced-motion: no-preference) {
  .arm {
    animation: arm-sweep var(--p) linear infinite;
  }
  .orb {
    animation: orb-upright var(--p) linear infinite;
  }
  .plate:hover .arm,
  .plate:hover .orb,
  .plate:focus-within .arm,
  .plate:focus-within .orb { animation-play-state: paused; }
  .orbit-check:checked ~ .orrery .arm,
  .orbit-check:checked ~ .orrery .orb { animation-play-state: paused; }
}
@media (max-width: 48rem) {
  .orb-name { display: none; }
}

/* the core panel: the selected night, read out beside the plate */
.orrery-core {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--void-2) 82%, transparent);
  padding: clamp(1.1rem, 3vw, 2rem);
}
.orrery-core:focus-visible { outline-offset: 5px; }
.core-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.core-body h2,
.core-body h3 {
  font-size: var(--t-h2);
  margin-bottom: var(--s-3);
}
.core-body .log { margin-bottom: var(--s-4); }
.core-hint {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-small);
}

/* facts list shared by the core panel and the ground entries */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--s-4);
  margin-block: var(--s-4);
}
.facts div { display: flex; flex-direction: column; gap: 0.2rem; }
.facts dt {
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- 02 the almanac ---------- */
.almanac-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
  background: var(--bg-2);
}
.almanac-strip div { display: flex; flex-direction: column; gap: 0.25rem; min-width: 11rem; }
.almanac-strip dt {
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
}
.almanac-strip dd {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.darkness-scroll { overflow-x: auto; }
table.darkness {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.darkness caption {
  text-align: left;
  color: var(--muted);
  font-size: var(--t-small);
  padding-bottom: var(--s-3);
}
table.darkness th,
table.darkness td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
table.darkness thead th {
  font-size: var(--t-mag);
  font-weight: 800;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
}
table.darkness tbody th { font-weight: 700; }
table.darkness tr[aria-current="true"] {
  background: color-mix(in srgb, var(--ion) 16%, transparent);
}
table.darkness tr[aria-current="true"] th { color: var(--accent); }

/* ---------- 03 ground view ---------- */
.ground-list { display: grid; gap: var(--s-5); counter-reset: night; }
.ground-entry {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background: var(--bg-2);
  scroll-margin-top: 6.5rem;
}
.ground-entry:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ion) 24%, transparent);
}
.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.entry-head h3 { font-size: var(--t-h3); }
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

/* ---------- 04 the rack ---------- */
.scope-rack { display: grid; gap: var(--s-5); }
@media (min-width: 48rem) {
  .scope-rack { grid-template-columns: repeat(3, 1fr); }
}
.scope {
  border-top: 2px solid var(--line-strong);
  padding-top: var(--s-4);
}
.scope h3 { margin-bottom: var(--s-2); }
.scope .log { color: var(--muted); }
.scope-spec {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

/* ---------- 05 first light ---------- */
.approach { display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 52rem) {
  .approach { grid-template-columns: repeat(4, 1fr); }
}
.approach-step { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.approach-step h3 { margin-block: var(--s-3) var(--s-2); }

/* ---------- 06 charter ---------- */
.charter { display: grid; gap: var(--s-5); }
@media (min-width: 52rem) {
  .charter { grid-template-columns: repeat(3, 1fr); }
}
.charter-tier {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.charter-tier--lead { border-color: var(--accent); }
.tier-dues {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.tier-list { display: grid; gap: var(--s-2); color: var(--muted); font-size: var(--t-small); }
.tier-list li { padding-left: 1.1rem; position: relative; }
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 07 the logsheet (reservation form) ---------- */
.logsheet-shell {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 62rem) {
  .logsheet-shell { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-8); }
}
.logsheet { display: grid; gap: var(--s-5); }
.slot-row { display: grid; gap: var(--s-5); }
@media (min-width: 40rem) {
  .slot-row { grid-template-columns: 1fr 1fr; }
}
.slot { display: flex; flex-direction: column; gap: 0.45rem; }
.slot label {
  font-size: var(--t-mag);
  font-weight: 800;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
}
.slot input,
.slot select,
.slot textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: 0.75rem 0.85rem;
  color: var(--fg);
  width: 100%;
}
.slot textarea { min-height: 7rem; resize: vertical; }
.slot .slot-note { font-size: var(--t-small); color: var(--muted); }
.slot-err {
  font-size: var(--t-small);
  color: var(--alarm);
  font-weight: 700;
}
.slot.is-invalid input,
.slot.is-invalid select,
.slot.is-invalid textarea { border-color: var(--alarm); }

.slot-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.errors {
  border: 1px solid var(--alarm);
  border-radius: var(--r-1);
  padding: var(--s-4);
}
.errors h3 { font-size: 1rem; margin-bottom: var(--s-2); }
.errors ul { display: grid; gap: var(--s-1); }
.errors a { color: var(--fg); }

.logsheet-status { font-size: var(--t-small); color: var(--accent); min-height: 1.2em; }
/* the draft disclosure: always visible, because the draft is always kept */
.logsheet-keep {
  font-size: var(--t-small);
  color: var(--muted);
  max-width: var(--measure);
}

/* the desk route: the sure path when the script never ran */
.desk-route { display: none; }
html:not(.js) .desk-route {
  display: block;
  max-width: var(--measure);
  font-size: var(--t-small);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-radius: var(--r-1);
  padding: var(--s-4);
}
html:not(.js) .desk-route a { color: var(--accent); }

.fallback {
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: var(--s-4);
  display: grid;
  gap: var(--s-3);
}
.fallback textarea {
  width: 100%;
  min-height: 8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: var(--fg);
  padding: 0.7rem;
  font-size: var(--t-small);
}
.fallback-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.desk {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-5);
  display: grid;
  gap: var(--s-4);
  align-content: start;
}
.desk dl { display: grid; gap: var(--s-4); }
.desk dt {
  font-size: var(--t-mag);
  font-weight: 800;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
}
.desk dd { font-size: var(--t-small); }
.desk a { color: var(--accent); }

/* ---------- 08 dispatch (FAQ) ---------- */
.dispatch { border-top: 1px solid var(--line); }
.dispatch-item { border-bottom: 1px solid var(--line); }
.dispatch-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 500;
}
.dispatch-trigger .sign {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent);
}
.dispatch-trigger[aria-expanded="true"] .sign { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dispatch-panel { overflow: hidden; }
.dispatch-panel .log { padding-bottom: var(--s-5); }

/* ---------- banners, crumbs, footer ---------- */
.page-banner { border-bottom: 1px solid var(--line); }
.crumb {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-size: var(--t-mag);
  font-weight: 700;
  letter-spacing: var(--track-mag);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.crumb a { color: var(--accent); }

.footer-sky {
  border-top: 1px solid var(--line);
  background: var(--void-2);
  color: var(--starlight);
  padding-block: var(--s-8) var(--s-6);
}
.footer-cols {
  display: grid;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (min-width: 52rem) {
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-cols h2 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.footer-links { display: grid; gap: var(--s-2); }
.footer-links a { color: var(--dust); text-decoration: none; font-size: var(--t-small); }
.footer-links a:hover { color: var(--starlight); }
.footer-close {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
  color: var(--dust);
  font-size: var(--t-small);
}
.footer-close a { color: var(--dust); }

/* ---------- 404: object not in the catalogue ---------- */
.catalogue { min-height: 62vh; display: grid; align-items: center; }
.catalogue-code {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 16vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-block: var(--s-3) var(--s-4);
}
.catalogue-fixes { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- styleguide bits ---------- */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--s-4);
}
.swatch { display: flex; flex-direction: column; gap: var(--s-2); }
.swatch .patch {
  height: 4.5rem;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
}
.spec-list { display: grid; gap: var(--s-4); }
.spec-list > div {
  border-top: 1px solid var(--line);
  padding-top: var(--s-3);
  display: grid;
  gap: var(--s-2);
}
.spec-list dt { font-weight: 700; }
.spec-list dd { color: var(--muted); font-size: var(--t-small); max-width: var(--measure); }
.demo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
}
