
:root {
    --background: #faf9f6;
    --text: #252525;
    --muted: #66635f;
    --subtle: #8a8782;
    --accent: #9d633e;
    --border: #dedbd5;
    --font-body: Georgia, "Times New Roman", serif;
    --font-ui: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    max-width: 720px;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;

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

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-underline-offset: 0.15em;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.site-title a {
    color: var(--text);
    text-decoration: none;
}

.site-title span {
    color: var(--accent);
}

.site-header nav {
    display: flex;
    gap: 1.5rem;

    font-family: var(--font-ui);
    font-size: 0.8rem;
}

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

.site-header nav a:hover {
    color: var(--accent);
}

/* Page headings */

.page-header {
    margin: 5rem 0 4.5rem;
}

.page-title {
    margin: 0 0 0.75rem;

    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.subtitle {
    max-width: 550px;
    margin: 0;

    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Writing */

.writing > h2 {
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);

    font-size: 1.1rem;
    font-weight: 700;
}

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

.article-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.article-date {
    display: block;
    margin-bottom: 0.4rem;

    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-list h3 {
    margin: 0 0 0.4rem;

    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.4;
}

.article-list h3 a {
    color: var(--text);
    text-decoration: none;
}

.article-list h3 a:hover {
    color: var(--accent);
}

.article-list p {
    margin: 0;
    max-width: 580px;

    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Articles */

.post-header {
    margin-bottom: 2.5rem;
}

.post-header .article-date {
    margin-bottom: 0.75rem;
}

.post-header .page-title:last-child {
    margin-bottom: 0;
}

.prose {
    overflow-wrap: break-word;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 1.25rem;
}

.prose h2,
.prose h3,
.prose h4 {
    margin: 2.5rem 0 0.75rem;
    line-height: 1.3;
    text-wrap: pretty;
}

.prose h2 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 400;
}

.prose h4 {
    font-size: 1rem;
    font-weight: 700;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
}

.prose li + li {
    margin-top: 0.5rem;
}

.prose blockquote {
    margin: 1.75rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--border);
    color: var(--muted);
}

.prose blockquote > :last-child {
    margin-bottom: 0;
}

/* Footer */

.site-footer {
    margin-top: 6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);

    color: var(--subtle);
    font-family: var(--font-ui);
    font-size: 0.75rem;
}

.site-footer p {
    margin: 0;
}

/* Accessibility */

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Mobile */

@media (max-width: 600px) {
    body {
        padding: 2rem 1.25rem 3rem;
    }

    .page-header {
        margin: 4rem 0 3.5rem;
    }

    .page-title {
        font-size: 1.9rem;
    }

    .article-list h3 {
        font-size: 1.2rem;
    }

    .post-header {
        margin-bottom: 2rem;
    }

    .site-footer {
        margin-top: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

