:root {
    --soil: #241f1a;
    --bark: #3a2f27;
    --cedar: #6d3f34;
    --moss: #4f5b3e;
    --fern: #66724e;
    --stone: #8a8070;
    --clay: #b8a892;
    --linen: #eee8dc;
    --paper: #faf7ef;
    --white: #fffdf8;
    --border: rgba(58, 47, 39, 0.16);
    --shadow: 0 18px 45px rgba(36, 31, 26, 0.12);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--soil);
    background: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration-color: rgba(109, 63, 52, 0.35);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--cedar);
}

code {
    background: var(--linen);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1rem 0.3rem;
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
}

.narrow {
    width: min(calc(100% - 32px), 780px);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 10;
    background: var(--soil);
    color: var(--white);
    padding: 0.7rem 1rem;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(250, 247, 239, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--moss);
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.1rem;
    line-height: 1.1;
}

.brand small {
    color: var(--stone);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: Arial, sans-serif;
}

.site-nav a {
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--linen);
    color: var(--cedar);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--soil);
}

.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 18% 10%, rgba(102, 114, 78, 0.18), transparent 32%),
        linear-gradient(135deg, var(--paper), #e8dece);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 3rem;
}

.hero-copy h1,
.page-hero h1,
.article-header h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.35rem, 6vw, 5.8rem);
    line-height: 0.98;
}

.hero-copy p:not(.eyebrow),
.page-hero p,
.article-header p {
    max-width: 650px;
    color: var(--bark);
    font-size: 1.16rem;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--cedar);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.button.primary {
    background: var(--cedar);
    color: var(--white);
}

.button.secondary {
    border-color: var(--border);
    background: var(--white);
    color: var(--soil);
}

.hero-feature {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-feature a {
    text-decoration: none;
}

.hero-feature img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-feature div {
    padding: 1.2rem;
}

.hero-feature h2 {
    margin: 0 0 0.45rem;
    font-size: 1.55rem;
    line-height: 1.15;
}

.hero-feature p {
    margin: 0;
    color: var(--bark);
}

.section {
    padding: 64px 0;
}

.muted-band {
    background: var(--linen);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.section-heading h2,
.newsletter-panel h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
}

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

.post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.post-image img {
    width: 100%;
    aspect-ratio: 5 / 3.4;
    object-fit: cover;
}

.post-card-body {
    padding: 1rem;
}

.eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    color: var(--stone);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
}

.post-card h3 {
    margin: 0.65rem 0 0.45rem;
    font-size: 1.45rem;
    line-height: 1.15;
}

.post-card h3 a {
    text-decoration: none;
}

.post-card p {
    margin: 0 0 0.9rem;
    color: var(--bark);
}

.tag-row,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-row span,
.chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--linen);
    color: var(--bark);
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
    padding: 0.35rem 0.55rem;
    text-decoration: none;
}

.chip.is-active,
.chip:hover {
    background: var(--moss);
    color: var(--white);
}

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

.topic {
    display: block;
    min-height: 260px;
    border: 1px solid rgba(58, 47, 39, 0.22);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 1.25rem;
    text-decoration: none;
}

.topic span {
    color: var(--cedar);
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.topic h2 {
    margin: 3.5rem 0 0.5rem;
    font-size: 1.7rem;
    line-height: 1.1;
}

.topic p {
    margin: 0;
    color: var(--bark);
}

.newsletter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    padding: clamp(1.2rem, 4vw, 2rem);
}

.newsletter-panel p {
    max-width: 650px;
}

.page-hero {
    padding: 64px 0 40px;
    background: var(--linen);
}

.filter-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.search-field {
    display: grid;
    gap: 0.35rem;
    min-width: min(100%, 330px);
    color: var(--bark);
    font-family: Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
}

.search-field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--soil);
    font: inherit;
    font-weight: 400;
    padding: 0.8rem 1rem;
}

.empty-state {
    margin-top: 1.5rem;
    color: var(--bark);
}

.article {
    padding-bottom: 64px;
}

.article-header {
    padding: 64px 0 28px;
}

.article-meta {
    color: var(--stone);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.article-image img {
    width: 100%;
    max-height: 560px;
    border-radius: var(--radius);
    object-fit: cover;
}

.article-body {
    padding-top: 34px;
    font-size: 1.08rem;
}

.article-body h2,
.legal-copy h2 {
    margin: 2rem 0 0.45rem;
    font-size: 1.55rem;
    line-height: 1.15;
}

.article-body li + li {
    margin-top: 0.35rem;
}

.care-note {
    border-left: 4px solid var(--moss);
    background: var(--linen);
    padding: 1rem;
}

.site-footer {
    background: var(--soil);
    color: var(--linen);
    padding: 48px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.4rem;
}

.site-footer h2 {
    margin: 0 0 0.55rem;
    color: var(--white);
    font-size: 1.05rem;
}

.site-footer p,
.site-footer ul {
    margin: 0;
    color: rgba(238, 232, 220, 0.78);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer li + li {
    margin-top: 0.3rem;
}

.site-footer a {
    color: inherit;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(238, 232, 220, 0.18);
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 72px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        inset: 72px 16px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 0.5rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero {
        padding-top: 46px;
    }

    .hero-grid,
    .post-grid,
    .topic-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .newsletter-panel,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .topic {
        min-height: 210px;
    }
}

@media (max-width: 520px) {
    .container,
    .narrow {
        width: min(calc(100% - 24px), var(--max));
    }

    .brand small {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .article-header h1 {
        font-size: 2.35rem;
    }

    .section,
    .article-header,
    .page-hero {
        padding-block: 42px;
    }
}
