:root {
    color-scheme: light dark;
    --background: #f8f8f8;
    --text: #1f1f1f;
    --secondary: #595959;
    --border: #dfdfdf;
    --accent: #516b0f;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #191918;
        --text: #dcdcdc;
        --secondary: #adadad;
        --border: #3a3936;
        --accent: #bbe949;
    }
}

body {
    background: var(--background);
    color: var(--text);
    margin: 0 auto;
    max-width: 42rem;
    padding: 0 1.5rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

header, footer {
    padding: 1.25rem 0;
    color: var(--secondary);
}

header { border-bottom: 1px solid var(--border); }
footer { border-top: 1px solid var(--border); }
main { padding: 2.75rem 0; min-height: 40vh; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.25rem; }
a { color: var(--accent); text-underline-offset: .2em; }
.brand { color: var(--text); font-size: 1.25rem; font-weight: 750; margin-inline-end: auto; }
h1, h2 { line-height: 1.25; }
h1 { font-size: clamp(2rem, 8vw, 3.5rem); margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 .5rem; }
p { margin: .6rem 0; }
.lead { font-size: 1.125rem; }
.updated { color: var(--secondary); }
