:root {

    --content-width: 1400px;

    --ink: #25343a;

    --heading: #172e34;

    --muted: #5c6b72;

    --accent: #126d70;

    --line: #dce5e7;

    --soft: #f3f8f8;

}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

a:hover {
    color: #084b4e;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
    border-radius: 2px;
}

.tag {
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--accent);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.article {
    width: min(var(--content-width), calc(100% - 96px));
    margin-inline: auto;
    padding-block: 56px 40px;
}

.article-header {
    margin-bottom: 36px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.date::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pdf-link, .articles-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.pdf-link:hover, .articles-link:hover {
    border-color: var(--accent);
    background: var(--soft);
}

.pdf-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

h1 {
    max-width: 1260px;
    margin: 0 0 30px;
    color: var(--heading);
    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -1.3px;
    overflow-wrap: break-word;
}

p {
    margin: 0 0 20px;
    overflow-wrap: break-word;
}

.lead {
    margin-bottom: 22px;
    font-size: 20px;
    line-height: 1.7;
    color: #344b52;
}

.lead strong {
    font-weight: 600;
}

section {
    margin-bottom: 46px;
}

h2 {
    margin: 0 0 23px;
    color: var(--heading);
    font-size: 28px;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: -.45px;
    overflow-wrap: break-word;
}

section:target h2 {
    color: var(--accent);
}

strong {
    font-weight: 650;
}

.citation {
    font-size: .88em;
    font-weight: 600;
    text-decoration: none;
    padding-inline: 1px;
}

.citation:hover {
    text-decoration: underline;
}

figure {
    margin: 34px 0;
    padding: 28px 32px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    break-inside: avoid;
}

figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto 24px;
}

figcaption {
    max-width: 960px;
    margin-inline: auto;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
}

.figure-source {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.references {
    margin-top: 50px;
    margin-bottom: 0;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.references ol {
    margin: 0;
    padding-left: 28px;
    color: #4e5e65;
    font-size: 15px;
    line-height: 1.7;
}

.references li {
    margin-bottom: 17px;
    padding-left: 8px;
    overflow-wrap: anywhere;
    scroll-margin-top: 30px;
}

.references li::marker {
    color: var(--accent);
    font-weight: 600;
}

.references li:target {
    background: var(--soft);
    outline: 8px solid var(--soft);
    border-radius: 2px;
}

@media (max-width: 900px) {

    .article {
        width: calc(100% - 48px);
        padding-top: 32px;
    }

    h1 {
        font-size: 36px;
        letter-spacing: -.8px;
    }

    h2 {
        font-size: 25px;
    }

}

@media (max-width: 600px) {

    body {
        font-size: 16px;
        line-height: 1.75;
    }

    .article {
        width: calc(100% - 36px);
        padding-block: 22px 28px;
    }

    .article-meta {
        gap: 12px;
        margin-bottom: 24px;
    }

    .pdf-link, .articles-link {
        padding: 9px 11px;
        font-size: 13px;
    }

    .date {
        font-size: 13px;
        gap: 7px;
    }

    h1 {
        margin-bottom: 24px;
        font-size: 30px;
        line-height: 1.2;
        letter-spacing: -.7px;
    }

    .lead {
        font-size: 18px;
        line-height: 1.65;
    }

    h2 {
        margin-bottom: 20px;
        font-size: 23px;
        line-height: 1.35;
        letter-spacing: -.35px;
    }

    p {
        margin-bottom: 18px;
    }

    section {
        margin-bottom: 34px;
    }

    figure {
        margin-block: 27px;
        padding: 16px 12px;
        border-radius: 5px;
    }

    figure img {
        margin-bottom: 17px;
    }

    figcaption {
        font-size: 14px;
    }

    .figure-source {
        font-size: 12px;
    }

    .references {
        margin-top: 36px;
        padding-top: 26px;
    }

    .references ol {
        padding-left: 22px;
        font-size: 14px;
    }

    .references li {
        padding-left: 4px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {

    @page {
        margin: 18mm;
    }

    html {
        scroll-behavior: auto;
    }

    body {
        color: #000;
        font-size: 11pt;
        line-height: 1.5;
    }

    .article {
        width: 100%;
        padding: 0;
    }

    .article-actions, .skip-link {
        display: none;
    }

    .article-meta {
        margin-bottom: 14px;
    }

    h1 {
        font-size: 24pt;
        line-height: 1.2;
    }

    h2 {
        font-size: 16pt;
        break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    figure {
        padding: 15px;
    }

    figure img {
        max-height: 185mm;
        max-width: 100%;
    }

    figcaption, .references ol {
        font-size: 9pt;
    }

    section {
        margin-bottom: 24px;
    }

    .references li:target {
        background: none;
        outline: 0;
    }

}
