:root {
    --ink: #17211c;
    --muted: #66736b;
    --paper: #f6f7f2;
    --surface: #ffffff;
    --line: #dde5de;
    --forest: #173f31;
    --forest-2: #0e2a21;
    --sage: #78907f;
    --gold: #c4a15f;
    --soft: #edf2ec;
    --danger: #9d2f2f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(23, 63, 49, .12);
    background: rgba(246, 247, 242, .94);
    backdrop-filter: blur(18px);
}

.nav,
.hero,
.section,
.page-hero,
.breadcrumbs,
.site-footer,
.article-page {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.nav {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    font-weight: 800;
}

.brand img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(23, 63, 49, .10);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.nav-links a:hover,
.category-link,
.breadcrumbs a:hover,
.article-content a {
    color: var(--forest);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
}

.nav-cta,
.button.primary {
    color: #fff;
    background: var(--forest);
}

.button.secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .78);
}

.breadcrumbs {
    padding: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #9aa59e;
}

.hero {
    min-height: calc(100svh - 92px);
    display: grid;
    grid-template-columns: minmax(500px, 1fr) minmax(500px, .96fr);
    align-items: center;
    gap: 48px;
    padding: 74px 0 70px;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.article-header h1,
.article-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}

.hero-copy,
.hero-visual {
    min-width: 0;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(50px, 5.4vw, 80px);
    line-height: .95;
}

.hero p,
.page-hero p {
    max-width: 690px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-visual {
    position: relative;
    min-height: 560px;
    border-radius: 8px;
}

.hero-visual > img {
    width: 100%;
    height: 560px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 34px 86px rgba(23, 63, 49, .18);
}

.hero-card {
    position: absolute;
    left: -34px;
    bottom: -34px;
    width: min(390px, calc(100% - 28px));
    padding: 28px;
    color: #fff;
    background: var(--forest);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(14, 42, 33, .28);
}

.hero-card span,
.article-meta,
.category-link {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-card span {
    color: var(--gold);
}

.hero-card strong {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.05;
}

.hero-card p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.65;
}

.section {
    padding: 74px 0;
}

.muted-section {
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.02;
}

.section-heading p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.article-grid.single {
    grid-template-columns: 1fr;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.article-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft);
}

.article-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

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

.article-card h3 {
    margin: 12px 0;
    font-size: 24px;
    line-height: 1.12;
}

.article-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: var(--sage);
}

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

.category-card,
.side-panel,
.contact-card,
.contact-aside,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.category-card {
    padding: 24px;
}

.category-card h3,
.side-panel h2,
.contact-card h2,
.contact-aside h2 {
    margin: 0 0 10px;
}

.category-card p,
.contact-aside p,
.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    padding: 74px 0 28px;
}

.page-hero.compact {
    max-width: 900px;
}

.two-columns,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    align-items: start;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.side-panel a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.side-panel a.active,
.side-panel a:hover {
    color: var(--forest);
}

.empty-state {
    padding: 34px;
}

.article-page {
    padding: 54px 0 84px;
}

.article-header {
    max-width: 850px;
}

.article-header h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
}

.article-header p {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.7;
}

.article-hero-image {
    margin: 36px 0 0;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.article-hero-image figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.article-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 760px);
    gap: 54px;
    align-items: start;
    margin-top: 48px;
}

.toc {
    position: sticky;
    top: 96px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.toc h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.toc a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.article-content {
    font-size: 18px;
    line-height: 1.82;
}

.article-content .lead {
    font-size: 20px;
    color: #334139;
}

.article-content h2 {
    margin: 44px 0 14px;
    font-size: 34px;
    line-height: 1.12;
}

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

.internal-links,
.faq,
.sources {
    margin-top: 46px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.internal-links ul,
.sources ul {
    padding-left: 22px;
}

.faq details {
    margin: 12px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
}

.contact-card,
.contact-aside {
    padding: 28px;
}

form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 750;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

label span {
    color: var(--danger);
    font-size: 13px;
}

.success-message {
    padding: 14px;
    border-radius: 6px;
    color: var(--forest-2);
    background: var(--soft);
}

.contact-aside a {
    display: inline-block;
    margin: 10px 0 22px;
    color: var(--forest);
    font-size: 20px;
    font-weight: 800;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 46px 0;
    color: rgba(255, 255, 255, .74);
    background: var(--forest-2);
    box-shadow: 0 0 0 100vmax var(--forest-2);
    clip-path: inset(0 -100vmax);
}

.site-footer img {
    border-radius: 8px;
}

.site-footer p {
    max-width: 420px;
    line-height: 1.7;
}

.site-footer nav {
    display: grid;
    align-content: start;
    gap: 12px;
}

@media (max-width: 920px) {
    .nav,
    .hero,
    .section,
    .page-hero,
    .breadcrumbs,
    .site-footer,
    .article-page {
        width: min(100% - 28px, 1160px);
    }

    .nav-links {
        display: none;
    }

    .hero,
    .two-columns,
    .contact-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 30px;
        padding-top: 48px;
    }

    .hero-copy,
    .hero-copy > *,
    .hero-visual {
        max-width: 100%;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-visual > img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .hero-card {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        margin-top: -44px;
    }

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

    .section-heading,
    .site-footer {
        align-items: start;
        flex-direction: column;
    }

    .side-panel,
    .toc {
        position: static;
    }
}

@media (max-width: 560px) {
    .hero h1,
    .article-header h1 {
        max-width: 100%;
        font-size: 34px;
        line-height: 1.06;
        overflow-wrap: anywhere;
    }

    .page-hero h1,
    .section-heading h2 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p,
    .article-header p,
    .article-content,
    .article-content .lead {
        font-size: 16px;
    }

    .hero-card {
        padding: 24px;
    }

    .hero-card strong {
        font-size: 22px;
        overflow-wrap: anywhere;
    }

    .hero-card p {
        overflow-wrap: anywhere;
    }

    .brand {
        font-size: 20px;
    }

    .brand img {
        width: 54px;
        height: 54px;
    }
}
