:root {
  --bg: #060b16;
  --ink: #eef3f8;
  --mute: #a3b3c6;
  --faint: #6f8197;
  --line: #1c2a3d;
  --cyan: #5fd4e6;
  --cyan-ink: #04121a;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --gutter: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top, main, .foot { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { padding-top: 64px; }
.mark { font-weight: 700; font-size: 20px; letter-spacing: .02em; text-decoration: none; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: 50px; line-height: 1.06; }
h2 { font-size: 40px; line-height: 1.1; }
.ln { display: block; white-space: nowrap; }

/* Hero: copy column + the bridge window */
.hero { display: grid; grid-template-columns: 440px 1fr; gap: 64px; padding-top: 112px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; }
@media (min-width: 1101px) { .hero-copy { height: calc((min(100vw, 1440px) - 2 * var(--gutter) - 504px) * .75); } .hero-copy .join { margin-top: auto; } }
.lede { color: var(--mute); margin-top: 28px; max-width: 34ch; }

.join { margin-top: 40px; display: grid; grid-template-columns: 1fr auto; gap: 12px; max-width: 400px; }
.join input { min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #2b3d55; border-radius: 6px; background: #0b1424; color: var(--ink); font: inherit; }
.join input::placeholder { color: var(--faint); }
.join input:focus-visible, .join button:focus-visible, .course button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.join button { height: 52px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--cyan); color: var(--cyan-ink); font: 700 15px var(--mono); cursor: pointer; white-space: nowrap; }
.join button:hover { background: #82e0ee; }
.join button:disabled { opacity: .6; cursor: default; }
.join .note { grid-column: 1 / -1; color: var(--faint); font-size: 13px; line-height: 1.6; margin-top: 4px; }
.join.done input, .join.done button { display: none; }
.join.done .note { color: var(--ink); font-size: 15px; margin-top: 0; }

.store { margin-top: 20px; font-size: 13px; }
.store a { color: var(--mute); text-decoration: none; border-bottom: 1px solid #2b3d55; padding-bottom: 2px; }
.store a:hover { color: var(--ink); }

.view { margin: 0; }
.window img { width: 100%; image-rendering: pixelated; aspect-ratio: 4 / 3; }
.course { list-style: none; display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding: 0 4px; }
.course button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; border-radius: 50%; opacity: .45; transition: opacity .2s; }
.course button.wide { width: 64px; }
.course button img { width: 32px; image-rendering: pixelated; }
.course button.wide img { width: 48px; }
.course button:hover, .course button[aria-pressed="true"] { opacity: 1; }
.course button[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }

/* The warning: the real opening screen beside one paragraph */
.warning { display: grid; grid-template-columns: 440px 1fr; gap: 80px; align-items: center; margin-top: 200px; }
.warning .frame { width: 440px; border-radius: 4px; }
.warning-copy { max-width: 560px; }
.warning-copy p { color: var(--mute); margin-top: 28px; max-width: 52ch; }

video.clip { display: block; width: 100%; height: auto; background: #000; border-radius: 4px; }

/* Worlds and fixes: rows of real looping clips */
.worlds, .fixes, .crew, .route { margin-top: 200px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.grid4 figure { margin: 0; }
.grid4 figcaption { margin-top: 16px; color: var(--mute); font-size: 14px; line-height: 1.6; max-width: 30ch; }
.grid4 figcaption b { display: block; color: var(--ink); font-weight: 700; }
.fixes-head p { color: var(--mute); max-width: 56ch; margin-top: 24px; }

/* Crew: the in-game busts, each with a real line */
.sub { color: var(--mute); max-width: 56ch; margin-top: 24px; }

.cast { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.cast li { border-top: 1px solid var(--line); padding-top: 28px; }
.cast img { width: 96px; height: 88px; image-rendering: pixelated; }
.who { margin-top: 20px; font-weight: 700; font-size: 14px; }
.who span { display: block; font-weight: 400; color: var(--faint); margin-top: 2px; }
.cast blockquote { margin: 16px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); text-wrap: pretty; }

/* Route: the star map and the second sign-up */
.route { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.route-copy p { color: var(--mute); margin-top: 24px; max-width: 52ch; }
.route .join { margin-top: 36px; }

.foot { display: flex; justify-content: space-between; gap: 24px; padding-top: 120px; padding-bottom: 64px; color: var(--faint); font-size: 13px; }
.foot nav { display: flex; gap: 28px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero, .warning { grid-template-columns: 1fr; gap: 56px; }
  .grid4, .cast { grid-template-columns: repeat(2, 1fr); }
  .warning .frame { width: min(400px, 100%); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 14px; }
  .top { padding-top: 28px; }
  .mark { font-size: 17px; }
  h1 { font-size: 40px; }
  .ln { white-space: normal; }
  h2 { font-size: 32px; }
  .hero { padding-top: 56px; gap: 48px; }
  .lede { margin-top: 20px; }
  .join { margin-top: 32px; grid-template-columns: 1fr; }
  .course { margin-top: 18px; padding: 0; }
  .course button { width: 36px; height: 44px; }
  .course button.wide { width: 48px; }
  .course button img { width: 26px; }
  .course button.wide img { width: 39px; }
  .warning, .worlds, .fixes, .crew, .route { margin-top: 120px; }
  .warning { gap: 40px; }
  .grid4, .grid4.small { display: flex; gap: 16px; margin: 40px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .grid4::-webkit-scrollbar { display: none; }
  .grid4 figure { flex: 0 0 72%; scroll-snap-align: center; }
  .grid4.small figure { flex-basis: 60%; }
  .route { grid-template-columns: 1fr; }
  .cast { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 40px; }
  .cast blockquote { font-size: 21px; }
  .route { gap: 40px; }
  .warning .frame { width: 78%; }
  .foot { flex-direction: column; padding-top: 80px; padding-bottom: 40px; }
}
