/* The download site's look (site/index.html, the changelog page). Same tokens as site/stats/template.html. */
:root {
  color-scheme: light;
  --bg: #eef1ef; --surface: #ffffff; --sunk: #e2e7e4; --line: #c9d1cd;
  --fg: #1d2428; --muted: #59656b; --accent: #2f55a4; --accent-soft: #dde5f5;
  --brass: #b5893b;
  --font-display: "Pixelify Sans", "Courier New", monospace;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15191c; --surface: #1d2327; --sunk: #12161a; --line: #323b41;
    --fg: #e4e9e6; --muted: #9aa6ab; --accent: #8fb0f0; --accent-soft: #233150;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15191c; --surface: #1d2327; --sunk: #12161a; --line: #323b41;
  --fg: #e4e9e6; --muted: #9aa6ab; --accent: #8fb0f0; --accent-soft: #233150;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
.wrap { max-width: 860px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-left, 0px)) 48px max(16px, env(safe-area-inset-right, 0px)); }
h1, h2 { font-family: var(--font-display); letter-spacing: .02em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 500; margin-top: 1.8em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hero { display: flex; gap: 20px; align-items: center; }
.hero img { width: 96px; height: 96px; image-rendering: pixelated; flex: none; }
.tagline { font-size: 1.1rem; max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-data); font-size: .85rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card ol { margin: .4em 0 1em; padding-left: 1.3em; }
.card li { margin: .25em 0; }
.button { display: inline-block; background: var(--accent); color: var(--surface); text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: var(--r); }
.button:hover { filter: brightness(1.08); }
.copy { display: flex; gap: 6px; align-items: stretch; margin: .3em 0 .2em; }
.copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; font-family: var(--font-data); font-size: .8rem; }
.copy button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: var(--r); padding: 0 10px; cursor: pointer; }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; list-style: none; }
.release { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.release h2 { margin-top: 0; font-size: 1.3rem; }
.release ul { margin: .3em 0 .6em; padding-left: 1.2em; }
details summary { cursor: pointer; color: var(--accent); }
footer { margin-top: 40px; color: var(--muted); font-size: .88rem; }
@media (max-width: 520px) { .hero { flex-direction: column; align-items: flex-start; } h1 { font-size: 2rem; } }
