:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --ink: #172923;
  --subtle: #45554d;
  --accent: #9c3e23;
  --line: #cfc8ba;
  --wash: #e9e9dc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.58 var(--sans); }
a { color: inherit; text-underline-offset: .27em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 1; inset: .5rem auto auto .5rem; transform: translateY(-160%); padding: .6rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }

.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.masthead { min-height: 4.5rem; border-bottom: 1px solid var(--line); }
.brand { font: 1.5rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.brand em { color: var(--accent); }
.masthead nav { display: flex; flex-wrap: wrap; gap: clamp(.85rem, 3vw, 2rem); }
.masthead nav a, .footer a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .6em; }
.masthead nav a { font-size: .88rem; font-weight: 650; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.hero { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 1.8rem; height: 1px; margin-right: .55rem; background: currentColor; vertical-align: middle; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin-top: .9rem; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: .99; letter-spacing: -.055em; text-wrap: balance; }
h1 em { color: var(--accent); }
.wide { display: none; }
.lede { max-width: 33ch; margin-top: 1.35rem; color: var(--subtle); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1.15rem; margin-top: 1.7rem; padding: .5rem 1rem; background: var(--ink); color: var(--paper); font-size: .9rem; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--accent); color: var(--paper); }
.button:focus-visible { outline-color: var(--ink); }
.hero-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.hero-image figcaption { display: flex; justify-content: space-between; gap: .65rem; margin-top: .55rem; color: var(--subtle); font-size: .8rem; }

.route { padding-block: 1.8rem clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .65rem 1.4rem; margin-bottom: 1.65rem; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.04em; }
.section-head h2 { margin-top: .35rem; }
.route-meta { color: var(--subtle); font-size: .9rem; }
.stops { display: grid; gap: 0 1.4rem; margin: 0; padding: 0; list-style: none; counter-reset: stop; }
.stops li { display: flex; flex-direction: column; padding: 1.15rem 0 .65rem; border-top: 2px solid var(--ink); counter-increment: stop; }
.stops li::before { content: counter(stop, decimal-leading-zero); margin-bottom: .45rem; color: var(--accent); font: 1rem/1.25 var(--serif); }
h3 { margin-bottom: .55rem; font-size: 1.52rem; line-height: 1.15; letter-spacing: -.025em; }
.stops p { flex: 1; color: var(--subtle); font-size: .95rem; }
.stops a { display: inline-flex; width: fit-content; min-height: 2.75rem; align-items: center; gap: .45rem; margin-top: .5rem; color: var(--accent); font-size: .87rem; font-weight: 650; }
.stops a:hover { color: var(--ink); }
.practical { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 4vw, 2.75rem); background: var(--wash); }
.practical dl { display: grid; gap: .9rem; }
.practical dt { font-weight: 700; }
.practical dd { color: var(--subtle); }
.footer { min-height: 5rem; margin-top: 2.25rem; border-top: 1px solid var(--line); color: var(--subtle); font-size: .83rem; }
.footer p span { padding-inline: .25rem; color: var(--accent); }
.footer a { flex-shrink: 0; }

@media (min-width: 38rem) {
  .stops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.7rem; }
}
@media (min-width: 58rem) {
  .wrap { width: min(100% - 5rem, 76rem); }
  .hero { grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(2rem, 5vw, 5.25rem); }
  .wide { display: initial; }
  .stops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .practical { grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); align-items: baseline; }
  .practical dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
@media print {
  body { background: white; color: black; }
  .hero-image, .button, .masthead nav, .footer a, .stops a { display: none; }
  .wrap { width: 100%; }
  .hero, .route, .practical { padding-block: 1rem; }
  .stops li { break-inside: avoid; }
}
