/* ── reset + page ground ─────────────────────────────────────── */

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

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

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

/* the cabinet stands in a dark room: a faint red spill from the marquee above */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 60% at 50% -12%, rgba(255, 45, 60, 0.16), transparent 62%),
    radial-gradient(90% 50% at 50% 108%, rgba(255, 176, 46, 0.05), transparent 60%);
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; }

code { font-family: var(--font-mono); }

img { max-width: 100%; height: auto; }

.shell {
  width: var(--shell);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ── focus + skip ────────────────────────────────────────────── */

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--red);
  color: var(--void);
  font-family: var(--font-pixel);
  font-size: var(--t-hud);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ── shared section furniture ────────────────────────────────── */

.section { padding-block: var(--space-section); }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: var(--t-hud);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--font-marquee);
  font-size: var(--t-section);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 18ch;
}

.section__lede {
  margin-top: 1.1rem;
  max-width: 54ch;
  color: var(--paper-dim);
}

.section__lede code {
  color: var(--amber);
  font-size: 0.92em;
}

/* ── reduced motion ──────────────────────────────────────────── */

@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;
  }
}
