:root {
  --ink: #07111a;
  --night: #0d1b27;
  --slate: #203b48;
  --paper: #f0deb0;
  --cream: #fff0b7;
  --signal: #f04b3e;
  --cyan: #58cfd0;
  --gold: #efb52d;
  --line: rgba(240, 222, 176, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(88, 207, 208, .05) 1px, transparent 1px) 0 0 / 100% 32px,
    radial-gradient(circle at 78% 8%, #163241 0, transparent 32rem),
    var(--ink);
  font-family: "American Typewriter", "Courier Prime", monospace;
  letter-spacing: .03em;
}

a { color: inherit; }
.masthead {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 26, .92);
  backdrop-filter: blur(12px);
  text-transform: uppercase;
  font-size: 12px;
}
.brand { font-weight: 900; text-decoration: none; font-size: 18px; }
.brand span { color: var(--signal); }
nav { display: flex; gap: clamp(16px, 4vw, 42px); }
nav a { text-decoration: none; }
nav a:hover { color: var(--cyan); }
.mini-download { justify-self: end; color: var(--gold); font-weight: 900; }

main { overflow: hidden; }
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(480px, 1.18fr);
  gap: clamp(34px, 6vw, 100px);
  align-items: center;
  padding: clamp(56px, 8vw, 120px) clamp(18px, 6vw, 96px);
}
.eyebrow, .section-number {
  margin: 0 0 22px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}
h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(72px, 11vw, 180px);
  line-height: .72;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--cream);
}
h1 span, h1 em { display: block; }
h1 em { color: var(--signal); font-style: normal; margin-left: .45em; }
.lede { max-width: 33rem; margin: 38px 0 28px; font-size: clamp(18px, 2vw, 25px); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 14px 18px;
  border: 1px solid var(--gold);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.button.primary { color: var(--ink); background: var(--gold); }
.button.primary:hover { background: var(--cream); }
.button.secondary:hover { color: var(--cyan); border-color: var(--cyan); }
.release-stats { display: flex; gap: 28px; margin: 38px 0 0; }
.release-stats div { border-left: 2px solid var(--signal); padding-left: 10px; }
.release-stats dt { font-size: 9px; text-transform: uppercase; color: var(--cyan); }
.release-stats dd { margin: 4px 0 0; font-size: 13px; }

figure { margin: 0; }
.screen img {
  display: block;
  width: 960px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.screen-frame { padding: clamp(8px, 1.4vw, 18px); background: var(--paper); box-shadow: 18px 18px 0 var(--signal); }
.hero-screen { transform: rotate(1deg); }
.hero-screen figcaption { margin: 30px 0 0 20px; font-size: 10px; text-transform: uppercase; }
.hero-screen figcaption span { color: var(--gold); margin-right: 12px; }

.rule {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 50px;
  padding: clamp(70px, 10vw, 150px) clamp(18px, 8vw, 130px);
  background: var(--paper);
  color: var(--ink);
}
.rule .section-number { color: #236c73; }
h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -.04em; }
h2 strong { color: #b82f2b; font-weight: inherit; }
.rule > p:last-child { align-self: end; max-width: 42rem; margin: 0; font-size: 18px; line-height: 1.7; }

.sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.sequence article { padding: clamp(28px, 4vw, 60px); background: var(--night); }
.sequence-index { color: var(--signal); font-weight: 900; }
.screen.small { border: 1px solid var(--slate); background: var(--ink); }
.sequence h3 { margin: 28px 0 12px; color: var(--cream); font-size: 24px; }
.sequence article > p:last-child { line-height: 1.6; color: #b9c7bf; }

.dispatch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 140px);
  padding: clamp(70px, 10vw, 150px) clamp(18px, 8vw, 130px);
  border-top: 1px solid var(--line);
}
.dispatch h2 { color: var(--cream); }
.dispatch > div > p:last-child { max-width: 28rem; line-height: 1.7; }
.controls { border-top: 1px solid var(--line); }
.controls div { display: grid; grid-template-columns: 92px 1fr; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); }
kbd { color: var(--gold); font: 900 15px inherit; }
.controls span { color: #b9c7bf; }
.controls b { display: block; margin-bottom: 4px; color: var(--cream); text-transform: uppercase; font-size: 11px; }

.finale {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: clamp(70px, 10vw, 150px) clamp(18px, 8vw, 130px);
  background: var(--signal);
  color: var(--ink);
}
.finale .section-number { color: var(--ink); }
.finale p:not(.section-number) { margin: 28px 0; max-width: 34rem; line-height: 1.7; }
.finale .button.primary { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.title-screen { box-shadow: -18px 18px 0 var(--gold); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px clamp(18px, 6vw, 96px); font-size: 10px; text-transform: uppercase; }
footer span { color: var(--signal); }

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero, .rule, .dispatch, .finale { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .sequence { grid-template-columns: 1fr; }
  .hero-screen { transform: none; }
  .rule > p:last-child { margin-top: 10px; }
}
@media (max-width: 520px) {
  h1 { font-size: 70px; }
  .release-stats { gap: 14px; }
  .hero { padding-top: 50px; }
  .screen-frame { box-shadow: 8px 8px 0 var(--signal); }
  footer { display: block; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

