:root {
  --bg: #fff7e6;
  --ink: #3b2f2a;
  --soft: #7a6a60;
  --card: #ffffff;
  --accent: #ffc9a8;
  --accent-ink: #5a3a28;
  --line: #f0dcc4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #231d1a;
    --ink: #f3e8dc;
    --soft: #bba99b;
    --card: #2e2622;
    --accent: #7a4d36;
    --accent-ink: #fff1e6;
    --line: #43372f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 52rem; margin: 0 auto; padding: 1.5rem 16px 3rem; }
header.site { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
header.site a.brand { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
nav a { color: var(--soft); margin-left: 1rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
p, li { max-width: 40rem; }
a { color: var(--accent-ink); }
.lead { color: var(--soft); font-size: 1.15rem; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
footer { margin-top: 3rem; color: var(--soft); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 1rem; }
footer a { color: var(--soft); }

/* Home page: a big picture tile per game, no reading needed. */
body.home { text-align: center; }
body.home .tiles { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; padding: 0; list-style: none; margin: 2rem 0; }
body.home .tile {
  display: block;
  width: min(14rem, 70vw);
  padding: 1rem;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--ink);
}
body.home .tile:hover, body.home .tile:focus-visible { border-color: var(--accent); outline: none; }
body.home .tile img { width: 100%; height: auto; border-radius: 1.5rem; display: block; }
body.home .tile strong { display: block; margin-top: 0.5rem; font-size: 1.3rem; }
body.home .grownups { font-size: 0.8rem; color: var(--soft); margin-top: 3rem; }
body.home p { margin-left: auto; margin-right: auto; }
