:root {
    --paper: #ffffff;
    --ink: #0b0b0b;
    --quiet: #626262;
    --line: #d7d7d7;
    --wash: #f2f2f0;
    --accent: #000000;
    --accent-ink: #ffffff;
    --radius: 0;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --serif: Georgia, "Times New Roman", "Songti SC", serif;
    --display: var(--sans);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --paper: #0d0d0d;
    --ink: #f4f4f0;
    --quiet: #b4b4ae;
    --line: #3a3a3a;
    --wash: #191919;
    --accent: #ffffff;
    --accent-ink: #000000;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0d0d0d;
        --ink: #f4f4f0;
        --quiet: #b4b4ae;
        --line: #3a3a3a;
        --wash: #191919;
        --accent: #ffffff;
        --accent-ink: #000000;
        color-scheme: dark;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.7 var(--sans);
}

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

a:hover {
    opacity: .62;
}

button,
input,
textarea {
    font: inherit;
}

.masthead {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.masthead-inner {
    width: min(1240px, calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
    text-decoration: none;
}

.anchor-menu {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.anchor-menu::-webkit-scrollbar {
    display: none;
}

.anchor-menu a,
.locale-picker a {
    color: var(--quiet);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}

.anchor-menu a:hover,
.locale-picker a.current {
    color: var(--accent);
}

.masthead-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
}

.locale-picker {
    display: flex;
    gap: 8px;
}

.locale-picker a.current {
    font-weight: 700;
}

.mode-switch {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    line-height: 1;
}

.narrative-page {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.opening {
    min-height: min(720px, calc(100vh - 77px));
    padding: 112px 0 120px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    align-items: center;
    gap: clamp(42px, 9vw, 140px);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 40px;
}

.opening-copy {
    max-width: 720px;
}

.kicker {
    margin: 0 0 24px;
    color: var(--quiet);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.opening h1,
.page-heading h1,
.article-heading h1 {
    max-width: 1000px;
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(3.8rem, 10vw, 9.2rem);
    font-weight: 800;
    letter-spacing: -.085em;
    line-height: .92;
    overflow-wrap: anywhere;
}

.opening-intro {
    max-width: 580px;
    margin: 36px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.42;
}

.visual {
    margin: 0;
    overflow: hidden;
    background: var(--wash);
}

.visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.opening-visual {
    max-height: 580px;
}

.opening-visual img {
    min-height: 320px;
    max-height: 580px;
}

.action {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
    padding: 13px 19px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.action-solid {
    background: var(--accent);
    color: var(--accent-ink);
}

.action-outline {
    background: transparent;
    color: var(--accent);
}

.story-band {
    padding: 116px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 40px;
}

.section-label {
    margin-bottom: 44px;
}

.section-label .kicker {
    margin-bottom: 14px;
}

.section-label h2 {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4.5vw, 4.2rem);
    letter-spacing: -.065em;
    line-height: .98;
}

.metrics-band {
    padding: 0;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--line);
}

.metric {
    min-height: 190px;
    padding: 28px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric strong {
    color: var(--accent);
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -.08em;
    line-height: 1;
}

.metric span {
    color: var(--quiet);
    font-size: 14px;
}

.split-story {
    display: grid;
    grid-template-columns: 1fr .72fr;
    gap: clamp(40px, 10vw, 150px);
    align-items: start;
}

.lead-copy {
    max-width: 680px;
    margin: 0 0 28px;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 3vw, 2.5rem);
    line-height: 1.3;
}

.prose {
    max-width: 760px;
    font-size: 17px;
}

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

.prose p:last-child {
    margin-bottom: 0;
}

.prose h2,
.prose h3 {
    margin-top: 2em;
    line-height: 1.2;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.about-visual {
    margin-top: 10px;
}

.card-matrix,
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.feature-card,
.story-card {
    min-width: 0;
    padding: 28px;
    background: var(--paper);
}

.feature-card h2,
.feature-card h3,
.story-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    letter-spacing: -.04em;
    line-height: 1.15;
}

.card-visual,
.story-card-image {
    margin: -28px -28px 28px;
}

.card-visual img,
.story-card-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-subtitle {
    margin: 9px 0;
    font-size: 13px;
}

.feature-card p,
.story-card p {
    color: var(--quiet);
}

.card-icon {
    display: block;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 28px;
}

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

.story-card {
    display: flex;
    flex-direction: column;
}

.story-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.story-card h3 {
    margin-bottom: 6px;
}

.story-card .read-link {
    margin-top: auto;
    padding-top: 18px;
}

.story-meta,
.article-meta {
    margin: 0 0 18px;
    color: var(--quiet);
    font-size: 12px;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.quote {
    margin: 0;
}

.quote blockquote {
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 3rem);
    line-height: 1.18;
}

.quote figcaption {
    color: var(--quiet);
    font-size: 14px;
}

.quote figcaption span {
    color: var(--ink);
}

.questions {
    border-top: 1px solid var(--line);
}

.questions details {
    border-bottom: 1px solid var(--line);
}

.questions summary {
    padding: 21px 0;
    cursor: pointer;
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
    list-style-position: outside;
}

.questions p {
    max-width: 700px;
    margin: 0 0 24px;
    color: var(--quiet);
}

.final-band {
    border-bottom: 0;
}

.final-prompt {
    padding: clamp(36px, 7vw, 90px);
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.final-prompt .kicker,
.final-prompt p {
    color: var(--quiet);
}

.final-prompt h2 {
    max-width: 700px;
    margin: 0;
    color: var(--paper);
    font-size: clamp(2.3rem, 6vw, 6rem);
    letter-spacing: -.08em;
    line-height: .95;
}

.final-prompt .action {
    flex: 0 0 auto;
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
}

.latest-band {
    padding-top: 100px;
}

.empty-message {
    color: var(--quiet);
    font-family: var(--serif);
    font-size: 1.5rem;
}

.page-heading {
    padding: 110px 0 72px;
    border-bottom: 1px solid var(--line);
}

.page-heading h1 {
    max-width: 1000px;
    font-size: clamp(3rem, 8vw, 7.5rem);
}

.listing-band {
    border-bottom: 0;
}

.page-turns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 48px;
    color: var(--quiet);
    font-size: 13px;
}

.page-turns a:last-child {
    justify-self: end;
}

.long-article {
    padding: 110px 0 90px;
}

.article-page {
    max-width: 920px;
}

.article-heading h1 {
    max-width: 900px;
    font-size: clamp(3rem, 8vw, 7rem);
}

.article-meta {
    margin-top: 28px;
}

.article-visual {
    margin-top: 58px;
    max-height: 650px;
}

.article-visual img {
    max-height: 650px;
    object-fit: cover;
}

.article-lead {
    max-width: 760px;
    margin: 0 0 45px;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.35;
}

.article-prose {
    margin-top: 48px;
}

.source-note {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font-size: 13px;
}

.related-band {
    padding: 55px 0 100px;
    border-top: 1px solid var(--line);
}

.related-band .section-label {
    margin-bottom: 25px;
}

.related-links {
    display: grid;
    border-top: 1px solid var(--line);
}

.related-links a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    color: var(--accent);
    font-size: 18px;
    text-decoration: none;
}

.standard-body {
    padding: 80px 0 120px;
}

.contact-list {
    max-width: 760px;
    margin: 0;
    border-top: 1px solid var(--line);
}

.contact-list > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.contact-list dt {
    color: var(--quiet);
    font-size: 13px;
}

.contact-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 60px;
}

.gallery-visual img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.missing-page {
    min-height: 65vh;
}

.closing {
    border-top: 1px solid var(--line);
}

.closing-inner {
    width: min(1120px, calc(100% - 48px));
    min-height: 150px;
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: end;
}

.closing-name {
    margin: 0;
    color: var(--accent);
    font-weight: 800;
}

.closing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.closing-links a,
.copyright {
    color: var(--quiet);
    font-size: 13px;
}

.copyright {
    margin: 0;
    text-align: right;
}

@media (max-width: 800px) {
    .masthead-inner {
        width: min(100% - 32px, 1120px);
        min-height: 64px;
        gap: 16px;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .anchor-menu {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .masthead-actions {
        margin-left: auto;
    }

    .locale-picker {
        display: flex;
    }

    .locale-picker a {
        font-size: 12px;
    }

    .narrative-page {
        width: min(100% - 32px, 1120px);
    }

    .opening,
    .split-story {
        grid-template-columns: 1fr;
    }

    .opening {
        min-height: auto;
        padding: 86px 0 92px;
        gap: 56px;
    }

    .opening-visual {
        max-width: 680px;
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric {
        min-height: 145px;
        padding: 20px;
    }

    .card-matrix,
    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quotes {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .final-prompt {
        align-items: start;
        flex-direction: column;
    }

    .closing-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .closing-links {
        justify-content: flex-start;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .anchor-menu {
        gap: 16px;
    }

    .locale-picker {
        display: flex;
        gap: 6px;
    }

    .locale-picker a {
        font-size: 11px;
    }

    .masthead-actions {
        gap: 8px;
    }

    .opening h1,
    .page-heading h1,
    .article-heading h1 {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .story-band {
        padding: 76px 0;
    }

    .card-matrix,
    .story-grid,
    .image-gallery {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .story-card {
        padding: 24px;
    }

    .card-visual,
    .story-card-image {
        margin: -24px -24px 24px;
    }

    .contact-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .page-turns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .page-turns a:last-child {
        justify-self: start;
    }

    .page-turns > span {
        order: -1;
    }
}
