:root {
    color-scheme: light;
    --page: #f3f1ec;
    --surface: #fff;
    --text: #171914;
    --muted: #65695f;
    --line: #dedfd8;
    --accent: #316447;
    --accent-dark: #214b34;
    --radius: 22px;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
img, video, iframe { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }

.public-header, .public-footer, .public-shell, .article-shell {
    width: min(calc(100% - 32px), 1120px);
    margin-inline: auto;
}
.public-header, .public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.public-header { min-height: 58px; }
.public-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
}
.brand {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .11em;
    text-decoration: none;
}
.public-shell { padding: clamp(42px, 7vw, 88px) 0 56px; }
.article-shell { max-width: 900px; padding: 8px 0 48px; }
.hero { max-width: 780px; margin-bottom: 42px; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; }
h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(36px, 5vw, 60px);
}
.lead {
    max-width: 66ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.card-image-link, .card-image-link img { display: block; }
.card-image-link img, .article-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 40 / 21;
    object-fit: cover;
    background: #e5e6df;
}
.card-body { padding: 24px; }
.card-body h2 { margin: 12px 0; font-size: clamp(24px, 3vw, 32px); }
.card-body h2 a { text-decoration: none; }
.card-body p { color: var(--muted); }
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 14px;
}
.text-link { color: var(--accent-dark); font-weight: 800; }
.pagination { display: flex; justify-content: center; padding: 36px 0 0; }
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.button:hover, .button:focus-visible { background: var(--accent-dark); }
.button-secondary { background: transparent; color: var(--accent-dark); }
.button-secondary:hover, .button-secondary:focus-visible { color: #fff; }
.public-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 54px;
    padding: clamp(24px, 5vw, 44px);
    border-radius: var(--radius);
    background: #dfe9df;
}
.public-cta h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.public-cta p:not(.eyebrow) { max-width: 58ch; margin-bottom: 0; color: #4d574e; }
.cta-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 12px; }
.article-heading { padding: clamp(20px, 3vw, 34px) 0 22px; }
.article-heading h1 { max-width: 19ch; }
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}
.article-heading .meta { margin-top: 18px; }
.article-cover { display: block; border-radius: var(--radius); }
.article-content {
    width: min(100%, 760px);
    margin: 46px auto 0;
    overflow-wrap: anywhere;
    font-size: clamp(17px, 2vw, 19px);
}
.article-content h2, .article-content h3, .article-content h4 { margin: 1.8em 0 .55em; }
.article-content img, .article-content video, .article-content iframe {
    display: block;
    width: 100%;
    height: auto;
    margin: 28px auto;
    border: 0;
    border-radius: 16px;
}
.article-content iframe { aspect-ratio: 16 / 9; }
.article-content blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--accent);
    color: #454b43;
}
.article-end {
    width: min(100%, 760px);
    margin: 42px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.empty-state, .public-error {
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.public-error { max-width: 680px; margin-top: 10vh; }
.public-error h1 { font-size: clamp(34px, 7vw, 58px); }
.public-footer {
    min-height: 82px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 760px) {
    .article-grid { grid-template-columns: 1fr; }
    .public-cta { align-items: flex-start; flex-direction: column; }
    .cta-actions { width: 100%; }
    .cta-actions .button { flex: 1 1 190px; }
}

@media (max-width: 520px) {
    .public-header {
        width: min(calc(100% - 24px), 1120px);
        min-height: 54px;
        padding: 8px 0;
    }
    .public-header nav {
        justify-content: flex-end;
        gap: 6px 12px;
        font-size: 13px;
    }
    .brand { font-size: 15px; }
    .public-shell, .article-shell { width: min(calc(100% - 24px), 1120px); }
    .article-shell { padding-top: 2px; }
    .article-heading { padding-top: 16px; }
    .breadcrumbs { margin-bottom: 16px; }
    .card-body, .empty-state, .public-error { padding: 22px; }
    .public-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
