:root {
    --bg: #f3efe3;
    --bg-strong: #ded4b9;
    --surface: rgba(255, 251, 241, 0.82);
    --surface-strong: #fffaf0;
    --text: #203128;
    --muted: #5f6f5d;
    --line: rgba(32, 49, 40, 0.12);
    --accent: #8b5e34;
    --accent-dark: #684324;
    --leaf: #5c7a43;
    --shadow: 0 24px 60px rgba(74, 56, 22, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(124, 157, 84, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(193, 150, 95, 0.18), transparent 24%),
        linear-gradient(180deg, #ece5cf 0%, var(--bg) 36%, #f8f4e9 100%);
}

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

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 4rem;
}

.site-header,
.site-footer,
.featured-card,
.category-card,
.post-card,
.article-layout,
.page-intro {
    backdrop-filter: blur(14px);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-radius: 24px;
}

.site-header {
    position: sticky;
    top: 1rem;
    z-index: 2;
}

.brand {
    display: grid;
    gap: 0.2rem;
}

.brand-kicker,
.eyebrow,
.section-kicker,
.card-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    color: var(--accent-dark);
}

.brand-title {
    font-family: "Fraunces", serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    gap: 1rem;
}

.site-nav a {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
}

.site-nav a:hover,
.button:hover,
.pagination a:hover {
    background: rgba(92, 122, 67, 0.12);
}

.hero,
.section-grid,
.article-layout,
.page-intro {
    margin-top: 1.5rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hero-copy,
.article-header,
.article-body,
.page-intro {
    padding: 2rem;
}

.hero-copy h1,
.page-intro h1,
.article-header h1,
.section-grid h2,
.featured-card h2,
.post-card h2,
.post-card h3 {
    margin: 0;
    font-family: "Fraunces", serif;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    max-width: 11ch;
}

.hero-text,
.article-excerpt,
.post-card p,
.category-card p,
.featured-card p,
.page-intro p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.button,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    transition: background 180ms ease;
}

.button-primary {
    background: var(--leaf);
    color: #f5f1e6;
}

.button-secondary {
    border: 1px solid var(--line);
}

.featured-card,
.category-card,
.post-card {
    border-radius: 28px;
    padding: 1.5rem;
}

.section-grid {
    display: grid;
    gap: 1.25rem;
}

.category-cloud,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post-grid-full {
    margin-top: 1.5rem;
}

.post-card-full {
    min-height: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-list span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.1);
    color: var(--accent-dark);
    font-size: 0.84rem;
}

.article-layout {
    border-radius: 36px;
    overflow: hidden;
}

.article-header {
    background:
        linear-gradient(135deg, rgba(92, 122, 67, 0.2), rgba(139, 94, 52, 0.06)),
        var(--surface-strong);
}

.article-body {
    max-width: 72ch;
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-body p {
    margin: 0 0 1.2rem;
}

.meta-row,
.pagination {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination {
    margin-top: 1.5rem;
    padding: 1rem 0.25rem;
}

.site-footer {
    margin-top: 1.5rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero,
    .category-cloud,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .site-footer,
    .site-nav,
    .hero-actions,
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy,
    .article-header,
    .article-body,
    .page-intro {
        padding: 1.4rem;
    }
}
