:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --surface: #f6f6f8;
    --text: #1c1c1e;
    --muted: #5f5f66;
    --rule: #e3e3e8;
    --accent: #0b64d0;
    --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #131316;
        --surface: #1d1d21;
        --text: #f2f2f5;
        --muted: #a0a0a8;
        --rule: #32323a;
        --accent: #6cb0ff;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    padding: 2.5rem 1rem 5rem;
    max-width: var(--measure);
    background: var(--bg);
    color: var(--text);
    font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    text-wrap: pretty;
}

h1,
h2 {
    line-height: 1.25;
    text-wrap: balance;
}

h1 {
    margin: 0 0 0.25rem;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

h2 {
    margin: 2.5rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: 1.2rem;
}

.tagline {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.05rem;
}

a {
    color: var(--accent);
    text-underline-offset: 0.15em;
}

dt {
    margin-top: 1.1rem;
    font-weight: 600;
}

dd {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

code {
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--surface);
    font-size: 0.9em;
}

/* A long repository URL, set on its own line so it wraps instead of
   overflowing the page on a phone. */
code.url {
    display: block;
    margin: 1rem 0;
    padding: 0.6rem 0.75rem;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.note {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.95rem;
}

.note :first-child { margin-top: 0; }
.note :last-child { margin-bottom: 0; }

footer {
    margin-top: 3.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.875rem;
}

nav {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

ul { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }
