:root {
    color-scheme: light;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    color: #17312b;
    background: #f6f1e7;
    font-synthesis: none;
    --paper: #fffdf7;
    --ink: #17312b;
    --muted: #59655f;
    --line: #d8d1c4;
    --green: #1f5b4c;
    --green-dark: #143f35;
    --amber: #e5a94f;
    --focus: #0b6fca;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #f6f1e7;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
}

a {
    color: var(--green-dark);
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 0.5rem;
    left: 0.5rem;
    transform: translateY(-150%);
    padding: 0.75rem;
    background: #fff;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.language-switcher,
.site-footer {
    width: min(100%, 76rem);
    margin: 0 auto;
    padding-inline: 1rem;
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding-block: 0.75rem;
    border-block: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

.language-switcher span {
    font-weight: 800;
}

.language-switcher a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.language-switcher a[aria-current='page'] {
    color: var(--green);
    font-weight: 800;
    text-decoration-thickness: 2px;
}

.site-header {
    display: flex;
    min-height: 76px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wordmark-logo {
    display: block;
    width: min(11rem, 40vw);
    height: auto;
}

.site-nav {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.site-nav a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    padding: 0 0.5rem;
    font-weight: 750;
}

.site-nav [aria-current='page'] {
    text-decoration-thickness: 2px;
}

.site-nav .primary,
.article-cta {
    justify-content: center;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--green-dark);
    border-radius: 10px;
    background: var(--green-dark);
    color: #fff;
    text-align: center;
    text-decoration: none;
}

main {
    width: min(100%, 76rem);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 7rem) 1rem clamp(4rem, 10vw, 8rem);
}

.blog-hero,
.article-header,
.article-body {
    width: min(100%, 46rem);
    margin-inline: auto;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Georgia, 'Times New Roman', serif;
}

h1 {
    max-width: 13ch;
    margin: 0 0 1.5rem;
    overflow-wrap: anywhere;
    font-size: clamp(2.7rem, 9vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.lede {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    line-height: 1.55;
}

.article-list {
    width: min(100%, 46rem);
    margin: clamp(3rem, 8vw, 6rem) auto 0;
    border-top: 1px solid var(--line);
}

.article-card {
    display: block;
    padding: 2rem 0;
    color: inherit;
    text-decoration: none;
}

.article-category {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card h2 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

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

.article-card:hover h2 {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: inherit;
    font-weight: 750;
}

.article-author img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.article-header {
    padding-bottom: clamp(2.5rem, 7vw, 4rem);
    border-bottom: 1px solid var(--line);
}

.article-body {
    padding-top: clamp(2.5rem, 7vw, 4rem);
    overflow-wrap: anywhere;
    font-size: 1.08rem;
    line-height: 1.75;
}

.article-body pre.plain-language {
    white-space: pre-wrap;
}

.article-body h2 {
    margin: 3.25rem 0 1rem;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    margin: 2rem 0 0.65rem;
    font-size: 1.25rem;
}

.article-body p,
.article-body ul,
.article-body ol {
    margin: 0 0 1.4rem;
}

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

.article-body li::marker {
    color: var(--green);
    font-weight: 800;
}

.table-scroll {
    width: min(68rem, calc(100vw - 2rem));
    margin: 2rem 0 0.75rem;
    margin-left: 50%;
    overflow-x: auto;
    transform: translateX(-50%);
}

.comparison-table {
    width: 100%;
    min-width: 52rem;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.45;
}

.comparison-table caption {
    padding: 0 0 0.75rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.comparison-table thead th {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.comparison-table tbody th {
    font-weight: 800;
}

.table-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.plain-language {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 2px solid var(--ink);
    border-radius: 3px;
    background: repeating-linear-gradient(to bottom, transparent 0 39px, rgb(216 209 196 / 45%) 39px 40px), var(--paper);
    box-shadow: 8px 8px 0 var(--amber);
}

.plain-language p:last-child,
.article-callout p:last-child {
    margin-bottom: 0;
}

.article-callout {
    margin: 3rem 0;
    padding: 1.5rem;
    border-left: 5px solid var(--green);
    background: #e7f0eb;
}

.article-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    margin-top: 0.5rem;
    font-weight: 800;
}

.sources {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 520px) {
    .site-header {
        justify-content: center;
        padding-top: 1rem;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
    }

    .site-nav a {
        padding-inline: 0;
        font-size: 0.95rem;
    }

    .site-nav .primary {
        display: none;
    }

    .plain-language {
        margin-right: 8px;
    }
}
