:root {
    --bg: #faf8f5;
    --text: #1f1d1b;
    --muted: #706b64;
    --link: #5f6f52;
    --border: #e4ded7;
    --code-bg: #f0ede8;
    --pre-bg: #f3f0eb;
    --border-dim: #f0ece6;
}

body {
    max-width: 46rem;
    margin: 3rem auto;
    padding: 0 1.25rem;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

header a {
    color: inherit;
    border-bottom: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

header a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 { color: var(--text); }
article > h1 { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: 1.5rem 0 -0.25rem; }
h1 { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: 1.5rem 0 0.3rem; }
h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin: 1.55rem 0 0.35rem; }
h3 { font-size: 1rem; font-weight: 700; line-height: 1.45; margin: 1.3rem 0 0.3rem; }
h4, h5, h6 { font-weight: 650; margin: 1rem 0 0.25rem; }

p {
    margin: 0 0 0.8rem;
}

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.15s;
}

a:hover {
    border-bottom-color: var(--link);
}

main > article {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
    margin: 0;
    padding: 0.45rem 0;
    border: 0;
}

main > article:only-child {
    display: block;
    margin-bottom: 1rem;
    padding: 0;
}

main > article + article {
    border-top: 1px solid var(--border-dim);
    padding-top: 0.55rem;
}

main > article > a {
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 0;
    text-decoration: none;
    line-height: 1.35;
    color: var(--text);
}

main > article > a:hover {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

article > time {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

article > h1 + time {
    margin-bottom: 1.25rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    background: var(--code-bg);
    padding: 0.15em 0.35em;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--text);
}

pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    background: var(--pre-bg);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0.75rem 0;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

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

ul, ol {
    padding-left: 1.5rem;
    margin: 0 0 0.5rem;
}

li {
    margin-bottom: 0.15rem;
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1c1b1a;
        --text: #e8e4df;
        --muted: #a19b93;
        --link: #a8ba9a;
        --border: #363330;
        --code-bg: #282725;
        --pre-bg: #242321;
        --border-dim: #2e2c2a;
    }
}

@media (max-width: 520px) {
    main > article {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}
