:root {
  --sand: #E8DCC5;
  --sand-deep: #D9C8A9;
  --ink: #222222;
  --signal: #B33A2E;
  --rail: #2C6E6A;
  --paper: color-mix(in srgb, var(--sand) 42%, #fff);
  --quiet: color-mix(in srgb, var(--ink) 78%, var(--sand));
  --faint: color-mix(in srgb, var(--ink) 28%, var(--sand));
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --edge: clamp(1rem, 4.5vw, 3rem);
  --rule: 3px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

.has-bar { padding-bottom: 9rem; scroll-padding-bottom: 9rem; }

a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgb(179 58 46 / 0.2); }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--ink); }
code { font: 500 0.92em var(--sans); background: var(--sand-deep); padding: 0.1em 0.4em; border-radius: 3px; overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 0.5rem; outline-color: var(--paper); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--edge); }

.spine { display: none; }

@media (min-width: 75rem) {
  body { padding-inline-start: 76px; }
  .spine {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: 76px;
    z-index: 5;
    border-right: 1px solid var(--faint);
    background: var(--sand-deep);
    view-transition-name: spine;
  }
  .spine::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 24px;
    width: 26px;
    border-inline: 3px solid var(--rail);
    background: repeating-linear-gradient(to bottom, var(--rail) 0 2px, transparent 2px 13px);
  }
  .spine-train {
    position: absolute;
    top: 14px;
    left: 18px;
    width: 40px;
    height: 40px;
  }
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .spine-train {
        animation: ride linear both;
        animation-timeline: scroll(root block);
      }
    }
  }
}

@keyframes ride {
  to { transform: translateY(calc(100vh - 84px)); }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

.top {
  background: var(--sand-deep);
  border-bottom: var(--rule);
  box-shadow: 0 5px 0 -4px var(--ink);
}
.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.6rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.25rem 0.9rem 0.25rem 0.45rem;
  background: var(--rail);
  color: var(--paper);
  font: 600 1.05rem/1 var(--sans);
  text-decoration: none;
  border: 2px solid var(--paper);
  outline: 2px solid var(--rail);
  border-radius: 5px;
  margin: 2px;
}
.mark-dot circle { fill: var(--paper); }
.mark-dot path { stroke: var(--rail); }
.mark:focus-visible { outline-color: var(--signal); outline-offset: 4px; }

.nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 0.4rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.7rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { background: color-mix(in srgb, var(--sand-deep) 60%, var(--ink) 12%); }
.nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -4px 0 var(--signal); }

.menu-btn { display: none; }

.js .menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  font: 600 1rem var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}
.js .nav { display: none; flex-basis: 100%; }
.js .nav.is-open { display: block; }
.js .nav ul { flex-direction: column; border-top: 2px solid var(--ink); padding-top: 0.4rem; }

@media (min-width: 62rem) {
  .js .menu-btn { display: none; }
  .js .nav, .js .nav.is-open { display: block; flex-basis: auto; }
  .js .nav ul { flex-direction: row; border: 0; padding: 0; }
}

.demo-line {
  margin: 0;
  padding: 0.7rem 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.45;
}
.demo-line .wrap { display: block; }

main { display: block; }

.kicker { margin: 0 0 0.75rem; font-weight: 600; font-size: 0.95rem; color: var(--rail); }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; max-width: 38em; }
.note { font-size: 0.95rem; color: var(--quiet); max-width: 32em; }

