/* Citi Bike palette. --accent is the brand blue used for chrome (rules, sliders,
   nav); --station, --green and --coral are data encodings and carry meaning:
   stations, departures, arrivals. Change those three only alongside the legend
   copy in index.html and README.md. */
:root { --ink:#0f1e2b; --muted:#5b6b78; --paper:#f2f4f6; --mint:#dee7ee; --green:#17756a; --accent:#1f7fc4; --coral:#ef725b; --station:#2b90d9; --line:#ccd6de; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { animation:none!important; } }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Manrope,Arial,sans-serif; }
main { max-width:1320px; margin:0 auto; padding:30px clamp(20px,5vw,72px) 80px; }
:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
.nebula-section :focus-visible { outline-color:#91a8ff; }
.skip-link { position:absolute; left:-9999px; top:0; z-index:1300; padding:10px 16px; background:var(--ink); color:var(--paper); font:500 12px "DM Mono",monospace; }
.skip-link:focus { left:0; }

/* sticky section navigation */
.sitenav { position:sticky; top:0; z-index:1200; background:rgba(242,244,246,.93); backdrop-filter:blur(9px); border-bottom:1px solid var(--line); }
.sitenav-inner { max-width:1320px; margin:0 auto; padding:0 clamp(20px,5vw,72px); height:52px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.sitenav-brand { flex:0 0 auto; text-decoration:none; color:var(--ink); font:700 13px/1 Manrope,Arial,sans-serif; letter-spacing:-.02em; }
.sitenav-brand span { display:inline-block; margin-left:8px; color:var(--muted); font:500 10px/1 "DM Mono",monospace; letter-spacing:.09em; }
.sitenav ul { display:flex; gap:4px; margin:0; padding:0; list-style:none; overflow-x:auto; scrollbar-width:none; }
.sitenav ul::-webkit-scrollbar { display:none; }
.sitenav ul a { display:block; white-space:nowrap; padding:7px 11px; text-decoration:none; color:var(--muted); font:500 11px/1 "DM Mono",monospace; letter-spacing:.05em; border:1px solid transparent; }
.sitenav ul a b { color:var(--line); font-weight:500; margin-right:5px; }
.sitenav ul a:hover { color:var(--ink); border-color:var(--line); }
.sitenav ul a.is-current { color:var(--ink); border-color:var(--ink); background:var(--mint); }
.sitenav ul a.is-current b { color:var(--green); }
.sitenav-progress { height:2px; background:var(--line); }
.sitenav-progress span { display:block; height:100%; width:0; background:var(--accent); }
section[id] { scroll-margin-top:54px; }

.masthead { padding:30px 0 70px; border-bottom:1px solid var(--ink); }
.wordmark-tag { margin:14px 0 0; font:500 clamp(11px,1.5vw,15px)/1 "DM Mono",monospace; letter-spacing:.34em; color:var(--green); }
.eyebrow, .metadata, footer, .control-title { font:500 11px/1.3 "DM Mono",monospace; letter-spacing:.08em; }
.eyebrow { color:var(--green); margin:0 0 14px; }
.title-row { display:grid; grid-template-columns:minmax(250px,1fr) minmax(260px,.75fr); gap:30px; align-items:end; }
h1,h2,h3,p { margin-top:0; } h1 { font-size:clamp(72px,13vw,170px); line-height:.78; letter-spacing:-.035em; margin:0; font-weight:700; }
h2 { font-size:clamp(30px,4.2vw,54px); line-height:.95; letter-spacing:-.055em; margin:0; } h3 { font-size:25px; line-height:1.03; letter-spacing:-.04em; margin-bottom:12px; }
.deck { max-width:400px; font-size:17px; line-height:1.5; margin:0 0 4px; }
.metadata { display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:42px; color:var(--muted); }
section { padding:80px 0; border-bottom:1px solid var(--line); }.section-heading { display:flex; justify-content:space-between; gap:40px; align-items:end; margin-bottom:28px; }.section-note { max-width:340px; color:var(--muted); line-height:1.45; margin:0; font-size:14px; }
.prologue { padding-top:68px; }.prologue .section-heading { max-width:880px; }.story-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(28px,7vw,100px); max-width:1030px; }.story-columns p { margin:0; font-size:16px; line-height:1.65; }.story-columns em { font-family:Georgia,serif; }.interpretation { max-width:900px; margin:30px 0 0 auto; padding:23px 0 0 25px; border-left:3px solid var(--accent); }.interpretation p:last-child { margin-bottom:0; }.interpretation p:not(.interpretation-label) { font-size:14px; line-height:1.65; max-width:770px; }.interpretation-label { color:var(--green); font:500 10px/1.3 "DM Mono",monospace; letter-spacing:.09em; margin-bottom:11px; }.interpretation-dark { border-left-color:#91a8ff; }.interpretation-dark .interpretation-label { color:#91a8ff; }.interpretation-dark p:not(.interpretation-label) { color:#d1dbe8; }
.nebula-section { background:#0a1113; color:#e9eef7; margin:0 calc(clamp(20px,5vw,72px) * -1); padding:78px clamp(20px,5vw,72px) 66px; border-color:#283537; }.nebula-section .eyebrow { color:#8fa8ff; }.nebula-section .section-note { color:#b8c6d5; }.nebula-frame { height:min(62vw,620px); min-height:440px; overflow:hidden; position:relative; background:radial-gradient(circle at 56% 42%,#151e2a 0,#090e12 49%,#050709 100%); border:1px solid #303e49; }.nebula-frame::after { content:""; position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(#dbe6ff 1px,transparent 1px); background-size:57px 57px; opacity:.08; }.nebula-frame #nebula,.nebula-frame #nebula svg { width:100%; height:100%; display:block; }.nebula-label { position:absolute; z-index:2; top:30px; left:32px; font-size:clamp(25px,4vw,48px); font-weight:700; letter-spacing:-.065em; color:#d4e0ee; }.nebula-label span { color:#8094f2; }.nebula-label em { color:#91a8ff; font:italic 22px Georgia,serif; letter-spacing:0; margin-left:10px; }.nebula-key { position:absolute; z-index:2; bottom:25px; left:31px; color:#a9b7c8; font:10px/1.55 "DM Mono",monospace; }.nebula-timeline { display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:center; gap:18px; margin-top:18px; }.nebula-timeline button { border:1px solid #91a8ff; background:transparent; color:#dce6ff; padding:9px 16px; font:500 11px "DM Mono",monospace; letter-spacing:.06em; cursor:pointer; }.nebula-timeline button:hover { background:#91a8ff; color:#091016; }.nebula-time { min-width:96px; font:500 21px "DM Mono",monospace; color:#dce6ff; }.nebula-time small { display:block; margin-top:2px; color:#91a8ff; font-size:9px; }.nebula-timeline input { width:100%; accent-color:#91a8ff; }.nebula-ticks { color:#a9b7c8; margin:5px 0 0 230px; }.nebula-section .caption { color:#a9b7c8; }.nebula-land { fill:#10171c; stroke:#3a4650; stroke-width:.8; }.nebula-star { transition:opacity .25s ease,filter .25s ease; }.nebula-core { stroke:none; }.nebula-halo { pointer-events:none; }.nebula-star.is-active { animation:nebula-pulse 1.1s ease-in-out infinite alternate; } @keyframes nebula-pulse { from { filter:drop-shadow(0 0 2px #8ca6ff); } to { filter:drop-shadow(0 0 10px #b9c8ff); } }
.map-shell { height:min(68vw,675px); min-height:480px; position:relative; border:1px solid var(--ink); overflow:hidden; background:var(--mint); } #layer-map { width:100%; height:100%; }.map-controls { position:absolute; z-index:600; top:18px; left:18px; width:238px; padding:15px 16px; background:rgba(242,244,246,.94); border:1px solid var(--ink); box-shadow:4px 4px 0 rgba(15,30,43,.16); }.map-controls label { display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:12px; margin:10px 0; cursor:pointer; }.map-controls label small { flex:0 0 100%; padding-left:28px; color:var(--muted); font-size:10px; }.map-controls input { accent-color:var(--accent); }.control-title { margin:0 0 14px; color:var(--muted); }.swatch { width:11px; height:11px; flex:0 0 11px; display:inline-block; border:1px solid var(--ink); }.income { background:#b9a0d4; }.station { border-radius:50%; background:var(--station); }.flow { height:3px; border:0; background:var(--green); }.landmark { background:var(--coral); transform:rotate(45deg); }.map-summary { position:absolute; z-index:600; right:18px; bottom:18px; max-width:270px; padding:10px 12px; background:rgba(15,30,43,.9); color:#fff; font:11px/1.4 "DM Mono",monospace; }.caption { margin:14px 0 0; font-size:12px; color:var(--muted); line-height:1.45; }
.landmark-marker { background:var(--coral); border:2px solid var(--paper); width:13px!important; height:13px!important; transform:rotate(45deg); box-shadow:0 0 0 1px var(--ink); }.station-marker { background:var(--station); border:1px solid #0f4c78; border-radius:50%; }.landmark-preview { min-width:176px; padding:0!important; overflow:hidden; border:1px solid var(--ink); border-radius:0!important; box-shadow:4px 4px 0 rgba(15,30,43,.22); background:var(--paper)!important; color:var(--ink)!important; }.landmark-preview::before { border-top-color:var(--ink)!important; }.landmark-preview img { display:block; width:176px; height:120px; object-fit:cover; }.landmark-preview div { padding:8px 9px 9px; }.landmark-preview strong { display:block; font-size:12px; margin-bottom:3px; }.landmark-preview a { color:var(--green); font:10px "DM Mono",monospace; text-decoration:none; }.leaflet-popup-content-wrapper { font-family:Manrope,Arial,sans-serif; border-radius:0; }.leaflet-container { font-family:Manrope,Arial,sans-serif; }
.timeline-card { padding:28px; background:var(--ink); color:var(--paper); }.timeline-topline { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:22px; font:500 13px "DM Mono",monospace; }.timeline-topline span:first-child { font-size:clamp(30px,5vw,56px); letter-spacing:-.08em; }.timeline-card input { width:100%; accent-color:var(--accent); }.ticks { display:flex; justify-content:space-between; margin:6px 0 28px; color:#9fb2c0; font:10px "DM Mono",monospace; }.timeline-card p { max-width:590px; color:#c2d1de; font-size:12px; line-height:1.5; margin:16px 0 0; } #trip-strip { height:280px; overflow:hidden; background:#0b1720; }
.wheel-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(210px,.6fr); gap:35px; align-items:center; }.station-detail { border-left:3px solid var(--accent); padding:16px 0 16px 22px; }.station-detail p:not(.eyebrow) { color:var(--muted); line-height:1.55; font-size:14px; }.legend { display:flex; flex-direction:column; gap:9px; font-size:12px; }.legend i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:7px; }.legend-out { background:var(--coral); }.legend-in { background:var(--green); } #wheel svg { width:100%; height:auto; display:block; }.node-label { font:10px Manrope,Arial,sans-serif; fill:var(--ink); }.node { cursor:pointer; }.node circle { transition:r .15s; }.node:hover circle { r:9; } footer { max-width:1320px; margin:0 auto; padding:22px clamp(20px,5vw,72px) 35px; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px 26px; }
@media (max-width:680px) { main { padding-top:16px; }.sitenav-inner { height:auto; padding-top:9px; padding-bottom:9px; flex-direction:column; align-items:stretch; gap:9px; }.sitenav-brand span { display:none; }.sitenav ul { gap:5px; } section[id] { scroll-margin-top:78px; }.masthead { padding-bottom:48px; }.wordmark-tag { letter-spacing:.22em; }.title-row,.wheel-layout,.story-columns { grid-template-columns:1fr; }.section-heading { display:block; }.section-note { margin-top:18px; }.prologue { padding-top:52px; }.story-columns { gap:18px; }.interpretation { padding-left:18px; }.nebula-section { padding-top:54px; }.nebula-frame { min-height:420px; }.nebula-label { top:19px; left:18px; }.nebula-key { left:18px; bottom:18px; }.nebula-timeline { grid-template-columns:auto 1fr; gap:12px; }.nebula-timeline input { grid-column:1 / -1; }.nebula-ticks { margin-left:0; }.map-shell { min-height:560px; height:70vh; }.map-controls { top:auto; bottom:16px; left:14px; }.map-summary { top:16px; right:14px; bottom:auto; max-width:175px; }.timeline-card { padding:18px; } }
