:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --brand: #1f3a5f;
  --logo-card: #1f3a5f;
  --accent: #c8553d;
  --line: #e3dfd6;
  --radius: 14px;
  --max: 960px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161f;
    --surface: #1a2030;
    --ink: #e9edf5;
    --muted: #a3acbd;
    --brand: #8fb3e0;
    --logo-card: #2f5a8f;
    --accent: #e07a5f;
    --line: #2a3244;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-family: var(--serif);
  font-size: 1.15rem; font-weight: 700;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.logo-card { fill: var(--logo-card); }
.logo-accent { fill: var(--accent); }

.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15; margin: 0 0 16px; max-width: 18ch;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0; }

/* Sections */
section { padding: 40px 0; }
h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 18px; }
h3 { font-size: 1.1rem; margin: 28px 0 8px; }

.game-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.game-art {
  width: 120px; height: 120px; border-radius: 22px;
  background: linear-gradient(160deg, #2f5a8f, #1f3a5f 60%, #16294a);
  display: grid; place-items: center;
}
.game-art svg { width: 76px; height: 76px; }
.game-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.4rem; }
.game-card p { margin: 0; color: var(--muted); }
.badge {
  display: inline-block; margin-bottom: 10px; padding: 2px 10px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}

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

/* Long-form pages */
.page { padding-top: 48px; padding-bottom: 24px; }
.page h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 8px; }
.page .lede { color: var(--muted); margin: 0 0 28px; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .hero { padding-top: 48px; padding-bottom: 32px; }
  .game-card { grid-template-columns: 1fr; }
  .game-art { width: 96px; height: 96px; border-radius: 18px; }
  .game-art svg { width: 60px; height: 60px; }
}
