/* Shared look for the home, about and 404 pages. The game pages carry their own styles. */
:root {
  --bg: #f6f1e7; --surface: #fffaf0; --ink: #1d2433; --muted: #6b6f7b; --line: #d9d0bf; --tile: #ece4d3;
  --accent: #1f7a6d; --accent-ink: #ffffff; --warm: #c8553d;
  --shadow: 0 1px 0 rgba(29, 36, 51, .06), 0 10px 30px rgba(29, 36, 51, .08);
}
/* Dark colours, used only if a page sets data-theme="dark" (no toggle yet). */
:root[data-theme="dark"] {
  --bg: #12151c; --surface: #1a1f29; --ink: #ece6da; --muted: #9a9fab; --line: #2c3340; --tile: #262c38;
  --accent: #3fb39f; --accent-ink: #0d1117; --warm: #e0745c; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: inherit; text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: inherit; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
nav a:hover, nav a[aria-current="page"] { background: var(--tile); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
.serif { font-family: ui-serif, Georgia, "Times New Roman", serif; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); text-decoration: none;
  border-radius: 999px; padding: 10px 18px; font-weight: 700; border: 0; cursor: pointer; font-size: .95rem; }
.btn.alt { background: transparent; color: var(--ink); border: 1px solid var(--line); }
footer.site { border-top: 1px solid var(--line); margin-top: 56px; padding: 20px 0 32px; color: var(--muted); font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: inherit; }
@media (max-width: 480px) { nav a { padding: 5px 9px; font-size: .85rem; } .brand { font-size: 1.1rem; } }
/* Cluon puzzle club */
:root { --bg:#faf8f2; --surface:#fffefb; --ink:#253b32; --muted:#647168; --line:#dce1d7; --tile:#e3e9dd; --accent:#285b46; --shadow:none; }
.wrap { max-width:1000px; padding:0 28px; }
.top { padding:23px 0; }
.brand { font-size:1.9rem; letter-spacing:-.07em; }
nav a { font-size:.85rem; }
.btn { transition:transform .15s,box-shadow .15s; }
.btn:hover { transform:translateY(-2px); box-shadow:0 5px 12px #253b3215; }
a:focus-visible,button:focus-visible { outline:3px solid #b66b25; outline-offset:4px; }
.skip { position:absolute; left:16px; top:-80px; background:var(--ink); color:white; padding:10px; z-index:100; }
.skip:focus { top:10px; }
@media(max-width:480px) { .wrap { padding:0 18px; } .brand { font-size:1.7rem; } footer.site { margin-top:36px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; } }
