/* DESIGN ONLY – Mobile First */
:root {
    --bg: #f4f5f2;
    --surface: #ffffff;
    --text: #1f2522;
    --muted: #68716c;
    --line: #d8ddd7;
    --accent: #315d4b;
    --accent-dark: #214235;
    --accent-soft: #dfe9e3;
    --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --max: 1120px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 40px;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.wrap {
    width: calc(100% - 28px);
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(244, 245, 242, .97);
    border-bottom: 1px solid rgba(216, 221, 215, .8);
}

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

.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-kicker {
    color: var(--muted);
    font-size: .72rem;
}

.brand-title {
    font-weight: 700;
    font-size: .98rem;
}

.nav-links {
    display: flex;
    gap: 14px;
}

.nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--muted);
    font-size: .88rem;
}

.hero {
    padding: 56px 0 68px;
}

.hero-grid {
    display: grid;
    gap: 34px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
}

.hero h1,
.section-head h2,
.background h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.025em;
}

.hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
    max-width: 10ch;
}

.lead {
    margin: 22px 0 0;
    max-width: 650px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-note {
    padding: 24px;
    background: var(--accent-soft);
    border: 1px solid #cad7cf;
    border-radius: var(--radius);
}

.note-label {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.hero-note p:last-child {
    margin: 0;
}

.topics,
.background {
    padding: 64px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2,
.background h2 {
    font-size: clamp(2.1rem, 9vw, 3.5rem);
}

.topic-grid {
    display: grid;
    gap: 14px;
}

.topic-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.topic-card h3 {
    margin: 0 0 10px;
    font-size: 1.32rem;
}

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

.background-grid {
    display: grid;
    gap: 28px;
    padding-top: 42px;
    border-top: 1px solid var(--line);
}

.background-copy {
    max-width: 720px;
    font-size: 1.08rem;
}

.background-copy p:first-child {
    margin-top: 0;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    padding: 26px 0 40px;
}

.footer-grid {
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--muted);
    font-size: .9rem;
}

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

.footer-links a {
    text-decoration: none;
}

@media (min-width: 700px) {
    .wrap {
        width: calc(100% - 40px);
    }

    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 900px) {
    .nav-links {
        gap: 24px;
    }

    .hero {
        padding: 96px 0 110px;
    }

    .hero-grid {
        grid-template-columns: 1.2fr .8fr;
        align-items: end;
        gap: 64px;
    }

    .hero h1 {
        font-size: clamp(4.7rem, 7vw, 6.8rem);
    }

    .topics,
    .background {
        padding: 90px 0;
    }

    .background-grid {
        grid-template-columns: .8fr 1.2fr;
        gap: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
