/* ==========================================================================
   pressa — Swiss / International Typographic Style design system.
   Poster-grade air: oversized lowercase wordmark, generous vertical rhythm,
   wide margins, hairlines used sparingly. Signature device: a small accent
   square + running hairline on every section label.
   Dark + light via :root.light / :root.dark; single accent --acc.
   ========================================================================== */

/* Inter variable (self-hosted, SIL OFL) — the open neo-grotesque in the
   Helvetica/Neue Haas tradition. Real Helvetica stays ahead of Arial in the
   fallback stack for the flash-of-unstyled moment. */
@font-face {
    font-family: "InterVariable";
    src: url("/assets/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "InterVariable";
    src: url("/assets/fonts/InterVariable-Italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root, :root.dark {
    --paper: #0c0c0b;
    --paper-2: #131312;
    --ink: #f4f4f1;
    --ink-2: #b6b6b0;
    --muted: #7c7c76;
    --rule: #262624;
    --rule-strong: #403f3c;
    --wash: rgba(255, 255, 255, .035);
    --tint-a: 26%;
    --tint-b: 18%;
    --tint-c: 15%;
    --cool: #6b7fd6;
    --gold: #d6a35c;
    --grain-op: .05;
    /* --acc injected inline from settings (accent_dark) */
}
:root.light {
    /* Neutral paper, near-black ink: print contrast with no color cast.
       The wash is white (lit paper) and the accent glow is OFF here —
       light mode stays strictly neutral. */
    --paper: #f6f6f3;
    --paper-2: #ffffff;
    --ink: #0b0b0b;
    --ink-2: #3e3e3a;
    --muted: #82827c;
    --rule: #e0e0dc;
    --rule-strong: #b8b8b2;
    --wash: rgba(255, 255, 255, .6);
    --tint-a: 9%;
    --tint-b: 7%;
    --tint-c: 6%;
    --cool: #4a5fb8;
    --gold: #c08a3e;
    --grain-op: .03;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    overflow-x: clip;   /* the ambient .lead-mark intentionally bleeds off-canvas */
    /* Quiet surface: a soft wash bleeding down from the masthead (accent
       glow in dark mode only) over the base paper tone. */
    background:
        linear-gradient(var(--wash), transparent 380px),
        var(--paper);
    color: var(--ink);
    font: 400 16.5px/1.7 "InterVariable", "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* cv05/cv08: Helvetica-style lowercase l and uppercase I; tnum for dates & numerals. */
    font-feature-settings: "cv05", "cv08", "tnum";
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}
/* Ambient accent atmosphere: two large blurred accent glows fixed behind the
   page — one high right, one low left — so every page (articles especially)
   sits in a faint tinted light instead of flat paper. Strength per theme. */
body::before {
    content: ""; position: fixed; inset: -10%; z-index: -2; pointer-events: none;
    background:
        radial-gradient(48% 40% at 80% 14%, color-mix(in srgb, var(--acc) var(--tint-a), transparent), transparent 72%),
        radial-gradient(52% 44% at 6% 72%, color-mix(in srgb, var(--cool) var(--tint-b), transparent), transparent 74%),
        radial-gradient(40% 34% at 92% 82%, color-mix(in srgb, var(--gold) var(--tint-c), transparent), transparent 74%);
    filter: blur(48px);
}

/* Fine photographic grain over everything — kills the "flat vector" feel of
   large paper areas. Fixed, non-interactive, invisible as a pattern. */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
    opacity: var(--grain-op);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--acc); color: #fff; }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: clamp(24px, 5vw, 72px); padding-right: clamp(24px, 5vw, 72px); }

/* ---- signature section label: accent square · spaced caps · running hairline */
.section-label {
    display: flex; align-items: center; gap: .8rem;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
    color: var(--ink); margin: clamp(2.6rem, 5vw, 4.2rem) 0 1.7rem;
}
.section-label::before { content: ""; width: 10px; height: 10px; background: var(--acc); flex: 0 0 auto; }
.section-label a { color: inherit; }
.section-label a:hover { color: var(--acc); }

/* ---- masthead ------------------------------------------------------------ */
.masthead-top {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    padding-top: 1.1rem; padding-bottom: .4rem;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.ai-note-inline { color: var(--acc); font-weight: 600; }
.masthead-tools { display: flex; gap: 1.4rem; align-items: center; }
.lang-switch { display: flex; gap: .15rem; }
.lang-switch a { padding: .25rem .55rem; color: var(--muted); font-weight: 600; }
.lang-switch a.active { color: var(--paper); background: var(--ink); }
.lang-switch a:hover:not(.active) { color: var(--acc); }
.theme-toggle { font-size: 1.05rem; color: var(--muted); padding: .2rem; }
.theme-toggle:hover { color: var(--acc); }

/* Compact brand row: wordmark and section nav share one baseline, closed by
   the masthead's single strong rule. */
.masthead { border-bottom: 3px solid var(--ink); }
.masthead-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1.2rem 2.5rem;
    padding-top: 1.5rem; padding-bottom: 1.15rem;
}
.masthead-row .mainnav { flex: 0 1 auto; min-width: 0; margin-left: auto; }
.search-nav { flex: 0 0 auto; align-self: center; }
.brand {
    font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: .95;
    text-transform: lowercase;
}
.brand-dot { color: var(--acc); }

.mainnav {
    display: flex; gap: clamp(1.1rem, 2.4vw, 2.1rem); overflow-x: auto;
    font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em;
    scrollbar-width: none; padding-bottom: 3px;
}
.mainnav::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
    .mainnav { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 2rem; }
}
.mainnav a { color: var(--ink-2); white-space: nowrap; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .18s; }
.mainnav a:hover { color: var(--ink); }
.mainnav a.active { color: var(--ink); border-bottom-color: var(--acc); }

