@font-face {
  font-family: "VT323";
  src: url("fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

/* The Renderboxes deck look, which Ari chose for the landing on 2026-10-05. */
:root {
  --ink: #060605;
  --paper: #fdf9f3;
  --ember: #c2410c;
  --field-color: var(--ink);
  --display: "VT323", "Courier New", ui-monospace, monospace;
  --sans: ui-sans-serif, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --field-opacity: 0.1;
  --headline-size: clamp(2.35rem, 6.5vw, 4.1rem);
  --pad: clamp(16px, 4vw, 64px);
  --scene-h: min(78vh, 680px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

#field,
#crt {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#field {
  z-index: 0;
  opacity: var(--field-opacity);
}

/* CRT texture: scanlines and grain, drawn by crt.js. */
#crt {
  z-index: 3;
  mix-blend-mode: multiply;
}

main {
  position: relative;
  z-index: 1;
}

/* Each beat is laid out like a deck slide, the picture and the words side by side.
   The sides swap down the page; .flip puts the words on the left. */
.beat {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: var(--pad);
  padding: var(--pad);
}

.beat.flip {
  grid-template-columns: 45fr 55fr;
}

.beat-1 {
  min-height: 100vh;
}

.beat:not(.beat-1) {
  --scene-h: min(64vh, 560px);
  padding-top: clamp(4rem, 12vh, 9rem);
  padding-bottom: clamp(4rem, 12vh, 9rem);
}

.beat-end {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 9rem) var(--pad) 18vh;
}

.scene {
  display: block;
  width: 100%;
  height: var(--scene-h);
  align-self: start;
  position: sticky;
  top: calc((100vh - var(--scene-h)) / 2);
}

.copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wordmark {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin: 0 0 2rem;
}

h1,
h2 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-wrap: balance;
}

.slogan {
  font-size: var(--headline-size);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 0.9rem;
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
}

.lede {
  font-size: clamp(18px, 1.6vw, 24px);
}

strong {
  font-weight: 650;
}

/* Small labels in ember mono, as the deck's kickers. */
.kicker,
.status,
.byline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ember);
}

.status {
  margin: 1.8rem 0 0.9rem;
}

.kicker,
.byline {
  margin: 0 0 1.4rem;
  text-transform: uppercase;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2em;
}

li,
dd {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
}

li {
  margin: 0 0 0.45rem;
}

li::marker {
  color: var(--ember);
}

.steps {
  padding-left: 1.6em;
}

.steps li::marker {
  font-family: var(--mono);
}

.tiers {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.4rem;
  margin: 0 0 1.2rem;
}

.tiers dt {
  padding-top: 0.3em;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tiers dd {
  margin: 0;
}

.closer {
  margin: 1.5rem 0 0;
  font-weight: 650;
  font-size: clamp(20px, 1.8vw, 28px);
}

.ascii-graphic {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(7px, 1.05vw, 12px);
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: var(--ink);
  min-height: 6.5em;
  white-space: pre;
}

.beat-2 > .ascii-graphic {
  justify-self: center;
  font-size: clamp(8px, 1.4vw, 16px);
}

.copy .ascii-graphic {
  margin: 2rem 0 1.5rem;
}

[data-emerge].is-decoding {
  font-variant-ligatures: none;
}

canvas[aria-hidden="true"] {
  user-select: none;
}

.visual-copy { display: none; }
.js-ready .visual-copy { display: block; }
.js-ready [data-emerge].copy-accessible {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Phone: stacked, the picture on top, as the deck does. */
@media (max-width: 720px) {
  .beat {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 16px;
  }
  .beat.flip { grid-template-columns: 1fr; }
  .beat-1 { min-height: 100svh; }
  .beat:not(.beat-1) { padding-top: 4rem; padding-bottom: 2rem; }
  .scene { position: static; height: 34vh; order: -1; }
  .tiers { grid-template-columns: 1fr; gap: 0.2rem; }
  .tiers dd { margin-bottom: 0.6rem; }
  .beat-2 > .ascii-graphic { justify-self: start; }
  .slogan { font-size: clamp(2.15rem, 11vw, 3rem); }
  .wordmark { width: 190px; margin-bottom: 1.4rem; }
  .ascii-graphic { letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

::selection { background: var(--ember); color: var(--paper); }

/* The privacy page: one column of plain text in the deck look. */
.legal {
  max-width: 46rem;
  padding: var(--pad);
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.legal h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
}

.legal .wordmark {
  width: 190px;
  margin: 0 0 2.4rem;
}

.legal a {
  color: var(--ink);
  text-decoration-color: var(--ember);
}

/* The password page in front of the private deck (worker/deck.mjs). */
.deck-gate form {
  display: grid;
  gap: 0.6rem;
  max-width: 22rem;
  margin-top: 1.6rem;
}

.deck-gate label {
  font-size: 0.9rem;
  font-weight: 600;
}

.deck-gate input,
.deck-gate button {
  min-height: 2.9rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.deck-gate input[aria-invalid="true"] {
  border: 2px solid var(--ember);
}

.deck-gate button {
  justify-self: start;
  border-color: var(--ember);
  cursor: pointer;
}

.deck-gate input:focus-visible,
.deck-gate button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.deck-wrong {
  margin: 0;
  color: var(--ember);
  font-size: 0.9rem;
}
