:root {
    --background: #faf9f5;
    --text: #22221f;
    --muted: #75746e;
    --line: #d9d7cf;
    --dot: rgba(45, 45, 40, 0.09);

    --grid: 22px;
    --page-width: 720px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);
    background-color: var(--background);

    background-image:
        radial-gradient(
            circle,
            var(--dot) 1px,
            transparent 1px
        );

    background-size: var(--grid) var(--grid);
    background-position: 0 11px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page {
    width: min(
        calc(100% - 48px),
        var(--page-width)
    );

    margin: 0 auto;
}

.site-header {
    height: calc(var(--grid) * 4);

    display: flex;
    align-items: center;
}

.site-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: var(--grid);
}

main {
    padding:
        calc(var(--grid) * 4)
        0
        calc(var(--grid) * 4);
}

.intro {
    max-width: 650px;
}

h1 {
    margin: 0;

    font-size: clamp(
        2.5rem,
        7vw,
        4.4rem
    );

    font-weight: 400;
    line-height: calc(var(--grid) * 3);

    letter-spacing: 0;

    font-kerning: none;
    font-variant-ligatures: none;
    font-feature-settings:
        "kern" 0,
        "liga" 0;
}

.intro-text {
    max-width: 570px;

    margin:
        calc(var(--grid) * 2)
        0
        0;

    color: #4f4e49;

    font-size: 1.15rem;
    line-height: var(--grid);
}

.notes {
    margin-top: calc(var(--grid) * 6);
}

.section-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    height: calc(var(--grid) * 2);

    border-bottom: none;
}

.section-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: calc(var(--grid) / 4);

    height: 1px;

    background: var(--line);
}

.section-header h2 {
    margin: 0;

    font-size: 1rem;
    font-weight: 400;
    line-height: var(--grid);
}

.section-header span {
    color: var(--muted);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 0.7rem;
    line-height: var(--grid);

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.empty-state {
    margin: var(--grid) 0;

    color: var(--muted);
    font-style: italic;

    line-height: var(--grid);
}

.post-list {
    margin: 0;
}

.post-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 24px;

    min-height: calc(var(--grid) * 3);

    padding:
        var(--grid)
        0;

    border-bottom: 1px solid var(--line);
}

.post-item .post-meta {
    margin: 0;

    color: var(--muted);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 0.75rem;
    line-height: var(--grid);
}

.post-item h3 {
    margin: 0;

    font-size: 1rem;
    font-weight: 400;
    line-height: var(--grid);
}

.post-item h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-item > p:last-child {
    display: none;
}

@media (max-width: 600px) {
    .page {
        width: calc(100% - 32px);
    }

    .site-header {
        height: calc(var(--grid) * 3);
    }

    main {
        padding:
            calc(var(--grid) * 3)
            0
            calc(var(--grid) * 3);
    }

    h1 {
        font-size: clamp(
            2.2rem,
            12vw,
            3.2rem
        );

        line-height: calc(var(--grid) * 2);
    }

    .intro-text {
        margin-top: calc(var(--grid) * 2);

        font-size: 1.05rem;
        line-height: var(--grid);
    }

    .notes {
        margin-top: calc(var(--grid) * 4);
    }

    .post-item {
        grid-template-columns: 1fr;

        row-gap: 0;

        padding:
            var(--grid)
            0;
    }
}

@media (max-width: 380px) {
    .page {
        width: calc(100% - 24px);
    }

    h1 {
        font-size: 2.15rem;
        line-height: calc(var(--grid) * 2);
    }

    .intro-text {
        font-size: 1rem;
    }
}