.hero img {
  width: 100%;
  height: clamp(18rem, 50vw, 38rem);
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-card {
  position: relative;
  max-width: 46rem;
  margin-top: calc(-1 * clamp(2.5rem, 9vw, 7rem));
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  background: var(--paper);
  border: 3px solid var(--ink);
}
.hero-card h1 { margin-bottom: 1rem; }
.three {
  display: grid;
  gap: 0.9rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 3px dotted var(--ink);
}
.three strong { display: block; font: 600 1.15rem/1.25 var(--serif); }
.three span { font-size: 0.92rem; color: var(--quiet); }
@media (min-width: 40rem) { .three { grid-template-columns: repeat(3, 1fr); } }

.hang {
  display: grid;
  gap: 1.1rem 3rem;
  padding-block: clamp(2.25rem, 5vw, 4.25rem);
  border-top: var(--rule);
  background: linear-gradient(var(--ink), var(--ink)) 0 6px / 100% 1px no-repeat;
}
.hang > header > .note { margin: 0.8rem 0 0; }
.hang > header > .plate { margin-bottom: 0.9rem; }
.hang > div > * { max-width: 40rem; }
.hang > div > .dr,
.hang > div > .runs,
.hang > div > .wide,
.hang > div > .stubs,
.hang > div > .details,
.hang > div > .spec,
.hang > div > .keys,
.hang > .day { max-width: none; }

@media (min-width: 62rem) {
  .hang { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .hang > header { position: sticky; top: 1.5rem; align-self: start; }
}

.lede { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.lede h1 { margin-bottom: 1.25rem; }
.lede-photo { display: grid; gap: 1.75rem 3rem; align-items: end; }
@media (min-width: 52rem) {
  .lede-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
  .lede-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); }
}
.tall, .wide { margin: 0; }
.tall img { width: 100%; max-height: 28rem; object-fit: cover; border: 3px solid var(--ink); }
.wide img { width: 100%; border: 3px solid var(--ink); }
figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--quiet); }

.plate {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.35rem 0.8rem;
  background: var(--rail);
  color: var(--paper);
  font: 600 0.95rem/1.3 var(--sans);
  border: 2px solid var(--paper);
  outline: 2px solid var(--rail);
  border-radius: 4px;
  margin-inline: 2px;
}

