:root {
  --bg: #fbf8f2;
  --ink: #1f2a33;
  --muted: #5d6b76;
  --accent: #e0a526;
  --accent-ink: #3a2a00;
  --card: #ffffff;
  --line: #e7e1d6;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191e;
    --ink: #eef2f5;
    --muted: #a3b0ba;
    --card: #1c232a;
    --line: #2b343c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

header.site { padding: 26px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 900;
}
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--ink); }

.hero { padding: 48px 0 36px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0; }

h2 { font-size: 22px; margin: 40px 0 14px; letter-spacing: -0.01em; }
.games { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.game { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.game h3 { margin: 0 0 6px; font-size: 19px; }
.game p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, transparent); }

.doc h1 { font-size: 34px; margin: 24px 0 6px; letter-spacing: -0.02em; }
.doc .meta { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.doc li { margin: 4px 0; }

footer.site { margin-top: 64px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
