:root {
  color-scheme: dark;
  --ground: #0b1415;
  --panel: #112020;
  --line: #354a44;
  --mint: #8cddd0;
  --cream: #f8ead0;
  --muted: #b6c2b7;
  --amber: #ffb880;
  --accent: #ff7953;
  --sans: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --serif: Bitter, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --width: 80rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--cream); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { color: var(--mint); }
a:focus-visible, input:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 4px;
}
::selection { background: var(--mint); color: var(--ground); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(calc(100% - clamp(2rem, 8vw, 8rem)), var(--width)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 0; transform: translateY(-150%); padding: .8rem 1rem; z-index: 5; color: var(--ground); background: var(--cream); }
.skip:focus { transform: translateY(0); }
.top { background: #0b1516; border-bottom: 1px solid var(--line); }
.bar, .main-nav, .brand, .footer-inner, .finder, .filter, .hero-actions, .chapter-head, .section-top { display: flex; align-items: center; }
.bar { justify-content: space-between; gap: 1rem; min-height: 4.9rem; }
.brand { gap: .58rem; text-decoration: none; font-weight: 850; font-size: 1.58rem; line-height: 1; letter-spacing: -.075em; color: var(--cream); }
.brand em { color: var(--mint); font-style: normal; }
.brand-mark { width: 1.9rem; height: 2rem; }
.main-nav { gap: clamp(.9rem, 2.8vw, 2.8rem); }
.main-nav a, .main-nav summary { min-height: 44px; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.main-nav a.current, .main-nav a:hover, .main-nav summary:hover { color: var(--mint); }
.main-nav a.current { box-shadow: inset 0 -2px var(--mint); }
details.menu { position: relative; }
.menu summary { cursor: pointer; list-style: none; gap: .45rem; }
.menu summary::after { content: "⌄"; }
.menu summary::-webkit-details-marker { display: none; }
.pop { position: absolute; right: 0; z-index: 4; width: 13rem; border: 1px solid var(--line); background: var(--panel); padding: .5rem 1rem; }
.pop a { display: flex; border-bottom: 1px solid var(--line); }
.pop a:last-child { border: none; }
.mono, .eyebrow, .stop-code, .stat, .subtle, .region-count, .paper-label { font: 600 .69rem/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--mint); }
.eyebrow::before { content: ""; display: inline-block; flex: 0 0 1.75rem; height: 2px; background: currentColor; }
.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 77% 37%, #1b3431 0, transparent 54%), #101c1c; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.2rem,4vw,4rem); align-items: center; padding-block: clamp(2.8rem,5vw,5rem); }
.hero h1 { font-weight: 680; letter-spacing: -.078em; line-height: .95; font-size: clamp(4.5rem,7.8vw,7.6rem); margin: 1.6rem 0 1.5rem; }
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.08em; color: var(--mint); }
.deck { font-family: var(--serif); color: #d6dbca; max-width: 36em; font-size: clamp(1.05rem,1.4vw,1.22rem); line-height: 1.58; }
.hero .deck { max-width: 29em; }
.hero-actions { flex-wrap: wrap; gap: .65rem 1.4rem; margin-top: 1.8rem; }
.button, .text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: .85rem; font-weight: 700; font-size: .9rem; }
.button { background: var(--mint); color: #112320; padding: .75rem 1.2rem; text-decoration: none; }
.button:hover { background: var(--cream); color: var(--ground); }
.text-action { color: var(--cream); }
.plot { position: relative; overflow: hidden; border: 1px solid #4d6860; background: #142423; }
.plot svg { display: block; width: 100%; height: auto; }
.plot figcaption { display: flex; align-items: center; justify-content: space-between; gap: .4rem; border-top: 1px solid #486159; padding: .65rem .9rem; color: #c6d1c2; }
.plot .legend { display: inline-flex; align-items: center; gap: .45rem; }
.legend::before { content: ""; width: .46rem; height: .46rem; border-radius: 100%; background: var(--amber); }
.plot a { cursor: pointer; outline-offset: 0; }
.plot a text { fill: var(--cream); }
.plot a:hover text, .plot a:focus text { fill: var(--amber); text-decoration: underline; }
.plot a:focus-visible rect { stroke: var(--amber); stroke-width: 2; }
.stops { border-bottom: 1px solid var(--line); background: #0e191a; }
.stop-inner { display: grid; grid-template-columns: repeat(3,1fr); }
.stop { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: 1.3rem clamp(.8rem,2vw,2rem); border-right: 1px solid var(--line); text-decoration: none; }
.stop:first-child { padding-left: 0; }
.stop:last-child { border: none; }
.route-icon { width: 2.35rem; height: 2.35rem; color: var(--mint); }
.stop-code { color: var(--amber); font-size: .62rem; }
.stop strong { display: block; margin-top: .15rem; font: 500 1.55rem/1.2 var(--serif); }
.arrow { color: var(--mint); }
.directory { padding-block: clamp(3rem,6vw,6rem); }
.section-top { align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.7rem; }
.section-top h2, .next h2 { font: 550 clamp(2.3rem,4.3vw,4.1rem)/1.08 var(--serif); letter-spacing: -.055em; }
.stat { color: var(--mint); white-space: nowrap; }
.finder { border-block: 1px solid var(--line); flex-wrap: wrap; gap: .85rem; padding: 1rem 0; margin-bottom: 1.1rem; }
.filter { flex-wrap: wrap; gap: .7rem; }
.filter input, .filter select, .filter button { min-height: 44px; border: 1px solid #587269; background: #101e1e; color: var(--cream); font: inherit; padding: .55rem .8rem; border-radius: 0; }
.filter input { width: min(22rem, 100%); }
.filter input::placeholder { color: #b4c3bb; }
.filter button { cursor: pointer; }
.filter button:hover { border-color: var(--mint); }
.directory-grid { display: grid; grid-template-columns: minmax(10rem,.72fr) minmax(0,2.28fr); gap: clamp(1.5rem,5vw,5.5rem); }
.region-nav { align-self: start; position: sticky; top: 1rem; }
.region-nav h3, .local-nav h2 { color: var(--amber); margin: 1.15rem 0 .7rem; }
.region-nav a, .local-nav a { display: flex; gap: .7rem; align-items: center; padding: .75rem 0; min-height: 44px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.region-nav a:hover, .local-nav a:hover { color: var(--mint); text-decoration: underline; }
.pin { display: inline-block; width: .47rem; height: .47rem; flex-shrink: 0; border: 1px solid var(--mint); transform: rotate(45deg); }
.chapter { padding-top: 1.2rem; padding-bottom: 2rem; scroll-margin-top: 1rem; }
.chapter-head { justify-content: space-between; gap: .7rem; }
.chapter-head h3 { font: 500 clamp(1.55rem,2.3vw,2.3rem)/1.2 var(--serif); letter-spacing: -.038em; }
.region-count, .subtle { color: var(--muted); font-size: .64rem; }
.chapter > p { color: var(--muted); margin: .55rem 0 1rem; max-width: 65ch; }
.city-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.city-list a { display: grid; grid-template-columns: minmax(8rem,.9fr) minmax(8rem,1.5fr) auto; align-items: center; gap: .7rem; padding: .9rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.city-list strong { font-size: 1.09rem; }
.city-list small { font-size: .9rem; color: var(--muted); }
.city-list a:hover, .stop:hover { background: #162725; }
.empty { padding: 1.2rem 0; color: var(--cream); }
.crumb { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 1.65rem; color: var(--muted); font-size: .9rem; }
.crumb a { padding-block: .4rem; }
.guide-head { padding-block: 1.6rem clamp(2.3rem,5vw,4.7rem); border-bottom: 1px solid var(--line); background: linear-gradient(105deg,#132221,#101b1c); }
.guide-head h1 { font-size: clamp(3.5rem,8vw,7.5rem); line-height: 1.03; letter-spacing: -.074em; font-weight: 640; margin-block: 1.1rem; }
.guide-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(12rem,.38fr); gap: clamp(2rem,6vw,7rem); padding-block: 2.7rem 4.2rem; }
.entry { border-top: 1px solid var(--line); padding: 1.65rem 0 2rem; scroll-margin-top: 1rem; }
.entry .paper-label { color: var(--amber); }
.entry h2 { font: 500 clamp(1.65rem,2.75vw,2.7rem)/1.12 var(--serif); letter-spacing: -.045em; margin: .6rem 0 1rem; }
.entry p { max-width: 62ch; color: #d7ded3; line-height: 1.68; font-size: 1.04rem; }
.source-links { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin: .65rem 0 0; }
.source-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--mint); font-size: .86rem; }
.local-nav { border-top: 2px solid var(--mint); padding: .35rem 1.1rem 1.1rem; background: var(--panel); align-self: start; }
.local-nav a { border-bottom: 1px solid var(--line); }
.local-nav .review { margin-top: 1.25rem; color: var(--muted); font: .76rem/1.6 var(--mono); }
.next { border-top: 1px solid var(--line); background: #142322; padding: clamp(2rem,4vw,3.3rem) 0; }
.next h2 { font-size: clamp(1.75rem,3vw,2.7rem); }
.next-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1rem; }
.next-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mint); }
footer { padding-block: 1.6rem; border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; color: var(--muted); font-size: .86rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
.notfound { padding-block: 5rem; }
.notfound h1 { font: 500 clamp(3rem,7vw,6rem)/1.05 var(--serif); margin: 1rem 0; }
.sr { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
@media (max-width: 54rem) {
  .hero-grid { gap: 1.25rem; }
  .hero h1 { font-size: clamp(3.8rem,8vw,5.1rem); }
  .stop { gap: .7rem; }
  .route-icon { width: 1.9rem; }
  .directory-grid { grid-template-columns: minmax(9rem,.72fr) minmax(0,2fr); gap: 1.8rem; }
  .city-list a { grid-template-columns: 1fr auto; column-gap: .7rem; row-gap: .15rem; }
  .city-list small { grid-column: 1; grid-row: 2; }
  .city-list .arrow { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 42rem) {
  .bar { min-height: 4rem; }
  .brand { font-size: 1.32rem; }
  .brand-mark { width: 1.55rem; }
  .main-nav { gap: .95rem; }
  .main-nav > .wide-link { display: none; }
  .hero-grid, .directory-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 2.5rem 1.5rem; gap: 2rem; }
  .hero h1 { font-size: clamp(4.1rem,15vw,6.1rem); margin-block: 1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .plot { width: min(100%,31rem); justify-self: center; }
  .stop { padding: .85rem .5rem; display: block; }
  .stop .route-icon, .stop > .arrow { display: none; }
  .stop strong { font-size: clamp(.94rem,4.3vw,1.3rem); }
  .stop-code { font-size: .54rem; letter-spacing: .045em; }
  .section-top { align-items: start; flex-direction: column; gap: .65rem; }
  .finder, .filter { align-items: stretch; }
  .filter, .filter input, .filter select { width: 100%; }
  .region-nav { position: static; }
  .region-nav div { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
  .region-nav a { padding: .45rem 0; font-size: .82rem; }
  .chapter { padding-top: .8rem; }
  .guide-grid { gap: 1.5rem; }
  .guide-grid .local-nav { grid-row: 1; }
  .local-nav nav { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
  .local-nav .review { margin-top: .75rem; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
