/* Lowdown story atlas. Palette and type follow the iOS app: night road, headlight cream, marker gold. */
:root {
  --night: #1A1714;
  --night-2: #24201C;
  --cream: #F5F0E0;
  --dust: #CFC8BA;
  --gold: #F4BD63;
  --sage: #6F9E79;
  --line: rgba(245, 240, 224, 0.14);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--cream); font: 400 18px/1.65 var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: var(--cream); text-decoration-color: rgba(244, 189, 99, 0.55); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
main { max-width: 1080px; margin: 0 auto; padding: 0 20px 64px; }

.top { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 18px 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 400 28px/1 var(--serif); text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: var(--gold); }
.top-app { font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.top-app:hover { border-color: var(--gold); }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; margin: 8px 0 10px; max-width: 18ch; }
h2 { font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
.where { color: var(--dust); margin: 0 0 22px; font-size: 17px; }
.crumbs { font-size: 15px; color: var(--dust); margin-top: 18px; }
.crumbs a { color: var(--dust); }

/* home */
.hero h1 { max-width: 16ch; margin-top: 28px; }
.usmap { display: block; width: 100%; height: auto; margin: 8px 0 4px; }
.usmap .states path { fill: #2C2722; stroke: var(--night); stroke-width: 1; transition: fill 0.15s; }
.usmap .states a:hover path, .usmap .states a:focus-visible path { fill: #3C4A3D; }
.usmap .dots circle { fill: var(--gold); opacity: 0.85; pointer-events: none; }
.hero-sub { max-width: 60ch; color: var(--dust); }
.states-index ul { list-style: none; padding: 0; margin: 28px 0; columns: 4 200px; column-gap: 32px; }
.states-index li { display: flex; justify-content: space-between; gap: 10px; break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.states-index li span { color: var(--dust); font-variant-numeric: tabular-nums; }

/* story */
.story { max-width: 680px; }
.play { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--cream); font: inherit; cursor: pointer; padding: 0; margin: 0 0 30px; text-align: left; }
.play .icon { width: 58px; height: 58px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.play .icon::after { content: ''; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--night); }
.play.playing .icon::after { left: 20px; top: 19px; width: 6px; height: 20px; border: 0; background: var(--night); box-shadow: 12px 0 0 var(--night); }
.play .label { display: block; font-weight: 600; }
.play .time { display: block; color: var(--dust); font-size: 15px; font-variant-numeric: tabular-nums; }
.play:hover .icon { filter: brightness(1.08); }
.transcript p { margin: 0 0 1.1em; max-width: 64ch; }
.sources { margin: 28px 0 0; color: var(--dust); font-size: 15px; }
.sources summary { cursor: pointer; }
.sources ul { padding-left: 18px; }
.sources a { color: var(--dust); }

.locate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; margin: 56px 0; padding-top: 36px; border-top: 1px solid var(--line); }
.statemap { position: relative; width: 100%; }
.statemap img { display: block; width: 100%; height: auto; }
.statemap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.statemap .here { fill: var(--gold); }
.statemap .here-ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0.6; }
.near ul { list-style: none; padding: 0; margin: 0; }
.near li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.near li a { display: block; }
.near li span { color: var(--dust); font-size: 15px; }

/* state */
.state-head .statemap { max-width: 760px; margin: 10px 0 20px; }
.index { columns: 2 340px; column-gap: 48px; }
.group { break-inside: avoid-column; margin: 0 0 28px; }
.group h2 { font-size: 26px; }
.group ul { list-style: none; padding: 0; margin: 0; }
.group li { padding: 3px 0; font-size: 17px; }

/* app */
.app { margin: 64px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); max-width: 640px; }
.app-line { font: 400 clamp(30px, 4vw, 42px)/1.08 var(--serif); margin: 0 0 12px; }
.app-sub { color: var(--dust); margin: 0 0 20px; }
.badge { width: 150px; height: auto; display: block; }
.badge-link { display: inline-block; }

.foot { max-width: 1080px; margin: 0 auto; padding: 28px 20px 48px; color: var(--dust); font-size: 15px; border-top: 1px solid var(--line); }
.foot a { color: var(--dust); margin-right: 14px; }

@media (max-width: 720px) {
  html { font-size: 17px; }
  .locate { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
