/* Five ways to hear New York. Shared styles. */
:root {
  --ink: #0b1019;
  --ink-2: #121a27;
  --ink-3: #1d2738;
  --line: #2a3648;
  --paper: #efe9dc;
  --paper-2: #b8b3a6;
  --mute: #737c8c;
  --amber: #ffb84a;
  --coral: #f06b5b;
  --teal: #3ec1b0;
  --lilac: #a18bf5;
  --sky: #62b0f5;
  --leaf: #9bd55c;
  --focus: #ffd65c;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --measure: 34rem;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration-color: var(--mute); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 6.4rem); font-stretch: 90%; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 600; }
.small { font-size: 0.86rem; color: var(--paper-2); }
.mute { color: var(--mute); }
.sr { position: absolute; left: -9999px; }
canvas { display: block; }
b { font-weight: 600; }

/* ----- masthead (chapters) ----- */
.mast { position: fixed; inset: 0 0 auto 0; z-index: 30; background: linear-gradient(var(--ink) 30%, transparent); display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.2rem; font-family: var(--display); font-size: 0.9rem; pointer-events: none; }
.mast a, .mast span { pointer-events: auto; }
.mast .brand { font-weight: 600; text-decoration: none; color: var(--paper); display: inline-flex; align-items: center; gap: 0.5rem; }
.mast .brand .mark { color: var(--amber); flex: none; }
.mast .brand:hover { color: var(--amber); }
.mast .brand small { font-weight: 400; color: var(--mute); margin-left: 0.5rem; }
.mast nav a { color: var(--paper-2); text-decoration: none; margin-left: 1rem; }
.mast nav a[aria-current] { color: var(--amber); }
@media (max-width: 720px) { .mast nav { display: none; } }

/* ----- full-bleed map stage with scrolling steps ----- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.stage canvas, .stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage svg { pointer-events: none; overflow: visible; font-family: var(--display); }
.stage .lab { font-size: 12px; fill: var(--paper); paint-order: stroke; stroke: var(--ink); stroke-width: 3px; stroke-linejoin: round; }
.stage .lab.big { font-size: 15px; font-weight: 600; }
.stage .lab.dim { fill: var(--paper-2); }
.steps { position: relative; z-index: 10; width: min(100%, 30rem); padding: 0 0 40vh; pointer-events: none; }
.step { min-height: 78vh; display: flex; align-items: center; padding: 0 1.2rem; }
.step:first-child { min-height: 100vh; }
.step .card { pointer-events: auto; background: color-mix(in srgb, var(--ink-2) 88%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--line); padding: 1.25rem 1.4rem 0.6rem; border-radius: 4px; max-width: 30rem; }
.step .card p { font-size: 1.02rem; }
.step .card .figure { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--amber); margin: 0.1rem 0 0.5rem; font-variant-numeric: tabular-nums; }
.step .card .figure small { font-size: 0.4em; font-weight: 500; color: var(--paper-2); margin-left: 0.3rem; letter-spacing: 0; }
.step .card h2 { margin-bottom: 0.7rem; }
.step .card .chart { margin: 0.6rem 0 0.5rem; }
.step .card .chart svg { display: block; width: 100%; height: auto; font-family: var(--display); font-size: 11px; }
.step .card .chart text { fill: var(--paper-2); }
.step .card .cap { font-family: var(--display); font-size: 0.78rem; color: var(--mute); line-height: 1.4; margin-top: 0.5rem; }
.step .card .cap b { color: var(--paper-2); font-weight: 500; }
.step.wide .card { max-width: 36rem; }
.step.hero .card { background: transparent; border: 0; backdrop-filter: none; padding: 0; max-width: 34rem; }
.step.hero .card h1 { margin-bottom: 1rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.step.hero .lede { font-size: 1.2rem; color: var(--paper-2); }
.step.hero .kicker { font-family: var(--display); color: var(--amber); font-weight: 500; margin-bottom: 0.8rem; }
.step .next { pointer-events: auto; display: inline-block; margin-top: 0.4rem; font-family: var(--display); text-decoration: none; color: var(--amber); }
.step .next:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .steps { width: 100%; }
  .step { align-items: flex-end; padding: 0 0.7rem 1rem; min-height: 90vh; }
  .step .card { max-width: none; width: 100%; padding: 1rem 1rem 0.4rem; }
  .step .card .figure { font-size: 2.2rem; }
}

/* controls on the stage */
.hud { position: fixed; z-index: 20; right: 1.2rem; bottom: 1.2rem; font-family: var(--display); font-size: 0.85rem; color: var(--paper-2);
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.hud .legend { display: flex; gap: 0.35rem; align-items: center; background: color-mix(in srgb, var(--ink-2) 85%, transparent);
  border: 1px solid var(--line); padding: 0.45rem 0.7rem; border-radius: 4px; }
.hud .legend .bar { width: 120px; height: 8px; border-radius: 2px; }
.hud .legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 0.35rem; }
.hud .btn, .hud select, .hud input[type=range] { font: inherit; }
.hud .btn { background: var(--ink-3); color: var(--paper); border: 1px solid var(--line); padding: 0.35rem 0.7rem; border-radius: 4px; cursor: pointer; }
.hud .btn[aria-pressed="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.hud .row { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .hud { right: 0.7rem; bottom: auto; top: 3rem; font-size: 0.72rem; align-items: flex-end; }
  .hud .legend .bar { width: 70px; } .hud .legend { padding: 0.3rem 0.5rem; } .hud > .small { display: none; }
  .step.hero .card { background: color-mix(in srgb, var(--ink-2) 88%, transparent); border: 1px solid var(--line); padding: 1rem 1rem 0.6rem; backdrop-filter: blur(6px); }
}

/* ----- inline pages (landing, methods) ----- */
.wrap { width: min(100% - 2.4rem, 68rem); margin: 0 auto; }
.section { padding: 5rem 0 3rem; }
.section h2 { margin-bottom: 1.2rem; }
.prose { max-width: var(--measure); }
.prose p { font-size: 1.05rem; }
.foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--paper-2); font-family: var(--display); font-size: 0.86rem; }
.foot p { max-width: 50rem; }
table.t { border-collapse: collapse; width: 100%; font-family: var(--display); font-size: 0.9rem; }
table.t th, table.t td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.step .card .figure small { display: block; margin: 0.25rem 0 0; font-size: 0.95rem; letter-spacing: -0.01em; }
