:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #16202a;
  --muted: #5a6571;
  --line: #e0ddd4;
  --accent: #0b6a85;
  --accent-ink: #ffffff;
  --art-a: #0b6a85;
  --art-b: #16324a;
  --todo-bg: #fff0a8;
  --todo-text: #5a4500;
  --radius: 10px;
  --wrap: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141a;
    --surface: #151d25;
    --text: #e5eaee;
    --muted: #98a5b1;
    --line: #26313c;
    --accent: #5bbbd6;
    --accent-ink: #0a1217;
    --art-a: #11607a;
    --art-b: #0c1c2a;
    --todo-bg: #4a3c00;
    --todo-text: #ffe48a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand svg { width: 28px; height: 28px; flex: none; }

.site-nav { display: flex; gap: 20px; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* Main */
main { padding: 56px 0 72px; }

section { margin-top: 64px; }
section:first-child { margin-top: 0; }

h1, h2, h3 { letter-spacing: -0.015em; }

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 20ch;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

h2 { font-size: 24px; margin: 0 0 16px; }
h3 { font-size: 22px; margin: 0 0 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.game-art {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--art-a), var(--art-b));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 650;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 16px;
}

@media (max-width: 720px) {
  .game { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}

.status {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 20px;
  margin: 16px 0 20px;
  font-size: 15px;
}

.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}

.button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.prose { max-width: 65ch; }
.prose p { margin: 0 0 12px; }

/* Legal and contact pages */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin: 0 0 6px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.footer-nav a { color: var(--muted); }

/* Placeholders still to fill in. Search the source for class="todo". */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 4px;
  border-radius: 3px;
}
