:root {
    /* Content width and tokens */
    --w: 72ch;
    --page-pad: clamp(1rem, 5vw, 3rem);
    --fg: #111;
    --muted: #666;
    --bg: #fff;
    --link: #0a58ca;
}

@media (prefers-color-scheme: dark) {
    :root {
        --fg: #e6e6e6;
        --muted: #a8a8a8;
        --bg: #0b0b0b;
        --link: #7ab6ff;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font: 15px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

header,
footer,
main {
    max-width: var(--w);
    margin: 0 auto;
    padding: var(--page-pad);
}

main {
    min-height: 50vh;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 1.25em 0 0.5em;
}

p,
ul,
ol,
pre,
blockquote {
    margin: 1em 0;
}

a {
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: 2px;
}

ul#posts {
    list-style: none;
    padding: 0;
}

ul#posts li {
    padding: .5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

time {
    color: var(--muted);
    white-space: nowrap;
}

code,
pre {
    background: #f6f8fa;
    border: 1px solid #eee;
    border-radius: 6px;
}

code {
    padding: 0 .25rem;
}

pre {
    padding: .75rem;
    overflow: auto;
}

@media (prefers-color-scheme: dark) {
    code,
    pre {
        background: #0f1115;
        border-color: #1d2330;
    }
}

img {
    max-width: 100%;
    height: auto;
}

blockquote {
    border-left: 3px solid #e6e6e6;
    padding-left: 1rem;
    color: var(--muted);
}

hr {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 2rem 0;
}

footer {
    color: var(--muted);
    font-size: .85rem;
    border-top: 1px solid #eee;
    text-align: center;
    padding-top: .75rem;
}