/* Wholeframe Expeditions: "The whole map". Salt white, forest ink and the red of the hills, straight off the map. */
:root {
  --chalk: #f4f1e8;
  --paper: #fbf9f3;
  --parch: #e8e4d6;
  --land: #faf8f1;
  --sea: #d3dfd9;
  --ink: #1b3b2d;
  --ink-2: #122a20;
  --forest: #24503c;
  --hill: #b4432a;
  --hill-dk: #963620;
  --hill-lt: #f09a7a;
  --peach: #ffd9c7;
  --sage: #9cc6a6;
  --text: #1d2b24;
  --muted: #4e5a53;
  --line: rgba(27, 59, 45, .18);
  --salt: #2f6283;
  --green: #2c6b45;
  --mer: #b4432a;
  --salt-d: #a3c9e0;
  --green-d: #9cc6a6;
  --mer-d: #f09a7a;
  --k-salt: var(--salt);
  --k-green: var(--green);
  --k-mer: var(--mer);
  --bg: var(--chalk);
  --f-display: "Young Serif", "Sitka Display", "Sitka Heading", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --f-body: "Public Sans", "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --f-data: Bahnschrift, "DIN Alternate", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --wrap: 1200px;
  --gut: clamp(1rem, 4vw, 3rem);
  --thread: calc((100% - var(--wrap)) / 2 - 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--hill-lt); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--hill); outline-offset: 3px; border-radius: 3px; }
