@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/newsreader-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/newsreader-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/sofia-sans-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/sofia-sans-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/fonts/sofia-sans-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/fonts/sofia-sans-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("/fonts/sofia-sans-extra-condensed-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("/fonts/sofia-sans-extra-condensed-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F8FAFA;
  --panel: #EDF2F3;
  --ink: #13212C;
  --ink-2: #3E4F5C;
  --muted: #5E6E7A;
  --rule: #D5DDE2;
  --accent: #007A5E;
  --accent-deep: #005C47;
  --tint: #D3EAE2;
  --ui: "Sofia Sans", ui-sans-serif, system-ui, sans-serif;
  --tall: "Sofia Sans Extra Condensed", "Sofia Sans", ui-sans-serif, sans-serif;
  --prose: "Newsreader", Georgia, serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: 3rem;
  --step-6: 4.5rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.5 var(--ui);
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--tint); color: var(--ink); }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem; z-index: 5; }

/* Header: the band-and-dot mark, the name, the sections */
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none;
  font: 700 var(--step-1)/1 var(--ui); letter-spacing: -0.01em; }
.mark svg { width: 2.1rem; height: 1.05rem; flex: none; }
.mark:hover { color: var(--ink); }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); font-weight: 600; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.unit {
  font: 700 var(--step--1) var(--ui); color: var(--ink); background: transparent;
  border: 1.5px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; min-height: 2.25rem;
}
.unit:hover { border-color: var(--ink); }

