:root {
    color-scheme: light dark;
    --bg: #fffef7;
    --fg: #1c1c24;
    --muted: #5c5c66;
    --accent: #1d5fa8;
    --line: #dddcd2;
    --code-bg: #f1f0e6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #10101a;
        --fg: #e4e4ec;
        --muted: #9a9aa8;
        --accent: #7fb2f0;
        --line: #2c2c3a;
        --code-bg: #1b1b28;
    }
}

body {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem;
    background: var(--bg);
    color: var(--fg);
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.55;
}
header, h1, h2, h3, h4, h5, h6 { font-family: system-ui, sans-serif; }

a { color: var(--accent); }

header nav ol {
    margin: 0;
    padding: 0 0 0.5rem;
    list-style: none;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}
header nav li { display: inline; }
header nav li + li::before { content: " / "; color: var(--muted); }
header nav a[aria-current] { color: inherit; text-decoration: none; }

h1 { line-height: 1.2; }
h2, h3 { margin-top: 1.75em; }
h2 + h3 { margin-top: 1em; }

img { max-width: 100%; height: auto; }
img.icon { height: 1em; width: auto; vertical-align: -0.1em; }
img.pixel { image-rendering: pixelated; }
img.banner { display: block; }

code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }
pre {
    padding: 0.75rem;
    overflow-x: auto;
    background: var(--code-bg);
    border-radius: 4px;
}
pre code { font-size: 1em; }

hr { border: 0; border-top: 1px solid var(--line); }

footer {
    margin-top: 3rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9em;
}
