@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg: #FAFAFA;
    --bg-beige: #F8F5F1;
    --bg-sage: #E0E8E4;
    --text: #2F3A4B;
    --text-soft: #536074;
    --accent: #7EB6B0;
    --accent-dark: #4F8C86;
    --cta: #D88C64;
    --cta-dark: #C37A53;
    --line: #EAEAEA;
    --radius-card: 10px;
    --radius-btn: 6px;
    --shadow: 0 2px 10px rgba(47, 58, 75, 0.06);
    --shadow-hover: 0 10px 26px rgba(47, 58, 75, 0.12);
    --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

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

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

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 16px;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: 840px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius-btn);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    color: var(--bg);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--cta);
    border-radius: 50%;
}

.brand-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.01em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    display: inline-block;
    padding: 6px 0;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
}

.main-nav a.nav-cta {
    padding: 9px 18px;
    background: var(--cta);
    color: #FFFFFF;
    border-radius: var(--radius-btn);
    border-bottom: 0;
    font-weight: 600;
}

.main-nav a.nav-cta:hover {
    background: var(--cta-dark);
    color: #FFFFFF;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--cta);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--cta-dark);
    color: #FFFFFF;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn-ghost:hover {
    background: var(--text);
    color: #FFFFFF;
}

.text-link {
    font-weight: 600;
    color: var(--accent-dark);
}

/* Hero */
.hero {
    padding: 40px 0 72px;
    background: var(--bg);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--text-soft);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.hero-date {
    font-style: italic;
}

.hero-grid {
    display: flex;
    align-items: flex-start;
    gap: 56px;
}

.hero-copy {
    flex: 1 1 52%;
}

.hero-rule {
    display: block;
    width: 100%;
    max-width: 120px;
    height: 2px;
    margin-bottom: 24px;
    background: var(--accent);
}

.hero-copy h1 {
    margin-bottom: 24px;
}

.hero-lead {
    max-width: 560px;
    font-size: 18px;
    color: var(--text-soft);
}

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

.hero-aside {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-epigraph {
    margin: 0;
    padding-left: 20px;
    border-left: 1px solid var(--line);
    font-style: italic;
    font-size: 18px;
    color: var(--text-soft);
}

.hero-figure {
    margin: 0;
}

.hero-figure img {
    width: 100%;
    aspect-ratio: 8 / 9;
    object-fit: cover;
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-figure figcaption,
.feature-media figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-soft);
}

/* Sections */
.section {
    padding: 88px 0;
}

.section-beige {
    background: var(--bg-beige);
}

.section-sage {
    background: var(--bg-sage);
}

.section-intro {
    padding-top: 24px;
    padding-bottom: 72px;
}

.section-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.section-head-row p {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cta-dark);
}

/* Cards */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    flex: 1 1 340px;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--bg-sage);
    border-radius: 999px;
}

.card h3 a {
    color: var(--text);
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--accent-dark);
}

.card p {
    flex: 1 1 auto;
    color: var(--text-soft);
}

.card-link {
    font-weight: 600;
}

/* Feature split */
.feature {
    display: flex;
    align-items: center;
    gap: 64px;
}

.feature-reverse {
    flex-direction: row-reverse;
}

.feature-media {
    flex: 1 1 48%;
    margin: 0;
}

.feature-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.feature-body {
    flex: 1 1 48%;
}

.check-list {
    margin: 0 0 28px;
}

.check-list li {
    position: relative;
    padding: 6px 0 6px 28px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent-dark);
    border-bottom: 2px solid var(--accent-dark);
    transform: rotate(-45deg);
}

.principles {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 28px;
}

.principles div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.principles dt {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
}

.principles dd {
    margin: 2px 0 0;
    color: var(--text-soft);
}

/* Article list */
.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.article-item {
    flex: 1 1 calc(50% - 12px);
    min-width: 300px;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-soft);
}

.article-meta span {
    font-weight: 600;
    color: var(--accent-dark);
}

.article-item h3 a {
    color: var(--text);
    text-decoration: none;
}

.article-item h3 a:hover {
    color: var(--accent-dark);
}

.article-item p {
    margin-bottom: 0;
    color: var(--text-soft);
}

/* Resources */
.resource-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.resource {
    display: flex;
    flex-direction: column;
    flex: 1 1 240px;
    padding: 26px;
    background: #FFFFFF;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource:hover {
    color: var(--text);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.resource p {
    flex: 1 1 auto;
    font-size: 16px;
    color: var(--text-soft);
}

.resource-more {
    font-weight: 600;
    color: var(--accent-dark);
}

/* FAQ */
.faq {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.faq details {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 18px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 24px;
    color: var(--accent-dark);
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    margin: 12px 0 0;
    color: var(--text-soft);
}

.faq-more {
    margin-top: 24px;
}

/* CTA */
.section-cta {
    padding-top: 0;
}

.cta-panel {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 40px;
    background: var(--bg-beige);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.cta-media {
    flex: 1 1 42%;
    margin: 0;
}

.cta-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.cta-body {
    flex: 1 1 54%;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: #D9DEE6;
    font-size: 15px;
}

.site-footer a {
    color: #D9DEE6;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.footer-col {
    flex: 1 1 200px;
}

.footer-about {
    flex: 1.4 1 260px;
}

.brand-light,
.brand-light:hover {
    color: #FFFFFF;
}

.footer-about p {
    margin-top: 16px;
}

.footer-about address {
    font-style: normal;
    line-height: 1.8;
}

.footer-title {
    margin: 0 0 16px;
    font-family: var(--font-head);
    font-size: 16px;
    color: #FFFFFF;
}

.footer-col li {
    padding: 4px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 14px;
}

.footer-bottom-inner p {
    margin: 0;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 300;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 40px rgba(47, 58, 75, 0.2);
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-copy {
    flex: 1 1 auto;
}

.cookie-copy h2 {
    margin-bottom: 6px;
    font-size: 18px;
}

.cookie-copy p {
    margin: 0;
    font-size: 15px;
    color: var(--text-soft);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-actions .btn {
    padding: 10px 18px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid,
    .feature,
    .feature-reverse,
    .cta-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .main-nav ul {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        padding: 16px 24px 24px;
        background: #FFFFFF;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .main-nav a {
        padding: 10px 0;
        font-size: 17px;
    }

    .main-nav a.nav-cta {
        margin-top: 8px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 25px;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding-top: 24px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-panel {
        padding: 24px;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    * {
        transition: none !important;
    }
}
