:root {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --muted: #6b6b6b;
    --rule: #e0e0e0;
    --link: #1a1a1a;
    --max: 680px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --fg: #e8e8e8;
        --muted: #929292;
        --rule: #2b2b2b;
        --link: #e8e8e8;
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 0.25rem;
}

h2 {
    font-size: 1.05rem;
    margin: 2.5rem 0 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
}

p {
    margin: 0 0 1rem;
}

a:link, a:visited {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: var(--rule);
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-color: currentColor;
}

ul, ol {
    padding-left: 1.3rem;
    margin: 0 0 1rem;
}

li {
    margin-bottom: 0.4rem;
}

hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2.5rem 0;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--rule);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

pre {
    background: var(--rule);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

blockquote {
    margin: 0 0 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--rule);
    color: var(--muted);
}

.site-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.tagline {
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.links {
    margin: 1.5rem 0 0;
    color: var(--muted);
}

.links a {
    margin-right: 1rem;
}

.entry-list {
    list-style: none;
    padding-left: 0;
}

.entry-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.entry-list .date {
    color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.item {
    margin-bottom: 1.5rem;
}

.item .label {
    font-weight: 600;
}

.item .sub {
    color: var(--muted);
    font-size: 0.92rem;
}

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--muted);
}

nav.crumb {
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}