/* Home hero: what you came for (search) beside the proof (yesterday's receipts) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem 3.5rem; align-items: start; padding: 3.5rem 0 1rem; }
.hero h1 { font: 600 clamp(3rem, 7.5vw, 5.75rem)/0.92 var(--tall); letter-spacing: -0.01em; margin: 0 0 1.1rem; max-width: 9ch; }
.hero p { color: var(--ink-2); max-width: 34ch; margin: 0 0 1.75rem; font-size: var(--step-1); line-height: 1.4; }
.proofs { margin: 0; }
.proofs h2 { font: 700 var(--step-1)/1.25 var(--ui); margin: 0.4rem 0 0.25rem; }
.proofs p { color: var(--ink-2); font-size: var(--step--1); margin: 0 0 0.75rem; max-width: 46ch; }
.proofs .strip { margin-top: 0.25rem; }
.proofs .axis { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin: 0.1rem 0 0; }
.chart.strip .sdot:hover circle:first-of-type, .chart.strip .sdot:focus circle:first-of-type { r: 6; }
.search { position: relative; max-width: 30rem; }
.search label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); margin-bottom: 0.4rem; }
.search input {
  width: 100%; font: 400 var(--step-1) var(--ui); padding: 0.85rem 1rem; color: var(--ink);
  background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: 0.75rem;
}
.search input::placeholder { color: var(--muted); }
.search ul { list-style: none; margin: 0.35rem 0 0; padding: 0.25rem 0; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 0.75rem; position: absolute; left: 0; right: 0; z-index: 3; box-shadow: 0 10px 30px rgb(19 33 44 / 0.10); }
.search li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; color: var(--ink); text-decoration: none; }
.search li a:hover, .search li a:focus { background: var(--panel); }
.search li span { color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
.search ul:empty { display: none; }

.mapbox { margin: 1.5rem 0 0.5rem; }
.map { display: block; width: 100%; height: auto; }
.map .dot circle:first-of-type { transition: r 0.1s; }
.map a.dot:hover circle:first-of-type, .map a.dot:focus circle:first-of-type { r: 7; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; padding: 0; margin: 0.6rem 0 0; font-size: var(--step--1); color: var(--ink-2); }
.legend .sw { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; margin-right: 0.4rem; vertical-align: -0.08rem; }
.caption { font-size: var(--step--1); color: var(--muted); margin: 0.4rem 0 0; }

/* Lists */
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 2.25rem; margin: 3rem 0; }
.lists h2 { font: 700 var(--step-1)/1.25 var(--ui); margin: 0 0 0.75rem; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { border-top: 1px solid var(--rule); }
.rank a { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.75rem; padding: 0.6rem 0; color: var(--ink); text-decoration: none; }
.rank a:hover .c { color: var(--accent); }
.rank .c { font-weight: 700; overflow-wrap: anywhere; }
.rank .c .code { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.rank .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank .s { color: var(--muted); font-size: var(--step--1); grid-column: 1 / -1; }

.index { columns: 15rem; column-gap: 2.25rem; margin: 1rem 0 4rem; }
.index section { break-inside: avoid; margin: 0 0 1.25rem; }
.index h3 { font-size: var(--step--1); font-weight: 700; margin: 0 0 0.3rem; color: var(--ink-2); }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li { padding: 0.12rem 0; }
.index li a { color: var(--ink); text-decoration: none; }
.index li a:hover { color: var(--accent); text-decoration: underline; }
.index li .code { color: var(--muted); font-size: var(--step--1); }

h2.sec { font: 600 var(--step-3)/1.05 var(--tall); margin: 3.25rem 0 0.6rem; letter-spacing: 0; }

/* City page */
.crumb { margin: 1.5rem 0 0; font-size: var(--step--1); }
.city-head { margin: 0.75rem 0 1.25rem; }
.city-head h1 { font: 600 clamp(2.75rem, 7vw, var(--step-6))/0.95 var(--tall); margin: 0; }
.city-head p { margin: 0.5rem 0 0; color: var(--ink-2); }
.big { display: flex; gap: 3.5rem; flex-wrap: wrap; align-items: flex-end; margin: 0 0 0.5rem; }
.big div { min-width: 0; }
.big .lab { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.big .num { display: block; font: 300 clamp(5.5rem, 17vw, 10.5rem)/0.82 var(--tall); letter-spacing: -0.02em; }
.big .lo .num { color: var(--ink-2); }
.big .rng { display: block; font-size: var(--step--1); color: var(--muted); margin-top: 0.4rem; }
.ruler-wrap { max-width: 30rem; margin: 0.75rem 0 1.75rem; }
.chart.ruler .direct { font-size: 14px; }
.chart.ruler .tick { font-size: 13px; }
.ruler-wrap .caption { margin-top: 0.2rem; }
.sky-wrap { position: relative; margin: 0 0 0.25rem; }
.sky { display: block; width: 100%; height: 170px; border-radius: 10px; }
.sky-s { width: 120px; height: 22px; display: block; }
.sky-lab { position: absolute; transform: translate(-50%, -135%); font-weight: 700; color: var(--ink); background: rgb(248 250 250 / 0.9); padding: 0 0.35rem; border-radius: 0.3rem; font-size: var(--step--1); }
.sky-lab.lo { transform: translate(-50%, -135%); }
.sky-ticks { position: relative; height: 1.4rem; font-size: 0.8rem; color: var(--muted); }
.sky-tick { position: absolute; top: 0.2rem; transform: translateX(-50%); }
.sky-tick:first-child { transform: none; }
.sky-note { font-size: var(--step--1); color: var(--muted); margin: 0 0 2rem; max-width: 60ch; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 2rem; border-top: 1px solid var(--rule); }
.facts div { padding: 0.9rem 0.75rem 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--step--1); color: var(--ink-2); }
.facts dd { margin: 0.1rem 0 0; font: 400 var(--step-3)/1.1 var(--tall); }
.facts dd small { font: 400 var(--step--1) var(--ui); color: var(--muted); }

.context { font-family: var(--prose); font-size: 1.25rem; line-height: 1.6; max-width: 38rem; margin: 0 0 2rem; }
.now { background: var(--panel); border-radius: 0.9rem; padding: 1rem 1.25rem; max-width: 38rem; margin: 0 0 2.5rem; }
.now h2 { font-size: var(--step-0); font-weight: 700; margin: 0 0 0.25rem; }
.now p { margin: 0; }
.now .when { color: var(--muted); font-size: var(--step--1); margin-top: 0.3rem; }

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--rule); font-size: var(--step--1); vertical-align: middle; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th { font-weight: 700; color: var(--ink-2); vertical-align: bottom; }
td.hit { color: var(--ink); }
td.miss { color: var(--ink); font-weight: 800; }
td.rc { width: 7.5rem; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.receipt { display: block; width: 120px; height: 22px; }
.record { max-width: 54rem; margin: 0 0 1rem; }
.record td:first-child { white-space: nowrap; }
.record caption { caption-side: bottom; text-align: left; }
.record-sum { font-family: var(--prose); font-size: 1.15rem; max-width: 38rem; margin: 0.5rem 0 2.5rem; }
.near { list-style: none; padding: 0; margin: 0 0 4rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Prose pages */
.prose { max-width: 38rem; font-family: var(--prose); font-size: 1.2rem; line-height: 1.65; }
.prose h1 { font: 600 clamp(2.5rem, 6vw, var(--step-6))/0.98 var(--tall); margin: 2.5rem 0 1rem; }
.prose h2 { font: 700 var(--step-2)/1.2 var(--ui); margin: 2.75rem 0 0.75rem; letter-spacing: -0.01em; }
.prose h3 { font: 700 var(--step-1)/1.3 var(--ui); margin: 2rem 0 0.5rem; }
.prose p, .prose li { margin: 0 0 1rem; }
.prose ol { padding-left: 1.4rem; }
.lede { font-size: 1.4rem; line-height: 1.5; color: var(--ink-2); }
.figure { margin: 1.5rem 0 1rem; max-width: 46rem; }
.figure figcaption { font-family: var(--ui); font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }
.chart { display: block; width: 100%; height: auto; font-family: var(--ui); }
.chart .tick { font-size: 12px; fill: var(--muted); }
.chart .axis-label { font-size: 12px; fill: var(--ink-2); }
.chart .direct { font-size: 13px; fill: var(--ink); font-weight: 700; }
.chart .cell { font-size: 12px; font-weight: 700; }
details { font-family: var(--ui); font-size: var(--step--1); margin: 0 0 2rem; max-width: 46rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 0.3rem 0; }
.wide { max-width: 70rem; }
.scores th, .scores td { font-size: var(--step--1); }
tr.ours th, tr.ours td { font-weight: 800; color: var(--ink); }
tr.ours th::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); margin-right: 0.45rem; vertical-align: 0.05rem; }

footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.75rem 0 3rem; color: var(--muted); font-size: var(--step--1); }
footer p { margin: 0 0 0.45rem; max-width: 64ch; }

@media (max-width: 60rem) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 2.25rem; } }
@media (max-width: 52rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .big { gap: 2rem; }
  .sky { height: 130px; }
  th, td { padding: 0.45rem 0.3rem; }
  .hide-s { display: none; }
  td.rc { width: 5.5rem; }
  .receipt { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
