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

    --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: 22px 22px;

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

    line-height: 1.6;
}

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 {
    padding: 32px 0;
}

.site-name {
    font-size: 0.95rem;
    font-weight: 600;
}

main {
    padding: 100px 0 80px;
}

.intro {
    max-width: 650px;
}

h1 {
    margin: 0;

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

    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

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

    margin: 36px 0 0;

    color: #4f4e49;

    font-size: 1.15rem;
    line-height: 1.75;
}

.notes {
    margin-top: 140px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 16px;

    padding-bottom: 12px;

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

.section-header h2 {
    margin: 0;

    font-size: 1rem;
    font-weight: 400;
}

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

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

    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.empty-state {
    margin: 20px 0;

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

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

    .site-header {
        padding: 22px 0;
    }

    main {
        padding: 64px 0 56px;
    }

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

        line-height: 1.08;
    }

    .intro-text {
        margin-top: 28px;

        font-size: 1.05rem;
        line-height: 1.7;
    }

    .notes {
        margin-top: 90px;
    }

    .section-header {
        align-items: center;
    }
}

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

    main {
        padding-top: 52px;
    }

    h1 {
        font-size: 2.15rem;
    }

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

.post-list {
    margin-top: 8px;
}

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

    padding: 18px 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;
}

.post-item h3 {
    margin: 0;

    font-size: 1rem;
    font-weight: 400;
}

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

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

@media (max-width: 600px) {
    .post-item {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
}