:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --text: #2a211b;
  --muted: #6e6259;
  --border: #e8ded3;
  --accent: #d9541e;
  --accent-ink: #b8410f;
  --flame-a: #f7a531;
  --flame-b: #e0441a;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120f;
    --surface: #211a16;
    --text: #f3ebe3;
    --muted: #b3a597;
    --border: #3a2f28;
    --accent: #f27a3d;
    --accent-ink: #ff9a63;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.site-header nav { display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0; }

section { padding: 24px 0 48px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; }

/* game card */
.game-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.game-card img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.game-card .body { padding: 18px 20px 20px; }
.game-card h3 { margin: 0 0 4px; font-size: 22px; }
.game-card p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; margin-top: 12px;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink);
}

/* game page */
.game-head { display: flex; gap: 20px; align-items: center; padding: 40px 0 24px; }
.game-head img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.game-head h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); line-height: 1.1; }
.game-head p { margin: 4px 0 0; color: var(--muted); }
.banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.links a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); text-decoration: none; color: var(--text); font-size: 15px;
}
.links a:hover { border-color: var(--accent); }

/* long-form text */
.prose { max-width: 680px; padding: 40px 0 56px; }
.prose h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin: 0 0 6px; }
.prose .meta { color: var(--muted); margin: 0 0 32px; }
.prose h2 { text-transform: none; letter-spacing: 0; font-size: 20px; color: var(--text); margin: 32px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.breadcrumb { font-size: 15px; margin: 0 0 18px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; padding-bottom: 32px;
}
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .hero { padding: 48px 0 28px; }
  .game-head img { width: 72px; height: 72px; border-radius: 16px; }
  .site-header nav { gap: 14px; }
}

/* screenshot gallery */
.shots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
  margin: 8px 0 0; padding: 0; list-style: none;
}
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.shots.portrait { grid-template-columns: repeat(3, 1fr); }
.shots.portrait img { height: auto; aspect-ratio: 9 / 16; }
@media (max-width: 560px) { .shots.portrait { grid-template-columns: repeat(2, 1fr); } }
.game-card + .game-card { margin-top: 20px; }