.ticket {
  --notch: 0.55rem;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.9rem;
  font: 600 1rem var(--sans);
  color: var(--paper);
  background: var(--ink);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket:hover { background: var(--signal); }
.ticket:focus-visible { outline: 3px solid var(--paper); outline-offset: -7px; background: var(--ink); box-shadow: inset 0 0 0 7px var(--signal); }
.ticket-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.ticket-quiet:hover { background: var(--sand-deep); }

.day {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day li {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0 1.6rem;
  padding: 0 0 1.9rem 1.2rem;
  margin-left: 0.55rem;
  border-left: 3px solid var(--rail);
}
.day li:last-child { padding-bottom: 0; border-left-color: transparent; }
.day li::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid var(--rail);
  border-radius: 50%;
  background: var(--paper);
}
.day li.open::before { background: var(--signal); border-color: var(--ink); }
.day li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -0.45rem;
  bottom: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border: solid var(--rail);
  border-width: 0 3px 3px 0;
  rotate: 45deg;
}
.t { font: 600 1.15rem/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.day h3 { font-size: 1.3rem; }
.day p { margin: 0.2rem 0 0; max-width: 36rem; }
@media (max-width: 30rem) {
  .day li { grid-template-columns: 1fr; gap: 0.1rem; }
}

.dr { display: block; width: 100%; height: auto; margin-block: 1.5rem 0; }
.dr-label { font: 600 13px var(--sans); fill: var(--ink); }
.dr-small { font-size: 12px; }
.dr-big { font-size: 15px; }
.dr-quiet { font-weight: 400; fill: var(--quiet); }
.dr-end { text-anchor: end; }
.dr-mid { text-anchor: middle; }
.dr-line { fill: none; stroke: var(--rail); stroke-width: 2; }
.dr-fill { fill: var(--sand-deep); stroke: var(--rail); stroke-width: 2; }
.dr-paper { fill: var(--paper); stroke: var(--rail); stroke-width: 2; }
.dr-signal { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.dr-wheel { fill: var(--ink); }
.dr-gap { stroke: var(--paper); stroke-width: 5; fill: none; }
.dr-route { fill: none; stroke: var(--signal); stroke-width: 3; stroke-dasharray: 0.1 8; stroke-linecap: round; }
.dr-border { fill: none; stroke: var(--rail); stroke-width: 3; }
.dr-track { fill: none; stroke: var(--rail); stroke-width: 5; }
.dr-stop { fill: var(--paper); stroke: var(--rail); stroke-width: 3; }
.dr-stop-big { fill: var(--rail); stroke: var(--paper); stroke-width: 3; }
.dr-plan { max-width: 28rem; margin-inline: auto; margin-block: 0; }
.dr-plan .dr-label { font-size: 14px; }
.dr-plan .dr-small { font-size: 13px; }
.dr-route-map .dr-label { font-size: 16px; }
.dr-route-map .dr-big { font-size: 18px; }
.dr-side, .dr-route-map { display: none; }
@media (min-width: 46rem) {
  .dr-side, .dr-route-map { display: block; }
}

.split {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 4.25rem);
  border-top: var(--rule);
  background: linear-gradient(var(--ink), var(--ink)) 0 6px / 100% 1px no-repeat;
}
.split-text h2 { margin-bottom: 1.1rem; }
.split-text p { max-width: 36rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split-facts { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.split-facts .split-art { order: 2; }
@media (min-width: 56rem) {
  .split-facts .split-art { order: 0; }
}

.facts, .spec, .details { margin: 0; }
.facts { display: grid; gap: 1rem 1.5rem; margin-top: 1.5rem; }
@media (min-width: 40rem) { .facts { grid-template-columns: 1fr 1fr; } }
.facts > div {
  padding: 1rem 1.1rem 1.1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.facts dt, .spec dt, .details dt { font: 600 0.92rem var(--sans); color: var(--rail); }
.facts dd, .spec dd, .details dd { margin: 0.25rem 0 0; }

.spec { display: grid; gap: 0; margin-bottom: 1.5rem; border-top: 2px solid var(--ink); }
.spec > div { display: grid; gap: 0.15rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--faint); }
.spec dd { margin: 0; }
@media (min-width: 40rem) { .spec > div { grid-template-columns: 12rem 1fr; } }

.details { margin-top: 1.75rem; border: 2px solid var(--ink); background: var(--paper); }
.details > div { display: grid; gap: 0.1rem 1.5rem; padding: 0.7rem 1rem; border-bottom: 1px dashed var(--ink); }
.details > div:last-child { border-bottom: 0; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .details > div { grid-template-columns: 11rem 1fr; } }

.plain { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.plain li { margin-bottom: 0.45rem; padding-left: 0.3rem; }
.plain li::marker { color: var(--signal); }

.runs { display: grid; gap: 2.25rem 2rem; }
@media (min-width: 70rem) { .runs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 69.99rem) { .runs { grid-template-columns: repeat(2, 1fr); } }

.run {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.run caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.6rem;
  font: 600 1.2rem/1.25 var(--serif);
}
.run th, .run td { padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.run thead th { background: var(--rail); color: var(--paper); font-size: 0.9rem; font-weight: 600; }
.run tbody th { font-weight: 600; }
.run .leg td {
  padding: 0.15rem 0.7rem 0.15rem 1.2rem;
  font-size: 0.88rem;
  color: var(--quiet);
  background: color-mix(in srgb, var(--sand) 70%, var(--paper));
  border-block: 1px dashed var(--faint);
}
.run .leg td::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.8rem;
  border: solid var(--rail);
  border-width: 0 3px 3px 0;
  rotate: 45deg;
  translate: 0 -0.15rem;
}
.keys td, .keys th { vertical-align: top; }
.keys { font-variant-numeric: normal; }

.stubs { display: grid; gap: 1.4rem; }
@media (min-width: 46rem) { .stubs { grid-template-columns: repeat(2, 1fr); } }
.stub {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.stub img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px dashed var(--ink); }
.stub-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.3rem; }
.stub .plate { align-self: flex-start; }
.stub h3 { margin-bottom: 0.5rem; }
.mini { margin: 0 0 1rem; padding: 0.7rem 0 0; list-style: none; border-top: 1px dashed var(--ink); font-size: 0.93rem; font-variant-numeric: tabular-nums; }
.mini li { padding: 0.15rem 0; }
.mini > div { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0 0.6rem; padding: 0.15rem 0; }
.mini dt { font-weight: 600; }
.mini dd { margin: 0; }
.stub h3 a { text-decoration: none; }
.stub h3 a::after { content: ""; position: absolute; inset: 0; }
.stub p:not(.plate) { margin-bottom: 1rem; }
.stub .dot { margin-top: auto; align-self: flex-end; color: var(--rail); }
.stub:hover { background: var(--sand-deep); }
.stub:hover .dot { color: var(--signal); }
.stub:focus-within { outline: 3px solid var(--signal); outline-offset: 3px; }
.stub h3 a:focus-visible { outline: none; }

.banner { position: relative; background: var(--ink); }
.banner img {
  width: 100%;
  height: clamp(26rem, 56vw, 40rem);
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0.92;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(34 34 34 / 0.92), rgb(34 34 34 / 0.55) 45%, transparent 75%);
}
.banner .wrap { position: absolute; inset: auto 0 0 0; z-index: 1; }
.banner-text { padding-bottom: clamp(1.5rem, 4vw, 3rem); color: var(--paper); max-width: 44rem; }
.banner-text .kicker { color: var(--sand); }
.banner-text .lead { margin-bottom: 0; }
.banner-text h1 { margin-bottom: 0.8rem; }

.sign {
  margin: 0;
  padding: 1.1rem 0;
  border-top: 1px dashed var(--ink);
  font-size: 0.9rem;
  color: var(--quiet);
}
.sign .wrap { display: block; }

.foot { margin-top: clamp(2rem, 5vw, 4rem); padding-block: 2.2rem 2.6rem; background: var(--ink); color: var(--paper); }
.foot-grid { display: grid; gap: 1.6rem 3rem; }
.foot .mark { background: var(--paper); color: var(--ink); border-color: var(--ink); outline-color: var(--paper); }
.foot .mark-dot circle { fill: var(--rail); }
.foot .mark-dot path { stroke: var(--paper); }
.foot-id p { margin: 1rem 0 0; max-width: 32rem; font-size: 0.98rem; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:focus-visible { outline-color: var(--paper); }
.foot a { text-decoration-color: var(--sand-deep); }
.foot-fine { margin: 0; font-size: 0.9rem; color: var(--sand-deep); }
@media (min-width: 56rem) {
  .foot-grid { grid-template-columns: 1.2fr 1fr; }
  .foot-fine { grid-column: 1 / -1; }
}

.gate {
  width: min(32rem, calc(100% - 2rem));
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
}
.gate { overscroll-behavior: contain; }
.gate::backdrop { background: rgb(34 34 34 / 0.78); }
.gate h2 { margin-bottom: 0.9rem; }
.gate-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 0; }
.gate [hidden] { display: none; }

.cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: 1rem var(--edge);
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--signal);
  font-size: 0.97rem;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; max-width: 46rem; }
.cookie a:focus-visible, .cookie button:focus-visible { outline-color: var(--paper); }
.cookie-btns { display: flex; gap: 0.7rem; }
.cookie button {
  min-height: 44px;
  padding: 0 1.4rem;
  font: 600 1rem var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 3px;
  cursor: pointer;
}
.cookie button + button { background: transparent; color: var(--paper); }

@media (max-width: 30rem) {
  .hero-card, .ticket { width: 100%; }
  .ticket { justify-content: center; }
  .run th, .run td { padding-inline: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
