/* System-font-only stack: no external font downloads, instant first paint,
   nothing to invalidate when Cloudflare caches the page. */
:root {
    --fg: #1a1a1a;
    --fg-muted: #6a6a6a;
    --bg: #faf8f3;
    --accent: #1a1a1a;
    --link-underline: rgba(26, 26, 26, 0.25);
}

@media (prefers-color-scheme: dark) {
    :root {
        --fg: #ececec;
        --fg-muted: #8a8a8a;
        --bg: #141414;
        --accent: #ececec;
        --link-underline: rgba(236, 236, 236, 0.3);
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Baskerville,
        "Times New Roman", "Droid Serif", Times, serif;
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    max-width: 36rem;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}

header .bio {
    color: var(--fg-muted);
    margin: 0 0 3rem;
    font-size: 1.05rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0 0 0.75rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--link-underline);
    transition: border-color 120ms ease-out;
}

a:hover, a:focus {
    border-bottom-color: var(--accent);
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--link-underline);
    color: var(--fg-muted);
    font-size: 0.85rem;
}

footer p {
    margin: 0;
}
