:root {
    color-scheme: light;
    --ink: #111318;
    --muted: #59606c;
    --paper: #f7f4ee;
    --surface: #fffdf8;
    --line: #d8d1c5;
    --signal: #137f6b;
    --amber: #b45f06;
    --code: #20242c;
    --max: 1080px;
    --article: 760px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.72;
}

a {
    color: var(--signal);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--amber);
}

.site-header,
main,
.site-footer {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.site-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--ink);
    font-size: 15px;
    font-weight: 740;
    letter-spacing: 0;
    text-decoration: none;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    font-size: 14px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
}

.nav a:hover {
    color: var(--signal);
}

.hero,
.page-heading {
    padding: 76px 0 42px;
    border-bottom: 1px solid var(--line);
}

.hero h1,
.page-heading h1,
.article-header h1 {
    max-width: 900px;
    margin: 0;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 760;
    letter-spacing: 0;
}

.lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.55;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--signal);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 650;
}

.content-body {
    max-width: var(--article);
    padding: 36px 0;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
    margin: 42px 0 14px;
    line-height: 1.22;
    font-weight: 720;
}

.content-body h1 {
    font-size: 34px;
}

.content-body h2 {
    font-size: 28px;
}

.content-body h3 {
    font-size: 22px;
}

.content-body p,
.content-body ul,
.content-body blockquote,
.content-body pre {
    margin: 0 0 20px;
}

.content-body ul {
    padding-left: 1.3em;
}

.content-body blockquote {
    padding: 14px 0 14px 20px;
    color: var(--muted);
    border-left: 3px solid var(--signal);
}

.content-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.content-body p code,
.content-body li code {
    padding: 0.12em 0.32em;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
}

.content-body pre {
    overflow-x: auto;
    padding: 18px;
    color: #f3f4f6;
    background: var(--code);
    border-radius: 8px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.post-list {
    padding: 34px 0 60px;
}

.post-card {
    border-top: 1px solid var(--line);
}

.post-card a {
    display: block;
    padding: 22px 0;
    color: var(--ink);
    text-decoration: none;
}

.post-card time {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.post-card h3 {
    margin: 7px 0 6px;
    font-size: 24px;
    line-height: 1.24;
}

.post-card p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.article {
    padding-bottom: 64px;
}

.article-header {
    max-width: 900px;
    padding: 72px 0 28px;
    border-bottom: 1px solid var(--line);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tags span {
    padding: 4px 8px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.muted {
    color: var(--muted);
}

.site-footer {
    padding: 28px 0 42px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }

    .nav {
        justify-content: flex-start;
    }

    .hero,
    .page-heading {
        padding: 46px 0 30px;
    }

    .hero h1,
    .page-heading h1,
    .article-header h1 {
        font-size: 34px;
    }

    .lead {
        font-size: 18px;
    }
}
