:root { color-scheme: light dark; --bg: #fff; --fg: #1d2330; --muted: #5b6475; --line: #e3e6ec; --accent: #2f6fdf; }
/* The app's theme switch (data-theme on <html>) wins over the device setting. */
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #14171f; --fg: #e8ebf2; --muted: #a3aabb; --line: #2a2f3b; --accent: #7aa7ff; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #14171f; --fg: #e8ebf2; --muted: #a3aabb; --line: #2a2f3b; --accent: #7aa7ff; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 1.7rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 28px 0 6px; }
p, li { color: var(--fg); }
.muted { color: var(--muted); font-size: .9rem; }
a { color: var(--accent); }
nav { display: flex; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
section + section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
