:root {
  --bg: #f4f6fa; --surface: #ffffff; --ink: #101828; --ink-soft: #3b4659; --line: #d5dae4;
  --yellow: #f5d90a; --cyan: #19c3d6; --green: #2fbf71; --magenta: #e5399b; --red: #e63b2e; --blue: #2349d8; --violet: #7c5cff;
  --focus: #2349d8;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(1.1rem, 4.5vw, 3.5rem);
  --max: 76rem;
}
:root[data-theme="dark"] { --bg: #0b1220; --surface: #141c2e; --ink: #f1f4fa; --ink-soft: #b4bdd0; --line: #27324a; --focus: #7aa2ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b1220; --surface: #141c2e; --ink: #f1f4fa; --ink-soft: #b4bdd0; --line: #27324a; --focus: #7aa2ff; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1.1875rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; top: 1rem; }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--green), var(--magenta), var(--red)); z-index: 70; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: inline-flex; gap: 3px; height: 1.35rem; align-items: flex-end; }
.brand-mark i { display: block; width: 5px; border-radius: 1px; }
.brand-mark i:nth-child(1) { background: var(--yellow); height: 60%; } .brand-mark i:nth-child(2) { background: var(--cyan); height: 85%; }
.brand-mark i:nth-child(3) { background: var(--green); height: 100%; } .brand-mark i:nth-child(4) { background: var(--magenta); height: 75%; }
.brand-mark i:nth-child(5) { background: var(--red); height: 50%; }
.head-right { display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ink); background: transparent; display: grid; place-items: center; }
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.pill-link { font-family: var(--display); font-weight: 700; font-size: .95rem; text-decoration: none; padding: .5rem 1rem; border-radius: 999px; background: var(--ink); color: var(--bg); }
.pill-link:hover { background: var(--blue); color: #fff; }
.topic-nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .6rem; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.topic-nav::-webkit-scrollbar { display: none; }
.topic-nav a { text-decoration: none; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; }
.topic-nav a::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c, var(--ink)); }
.topic-nav a:hover, .topic-nav a[aria-current="page"] { background: color-mix(in srgb, var(--c, var(--ink)) 22%, transparent); }

/* Tag */
.tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .02em; padding: .2rem .6rem; border-radius: 4px; background: var(--c); color: var(--on); text-decoration: none; }
a.tag:hover { filter: brightness(1.08); }
.meta { font-family: var(--display); font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }

/* Intro band */
.intro { padding-block: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem); position: relative; overflow: hidden; }
.intro .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: end; }
.intro h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7.5vw, 6rem); line-height: .94; letter-spacing: -.04em; }
.intro h1 em { font-style: normal; background: linear-gradient(transparent 84%, var(--yellow) 84%); color: var(--ink); padding-inline: .05em; }
.intro p { margin: 1rem 0 0; max-width: 30rem; color: var(--ink-soft); }
.eq { display: flex; align-items: flex-end; gap: clamp(3px, .6vw, 7px); height: clamp(6rem, 16vw, 11rem); }
.eq span { flex: 1; height: 100%; background: var(--c); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(var(--s, .6)); transition: transform .12s ease-out; }
@media (prefers-reduced-motion: no-preference) { .eq span { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; } .eq span:nth-child(2) { animation-delay: .07s; } .eq span:nth-child(3) { animation-delay: .14s; } .eq span:nth-child(4) { animation-delay: .21s; } .eq span:nth-child(5) { animation-delay: .28s; } .eq span:nth-child(6) { animation-delay: .35s; } .eq span:nth-child(7) { animation-delay: .42s; } @keyframes rise { from { transform: scaleY(0); } } }
@media (max-width: 48rem) { .intro .wrap { grid-template-columns: 1fr; } .eq { height: 5rem; } }

/* Sections */
section.block { padding-block: clamp(1.5rem, 4vw, 3rem); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 3px solid var(--ink); padding-top: .75rem; margin-bottom: 1.25rem; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.sec-head a { font-family: var(--display); font-weight: 700; font-size: .95rem; }

/* Cards */
.card { display: block; text-decoration: none; }
.card .thumb { overflow: hidden; border-radius: .9rem; background: var(--line); aspect-ratio: 1200/630; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { margin: .6rem 0 .3rem; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; font-size: 1.35rem; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--c, var(--ink)); }
.card p { margin: 0 0 .5rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }
.card .tag { margin-top: .75rem; }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.lead h3 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; margin-top: .8rem; }
.lead p { font-size: 1.2rem; }
.side { display: grid; gap: 1.25rem; align-content: start; }
.side .card { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.side .card:last-child { border-bottom: 0; }
.side .card h3 { margin-top: 0; font-size: 1.15rem; }
.side .card .tag { margin-top: 0; margin-bottom: .35rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.75rem; }
.list { display: grid; gap: 1.5rem; }
.list .card { display: grid; grid-template-columns: minmax(10rem, 17rem) 1fr; gap: 1.25rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.list .card h3 { margin-top: 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); }
.list .card .tag { margin-top: 0; margin-bottom: .4rem; }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .list .card { grid-template-columns: 1fr; } .side .card { grid-template-columns: 7rem 1fr; } }
.empty { border: 2px dashed var(--line); border-radius: 1rem; padding: 2rem; color: var(--ink-soft); }

