:root {
    --brand-primary: #9b2c2c;
    --bg-color: #fdfcf9;
    --text-color: #1c1917;
    --text-muted: #57534e;
    --text-light: #78716c;
    --border-color: #e7e5e4;
    --border-light: #f0eeec;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Source Serif 4', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.site-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.site-logo:hover { opacity: 0.7; }

.site-logo img {
    max-height: 48px;
}

.site-nav { display: flex; gap: 24px; }

.site-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
}

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

/* ── Post Feed ── */
.post-feed {
    display: flex;
    flex-direction: column;
}

.post-card {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-light);
}

.post-card:first-child { padding-top: 0; }
.post-card:last-child { border-bottom: none; }

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-link:hover .post-card-title {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.post-card-date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-bottom: 8px;
}

.post-card-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--text-color);
}

.post-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.post-card-excerpt p { margin: 0; }

/* Featured post */
.post-card.featured {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.featured-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

/* ── Article ── */
.article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.article-date {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.article-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.article-content {
    font-size: 17px;
    line-height: 1.65;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    margin: 64px 0 24px;
    color: var(--text-color);
}

.article-content h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 48px 0 16px;
    color: var(--text-color);
}

.article-content p {
    margin: 0 0 24px;
}

.article-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.article-content a:hover {
    opacity: 0.7;
}

.article-content a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.article-content blockquote {
    border-left: 2px solid var(--border-color);
    margin: 32px 0;
    padding: 0 0 0 24px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
}

.article-content blockquote p {
    margin: 0;
}

.article-image img {
    width: 100%;
    border-radius: 0;
}

/* ── Footer ── */
.site-footer {
    padding: 48px 0 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover { opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }

    .site-nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .post-card-title {
        font-size: 22px;
    }

    .article-title {
        font-size: 30px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    body {
        font-size: 16px;
    }

    .article-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .site-wrapper {
        padding: 0 16px;
    }

    .article-title {
        font-size: 26px;
    }
}
