:root {
    --bg: #f7f2ea;
    --paper: #fffaf3;
    --ink: #27221d;
    --muted: #756b60;
    --line: #e6d9c8;
    --accent: #a86f3d;
    --accent-dark: #74451f;
    --green: #435944;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
}

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

img {
    max-width: 100%;
    display: block;
}

.site-header {
    background: rgba(255, 250, 243, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.topbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: Georgia, serif;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -1px;
}

.search-form {
    display: flex;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.search-form input {
    border: 0;
    padding: 13px 16px;
    flex: 1;
    font-size: 15px;
    outline: none;
}

.search-form button {
    border: 0;
    padding: 0 20px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.main-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 18px;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    color: var(--muted);
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--accent-dark);
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: stretch;
    margin-bottom: 34px;
}

.hero-text {
    background: var(--green);
    color: #fff;
    border-radius: 30px;
    padding: 46px;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
}

.hero-text .eyebrow {
    color: #e9c8a7;
}

h1, h2, h3 {
    line-height: 1.12;
    margin: 0 0 14px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -2px;
}

.hero-card, .article-card, .sidebar, .category-strip a, .newsletter-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(70, 52, 34, 0.06);
}

.hero-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.hero-card div {
    padding: 28px;
}

.hero-card h2 {
    font-family: Georgia, serif;
    font-size: 34px;
}

.category-pill {
    display: inline-flex;
    background: #f0dfca;
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 42px;
}

.category-strip a {
    padding: 20px;
}

.category-strip span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: start;
}

.section-title {
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.article-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.article-card-content {
    padding: 24px;
}

.article-card h2 {
    font-family: Georgia, serif;
    font-size: 26px;
}

.article-card p, .hero-card p, .sidebar p, .archive-header p, .lead {
    color: var(--muted);
}

.date, .byline {
    color: var(--muted);
    font-size: 14px;
}

.sidebar {
    padding: 26px;
    position: sticky;
    top: 140px;
}

.newsletter-box {
    margin-top: 20px;
    padding: 22px;
    background: #fff;
    box-shadow: none;
}

.archive-header, .article-header, .not-found {
    max-width: 820px;
    margin: 20px auto 34px;
    text-align: center;
}

.archive-header h1, .article-header h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 7vw, 76px);
    letter-spacing: -2px;
}

.archive-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.article-page {
    max-width: 900px;
    margin: 0 auto;
}

.article-main-image {
    width: 100%;
    height: min(520px, 60vw);
    object-fit: cover;
    border-radius: 30px;
    margin-bottom: 34px;
}

.article-body {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: clamp(26px, 5vw, 58px);
    font-size: 19px;
}

.article-body h2 {
    font-family: Georgia, serif;
    font-size: 34px;
    margin-top: 34px;
}

.article-body h2:first-child {
    margin-top: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding: 34px 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}

.site-footer > div {
    max-width: 1180px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

@media (max-width: 850px) {
    .topbar, .hero, .content-wrap, .site-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .hero {
        display: block;
    }

    .hero-text {
        margin-bottom: 20px;
        min-height: auto;
        padding: 34px;
    }

    .category-strip, .article-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .search-form {
        width: 100%;
    }

    main {
        padding-top: 22px;
    }
}