.masthead :focus-visible, .system :focus-visible, .reserve .next :focus-visible { outline-color: var(--hill-lt); }
.price :focus-visible { outline-color: var(--chalk); }
.skip-link { position: absolute; left: 1rem; z-index: 60; padding: .7rem 1.1rem; border-radius: 0 0 .5rem .5rem; background: var(--hill); color: var(--paper); font: 600 .95rem/1.2 var(--f-body); text-decoration: none; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 42, 32, .95);
  color: var(--paper);
  border-bottom: 1px solid rgba(244, 241, 232, .22);
}
@supports (backdrop-filter: blur(8px)) { .masthead { background: rgba(18, 42, 32, .92); backdrop-filter: blur(10px) saturate(1.2); } }
.masthead__in { width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.2rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--paper); flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 400 1.45rem/1 var(--f-display); letter-spacing: .01em; }
.brand__sub { margin-top: .28rem; font: 500 .66rem/1 var(--f-data); letter-spacing: .34em; text-transform: uppercase; color: var(--hill-lt); }
.brand__mark { width: 2.6rem; height: 2.2rem; }
.bm-loop { fill: none; stroke: var(--chalk); stroke-width: 2.2; }
.bm-l { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.bm-l--s { stroke: var(--salt-d); }
.bm-l--g { stroke: var(--green-d); stroke-dasharray: 3.4 2.2; stroke-linecap: butt; }
.bm-l--m { stroke: var(--mer-d); stroke-dasharray: 0 3.6; stroke-width: 3; }
.bm-hub { fill: var(--hill); stroke: var(--chalk); stroke-width: 1.8; }
.index__list { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.index a {
  display: flex; align-items: baseline; gap: .35rem;
  padding: .5rem .65rem; border-radius: 999px;
  font: 500 .78rem/1 var(--f-data); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(244, 241, 232, .8); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.index__no { font: italic 400 .82rem/1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--hill-lt); }
.index a:hover, .index a[aria-current="true"] { background: rgba(244, 241, 232, .14); color: var(--paper); }
.index a.index__end { border: 1px solid var(--hill-lt); color: var(--hill-lt); }
.index a.index__end:hover { background: var(--hill-lt); color: var(--ink); }
.index a.index__end:hover .index__no { color: var(--ink); }
.masthead__progress { height: 2px; background: linear-gradient(90deg, var(--sage), var(--hill-lt)); transform: scaleX(0); transform-origin: left; }

/* hero: the whole map on one sheet */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(27, 59, 45, .08) 1px, transparent 1px) 50% 0 / clamp(5rem, 12.5vw, 11rem) 100%,
    linear-gradient(rgba(27, 59, 45, .08) 1px, transparent 1px) 0 50% / 100% clamp(5rem, 12.5vw, 11rem),
    radial-gradient(ellipse 48% 60% at 20% 42%, rgba(251, 249, 243, .62), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .23 0 0 0 0 .17 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--sea);
  padding: clamp(2.4rem, 4vw, 3.2rem) 0 clamp(2rem, 3.4vw, 2.8rem);
}
.hero__sheet { position: absolute; z-index: 1; inset: clamp(.6rem, 1.6vw, 1.4rem); border: 1px solid rgba(27, 59, 45, .42); pointer-events: none; }
.hero__sheet::before, .hero__sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(90deg, rgba(27, 59, 45, .5) 0 1px, transparent 1px 12.5%); }
.hero__sheet::before { top: 0; }
.hero__sheet::after { bottom: 0; }
.hero__sheetno { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 0 .9rem; background: var(--sea); font: 500 .64rem/1.4 var(--f-data); letter-spacing: .32em; text-transform: uppercase; color: var(--hill-dk); white-space: nowrap; }
.hero__in { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.hero__copy { position: relative; z-index: 2; max-width: 37rem; padding-top: clamp(.5rem, 2.5vw, 2rem); }
.kicker { display: flex; align-items: center; gap: .9rem; margin: 0; font: 600 .8rem/1.3 var(--f-data); letter-spacing: .26em; text-transform: uppercase; color: var(--hill-dk); }
.kicker::before { content: ""; width: 2.6rem; height: 1px; background: currentColor; flex: none; }
.hero__title { margin: .3em 0 .34em; font-size: clamp(3.7rem, 8.6vw, 8rem); line-height: .84; letter-spacing: -.025em; }
.hero__l1, .hero__l3 { display: block; }
.hero__l2 { position: relative; display: block; width: fit-content; margin: .02em 0 .12em .42em; font-size: 1.3em; line-height: .86; font-style: italic; letter-spacing: -.035em; color: var(--hill); }
.hero__under { position: absolute; left: -.02em; bottom: -.24em; width: calc(100% + .06em); height: auto; overflow: visible; }
.hu { fill: none; stroke-width: 4.4; stroke-linecap: round; }
.hu--saltline { stroke: var(--salt); }
.hu--greenway { stroke: var(--green); stroke-dasharray: 12 7; stroke-linecap: butt; }
.hu--meridian { stroke: var(--mer); stroke-dasharray: 0 10; stroke-width: 6; }
.hu__hub { fill: var(--hill); stroke: var(--paper); stroke-width: 3.5; }
.hero__l3 { padding-left: 1.55em; }
.hero__lede { max-width: 33rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: #273730; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 999px;
  font: 600 .95rem/1.2 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--hill { background: var(--hill); color: var(--paper); box-shadow: 0 12px 26px -14px rgba(150, 54, 32, .95); }
.btn--hill:hover { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--hill-dk); }
.btn--ember { background: var(--hill-dk); color: #fff; }
.btn--ember:hover { background: var(--ink); }
.arrow-link { font-weight: 600; color: var(--ink); text-decoration-color: var(--hill); }
.arrow-link::after { content: "\2192"; display: inline-block; margin-left: .45rem; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(4px); }

.hero__art { margin: 0; }
.hero__map { position: absolute; z-index: 0; top: clamp(1.4rem, 2.6vw, 2.4rem); right: 0; width: min(61%, 60rem); height: auto; }
.hm-case { fill: none; stroke: var(--paper); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.hm-route { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hm-route--saltline { stroke: var(--salt); }
.hm-route--greenway { stroke: var(--green); stroke-dasharray: .016 .009; }
.hm-route--meridian { stroke: var(--mer); stroke-dasharray: 0 .014; stroke-width: 9; }
.hm-draw { fill: none; stroke: #fff; stroke-width: 28; stroke-linecap: round; }
.hm-ends rect { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.hm-hub { fill: var(--hill); stroke: var(--paper); stroke-width: 5; }
.hm-lbl { font: italic 400 27px var(--f-display); fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 6px; stroke-linejoin: round; }
.legend {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 1.2rem 1.5rem;
  width: fit-content; max-width: 100%; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: .85rem 1.3rem;
  background: rgba(251, 249, 243, .9); border: 1px solid rgba(27, 59, 45, .3); border-radius: .25rem;
  box-shadow: 0 18px 36px -26px rgba(18, 42, 32, .55);
}
.legend__title { margin: 0; padding-right: 1.4rem; border-right: 1px solid rgba(27, 59, 45, .25); font: 600 .66rem/1 var(--f-data); letter-spacing: .32em; text-transform: uppercase; color: var(--hill-dk); }
.legend__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.legend__list li { display: grid; grid-template-columns: 2.1rem auto; align-items: center; line-height: 1.25; }
.legend__name { font-family: var(--f-display); font-size: 1.02rem; }
.legend__meta { grid-column: 2; font: 400 .74rem/1.3 var(--f-data); letter-spacing: .04em; color: var(--muted); }
.hero .legend .key { grid-row: span 2; }
.key { display: inline-block; flex: none; width: 1.6rem; height: 0; border-top: 3px solid var(--k-salt); vertical-align: middle; }
.key--saltline { border-top-color: var(--k-salt); }
.key--greenway { border-top: 3px dashed var(--k-green); }
.key--meridian { border-top: 4px dotted var(--k-mer); }
.key--hub { width: .95rem; height: .95rem; border: 2px solid var(--paper); border-radius: 50%; background: var(--hill); margin-left: .3rem; box-shadow: 0 0 0 1px var(--hill); }
.system, .reserve { --k-salt: var(--salt-d); --k-green: var(--green-d); --k-mer: var(--mer-d); }

/* legs: every section is a stop on one thread */
.leg { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--bg); }
.leg__head { max-width: 47rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.leg__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 clamp(2rem, 4vw, 4rem); align-items: end; }
.leg__head--split .stopno { grid-column: 1 / -1; }
.leg__head--split .leg__lede { margin-bottom: .6rem; }
.leg__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.stopno { position: relative; display: flex; align-items: center; gap: .85rem; margin: 0 0 1.3rem; font: 500 .78rem/1.2 var(--f-data); letter-spacing: .26em; text-transform: uppercase; color: var(--hill-dk); }
.stopno__n { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .45rem; border: 1px solid currentColor; border-radius: 999px; background: var(--bg); font: italic 400 1.05rem/1 var(--f-display); letter-spacing: 0; text-transform: none; }
.leg h2 { font-size: clamp(2.3rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -.018em; margin-bottom: 1.2rem; text-wrap: balance; }
.leg__lede { max-width: 41rem; font-size: clamp(1.05rem, 1.25vw, 1.17rem); color: var(--muted); text-wrap: pretty; }
.leg__head--light .stopno, .system .stopno { color: var(--hill-lt); }
.price .stopno { color: var(--peach); }
.leg__head--light .leg__lede, .system .leg__lede { color: rgba(244, 241, 232, .8); }
@media (min-width: 1360px) {
  .leg::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--thread); border-left: 1px dashed rgba(180, 67, 42, .5); }
  .stopno__n { position: absolute; left: calc(-3.5rem - 1.2rem); top: 50%; transform: translateY(-50%); min-width: 2.4rem; }
  .stopno { padding-left: 0; }
  .crossings::after { content: ""; position: absolute; top: -5px; left: calc(var(--thread) - 4.5px); width: 10px; height: 10px; border-radius: 50%; background: var(--hill); }
  .reserve::before { bottom: auto; height: calc(clamp(4.5rem, 9vw, 8rem) + 1.2rem); }
}

/* I. crossings overview */
.crossings { --bg: var(--chalk); }
.gaz { width: 100%; border-collapse: collapse; }
.gaz caption { caption-side: bottom; padding-top: 1.1rem; text-align: left; font-size: .9rem; color: var(--muted); }
.gaz thead th { padding: 0 .9rem .8rem; border-bottom: 2px solid var(--ink); font: 500 .7rem/1.2 var(--f-data); letter-spacing: .2em; text-transform: uppercase; text-align: left; color: var(--muted); white-space: nowrap; }
.gaz td, .gaz tbody th { padding: 1.35rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.gaz tbody th { font: 400 1.55rem/1.1 var(--f-display); white-space: nowrap; }
.gaz__cross { display: flex; align-items: center; gap: 1rem; }
.gaz .dep { display: block; white-space: nowrap; }
.gaz__mini { width: 4.6rem; height: auto; flex: none; overflow: visible; }
.mini__land { fill: var(--land); stroke: var(--ink); stroke-width: 9; }
.mini__route { fill: none; stroke: var(--rc); stroke-width: 30; stroke-linecap: round; }
.mini__hub { fill: var(--hill); stroke: var(--ink); stroke-width: 9; }
.gaz__row--saltline { --rc: var(--salt); }
.gaz__row--greenway { --rc: var(--green); }
.gaz__row--meridian { --rc: var(--mer); }
.gaz__days { display: block; font: 400 1.35rem/1.1 var(--f-display); }
.gaz__km { display: block; margin-top: .2rem; font: 400 .9rem/1.2 var(--f-data); color: var(--muted); }
.gaz tbody tr { transition: background-color .25s; }
.gaz tbody tr:hover { background: rgba(244, 241, 232, .7); }
.gaz td:first-of-type { white-space: nowrap; }
.gaz__arrow { color: var(--hill-dk); padding-inline: .15rem; }
.gaz td.num { white-space: nowrap; }
.gaz td.gaz__price { font: 400 1.5rem/1 var(--f-display); font-variant-numeric: lining-nums; }
.gaz__go { text-align: right; }
.gaz__go a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border: 1px solid var(--ink); border-radius: 999px; font: 600 .74rem/1 var(--f-data); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.gaz__go a::after { content: "\2197"; }
.gaz__go a:hover { background: var(--ink); color: var(--paper); }

/* II. the atlas */
.atlas-leg { --bg: #ebe7da; background: radial-gradient(ellipse 70% 60% at 30% 45%, #f8f6ef, transparent 75%), var(--bg); }
.atlas { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.atlas__stage { position: sticky; top: 5.4rem; }
.picker { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.js .picker { display: grid; }
.picker__btn {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .65rem; row-gap: .2rem;
  padding: .75rem .9rem; border: 1px solid rgba(27, 59, 45, .28); border-radius: .5rem;
  background: rgba(244, 241, 232, .6); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.picker__btn .key { grid-row: span 2; width: 1.3rem; }
.picker__name { font: 400 1.15rem/1.1 var(--f-display); }
.picker__meta { grid-column: 2; font: 400 .7rem/1.25 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.picker__btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(27, 59, 45, .6); }
.picker__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); --k-salt: var(--salt-d); --k-green: var(--green-d); --k-mer: var(--mer-d); }
.picker__btn[aria-pressed="true"] .picker__meta { color: var(--hill-lt); }
.atlas__map { margin: 0; }
.atlas__svg { width: 100%; height: auto; overflow: visible; }
.atlas__hint { display: none; }
.atlas__cap { margin-top: .5rem; font: italic 400 .98rem/1.45 var(--f-display); color: var(--muted); }

.frame-outer { fill: none; stroke: var(--hill-dk); stroke-width: 2.5; }
.frame-inner { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.frame-ticks { fill: none; stroke: var(--ink); stroke-width: .9; opacity: .55; }
.sea { fill: var(--sea); }
.wl-ink { fill: none; stroke: #5b7d8a; stroke-opacity: .45; stroke-linejoin: round; }
.wl-sea { fill: none; stroke: var(--sea); stroke-linejoin: round; }
.grat { fill: none; stroke: var(--ink); stroke-width: .8; opacity: .16; }
.land { fill: var(--land); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.forest { fill: url(#p-hatch); }
.hatch { stroke: var(--forest); stroke-width: 1.1; opacity: .45; }
.salt { fill: url(#p-stipple); }
.stip { fill: #74847d; }
.peaks--ember { --peak: #eaa892; }
.downs { fill: url(#p-downs); }
.grass { fill: none; stroke: #4c5b3b; stroke-width: .8; }
.lake { fill: var(--sea); stroke: #3f6e8c; stroke-width: 1; }
.rivers { fill: none; stroke: #3f6e8c; stroke-width: 1.3; stroke-linecap: round; opacity: .85; }
.tree-crown { fill: #3d6b4b; stroke: var(--forest); stroke-width: .8; }
.tree-stem { stroke: var(--forest); stroke-width: 1.1; }
.peak { fill: var(--peak, var(--land)); stroke: var(--ink); stroke-width: 1.15; stroke-linejoin: round; }
.peak-shade { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .7; }
.lbl-sea { font: italic 400 21px var(--f-display); fill: #2f5c78; letter-spacing: .12em; text-anchor: middle; }
.lbl-region { font: 500 12.5px var(--f-data); letter-spacing: .34em; fill: rgba(27, 59, 45, .68); text-anchor: middle; }
.town circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.town--hub circle { fill: var(--hill); stroke: var(--ink); stroke-width: 2; }
.town text { font: 600 16px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 4px; stroke-linejoin: round; transition: opacity .3s; }
.town--hub text { font: italic 400 21px var(--f-display); }
.route__case { fill: none; stroke: var(--paper); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.route__line { fill: none; stroke: var(--rc); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.route--saltline, [data-marks="saltline"], .plan--saltline { --rc: var(--salt); }
.route--greenway, [data-marks="greenway"], .plan--greenway { --rc: var(--green); }
.route--meridian, [data-marks="meridian"], .plan--meridian { --rc: var(--mer); }
.route--greenway .route__line { stroke-dasharray: .011 .006; }
.route--meridian .route__line { stroke-dasharray: .0001 .009; stroke-width: 5.5; }
.mark { opacity: 0; }
.mark__ring { fill: none; stroke: var(--rc); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mark__dot { fill: var(--ink); stroke: var(--paper); stroke-width: 3; transition: fill .3s; }
.mark text { font: 700 16.5px var(--f-data); fill: var(--paper); text-anchor: middle; }
.compass__ring { fill: none; stroke: var(--hill-dk); stroke-width: 1; }
.compass__ns { fill: var(--land); stroke: var(--ink); stroke-width: 1; }
.compass__n { fill: var(--ink); }
.compass__ew { fill: var(--hill-dk); opacity: .8; }
.compass text { font: 600 15px var(--f-data); fill: var(--ink); }
.scale__bar { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.scale__fill { stroke: var(--ink); stroke-width: 4; }
.scale text { font: 500 13px var(--f-data); fill: var(--ink); letter-spacing: .06em; }

/* the atlas once the script is choosing a route */
.js .atlas .route { transition: opacity .4s; }
.js .atlas .route:not(.is-on) .route__case { display: none; }
.js .atlas .route:not(.is-on) .route__line { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: .004 .007; opacity: .38; }
.js .atlas .route.is-on .route__line, .js .atlas .route.is-on .route__case { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .atlas.is-drawn .route.is-on .route__line, .js .atlas.is-drawn .route.is-on .route__case { stroke-dashoffset: 0; }
.js .atlas .town:not(.is-on) text { opacity: .7; }
.js .atlas.is-drawn .marks__set.is-on .mark { opacity: 1; }
.js .atlas .mark.is-current .mark__dot { fill: var(--rc); }
.js .atlas .mark.is-current .mark__ring { opacity: 1; }

.atlas__plans { min-width: 0; }
.plan { scroll-margin-top: 6rem; }
.plan[hidden] { display: none; }
.plan + .plan { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--line); }
.plan__kicker { display: flex; align-items: center; gap: .7rem; margin: 0; font: 500 .74rem/1.3 var(--f-data); letter-spacing: .2em; text-transform: uppercase; color: var(--hill-dk); }
.plan__name { margin: .45rem 0 .7rem; font-size: clamp(2.3rem, 3.6vw, 3.3rem); line-height: 1; letter-spacing: -.015em; }
.plan__lede { font-size: 1.08rem; }
.plan__facts { display: grid; grid-template-columns: repeat(4, auto); gap: .6rem 1.4rem; margin: 1.5rem 0 2.2rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.plan__facts div { min-width: 0; }
.plan__facts dt { font: 500 .66rem/1.3 var(--f-data); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.plan__facts dd { margin: .2rem 0 0; font: 400 1.3rem/1.15 var(--f-display); font-variant-numeric: lining-nums; }
.plan__facts div:nth-child(3) dd { font-size: 1rem; line-height: 1.3; }
.stops { position: relative; margin: 0; padding: 0; list-style: none; }
.stops::before { content: ""; position: absolute; left: 1.1rem; top: 1.2rem; bottom: 2.2rem; border-left: 2px dashed var(--rc); opacity: .7; }
.stop { position: relative; padding: 0 0 2.1rem 3.5rem; transition: opacity .3s; }
.stop__n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 3px solid var(--bg); border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .92rem/1 var(--f-data); transition: background-color .3s, transform .3s, box-shadow .3s; }
.stop__when { margin: 0 0 .1rem; padding-top: .45rem; font: 500 .72rem/1.2 var(--f-data); letter-spacing: .2em; text-transform: uppercase; color: var(--hill-dk); }
.stop__town { margin-bottom: .35rem; font-size: 1.65rem; line-height: 1.1; }
.stop__text { margin-bottom: .55rem; max-width: 34rem; }
.stop__sleep { margin: 0; font-size: .9rem; color: var(--muted); }
.stop__sleep span { display: inline-block; margin-right: .45rem; padding: .15rem .45rem; border: 1px solid rgba(27, 59, 45, .3); border-radius: 3px; font: 600 .62rem/1.2 var(--f-data); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); vertical-align: .1em; }
.js .stop.is-current .stop__n { background: var(--rc); transform: scale(1.12); box-shadow: 0 0 0 5px rgba(27, 59, 45, .08); }
.plan__close { margin: .4rem 0 0 3.5rem; }

/* III. system map */
.system { --bg: var(--ink); color: var(--paper); background: radial-gradient(ellipse 55% 60% at 28% 55%, rgba(44, 96, 72, .45), transparent 75%), var(--ink); }
.system .leg__head { max-width: 58rem; }
.sys__fig { max-width: 58rem; margin: -1.5rem auto clamp(2rem, 4vw, 3.5rem); }
.sys__svg { width: 100%; height: auto; }
.sys__land { fill: rgba(244, 241, 232, .05); }
.sys__rail { fill: none; stroke: var(--chalk); stroke-width: 4; }
.sys__sleepers { fill: none; stroke: var(--chalk); stroke-width: 13; stroke-dasharray: 1.6 8; opacity: .45; }
.sys__railname { font: 600 13px var(--f-data); letter-spacing: .34em; fill: var(--chalk); }
.sys__linename { font: 600 11.5px var(--f-data); letter-spacing: .26em; }
.sys__linename--saltline { fill: var(--salt-d); }
.sys__linename--greenway { fill: var(--green-d); }
.sys__linename--meridian { fill: var(--mer-d); letter-spacing: .16em; }
.sys__line { fill: none; stroke-width: 8; stroke-linecap: round; }
.sys__line--saltline, .sys__stop--saltline { stroke: var(--salt-d); }
.sys__line--greenway, .sys__stop--greenway { stroke: var(--green-d); }
.sys__line--meridian, .sys__stop--meridian { stroke: var(--mer-d); }
.sys__stop { fill: var(--ink); stroke-width: 3; }
.sys__halt rect { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.sys__halt text { font: 600 18px var(--f-body); fill: var(--paper); }
.sys__hubring { fill: none; stroke: var(--hill-lt); stroke-width: 1.5; stroke-dasharray: 3 5; }
.sys__hubdot { fill: var(--hill); stroke: var(--paper); stroke-width: 3; }
.sys__hubcross { fill: none; stroke: var(--paper); stroke-width: 1.6; opacity: .9; }
.sys__hub text { font: italic 400 24px var(--f-display); fill: var(--paper); }
.sys__hub .sys__hubsub { font: 600 11.5px var(--f-data); font-style: normal; letter-spacing: .3em; fill: var(--hill-lt); }
.sys__call circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.sys__call text { font: 700 17px var(--f-data); fill: var(--ink); }
.sys__parts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.sys__parts::before { content: ""; position: absolute; left: 1rem; right: 0; top: .97rem; border-top: 1px dashed rgba(244, 241, 232, .55); }
.sys__part { position: relative; padding-top: 3.1rem; }
.sys__part h3 { font-size: clamp(1.3rem, 1.7vw, 1.5rem); line-height: 1.15; margin-bottom: .6rem; }
.sys__n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: 50%; background: var(--paper); color: var(--ink); font: 700 .88rem/1 var(--f-data); box-shadow: 0 0 0 4px var(--ink); }
.sys__part p { margin: 0; color: rgba(244, 241, 232, .8); }

/* IV. a day on the road */
.day { --bg: var(--chalk); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.day .leg__head { margin-bottom: 2.4rem; }
.day__nav { display: none; gap: .6rem; flex: none; }
.js .day__nav { display: flex; }
.day__btn { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font: 400 1.25rem/1 var(--f-body); cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
.day__btn:hover { background: var(--ink); color: var(--paper); }
.day__btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.day__strip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--hill) transparent; padding-bottom: .6rem; }
.day__strip:focus-visible { outline-offset: -3px; }
.day__track {
  --arc: 6.5rem;
  position: relative; width: max-content;
  margin-inline: max(var(--gut), (100vw - var(--wrap)) / 2);
  border-radius: 1rem; overflow: hidden;
  background: linear-gradient(90deg, #ead9c3 0%, #f1e5cc 16%, #f6edd7 30%, #f8f0dc 44%, #f5e9cb 56%, #efdab0 66%, #e3be86 76.8%, #7a3f2b 78.6%, #3f2c26 86%, #1a3328 92%, #122a20 100%);
}
.day__arc { position: absolute; top: 1.4rem; left: 0; width: 100%; height: var(--arc); overflow: visible; pointer-events: none; }
.day__path { fill: none; stroke: var(--hill-dk); stroke-width: 1.5; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.day__horizon { fill: none; stroke: rgba(27, 59, 45, .25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.day__list { display: grid; grid-auto-flow: column; grid-auto-columns: 15.5rem; margin: 0; padding: 0; list-style: none; }
.day__item { position: relative; scroll-snap-align: start; padding: calc(var(--arc) + 2.6rem) 1.5rem 1.9rem; border-left: 1px solid rgba(27, 59, 45, .1); }
.day__item:first-child { border-left: 0; }
.day__sun { position: absolute; left: 50%; top: calc(1.4rem + var(--arc) * var(--y) / 100); width: 1.3rem; height: 1.3rem; margin: -.65rem 0 0 -.65rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fbe3a2, #e9a03b 70%); box-shadow: 0 0 0 5px rgba(233, 160, 59, .18), 0 0 22px rgba(233, 160, 59, .55); }
.day__item:nth-child(1) .day__sun { --y: 86.6; }
.day__item:nth-child(2) .day__sun { --y: 61.4; }
.day__item:nth-child(3) .day__sun { --y: 39.6; }
.day__item:nth-child(4) .day__sun { --y: 17.8; }
.day__item:nth-child(5) .day__sun { --y: 6; }
.day__item:nth-child(6) .day__sun { --y: 22.8; }
.day__item:nth-child(7) .day__sun { --y: 48; background: radial-gradient(circle at 35% 35%, #fbd08a, #d9683a 70%); }
.day__item:nth-child(8) .day__sun { --y: 79.9; background: radial-gradient(circle at 35% 35%, #f6a878, #c4552f 70%); box-shadow: 0 0 22px rgba(196, 85, 47, .7); }
.day__sun--moon { --y: 22; background: var(--chalk); box-shadow: inset -.38rem -.1rem 0 0 #b9ae95, 0 0 18px rgba(244, 241, 232, .35); }
.day__time { margin: 0; font: 300 2.7rem/1 var(--f-data); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.day__ap { font-size: .36em; font-weight: 500; letter-spacing: .08em; }
.day__title { margin: .55rem 0 .45rem; font-style: italic; font-size: 1.38rem; line-height: 1.15; }
.day__item p:last-child { margin: 0; font-size: .95rem; line-height: 1.5; color: #34423b; }
.day__item:nth-child(n+8) { color: var(--paper); border-left-color: rgba(244, 241, 232, .14); }
.day__item:nth-child(n+8) .day__time { color: var(--hill-lt); }
.day__item:nth-child(n+8) p:last-child { color: rgba(244, 241, 232, .82); }

/* V. the price */
.price { --bg: var(--hill-dk); color: var(--paper); padding-top: 0; background: linear-gradient(180deg, #a33b22, var(--hill-dk) 45%); }
.convoy { height: clamp(7.5rem, 14vw, 11.5rem); margin-bottom: clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--chalk), #e6e0d0); }
.convoy__svg { width: 100%; height: 100%; }
.convoy__hills { fill: #a33b22; }
.convoy__road { fill: none; stroke: rgba(244, 241, 232, .45); stroke-width: 2; stroke-dasharray: 16 12; }
.convoy__dust circle { fill: #eae5d6; opacity: .5; }
.truck--a { --cab: var(--green); }
.truck--b { --cab: var(--salt); }
.t-cab { fill: var(--cab); stroke-width: 2.2; stroke-linejoin: round; }
.ledger { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ledger__h { margin: 0 0 .4rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(244, 241, 232, .4); font: 500 .8rem/1.2 var(--f-data); letter-spacing: .26em; text-transform: uppercase; color: var(--peach); }
.ledger__list { margin: 0; padding: 0; list-style: none; }
.ledger__list li { position: relative; padding: .9rem 0 .9rem 2.1rem; border-bottom: 1px dotted rgba(244, 241, 232, .25); font-size: 1.05rem; }
.ledger__list--in li::before { content: ""; position: absolute; left: .25rem; margin-top: .15rem; width: .72rem; height: 1.02rem; border: 1.5px solid var(--chalk); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 10px rgba(255, 217, 199, .4); }
.ledger__list--out li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; }
.ledger__list--out li::before { content: "\2013"; position: absolute; left: .3rem; color: var(--peach); }
.ledger__note { font: 500 .68rem/1.3 var(--f-data); letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.ledger__amt { font: 400 1.3rem/1 var(--f-display); color: var(--peach); }
.ledger__deposit { display: flex; align-items: center; gap: 1.1rem; margin: 2rem 0 0; padding: 1.2rem 1.4rem; border: 1px solid rgba(244, 241, 232, .45); border-radius: .75rem; background: rgba(70, 20, 8, .2); }
.ledger__amt--big { font-size: 2.8rem; flex: none; }

/* VI. the house */
.house { --bg: var(--parch); }
.house__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.house__lede { font: 400 clamp(1.3rem, 1.9vw, 1.6rem)/1.35 var(--f-display); color: var(--ink); }
.house__facts { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.house__facts li { display: flex; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.house__fig { min-width: 2.4rem; font: italic 400 2.3rem/1 var(--f-display); color: var(--hill); font-variant-numeric: lining-nums; }
.house__art { position: relative; margin: 0; }
.house__art::before { content: ""; position: absolute; inset: 2% 4% 9% 8%; border: 1px solid rgba(27, 59, 45, .3); border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, var(--land), #ebe6d8 70%); box-shadow: 0 0 0 10px var(--parch), 0 0 0 11px rgba(27, 59, 45, .2); }
.house__svg { position: relative; width: 100%; max-width: 32rem; height: auto; margin-left: auto; }
.h-signtext { font: 600 9.5px var(--f-data); letter-spacing: .3em; fill: var(--hill-lt); stroke: none; }
.house__card { position: absolute; left: -2.5rem; top: 16%; max-width: 17.5rem; margin: 0; padding: 1.3rem 1.5rem 1.2rem; border-radius: .6rem; background: var(--ink); color: var(--paper); box-shadow: 0 24px 40px -22px rgba(18, 42, 32, .8); }
.card__h { margin: 0 0 .6rem; font: italic 400 1.35rem/1.1 var(--f-display); color: var(--hill-lt); }
.card__addr { margin: 0 0 .6rem; line-height: 1.4; }
.card__hours { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .6rem; padding: .5rem 0; border-block: 1px solid rgba(244, 241, 232, .3); font: 500 .74rem/1.3 var(--f-data); letter-spacing: .14em; text-transform: uppercase; }
.card__hours :last-child { text-transform: none; letter-spacing: .04em; }
.card__note { margin: 0; font-size: .88rem; color: rgba(244, 241, 232, .8); }

/* VII. questions */
.questions { --bg: var(--chalk); }
.q__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.q__side { position: sticky; top: 6.5rem; }
.q__call { margin: 1.6rem 0 0; padding: 1.1rem 1.3rem; border-left: 3px solid var(--hill); background: rgba(244, 241, 232, .7); font-size: 1rem; }
.q__list { border-top: 2px solid var(--ink); }
.q { border-bottom: 1px solid var(--line); }
.q summary { position: relative; display: block; padding: 1.35rem 3.4rem 1.35rem 0; list-style: none; cursor: pointer; font: 400 clamp(1.2rem, 1.7vw, 1.42rem)/1.25 var(--f-display); transition: color .2s; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; position: absolute; right: .2rem; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; border: 1px solid rgba(27, 59, 45, .35); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / .8rem 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px .8rem no-repeat; transition: transform .3s, background-color .2s; }
.q summary:hover { color: var(--hill-dk); }
.q summary:hover::after { background-color: rgba(244, 241, 232, .9); }
.q[open] summary::after { transform: rotate(45deg); }
.q p { max-width: 38rem; margin: -.3rem 0 1.5rem; color: #34423b; }

/* VIII. reserve */
.reserve { --bg: var(--ink-2); color: var(--paper); background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(180, 67, 42, .3), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(44, 96, 72, .55), transparent 70%), var(--ink-2); }
.reserve .stopno__n { background: var(--hill-lt); color: var(--ink); border-color: var(--hill-lt); box-shadow: 0 0 0 4px var(--ink-2), 0 0 0 5px var(--hill-lt); }
.reserve__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 1rem; background: var(--paper); color: var(--ink); box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .8); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 600 .72rem/1.2 var(--f-data); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .75rem .9rem; border: 1px solid rgba(27, 59, 45, .35); border-radius: .45rem; background: #fffdf7; color: var(--ink); font: 400 1rem/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; padding-right: 2.4rem; background: #fffdf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b3b2d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .95rem center / .75rem; }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--hill); outline-offset: 1px; border-color: var(--ink); }
.field input::placeholder { color: #66716a; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding-top: .5rem; }
.form__small { margin: 0; font-size: .88rem; color: var(--muted); }
.next__h { margin: .4rem 0 1.6rem; font: 500 .8rem/1.2 var(--f-data); letter-spacing: .26em; text-transform: uppercase; color: var(--hill-lt); }
.next__list { margin: 0; padding: 0; list-style: none; }
.next__list li { position: relative; padding: 0 0 1.7rem 2.9rem; color: rgba(244, 241, 232, .84); }
.next__list li::before { content: ""; position: absolute; left: .15rem; top: .15rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--hill-lt); border-radius: 50%; background: var(--ink-2); z-index: 1; }
.next__list li::after { content: ""; position: absolute; left: .68rem; top: 1.25rem; bottom: .05rem; border-left: 2px dotted rgba(244, 241, 232, .55); }
.next__when { display: block; margin-bottom: .2rem; font: 500 .72rem/1.3 var(--f-data); letter-spacing: .2em; text-transform: uppercase; color: var(--hill-lt); }
.next__list .next__end { padding-bottom: 0; font: italic 400 1.35rem/1.35 var(--f-display); color: var(--paper); }
.next__list .next__end::after { content: none; }
.next__list .next__end::before { left: -.15rem; top: -.1rem; width: 1.7rem; height: 1.7rem; border: 3px solid var(--paper); background: var(--hill); box-shadow: 0 0 0 5px rgba(240, 154, 122, .25); }
.next__end .next__when { font-style: normal; }

/* footer */
.foot { background: var(--parch); color: var(--text); border-top: 6px double rgba(150, 54, 32, .5); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.foot__mark { width: 3.3rem; height: 2.75rem; margin-bottom: 1rem; }
.foot .bm-loop { stroke: var(--ink); }
.foot .bm-l--s { stroke: var(--salt); }
.foot .bm-l--g { stroke: var(--green); }
.foot .bm-l--m { stroke: var(--mer); }
.foot .bm-hub { stroke: var(--paper); }
.foot__name { margin: 0 0 .6rem; font: 400 1.8rem/1 var(--f-display); }
.foot__name span { display: block; margin-top: .35rem; font: 500 .68rem/1 var(--f-data); letter-spacing: .32em; text-transform: uppercase; color: var(--hill-dk); }
.foot__line { max-width: 19rem; font-size: .95rem; color: var(--muted); }
.foot__h { margin: 0 0 .9rem; font: 600 .72rem/1.2 var(--f-data); letter-spacing: .22em; text-transform: uppercase; color: var(--hill-dk); }
.foot__col p { font-size: .95rem; overflow-wrap: anywhere; }
.foot__index { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.foot__index a { text-decoration: none; }
.foot__index a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.3rem 2.4rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.foot__base p { margin: 0; }
.foot__top { font-weight: 600; color: var(--ink); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .3s; }
  .hero__copy > :nth-child(4) { animation-delay: .42s; }
  .hero__under { animation: wipe 1.3s cubic-bezier(.6, .05, .3, 1) both .8s; }
  .hu__hub { transform-box: fill-box; transform-origin: center; animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) both 1.45s; }
  .hm-draw { stroke-dasharray: 1 1; animation: draw 2.4s cubic-bezier(.55, .08, .25, 1) both .9s; }
  .hm-draw--greenway { animation-delay: 1.3s; }
  .hm-draw--meridian { animation-delay: 1.7s; }
  .hm-hub, .hm-lbl { animation: fade .8s ease-out both 2.5s; }
  .legend { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both .6s; }
  .js .atlas.is-drawn .route.is-on .route__line, .js .atlas.is-drawn .route.is-on .route__case { transition: stroke-dashoffset 2s cubic-bezier(.55, .08, .25, 1); }
  .js .atlas .mark { transform: scale(.2); transform-box: fill-box; transform-origin: center; }
  .js .atlas.is-drawn .mark { transition: opacity .25s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
  .js .atlas.is-drawn .marks__set.is-on .mark { transform: none; }
  .js .atlas.is-drawn .marks__set.is-on .mark:nth-child(2) { transition-delay: .35s; }
  .js .atlas.is-drawn .marks__set.is-on .mark:nth-child(3) { transition-delay: .7s; }
  .js .atlas.is-drawn .marks__set.is-on .mark:nth-child(4) { transition-delay: 1.05s; }
  .js .atlas.is-drawn .marks__set.is-on .mark:nth-child(5) { transition-delay: 1.4s; }
  .js .atlas.is-drawn .marks__set.is-on .mark:nth-child(6) { transition-delay: 1.75s; }
  .js .atlas .mark.is-current .mark__ring { animation: ping 1.4s ease-out 2; }
  .js [data-reveal] { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
  .js .sys__part:nth-child(2) { transition-delay: .1s; }
  .js .sys__part:nth-child(3) { transition-delay: .2s; }
  .js .sys__part:nth-child(4) { transition-delay: .3s; }
  .convoy__trucks { transition: transform 2.6s cubic-bezier(.2, .7, .2, 1); }
  .js .convoy:not(.is-in) .convoy__trucks { transform: translateX(460px); }
  @supports (animation-timeline: scroll()) {
    .masthead__progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none; transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 1180px) {
  .masthead__in { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: .6rem; }
  .index { width: calc(100% + 2 * var(--gut)); margin-inline: calc(-1 * var(--gut)); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - 2.5rem), transparent); }
  .index::-webkit-scrollbar { display: none; }
  .index__list { width: max-content; padding: .45rem var(--gut) .55rem; }
  .index a { padding: .45rem .6rem; }
}
@media (max-width: 1000px) {
  .hero__copy { max-width: 40rem; }
  .hero__map { position: relative; top: auto; right: auto; width: calc(100% + 2 * var(--gut)); max-width: none; margin: 1rem calc(-1 * var(--gut)) 0; }
  .legend { margin-top: .25rem; }
  .sys__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys__parts::before { display: none; }
  .atlas, .ledger, .house__grid, .q__grid, .reserve__grid, .leg__head--split { grid-template-columns: minmax(0, 1fr); }
  .atlas__stage, .q__side { position: static; }
  .gaz thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gaz, .gaz tbody, .gaz tr, .gaz td, .gaz tbody th { display: block; }
  .gaz tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .75rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
  .gaz td, .gaz tbody th { padding: 0; border: 0; align-self: center; }
  .gaz td:nth-of-type(1), .gaz td:nth-of-type(3), .gaz td:nth-of-type(4) { grid-column: 1 / -1; }
  .gaz tbody th { grid-column: 1 / 3; white-space: normal; }
  .gaz td:nth-of-type(5) { grid-column: 2 / -1; }
  .gaz__go { grid-area: 1 / 3; }
  .gaz .dep { display: inline; }
  .gaz .dep + .dep::before { content: " · "; color: var(--muted); }
  .gaz td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .2rem; font: 500 .64rem/1.2 var(--f-data); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
  .gaz td:nth-of-type(3), .gaz td:nth-of-type(4) { order: 3; }
  .gaz caption { display: block; }
  .house__card { position: relative; left: auto; top: auto; max-width: 22rem; margin: -2.5rem 0 0 1rem; }
  .house__svg { margin-inline: auto; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__name { font-size: 1.3rem; }
  .hero { padding-top: 2.2rem; }
  .hero__title { font-size: clamp(3.3rem, 21vw, 5.4rem); }
  .hero__l3 { padding-left: 1.1em; }
  .hero__sheetno { font-size: .56rem; letter-spacing: .24em; }
  .hero__map { margin-top: .5rem; }
  .legend { display: block; width: auto; padding: .7rem .9rem; }
  .legend__title { padding: 0 0 .55rem; margin-bottom: .6rem; border-right: 0; border-bottom: 1px solid rgba(27, 59, 45, .2); }
  .legend__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .8rem; }
  .legend__list li { grid-template-columns: 1.9rem minmax(0, 1fr); }
  .legend__name { font-size: .95rem; }
  .legend__meta { display: none; }
  .hero .legend .key { grid-row: auto; }
  .leg { padding-block: 3rem; }
  .price { padding-top: 0; }
  .leg__head { margin-bottom: 1.75rem; }
  .stopno { margin-bottom: .85rem; }
  .gaz__mini { width: 3.4rem; }
  .gaz__cross { gap: .7rem; }
  .gaz tbody th { font-size: 1.4rem; }
  .sys__part { padding: 0 0 0 2.9rem; }
  .ledger__list li { padding-block: .55rem; font-size: 1rem; }
  .convoy { height: 6.5rem; margin-bottom: 2.2rem; }
  .house__svg { max-width: 15.5rem; }
  .house__card { margin-top: -2rem; }
  .house__facts { margin-top: 1.4rem; }
  .q summary { padding-block: 1.05rem; }
  .next__list li { padding-bottom: 1.1rem; }
  .form { gap: .85rem; }
  .foot__grid { padding-block: 2.6rem 1.8rem; gap: 1.6rem; }
  .foot__col:nth-child(3) { grid-column: 1 / -1; order: 1; }
  .leg__head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .picker { grid-template-columns: 1fr; }
  .sys__parts { grid-template-columns: 1fr; gap: 1.4rem; }
  .sys__fig { margin-inline: calc(-1 * var(--gut) + .25rem); }
  .atlas__pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--hill) transparent; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) .4rem; }
  .atlas__svg { width: 42rem; max-width: none; }
  .atlas__hint { display: inline; font: 500 .78rem/1.4 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--hill-dk); }
  .picker__btn { grid-template-columns: auto minmax(0, 1fr) auto; padding: .65rem .85rem; }
  .picker__btn .key { grid-row: auto; }
  .picker__meta { grid-column: 3; text-align: right; }
  .plan__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop { padding: 0 0 1.5rem 3rem; }
  .plan__close { margin-left: 0; }
  .form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .day__list { grid-auto-columns: 13.5rem; }
  .ledger__amt--big { font-size: 2.2rem; }
}
@media (max-width: 380px) {
  .picker__meta { display: none; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media print {
  .masthead { position: static; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
