:root {
  --amber: #FFC83D;
  --ink: #0B0B0C;
  --bg: #FFFFFF;
  --surface: #F2F2F4;
  --text: #0B0B0C;
  --muted: #66696F;
  --border: #D9DADF;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B0B0C; --surface: #1C1C1F; --text: #FFFFFF; --muted: #A6A9B0; --border: #33353B; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
/* Header and footer span the whole window; only the reading column is capped at 720px. */
header.top .wrap, footer.bottom .wrap { max-width: none; padding-left: 24px; padding-right: 24px; }
header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; letter-spacing: 3px; }
/* The mark is the in-app trophy (assets/images/trophy-*.png): white F on dark grounds, ink F on light — the <picture> picks by theme. */
.brand img { width: 32px; height: 32px; display: block; }
nav.links { display: flex; gap: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
nav.links a { text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { color: var(--text); }
main { flex: 1; padding: 36px 0 64px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 36px 0 10px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.draft {
  display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 800; vertical-align: middle;
}
.card { background: var(--surface); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
ol, ul { padding-left: 22px; }
li + li { margin-top: 4px; }
.btn {
  display: inline-block; background: var(--amber); color: var(--ink); text-decoration: none;
  font-weight: 800; padding: 12px 20px; border-radius: 12px;
}
footer.bottom { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
footer.bottom .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.bottom a { text-decoration: none; }
.hero { text-align: center; padding: 48px 0 24px; }
.hero img { width: 120px; height: 120px; display: block; margin: 0 auto; }
.hero h1 { font-size: 40px; margin-top: 18px; font-weight: 900; letter-spacing: 4px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 480px; margin: 8px auto 0; }
.pill { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
