@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
:root {
  --ink: #16233f; --ink-soft: #4a5875; --page: #e8eef4; --panel: #ffffff; --line: #d3dce7;
  --blue: #2f6fd6; --red: #e0483d; --amber: #f5b83d; --amber-deep: #c98a0b;
  --bot-dark: #22335a; --bot-body: #2e4372; --bot-steel: #9fb3cf; --screen: #0e1730; --screen-ink: #9fb3cf;
  --tin-red: #c8372d; --tin-teal: #7d9ba3; --tin-silver: #c7cfd8; --tin-silver-hi: #eef2f6; --tin-cobalt: #2e5ba8; --tin-cream: #f1e6cc; --tin-grille: #9aa6b5; --tin-line: #1b2440;
  --paper: #fffdf7; --paper-edge: #c9d3e0; --bot-shadow: rgba(22,35,63,.18);
  --hero-ink: #ffffff; --hero-tint: rgba(16,27,54,.78);

  /* tokens the forecast page reads */
  --font-anthropic-sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-anthropic-serif: "Unbounded", system-ui, sans-serif;
  --color-fg: var(--ink); --color-fg-muted: var(--ink-soft); --color-bg: var(--page); --color-panel: var(--panel); --color-border-line: var(--line);
  --color-ok: #2f7d4f; --color-warn: #a86b00; --color-bad: #c0392b;
  --cds-font-size-caption: .8125rem; --cds-font-size-body: 1rem; --cds-font-size-heading: 1.125rem; --cds-font-size-title: 1.875rem;
  --cds-font-weight-medium: 700;
  --cds-gap-xs: 4px; --cds-gap-sm: 8px; --cds-gap-md: 16px; --cds-gap-lg: 28px; --cds-gap-xl: 44px;
  --cds-pad-xs: 4px; --cds-pad-sm: 8px; --cds-pad-md: 12px; --cds-pad-lg: 22px; --cds-pad-xl: 32px;
  --cds-radius: 16px; --cds-surface-popover: var(--panel); --cds-border: var(--line); --cds-shadow-popover: 0 8px 28px rgba(22,35,63,.18);
  --cds-text-secondary: var(--ink-soft); --cds-chart-grid: #e6ebf2; --cds-chart-axis: #a9b6c8; --cds-chart-reference: #7c8aa3; --cds-chart-muted: #b4c0d0;
  --cds-dur-slow: 300ms; --cds-ease-out: cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9eef6; --ink-soft: #a6b3c9; --page: #0f1830; --panel: #17223d; --line: #2a3a5e;
    --paper: #f3efe4; --paper-edge: #8090ad; --bot-shadow: rgba(0,0,0,.35); --bot-body: #34497c; --bot-dark: #263a66;
    --cds-chart-grid: #233251; --cds-chart-axis: #4b5d82; --cds-chart-muted: #4b5d82; --cds-shadow-popover: 0 8px 28px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-anthropic-sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #16233f; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(16px, calc((100% - 1240px) / 2)); background: #16233f; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.brand b, .footer-brand b { color: var(--amber); font-weight: 700; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .9375rem; color: #d7e0ee; }
.topnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 720px) { .topnav a[href="#how"] { display: none; } .topnav a { padding: 6px 8px; font-size: .875rem; } .brand span { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; background: #16233f; color: var(--hero-ink); }
.hero-photo { position: absolute; inset: 0; background: url("https://commons.wikimedia.org/wiki/Special:FilePath/United_States_Capitol_-_west_front.jpg?width=1920") center 35% / cover no-repeat; filter: grayscale(1) contrast(1.1); opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,27,54,.96) 0%, rgba(16,27,54,.82) 45%, rgba(16,27,54,.45) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 56px 16px 64px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; max-width: 18ch; text-wrap: balance; }
.hero-sub { font-size: 1.125rem; line-height: 1.6; max-width: 36rem; margin: 0 0 28px; color: #d7e0ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn:hover { background: rgba(255,255,255,.1); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: #16233f; }
.btn-primary:hover { background: #ffc95a; }
.hero-bot { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.bot { width: min(100%, 340px); height: auto; overflow: visible; }
.bubble { order: -1; position: relative; background: var(--paper); color: #16233f; font-size: 1rem; line-height: 1.45; padding: 14px 18px; border-radius: 18px; max-width: 22rem; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border: 10px solid transparent; border-top-color: var(--paper); border-bottom: 0; }
.bubble b { font-family: "Unbounded", sans-serif; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .bot-light { animation: blink 2.4s steps(1, end) infinite; }
  .bot-tape { animation: print 1.4s var(--cds-ease-out) .3s both; transform-origin: 160px 280px; }
}
@keyframes blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .25; } }
@keyframes print { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 16px 44px; }
  .hero-bot { max-width: 320px; margin: 0 auto; }
  .bot { width: 220px; }
}

/* forecast app */
.site-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 16px 48px; }
#dash-root { --dash-gutter: 0; }
#dash-root .pm > header { display: none !important; }
.dash-skeleton { color: transparent !important; background: var(--line); border-radius: 6px; min-width: 3rem; display: inline-block; }
#dash-root .pm .pm-tabs { border-bottom: 0; gap: 6px; flex-wrap: wrap; }
#dash-root .pm .pm-tabs button { border: 2px solid var(--line); border-radius: 999px; margin: 0; padding: 8px 18px; font-weight: 700; color: var(--ink-soft); background: var(--panel); }
#dash-root .pm .pm-tabs button[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--page); }
#dash-root .pm .pm-tile { border-radius: 20px; }
#dash-root .pm .pm-tile .pm-big { font-weight: 700; letter-spacing: -.02em; font-size: 1.75rem; }
#dash-root .pm h2 { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 1.0625rem; letter-spacing: -.01em; }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: #16233f; color: #fff; }
.how-photo { position: relative; margin: 0; min-height: 320px; background: #22335a; }
.how-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.how-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(22,35,63,.85); color: #fff; font-size: .875rem; padding: 6px 12px; border-radius: 999px; }
.how-copy { padding: 48px clamp(16px, 5vw, 64px); max-width: 44rem; }
.how h2 { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 16px; }
.how p { color: #d7e0ee; margin: 0 0 16px; line-height: 1.65; }
.how-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.how-list li { padding: 12px 16px; background: rgba(255,255,255,.07); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; color: #e6ecf5; }
.how-list b { color: #fff; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } .how-photo { min-height: 280px; } }

.site-footer { max-width: 1240px; margin: 0 auto; padding: 32px 16px 48px; font-size: .875rem; color: var(--ink-soft); line-height: 1.6; }
.site-footer p { max-width: 72ch; margin: 8px 0; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: "Unbounded", sans-serif; font-weight: 500; color: var(--ink); font-size: 1rem; }

/* election-night photo banner (site only) */
.en-photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; height: clamp(220px, 34vw, 400px); background: #22335a; }
.en-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
.en-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(22,35,63,.85); color: #fff; font-size: .9375rem; padding: 8px 14px; border-radius: 999px; }
