/* Shared by Cyfa's text pages (how-to-play, privacy, 404). The game page has its own
   styles in index.html. Same palette and fonts as the game. */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-mono.woff2") format("woff2"); }

:root {
  --ground: #E9EDF4; --surface: #FFFFFF; --sunk: #DCE2EC; --ink: #131C33; --muted: #5A6684;
  --line: #C9D1DF; --brass: #946414; --hint: #2F54A8;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #0E1830; --surface: #16233F; --sunk: #1C2B4D; --ink: #EDE6D3; --muted: #8F9BBA;
          --line: #283A62; --brass: #D9AE58; --hint: #9DB8FF; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--f-body); }
main { max-width: 680px; margin: 0 auto; padding: 28px 20px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
header.top a { color: var(--muted); font-size: 15px; }
header.top a:first-child { color: var(--ink); }
.logo { height: 40px; width: auto; fill: currentColor; display: block; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; text-wrap: balance; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { max-width: 65ch; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }
a { color: var(--brass); }
.lead { font-size: 19px; }
.muted { color: var(--muted); }
.mono, code { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
code { background: var(--sunk); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.box div { padding: 2px 0; }
.boxes { display: grid; gap: 10px; }
.box .cap { font-family: var(--f-body); color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.play { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 12px; background: var(--brass); color: #fff; font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) { .play { color: #1A1405; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
