:root {
    color-scheme: light;
    --ink: #14213a;
    --muted: #40506a;
    --accent: #2549a5;
    --line: #d7e0ee;
    --paper: #f1f5fb;
    --solid: #fff;
    --glass: rgb(250 253 255 / .80);
    --glass-edge: rgb(255 255 255 / .87);
    --glass-shadow: 0 12px 34px rgb(29 55 94 / .12), inset 0 1px 1px rgb(255 255 255 / .94);
    --large-radius: clamp(1.7rem, 4vw, 2.8rem);
    --card-radius: 1.5rem;
    --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body {
    margin: 0;
    background:
        radial-gradient(ellipse at 5% 2%, #e7f0ff 0, transparent 38rem),
        radial-gradient(ellipse at 97% 16%, #ebe7fc 0, transparent 35rem),
        var(--paper);
    color: var(--ink);
    font: 1rem/1.65 var(--body);
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #375bd0; outline-offset: 4px; }
p, h1, h2, h3, figure, dl { margin: 0; }
h1, h2, h3 { font-weight: 720; letter-spacing: -.045em; }
h1, h2 { line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.reading { max-width: 48rem; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 3; padding: .5rem .85rem; transform: translateY(-150%); background: white; }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 2; padding-block: .8rem; }
.masthead, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.masthead {
    min-height: 3.8rem;
    padding: .35rem .45rem .35rem clamp(.9rem, 2.3vw, 1.6rem);
    border: 1px solid var(--glass-edge);
    border-radius: 2.3rem;
    background: var(--glass);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(21px) saturate(150%);
    backdrop-filter: blur(21px) saturate(150%);
}
.wordmark { font-size: clamp(1rem, 2.8vw, 1.3rem); font-weight: 770; line-height: 1.13; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); font-weight: 660; }
.masthead nav {
    display: flex;
    gap: .15rem;
    padding: .16rem;
    border: 1px solid var(--glass-edge);
    border-radius: 100vw;
    background: rgb(220 231 251 / .6);
    font-size: .89rem;
    font-weight: 650;
}
.masthead nav a { padding: .42rem .72rem; border-radius: inherit; text-decoration: none; white-space: nowrap; }
.masthead nav a:hover, .masthead nav a:focus-visible { background: var(--solid); }

.hero { padding-block: clamp(.5rem, 2.7vw, 1.8rem) clamp(1.4rem, 3.5vw, 2.75rem); }
.hero-grid {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    min-height: clamp(25rem, 41vw, 35rem);
    overflow: hidden;
    border: 1px solid var(--glass-edge);
    border-radius: var(--large-radius);
    background: linear-gradient(147deg, #dceaff, #edf4fd 48%, #d4dcfa);
    box-shadow: 0 20px 55px rgb(39 63 112 / .16), inset 0 1px 2px #fff;
}
.hero-copy { position: relative; z-index: 1; padding: clamp(1.7rem, 4.1vw, 4rem); }
.hero h1 { max-width: 10.5ch; font-size: clamp(2.85rem, 5.65vw, 5.6rem); letter-spacing: -.078em; }
.hero-copy p { max-width: 39ch; margin-top: 1.25rem; color: #334766; font-size: clamp(1rem, 1.65vw, 1.15rem); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    margin-top: 1.35rem;
    padding: .6rem 1.15rem;
    border: 1px solid rgb(255 255 255 / .88);
    border-radius: 100vw;
    background: linear-gradient(140deg, #335acc, #213991);
    box-shadow: inset 0 1px 3px rgb(255 255 255 / .42), 0 6px 16px rgb(27 57 166 / .21);
    color: #fff;
    font-weight: 660;
    text-decoration: none;
}
.button:hover { background: #1c317e; }
.hero-photo { position: absolute; z-index: 0; inset: 0 0 0 44%; }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% center; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #e8f0fd, transparent 25%); pointer-events: none; }
.hero-photo figcaption {
    position: absolute;
    z-index: 1;
    right: 1rem;
    bottom: 1rem;
    padding: .3rem .7rem;
    border: 1px solid rgb(255 255 255 / .6);
    border-radius: 100vw;
    background: rgb(34 48 69 / .77);
    color: #fff;
    font-size: .84rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.section { padding-block: clamp(1.7rem, 5.8vw, 4.6rem); }
.section > h2 { margin-bottom: .85rem; }
.empty {
    max-width: 65ch;
    padding: 1rem 1.15rem;
    border: 1px solid var(--glass-edge);
    border-radius: 1.1rem;
    background: rgb(255 255 255 / .72);
    color: var(--muted);
}
.topics { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.2rem 1.55rem; }
.topics a {
    display: inline-flex;
    min-height: 2.55rem;
    align-items: center;
    padding: .3rem .9rem;
    border: 1px solid var(--glass-edge);
    border-radius: 100vw;
    background: rgb(253 254 255 / .88);
    box-shadow: 0 3px 12px rgb(40 60 106 / .10), inset 0 1px 1px #fff;
    color: #273f7d;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}
.topics a:hover { border-color: #aebee8; background: #fff; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.article-card {
    position: relative;
    padding: clamp(1rem, 2.4vw, 1.55rem);
    border: 1px solid var(--glass-edge);
    border-radius: var(--card-radius);
    background: rgb(255 255 255 / .85);
    box-shadow: 0 8px 22px rgb(35 57 112 / .08);
}
.article-card:hover, .article-card:focus-within { background: white; box-shadow: 0 12px 30px rgb(35 57 112 / .14); }
.article-meta { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .84rem; color: var(--muted); }
.article-meta span { color: var(--accent); font-weight: 680; }
.article-card h3 { font-size: clamp(1.24rem, 2.3vw, 1.62rem); line-height: 1.22; margin-block: .5rem; letter-spacing: -.035em; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--card-radius); }
.article-card h3 a:hover { text-decoration: underline; }
.article-card p { color: var(--muted); }
.field-note {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: clamp(1.6rem, 7vw, 5.2rem);
    margin-block: .6rem clamp(2.5rem, 6vw, 4.5rem);
    padding-inline: clamp(1.2rem, 4vw, 3.3rem);
    border: 1px solid var(--glass-edge);
    border-radius: var(--large-radius);
    background: linear-gradient(131deg, #e5ecfe, #f9fcff 68%);
    box-shadow: 0 12px 37px rgb(35 57 112 / .09);
}
.field-note h2 { max-width: 15ch; }
.field-note p { max-width: 45ch; margin-top: .85rem; color: var(--muted); }
.field-note dl > div { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.field-note dl > div:first-child { padding-top: 0; }
.field-note dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.field-note dt { font-weight: 690; }
.field-note dd { margin: .2rem 0 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: rgb(252 253 255 / .7); }
.footer-inner { min-height: 5rem; padding-block: .9rem; }
.footer-inner p, .footer-inner > a:last-child { color: var(--muted); font-size: .9rem; }

.article-heading { margin: .6rem auto 0; width: min(100% - 3rem, 76rem); padding-block: clamp(2rem, 6vw, 4.5rem); border: 1px solid var(--glass-edge); border-radius: var(--large-radius); background: linear-gradient(145deg, #dce9fd, #eef1fe 78%); }
.breadcrumbs { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .92rem; color: var(--accent); margin-bottom: 1rem; }
.article-heading h1, .topic-page h1, .text-page h1 { font-size: clamp(2.25rem, 6vw, 4.4rem); overflow-wrap: anywhere; letter-spacing: -.065em; }
.article-heading .dek { margin-block: 1rem; font-size: clamp(1.1rem, 2.6vw, 1.26rem); max-width: 55ch; color: var(--muted); }
.article-heading time { color: var(--muted); font-size: .94rem; }
.prose { padding: clamp(1.3rem, 4vw, 2.75rem); margin-block: 1.3rem 2rem; border: 1px solid var(--glass-edge); border-radius: var(--card-radius); background: var(--solid); font-size: 1.0625rem; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 1.8rem 0 .65rem; }
.prose p { margin-bottom: 1rem; }
.prose li + li { margin-top: .4rem; }
.prose ul { padding-left: 1.35rem; }
.prose li a { overflow-wrap: anywhere; }
.sources { border-top: 1px solid var(--line); margin-top: 1.65rem; padding-top: .95rem; }
.sources h2 { margin: 0; font-size: 1.35rem; }
.sources ul { font-size: 1rem; color: var(--accent); }
.related h2, .topic-page h1 { margin-bottom: 1.35rem; }
.text-page { padding-block: clamp(2.6rem, 8vw, 5rem); }
.text-page p { margin-top: 1rem; }

@media (max-width: 54rem) {
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-photo { left: 43%; }
}
@media (max-width: 40rem) {
    html { scroll-padding-top: 6rem; }
    .wrap, .article-heading { width: min(100% - 1.4rem, 37rem); }
    .hero-grid, .field-note, .article-grid { grid-template-columns: 1fr; }
    .hero-grid { min-height: 0; }
    .hero-copy { padding: 1.55rem 1.25rem 1.4rem; }
    .hero h1 { max-width: 11.6ch; }
    .hero-photo { position: relative; inset: auto; aspect-ratio: 3 / 2; margin: .1rem; overflow: hidden; border-radius: calc(var(--large-radius) - .15rem); }
    .hero-photo::after { display: none; }
    .article-heading .wrap { width: calc(100% - 2rem); }
    .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1.25rem; }
}
@media (max-width: 24rem) {
    .masthead { min-height: 3.3rem; gap: .35rem; padding-left: .65rem; }
    .masthead nav { gap: .05rem; font-size: .82rem; }
    .masthead nav a { padding-inline: .52rem; }
}
@media (prefers-reduced-transparency: reduce) {
    .masthead, .hero-photo figcaption { -webkit-backdrop-filter: none; backdrop-filter: none; }
    .masthead, .topics a, .article-card, .empty { background: white; }
    .hero-photo figcaption { background: #243348; }
}
