@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans.woff2") format("woff2"); }

:root {
  --bg: #0D0A1C;
  --bg-2: #15112A;
  --ink: #EFEBFF;
  --soft: #A29DC0;
  --line: #2A2444;
  --lo: #4E7BFF;
  --hi: #FF4D9A;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F5FB; --bg-2: #ECEAF5; --ink: #141027; --soft: #5D5878;
    --line: #D9D6E6; --lo: #2550D9; --hi: #CF1F6F; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F5FB; --bg-2: #ECEAF5; --ink: #141027; --soft: #5D5878;
  --line: #D9D6E6; --lo: #2550D9; --hi: #CF1F6F; color-scheme: light;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--hi); }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 1.35rem; height: 1.35rem; }
.nav { display: flex; gap: 1.4rem; font-size: .98rem; }
.nav a { text-decoration: none; color: var(--soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: end; }
  .hero-grid .countdown { margin-top: 0; }
  .hero-side { padding-bottom: 1.6rem; }
}
.hero { padding-block: clamp(2rem, 7vh, 4.5rem) clamp(2.5rem, 6vh, 4rem); position: relative; }
.lede { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.2; margin: 0; max-width: 26ch; }

.year {
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(6rem, 29vw, 19.5rem); line-height: 1; letter-spacing: -0.06em;
  margin: .1rem 0 -.06em -.04em; display: flex; font-variant-numeric: tabular-nums; color: var(--ink);
}
.year .word, .digit .strip span {
  background: linear-gradient(180deg, var(--ink) 50%, color-mix(in oklab, var(--hi) 75%, var(--ink)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.year .word { letter-spacing: -0.03em; }
.digit { display: inline-block; height: 1em; overflow-x: visible; overflow-y: clip; position: relative; margin-right: -.06em; }
.digit .strip { display: flex; flex-direction: column; will-change: transform; }
.digit .strip span { height: 1em; line-height: 1; display: block; letter-spacing: 0; }

.countdown { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.1rem; }
.countdown .unit { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 3vw, 2rem); font-variant-numeric: tabular-nums; line-height: 1; }
.countdown .unit small { font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--soft); margin-left: .25rem; }
.countdown .label { color: var(--soft); font-size: .95rem; flex-basis: 100%; }

.basis { color: var(--soft); margin: 1.4rem 0 0; max-width: 54ch; }
.status { color: var(--soft); font-size: .92rem; margin: .5rem 0 0; display: flex; align-items: center; gap: .55rem; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--soft); flex: none; }
.status.live::before { background: var(--hi); box-shadow: 0 0 0 0 var(--hi); animation: beacon 2.4s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--hi) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 .55rem transparent; } }

.odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1rem, 3vw, 2.5rem); margin: 2.8rem 0 0; }
.odds div { padding-top: 1rem; }
.odds dt { color: var(--soft); font-size: .95rem; }
.odds dd { margin: .2rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: .8rem; }
.bar i { display: block; height: 100%; width: 0; background: var(--c, var(--ink)); border-radius: inherit; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.odds dd .bar { display: block; margin-top: .9rem; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2.6rem; }
.btn { display: inline-flex; align-items: center; gap: .6rem; font: 600 1.02rem/1 var(--body); padding: .95rem 1.4rem; background: var(--ink); color: var(--bg); border-radius: 999px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 .4rem 1.6rem -0.4rem color-mix(in oklab, var(--hi) 55%, transparent); }
.btn svg { width: 1rem; height: 1rem; }

/* Sections */
section.block { position: relative; padding-block: clamp(2.5rem, 7vh, 4.5rem); }
section.block::before, footer::before { content: ""; position: absolute; top: 0; left: clamp(1.25rem, 5vw, 3rem); right: clamp(1.25rem, 5vw, 3rem); height: 1px; background: var(--line); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 0 0 .5rem; }
.sub { color: var(--soft); margin: 0 0 2rem; max-width: 62ch; }

/* Chart */
.chart { width: 100%; overflow-x: auto; position: relative; }
.chart svg { display: block; width: 100%; min-width: 34rem; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--soft); font: 500 12px var(--body); }
.chart .half { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 4 5; opacity: .7; }
.chart .curve { fill: none; stroke: url(#heat); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .glow { fill: none; stroke: url(#heat); stroke-width: 10; opacity: .18; filter: blur(6px); }
.chart .area { fill: url(#fade); }
.chart .dot { stroke: var(--bg); stroke-width: 3; }
.chart .lbl { fill: var(--ink); font: 600 12.5px var(--body); }
.chart .med { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 2 4; }
.chart .medlbl { fill: var(--ink); font: 700 13px var(--body); }
.chart .pulse { fill: var(--ink); filter: drop-shadow(0 0 6px var(--hi)); }

/* Markets */
.markets { list-style: none; margin: 0; padding: 0; }
.markets li { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .3rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.markets li:first-child { border-top: 1px solid var(--line); }
.q { font-weight: 600; text-decoration: none; }
.q:hover { text-decoration: underline; }
.meta { grid-column: 1; color: var(--soft); font-size: .92rem; }
.markets .bar { grid-column: 1 / -1; margin-top: .35rem; }
.p { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* Guides */
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.guides li { border-top: 1px solid var(--line); }
.guides li:last-child { border-bottom: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; padding: 1.2rem 0; text-decoration: none; }
.guides strong { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; transition: color .2s ease; }
.guides span { color: var(--soft); }
.guides a:hover strong { color: var(--hi); }

.more { margin: 1.4rem 0 0; }

/* Voices */
.voices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.voices li { border-top: 3px solid var(--c, var(--line)); padding-top: 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.v-text { font-family: var(--display); font-size: 1.25rem; line-height: 1.3; margin: 0; }
.v-who { margin: auto 0 0; display: flex; flex-direction: column; }
.v-who span { color: var(--soft); font-size: .92rem; }
.v-src { margin: 0; font-size: .92rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.v-src a { color: var(--soft); }
.ghost { margin-top: 2rem; display: inline-flex; align-items: center; gap: .55rem; font: 600 1rem/1 var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1.25rem; cursor: pointer; transition: border-color .2s ease; }
.ghost:hover { border-color: var(--hi); }
.ghost svg { width: 1rem; height: 1rem; transition: transform .4s ease; }
.ghost:hover svg { transform: rotate(180deg); }
@media (max-width: 860px) { .voices { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
footer { position: relative; padding-block: 2.5rem 3rem; color: var(--soft); font-size: .95rem; }
footer p { margin: 0 0 .75rem; max-width: 70ch; }
footer a { color: var(--soft); }
footer a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.2rem; }

/* Articles and text pages */
.page { padding-block: clamp(2rem, 6vh, 4rem) clamp(3rem, 8vh, 5rem); }
.page h1 { font-weight: 700; font-variation-settings: "opsz" 96; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 18ch; }
.page .standfirst { font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.35; color: var(--soft); margin: 1.2rem 0 0; max-width: 46ch; }
.page .dateline { color: var(--soft); font-size: .92rem; margin: 1.4rem 0 0; }
.prose { max-width: 66ch; margin-top: 2.6rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 2.6rem 0 .6rem; }
.prose h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 600; margin: 1.8rem 0 .4rem; }
.prose p, .prose li { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose .callout { border-left: 3px solid var(--hi); padding: .2rem 0 .2rem 1.1rem; margin: 1.8rem 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.4; }
.prose .sources { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--soft); font-size: .95rem; }
.prose .sources a { color: var(--soft); }
.prose dl { margin: 0 0 1rem; }
.prose dt { font-weight: 600; margin-top: 1.1rem; }
.prose dd { margin: .2rem 0 0; }
.next { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.legal p { color: var(--soft); }
.legal h2 { margin-top: 2rem; }

@media (max-width: 640px) {
  .nav { gap: 1rem; font-size: .92rem; }
  .odds dd { font-size: 1.65rem; }
  .markets li { grid-template-columns: minmax(0, 1fr) 4.2rem; gap: .3rem 1rem; }
  .p { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