/* Collapsed search: an icon at the end of the brand row; the field slides
   open on click / focus and stays open while it has text. */
.search-nav { display: flex; align-items: center; gap: .3rem; margin-left: .4rem; }
.search-nav input {
    width: 0; opacity: 0; padding: .3rem 0;
    background: transparent; border: none; border-bottom: 1px solid var(--rule-strong);
    color: var(--ink); font-size: .84rem; outline: none;
    transition: width .3s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.search-nav.open input, .search-nav:focus-within input { width: min(190px, 38vw); opacity: 1; }
.search-nav input:focus { border-color: var(--acc); }
.search-nav button { display: inline-flex; align-items: center; color: var(--ink-2); padding: .25rem; }
.search-nav button:hover { color: var(--acc); }


/* ---- home ------------------------------------------------------------------ */
.lead-section {
    display: grid; grid-template-columns: 5fr 2fr; gap: clamp(48px, 6vw, 96px);
    padding-top: clamp(1.8rem, 4vw, 3.2rem);
}
.mostread { padding-top: .4rem; }
.mostread .section-label { margin-top: 0; }
.mostread-list { list-style: none; }
.mostread-list li { display: flex; gap: 1.1rem; padding: .9rem 0; align-items: baseline; }
.mostread-list li:first-child { padding-top: .2rem; }
.mostread-n { font-size: 2rem; font-weight: 800; color: var(--acc); letter-spacing: -.05em; min-width: 1.3ch; font-variant-numeric: tabular-nums; line-height: 1; }
.mostread-list a { font-weight: 600; line-height: 1.4; font-size: .95rem; transition: color .18s; }
.mostread-list a:hover { color: var(--acc); }

.grid { display: grid; gap: clamp(40px, 4.5vw, 56px) clamp(32px, 4vw, 56px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cat-rail { margin-bottom: 0; }

/* ---- cards ------------------------------------------------------------------ */
.card { display: flex; flex-direction: column; padding-top: .4rem; }
.card-img { margin-bottom: 1.1rem; overflow: hidden; background: var(--paper-2);
    outline: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); outline-offset: -1px; }
.card-img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; filter: grayscale(14%); transition: filter .3s, transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-img img { filter: none; transform: scale(1.02); }

/* Lead story: headline-first editorial split — text carries the weight,
   the image sits beside it at a modest size. */
.card-lead { padding-top: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.card-lead .card-img { order: 2; margin-bottom: 0; }
.card-lead .card-img img { aspect-ratio: 4/3; }
.card-lead .card-body { order: 1; }
@media (max-width: 720px) {
    .card-lead { grid-template-columns: 1fr; gap: 18px; }
    .card-lead .card-img { order: 0; }
}
.card-kicker { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; }
.kicker { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--acc); }
.kicker-muted { color: var(--muted); }
.ai-mark { color: var(--acc); font-size: .8rem; }
.card-title { font-weight: 700; letter-spacing: -.02em; line-height: 1.22; font-size: 1.25rem; text-wrap: balance; }
.card-lead .card-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.06; font-weight: 800; }
.card-row .card-title { font-size: 1rem; line-height: 1.35; }
.card-title a { transition: color .18s; }
.card-title a:hover { color: var(--acc); }
.card-excerpt { color: var(--ink-2); font-size: .93rem; line-height: 1.65; margin-top: .7rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-lead .card-excerpt { font-size: 1.12rem; max-width: 58ch; margin-top: 1.1rem; line-height: 1.65; }
.card-meta { margin-top: 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; gap: .6rem; }
.card-meta a:hover { color: var(--acc); }
.sep { color: var(--rule-strong); }

/* ---- listings ------------------------------------------------------------- */
.list-head { padding: clamp(2.2rem, 5vw, 4rem) 0 2rem; border-bottom: 3px solid var(--ink); margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.list-title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.list-sub { color: var(--ink-2); margin-top: 1.1rem; max-width: 60ch; font-size: 1.05rem; line-height: 1.65; }
.sort-row { display: flex; gap: 1.4rem; align-items: baseline; margin-top: 1.8rem; }
.sort-row .section-label { margin: 0; color: var(--muted); }
.sort-row .section-label::after { display: none; }
.sort-row a { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; padding-bottom: 2px; }
.sort-row a.active { color: var(--acc); border-bottom: 2px solid var(--acc); }
.sort-row a:hover:not(.active) { color: var(--ink); }
.empty { color: var(--muted); padding: 4rem 0; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin: clamp(3rem, 6vw, 5rem) 0; }
.pagination a { min-width: 2.5rem; text-align: center; padding: .55rem 0; border: 1px solid var(--rule); font-variant-numeric: tabular-nums; font-size: .85rem; transition: border-color .18s, color .18s; }
.pagination a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a:hover:not(.active) { border-color: var(--acc); color: var(--acc); }
.archive-years { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin: 3rem 0; font-weight: 800; font-size: 1.8rem; letter-spacing: -.03em; }
.archive-years a:hover { color: var(--acc); }
.archive-years .count { color: var(--muted); font-size: .85rem; font-weight: 400; letter-spacing: 0; }

.search-big { display: flex; margin-top: 2rem; max-width: 620px; }
.search-big input { flex: 1; background: transparent; border: 1px solid var(--rule-strong); border-right: none; padding: .95rem 1.2rem; color: var(--ink); font-size: 1.05rem; outline: none; transition: border-color .2s; }
.search-big input:focus { border-color: var(--acc); }
.search-big button { background: var(--ink); color: var(--paper); padding: 0 1.8rem; font-weight: 700; text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; transition: background .18s; }
.search-big button:hover { background: var(--acc); color: #fff; }

/* ---- article ---------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--acc); width: 0; z-index: 1200; }
.article { padding-top: clamp(2.2rem, 5vw, 4rem); }
/* The article is a centered column: left-aligned text, equal air on both
   sides. TOC/data layouts get a wider centered track. */
.article-head, .article-layout, .article-foot { max-width: 780px; margin-left: auto; margin-right: auto; }
.article-layout.has-toc, .prose-wide, .article-feature .article-head { max-width: 1020px; }
.article-cover { max-width: 1020px; margin-left: auto; margin-right: auto; }
.article-kickers { display: flex; gap: 1rem; margin-bottom: 1.6rem; align-items: center; }
.article-kickers::before { content: ""; width: 10px; height: 10px; background: var(--acc); }
.article-title { font-family: "EB Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; text-wrap: balance; }
.article-feature .article-title { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.article-subtitle { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-2); margin-top: 1.4rem; line-height: 1.55; max-width: 54ch; }
.byline { display: flex; gap: .65rem; align-items: center; margin-top: 2.2rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); flex-wrap: wrap; }
.byline-author { display: inline-flex; gap: .6rem; align-items: center; font-weight: 700; color: var(--ink); }
.byline-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.byline-author:hover { color: var(--acc); }

.ai-disclosure { margin-top: 1.8rem; border: 1px solid var(--rule); border-left: 3px solid var(--acc); font-size: .86rem; max-width: 680px; }
.ai-disclosure summary { padding: .8rem 1.1rem; cursor: pointer; color: var(--acc); font-weight: 600; list-style: none; }
.ai-disclosure summary::-webkit-details-marker { display: none; }
.ai-disclosure p { padding: 0 1.1rem .9rem; color: var(--ink-2); line-height: 1.65; }
.ai-disclosure a { color: var(--acc); font-weight: 600; }
.ai-model { color: var(--muted); }
.ai-sources { padding: 0 1.1rem 1rem 2.3rem; color: var(--ink-2); }
.ai-sources li { margin-top: .25rem; }
.ai-sources a { color: var(--acc); }

.article-cover { margin: clamp(2.4rem, 5vw, 4rem) auto; }
.article-cover img { width: 100%; outline: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); outline-offset: -1px; }
.cover-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.cover-full img { max-height: 70vh; object-fit: cover; width: 100%; }

.article-layout { margin-top: clamp(2rem, 4vw, 3rem); }
.article-layout.has-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); }
.toc { position: sticky; top: 2rem; align-self: start; font-size: .85rem; }
.toc .section-label { margin-top: 0; }
.toc a { display: block; padding: .45rem 0; color: var(--ink-2); transition: color .15s; }
.toc a:hover { color: var(--acc); }
.toc-l3 { padding-left: 1.1rem !important; font-size: .8rem; }

/* ---- prose (rendered blocks) -------------------------------------------------- */
.prose { max-width: 66ch; font-size: 1.1rem; line-height: 1.78; }
.prose-wide { max-width: 100%; }
.prose > * + * { margin-top: 1.35em; }
.prose p { text-wrap: pretty; }
.prose h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin-top: 2.6em; display: flex; align-items: baseline; gap: .7rem; }
.prose h2::before { content: ""; width: 10px; height: 10px; background: var(--acc); flex: 0 0 auto; align-self: center; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 2.2em; }
.prose a { color: var(--acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--acc); padding: .3rem 0 .3rem 1.5rem; color: var(--ink-2); font-size: 1.15rem; line-height: 1.65; }
.prose blockquote cite { display: block; margin-top: .7rem; font-style: normal; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.pullquote { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.22; border-top: 3px solid var(--acc); border-bottom: 1px solid var(--rule); padding: 2rem 0; margin: 2.8rem 0; text-wrap: balance; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li + li { margin-top: .55em; }
.prose .code { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.2rem 1.4rem; overflow-x: auto; font-size: .86rem; line-height: 1.6; }
.prose .code code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.img figcaption, .gallery figcaption { font-size: .78rem; color: var(--muted); margin-top: .7rem; line-height: 1.5; }
.img .credit { text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; }
.img-wide { margin-left: -12%; margin-right: -12%; }
.img-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; border-bottom: 2px solid var(--ink); padding: .6rem 1rem .6rem 0; }
.prose td { border-bottom: 1px solid var(--rule); padding: .7rem 1rem .7rem 0; }
.embed { aspect-ratio: 16/9; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.rule { border: none; border-top: 3px solid var(--acc); width: 64px; margin: 3.2rem 0; }
.callout { border: 1px solid var(--rule); border-left: 3px solid var(--acc); padding: 1.1rem 1.4rem; font-size: .96rem; line-height: 1.65; }
.callout-warn { border-left-color: #e6a700; }
.qa { margin-top: 1.8em; }
.qa-q { font-weight: 700; }
.qa-q::before { content: "Q — "; color: var(--acc); }
.qa-a::before { content: "A — "; color: var(--muted); font-weight: 700; }

/* brief style: timestamp-forward compact article */
.style-brief .article-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }

.article-foot { margin-top: clamp(3rem, 6vw, 4.5rem); }
.tag-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.tag { font-size: .74rem; font-weight: 600; border: 1px solid var(--rule-strong); padding: .35rem .75rem; color: var(--ink-2); transition: border-color .18s, color .18s; }
.tag:hover { border-color: var(--acc); color: var(--acc); }
.share-row { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: baseline; font-size: .8rem; font-weight: 600; }
.share-row .section-label { margin: 0; color: var(--muted); }
.share-row .section-label::after { display: none; }
.share-row a, .copy-link { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--ink-2); transition: color .15s; }
.share-row a:hover, .copy-link:hover { color: var(--acc); }
.related { margin-top: 2rem; padding-bottom: 2rem; }

/* ---- authors ------------------------------------------------------------------ */
.authors-grid { margin-top: 1rem; }
.author-card { padding: 1.2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.author-head { display: flex; gap: 1.1rem; align-items: center; }
.author-av { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.author-av-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--acc); color: #fff; font-weight: 800; font-size: 1.4rem; }
.author-card h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.author-tone { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.author-card p { font-size: .92rem; color: var(--ink-2); line-height: 1.65; }
.author-card:hover h3 { color: var(--acc); }
.author-count { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- 404 ----------------------------------------------------------------------- */
.notfound { padding: clamp(4rem, 10vw, 8rem) clamp(24px, 5vw, 72px); }
.notfound-code { font-size: clamp(6rem, 20vw, 13rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--acc); }
.notfound p { color: var(--ink-2); margin-top: 1rem; max-width: 50ch; }

/* ---- footer --------------------------------------------------------------------- */
.site-footer { border-top: 3px solid var(--ink); margin-top: clamp(3rem, 7vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.brand-footer { font-size: 2.4rem; }
.footer-tag { color: var(--ink-2); font-size: .95rem; margin-top: .9rem; max-width: 40ch; line-height: 1.6; }
.footer-ai { color: var(--muted); font-size: .84rem; margin-top: 1rem; max-width: 46ch; line-height: 1.6;
    border-left: 3px solid var(--acc); padding-left: .9rem; }
.footer-ai a { color: var(--acc); font-weight: 600; white-space: nowrap; }
.footer-ai a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { display: flex; flex-direction: column; gap: .8rem; font-size: .88rem; font-weight: 600; padding-top: .6rem; }
.footer-nav a { transition: color .15s; }
.footer-nav a:hover { color: var(--acc); }
.footer-meta { display: flex; flex-direction: column; gap: .7rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: .6rem; }

/* ==========================================================================
   Effects — orchestrated, Swiss-disciplined motion.
   Everything degrades: no-JS keeps content visible; reduced-motion kills all.
   ========================================================================== */

/* Cross-fade between page navigations (progressive enhancement). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Masthead load sequence: wordmark settles in, nav items cascade after.
   Runs once per page, fast enough to never feel like a splash. */
.masthead-row { overflow: hidden; }
.brand { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.mainnav a { animation: fadeup .45s cubic-bezier(.2,.8,.2,1) both; }
.mainnav a:nth-child(1) { animation-delay: .16s; } .mainnav a:nth-child(2) { animation-delay: .20s; }
.mainnav a:nth-child(3) { animation-delay: .24s; } .mainnav a:nth-child(4) { animation-delay: .28s; }
.mainnav a:nth-child(5) { animation-delay: .32s; } .mainnav a:nth-child(6) { animation-delay: .36s; }
.mainnav a:nth-child(n+7) { animation-delay: .40s; }
@keyframes rise { from { opacity: 0; transform: translateY(35%); } to { opacity: 1; transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Ambient signature: a huge outlined AI-asterisk slowly turning behind the
   hero — the ✳ badge blown up to poster scale, barely-there contrast.
   main clips it so the off-canvas bleed never widens the page (iOS pans to
   laid-out overflow even when body has overflow-x: clip). */
main { overflow-x: clip; }
.lead-section { position: relative; }
.lead-mark { position: absolute; right: -4rem; top: -7rem; z-index: -1;
    font-size: clamp(16rem, 34vw, 30rem); line-height: 1; font-weight: 300;
    color: transparent; -webkit-text-stroke: 1.5px var(--rule);
    animation: slowspin 240s linear infinite; user-select: none; pointer-events: none; }
@keyframes slowspin { to { transform: rotate(360deg); } }

/* Headline hover: an accent underline sweeps in from the left. */
.card-title a, .mostread-list a, .footer-nav a {
    background-image: linear-gradient(var(--acc), var(--acc));
    background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 96%;
    transition: background-size .32s cubic-bezier(.2,.8,.2,1), color .18s;
}
.card-title a:hover, .mostread-list a:hover, .footer-nav a:hover { background-size: 100% 2px; }

/* Section labels: the accent square snaps in and the hairline draws across
   when the section scrolls into view. */
html.fx .section-label::before { transform: scale(0); }
html.fx .section-label.fx-in::before { transform: scale(1); transition: transform .35s cubic-bezier(.34,1.56,.64,1) .1s; }

/* Scroll reveal: cards and prose blocks fade up as they enter, staggered. */
html.fx .fx-r { opacity: 0; transform: translateY(18px); }
html.fx .fx-r.fx-in { opacity: 1; transform: none;
    transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }

/* Most-read numerals: hover springs the counter. */
.mostread-n { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.mostread-list li:hover .mostread-n { transform: scale(1.15); }

/* Theme switch: brief global color cross-fade (class added only on toggle). */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease !important;
}

@media (max-width: 900px) { .ticker-strip { display: none; } .lead-mark { right: -6rem; top: -4rem; font-size: 16rem; } }

/* ---- accessibility -------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ---- responsive ------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .lead-section { grid-template-columns: 1fr; gap: 40px; }
    .article-layout.has-toc { grid-template-columns: 1fr; }
    .toc { position: static; margin-bottom: 2.5rem; }
    .img-wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 720px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 34px; }
    .prose { hyphens: auto; }
    .lead-mark { opacity: .5; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .masthead-top { flex-wrap: wrap; row-gap: .5rem; }
    .search-mini input { width: 110px; }
    .card-lead .card-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

.footer-push { display: flex; gap: .4rem; align-items: baseline; font-size: .88rem; font-weight: 600;
    color: var(--ink-2); text-align: left; padding: 0; }
.footer-push:hover { color: var(--acc); }
.footer-push[data-on="1"] span { color: var(--acc); }

/* Reading-time badge over imagery */
.card-img, .article-cover { position: relative; }
.mins-badge { position: absolute; right: 10px; bottom: 10px; z-index: 2;
    font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    padding: .3rem .55rem; color: #fff; background: rgba(12, 12, 11, .72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.author-av-human { background: var(--ink); color: var(--paper); }

/* ---- EB Garamond: serif voice for article reading ------------------------- */
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

/* Article reading voice: Garamond body against grotesque chrome. Headings,
   captions, code and UI stay Inter — the classic serif-text/sans-display mix. */
.prose, .article-subtitle, .prose blockquote, .pullquote {
    font-family: "EB Garamond", Georgia, "Times New Roman", serif;
}
.prose { font-size: 1.22rem; line-height: 1.72; }
.prose h2, .prose h3 { font-family: "InterVariable", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.prose .code, .prose .code code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.article-subtitle { font-size: clamp(1.25rem, 2.1vw, 1.5rem); }
.pullquote { font-weight: 500; font-style: italic; }
.card-excerpt { font-family: "EB Garamond", Georgia, serif; font-size: 1.05rem; }
.card-lead .card-excerpt { font-size: 1.18rem; }

/* ---- map + graph ------------------------------------------------------------ */
.map-wrap { position: relative; margin-bottom: 3rem; }
#world-map { height: clamp(440px, 62vh, 720px); background: var(--paper-2);
    outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); z-index: 1; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--paper-2); color: var(--ink); border-radius: 0; }
.leaflet-popup-content a { color: var(--acc); display: block; margin-top: .3rem; }
.leaflet-container { font-family: "InterVariable", sans-serif; }
#graph-canvas { display: block; width: 100%; background: var(--paper-2);
    outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); cursor: grab; }
#graph-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper);
    font-size: .74rem; font-weight: 600; padding: .3rem .55rem; z-index: 5; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.graph-legend i { display: inline-block; width: 10px; height: 10px; margin-right: .35rem; }

/* map/graph filter chips */
.map-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; align-items: center; }
.map-chip { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em;
    padding: .4rem .8rem; border: 1px solid var(--rule-strong); color: var(--ink-2); cursor: pointer;
    background: transparent; transition: border-color .15s, color .15s; }
.map-chip:hover { border-color: var(--acc); color: var(--acc); }
.map-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#map-days { background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule-strong);
    padding: .35rem .5rem; font: 650 .72rem/1 "InterVariable", sans-serif; letter-spacing: .08em; }
.graph-reset { position: absolute; top: 12px; right: 12px; z-index: 6; background: var(--paper); }

/* fact-check index */
.fc-badge { margin-left: .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: .15rem .5rem; }
.fc-ok { color: #2f9e63; border: 1px solid #2f9e63; }
.fc-warn { color: #c8920a; border: 1px solid #c8920a; }
.fc-low { color: var(--acc); border: 1px solid var(--acc); }
.fc-panel { padding: 0 1.1rem .9rem; }
.fc-verdicts { list-style: none; padding: 0; margin: .5rem 0 0; }
.fc-verdicts li { display: flex; gap: .55rem; align-items: baseline; padding: .3rem 0; font-size: .84rem; color: var(--ink-2); }
.fc-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.fc-v-supported .fc-dot { background: #2f9e63; }
.fc-v-partial .fc-dot { background: #c8920a; }
.fc-v-unverified .fc-dot { background: var(--acc); }
.fc-verdicts em { color: var(--muted); font-style: normal; }

/* glossary terms + modal */
.gloss-term { font: inherit; color: inherit; padding: 0; cursor: help;
    border-bottom: 1.5px dotted var(--acc); }
.gloss-term:hover { color: var(--acc); }
.gloss-modal { position: fixed; inset: 0; z-index: 1400; background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center; padding: 20px; }
.gloss-modal[hidden] { display: none; }
.gloss-box { position: relative; background: var(--paper); color: var(--ink);
    border: 1px solid var(--ink); box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 15%, transparent);
    max-width: 460px; width: 100%; padding: 1.6rem 1.8rem; }
.gloss-box h4 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .6rem; }
.gloss-box p { font-family: "EB Garamond", Georgia, serif; font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); margin-bottom: .9rem; }
.gloss-box a { color: var(--acc); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.gloss-close { position: absolute; top: .5rem; right: .8rem; font-size: 1.4rem; color: var(--muted); }
.gloss-close:hover { color: var(--acc); }

/* topics page */
.topic-card { display: block; border-top: 3px solid var(--ink); padding-top: 1rem; transition: border-color .18s; }
.topic-card:hover { border-top-color: var(--acc); }
.topic-card:hover h3 { color: var(--acc); }
.topic-count { font-size: 2rem; font-weight: 800; color: var(--acc); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.topic-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: .3rem 0 .4rem; }
.topic-card p { color: var(--ink-2); font-size: .92rem; }
.tag-n { color: var(--muted); font-weight: 400; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#report-form textarea { width: 100%; box-sizing: border-box; background: var(--paper-2); color: var(--ink);
    border: 1px solid var(--rule-strong); padding: .7rem .9rem; font: inherit; font-size: .95rem; margin-bottom: .8rem; }
#report-form textarea:focus { outline: none; border-color: var(--acc); }
.report-hint { font-size: .88rem !important; }
.report-send { background: var(--ink); color: var(--paper); padding: .5rem 1.2rem; font-weight: 700;
    text-transform: uppercase; font-size: .74rem; letter-spacing: .1em; }
.report-send:hover { background: var(--acc); color: #fff; }
#report-state { margin-left: .8rem; font-size: .84rem; color: var(--ink-2); }

/* ---- mobile hardening ------------------------------------------------------- */
@media (max-width: 720px) {
    .masthead-row { gap: .8rem; }
    .brand { font-size: 1.7rem; }
    .search-nav.open input, .search-nav:focus-within input { width: 34vw; }
    .list-head { padding-top: 1.6rem; }
    .map-filters { gap: .4rem; }
    .map-chip { padding: .35rem .6rem; font-size: .66rem; }
    #world-map { height: 62vh; }
    .article-kickers { flex-wrap: wrap; }
    .fc-badge { display: inline-block; margin: .4rem 0 0; }
    .gloss-box { padding: 1.2rem 1.3rem; }
    .footer-grid { padding-top: 2rem; }
}


/* canvas modal */
.canvas-box { max-width: 420px; text-align: center; }
.canvas-box img { width: 100%; margin: .8rem 0 1rem; outline: 1px solid var(--rule); }
.canvas-box .report-send { display: inline-block; text-decoration: none; }