/* Follow band */
.band { background: var(--ink); color: var(--bg); border-radius: 1.5rem; padding: clamp(1.5rem, 5vw, 3rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.band h2 { margin: 0 0 .5rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; }
.band p { margin: 0; color: color-mix(in srgb, var(--bg) 75%, transparent); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.social-grid a, .social-grid span { display: block; padding: .8rem 1rem; border: 2px solid color-mix(in srgb, var(--bg) 60%, transparent); border-radius: .8rem; text-decoration: none; font-family: var(--display); font-weight: 700; }
.social-grid a:hover { background: var(--bg); color: var(--ink); }
.social-grid small { display: block; font-weight: 500; opacity: .75; }
.social-grid span { opacity: .5; border-style: dashed; }
@media (max-width: 48rem) { .band { grid-template-columns: 1fr; } }

/* Article */
.article { max-width: 46rem; margin: 0 auto; padding-block: 2rem 1rem; }
.crumbs { font-family: var(--display); font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.article h1 { margin: .6rem 0 .75rem; font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; }
.article .deck { font-size: clamp(1.2rem, 2.4vw, 1.4rem); color: var(--ink-soft); margin: 0 0 1rem; line-height: 1.45; }
.byline { padding-block: .9rem; border-block: 1px solid var(--line); margin-bottom: 1.5rem; }
.cover { margin: 0 0 2rem; } .cover img { border-radius: .9rem; width: 100%; }
figcaption { font-family: var(--display); font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
.prose p { margin: 0 0 1.2rem; font-size: 1.22rem; line-height: 1.65; }
.prose sup a { font-family: var(--display); font-weight: 700; font-size: .75rem; text-decoration: none; color: var(--blue); padding-inline: 1px; }
:root[data-theme="dark"] .prose sup a { color: var(--focus); }
.facts { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--ink)); border-radius: .75rem; padding: 1.1rem 1.4rem; margin: 2rem 0; }
.facts h2 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.05rem; letter-spacing: -.01em; }
.facts ul { margin: 0; padding-left: 1.1rem; font-size: 1.05rem; line-height: 1.5; }
.chart { margin: 2rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; padding: 1.25rem 1.4rem; }
.chart h2 { margin: 0 0 1rem; font-family: var(--display); font-size: 1.05rem; }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: .75rem; align-items: center; margin-bottom: .6rem; font-family: var(--display); font-size: .92rem; }
.bar-track { background: color-mix(in srgb, var(--line) 60%, transparent); border-radius: 4px; height: 1.6rem; position: relative; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--c); width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1); display: flex; align-items: center; justify-content: flex-end; padding-right: .5rem; color: var(--on); font-weight: 800; font-size: .85rem; min-width: 3rem; }
.in-view .bar-fill { width: var(--w); }
@media (prefers-reduced-motion: reduce) { .bar-fill { width: var(--w); transition: none; } }
@media (max-width: 34rem) { .bar-row { grid-template-columns: 1fr; gap: .2rem; } }
.sources { margin: 2.5rem 0 1.5rem; border-top: 3px solid var(--ink); padding-top: 1rem; }
.sources h2 { margin: 0 0 .75rem; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.sources ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .6rem; }
.sources li { padding-left: .3rem; scroll-margin-top: 8rem; }
.sources li:target { background: color-mix(in srgb, var(--yellow) 35%, transparent); }
.sources a { color: var(--blue); } :root[data-theme="dark"] .sources a { color: var(--focus); }
.sources small { display: block; font-family: var(--display); color: var(--ink-soft); }
.how-note { font-family: var(--display); font-size: .92rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.2rem; }
.how-note a { text-decoration-thickness: 2px; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem; font-family: var(--display); font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--bg); }
.more { margin-top: 3rem; }

/* Page (about) */
.page { max-width: 46rem; margin: 0 auto; padding-block: 2.5rem 2rem; }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.035em; line-height: 1; margin: 0 0 1rem; }
.page h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; margin: 2.2rem 0 .5rem; }
.page p, .page li { font-size: 1.15rem; } .page ul { padding-left: 1.2rem; }

/* Footer */
footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 1rem; color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h3 { margin: 0 0 .6rem; font-family: var(--display); font-size: 1rem; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-family: var(--display); }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { text-decoration: underline; }
.foot-grid p { margin: 0 0 .6rem; max-width: 26rem; }
.legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 48rem) { .foot-grid { grid-template-columns: 1fr; } }
