* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --bg: #fbfaf7;
    --text: #1e1f1c;
    --muted: #62645f;
    --line: #dedbd2;
    --accent: #315f5a;
}

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

a {
    color: var(--text);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

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

h1 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

h2 {
    font-size: 1.08rem;
    letter-spacing: 0;
    margin-bottom: 0;
}

h3 {
    font-size: 0.98rem;
    margin-bottom: 0;
}

p {
    margin-bottom: 1rem;
}

pre {
    overflow-x: auto;
    font-size: 0.85rem;
}

li {
    margin-bottom: 0.45em;
}

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

#content {
    margin: 0 auto;
    max-width: 980px;
    padding: 20px 26px 32px;
}

#intro {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(180px, 1fr) minmax(300px, 2fr);
    margin-bottom: 16px;
    padding-bottom: 12px;
}

#intro h1 a {
    text-decoration: none;
}

.section-heading p,
.lead-copy p,
.project p {
    color: var(--muted);
}

#links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
    justify-content: flex-end;
    padding-top: 4px;
}

#links a {
    color: var(--muted);
    font-size: 0.86rem;
    text-decoration: none;
}

#links a:hover {
    color: var(--text);
}

.timeline-intro {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 8px;
    margin-bottom: 0;
    padding-bottom: 14px;
}

.timeline-intro p {
    color: var(--muted);
    margin-bottom: 0;
}

.tag,
.timeline time,
.date {
    color: var(--muted);
    font-size: 0.76rem;
}

.timeline-section {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.timeline-heading {
    padding: 14px 0;
}

.timeline-heading h2 {
    margin-bottom: 0;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline li {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: 72px 76px minmax(0, 1fr);
    margin: 0;
    padding: 5px 0;
}

.timeline p {
    margin-bottom: 0;
}

.timeline .note {
    color: var(--muted);
    grid-column: 3;
    margin-top: -3px;
}

.timeline .note a {
    color: var(--muted);
}

.timeline time {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tag {
    text-transform: lowercase;
    white-space: nowrap;
}

.post-shell {
    max-width: 780px;
}

.post-shell #intro {
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    padding-bottom: 12px;
}

.post {
    padding-top: 0;
    font-size: 0.96rem;
    line-height: 1.52;
}

.post-header {
    border-bottom: 0;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.post-header h1 {
    font-size: 1.18rem;
    margin-bottom: 5px;
}

.post-header .date {
    margin-bottom: 0;
    font-size: 0.76rem;
}

.post p {
    margin-bottom: 1.05rem;
}

sup {
    font-size: 0.8em;
    vertical-align: super;
}

sup a {
    text-decoration: none;
}

#footer {
    color: var(--muted);
    font-size: 0.86rem;
    padding-top: 4px;
}

@media (max-width: 820px) {
    #content {
        padding: 18px 16px 30px;
    }

    #intro {
        grid-template-columns: 1fr;
    }

    #intro {
        margin-bottom: 18px;
    }

    #links {
        justify-content: flex-start;
    }

    .timeline li {
        gap: 3px;
        grid-template-columns: 1fr;
    }

    .timeline .note {
        grid-column: auto;
        margin-top: 0;
    }
}
