/* Starflood website: one screen each. Tokens from the Starflood brand (Deep space theme). */
:root {
  --void: #050b12;
  --deep: #0b1a24;
  --line: #35514e;
  --starlight: #e0e8d9;
  --haze: #8fa59e;
  --mint: #80e1bb;
  --on-mint: #050b12;
  --gold: #e4ba70;
  --danger: #ff6a55;

  --font-display: Michroma, Arial, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 3px;
  --gutter: 16px;
  color-scheme: dark;
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--void);
  color: var(--starlight);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* A page is one screen: the wordmark on top, the content in the middle, a line at the bottom. The faint home-world
   glow in the lower left corner is the only gradient. */
.screen {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(80% 80% at 8% 100%, #0f2a2e 0%, var(--void) 70%) no-repeat;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }

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

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: var(--gutter); }

.top { padding-block: 24px; }
.brand { display: inline-block; }
.brand img { width: 150px; }
.foot { padding-block: 24px; }

/* Type */
.display-xl, .display-l {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0; text-wrap: balance;
}
.display-xl { font-size: clamp(24px, 3.9vw, 38px); line-height: 1.15; letter-spacing: .08em; }
.display-l  { font-size: clamp(22px, 4vw, 32px); line-height: 1.15; letter-spacing: .08em; }

.label {
  margin: 0; font: 500 12px/1.4 var(--font-data); letter-spacing: .14em; text-transform: uppercase; color: var(--haze);
}
.lead { font-size: 19px; line-height: 1.5; max-width: 46ch; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--haze); }

/* Links and buttons */
a { color: var(--mint); }
.btn {
  display: inline-block; background: var(--mint); color: var(--on-mint); text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--font-body); padding: 13px 20px; border-radius: var(--radius-sm); border: 1px solid var(--mint);
}
.btn:hover { background: var(--starlight); border-color: var(--starlight); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* The landing page */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: center;
  padding-block: 24px 48px;
}
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-mark img { width: 100%; max-width: 460px; margin-inline: auto; animation: rise 1.2s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translate(-16px, 16px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .hero-mark { order: -1; }
  .hero-mark img { max-width: 220px; margin-inline: 0; }
}

/* The playtest's door */
.gate { display: grid; gap: 20px; align-content: center; justify-items: start; padding-block: 24px 48px; }
.code { display: grid; gap: 8px; width: 100%; max-width: 420px; margin-top: 8px; }
.code-row { display: flex; gap: 8px; }
.code input {
  flex: 1 1 0; min-width: 0; font: 500 16px/1 var(--font-data); letter-spacing: .06em; color: var(--starlight);
  background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px;
}
.wrong { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .hero-mark img { animation: none; }
}
