:root {
  --paper: #f6efe2;
  --paper-deep: #ead9bd;
  --ink: #1d2326;
  --muted: #69706d;
  --blue: #1f5f8b;
  --turquoise: #4aa6a1;
  --red: #c94b3b;
  --yellow: #e2ad3d;
  --green: #6b8f55;
  --line: #d6c6aa;
  --white: #fffaf0;
  --shadow: 0 16px 40px rgba(44, 31, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(246, 239, 226, 0.94), rgba(246, 239, 226, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(29, 35, 38, 0.025) 28px 29px);
  color: var(--ink);
  font-family: Avenir, "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(246, 239, 226, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-bus {
  background: var(--turquoise);
  border: 3px solid var(--ink);
  border-radius: 13px 18px 8px 8px;
  box-shadow: 0 4px 0 rgba(29, 35, 38, 0.12);
  display: inline-block;
  flex: 0 0 auto;
  height: 2.45rem;
  position: relative;
  width: 4.15rem;
}

.brand-bus::before {
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  border-radius: 9px 14px 0 0;
  content: "";
  height: 40%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.brand-bus-windows {
  display: grid;
  gap: 0.18rem;
  grid-template-columns: repeat(3, 1fr);
  left: 0.45rem;
  position: absolute;
  right: 0.62rem;
  top: 0.28rem;
  z-index: 1;
}

.brand-bus-windows i {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: block;
  height: 0.58rem;
}

.brand-bus-stripe {
  background: var(--red);
  bottom: 0.7rem;
  height: 0.28rem;
  left: 0;
  position: absolute;
  right: 0;
}

.brand-bus-wheel {
  background: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 50%;
  bottom: -0.32rem;
  height: 0.72rem;
  position: absolute;
  width: 0.72rem;
}

.brand-bus-wheel.left {
  left: 0.72rem;
}

.brand-bus-wheel.right {
  right: 0.72rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

nav a,
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

nav a:hover,
.button:hover {
  background: var(--paper-deep);
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button.small {
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

main {
  min-height: 70vh;
}

.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 76vh;
  padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem) 3rem;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 3rem);
}

h3 {
  font-size: 1.12rem;
}

.lede {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.bus-scene {
  align-self: center;
  aspect-ratio: 1.12;
  min-height: 340px;
  position: relative;
}

.sunburst {
  background:
    radial-gradient(circle at center, rgba(226, 173, 61, 0.95) 0 16%, transparent 17%),
    conic-gradient(from 0deg, rgba(226, 173, 61, 0.36), transparent 12deg 24deg, rgba(226, 173, 61, 0.36) 24deg 36deg, transparent 36deg 50deg);
  border-radius: 50%;
  inset: 2% 6% auto auto;
  height: 72%;
  position: absolute;
  width: 72%;
}

.bus {
  background: var(--turquoise);
  border: 5px solid var(--ink);
  border-radius: 34px 48px 22px 22px;
  bottom: 24%;
  box-shadow: var(--shadow);
  height: 34%;
  left: 5%;
  position: absolute;
  width: 86%;
}

.bus-top {
  background: var(--white);
  border-bottom: 4px solid var(--ink);
  border-radius: 26px 40px 0 0;
  height: 42%;
}

.windows {
  display: grid;
  gap: 4%;
  grid-template-columns: repeat(4, 1fr);
  left: 9%;
  position: absolute;
  right: 12%;
  top: 13%;
}

.windows span {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 8px 8px 3px 3px;
  display: block;
  height: 2.8rem;
}

.stripe {
  background: var(--red);
  bottom: 29%;
  height: 14%;
  left: 0;
  position: absolute;
  right: 0;
}

.wheel {
  background: var(--ink);
  border: 6px solid var(--paper);
  border-radius: 50%;
  bottom: -18%;
  height: 22%;
  position: absolute;
  width: 13%;
}

.wheel.left {
  left: 17%;
}

.wheel.right {
  right: 16%;
}

.road {
  background: var(--ink);
  border-radius: 999px;
  bottom: 17%;
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
}

.intro-grid,
.article-section,
.route-preview,
.route-page,
.page-title,
.related,
.transcript,
.article-layout {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
}

.intro-grid {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.intro-grid div {
  border-left: 5px solid var(--yellow);
  padding-left: 1rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.route-preview {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.route-preview .interactive-route {
  max-width: 1180px;
}

.route-preview .vintage-map-card {
  max-width: 1180px;
}

.mentions-band {
  background: #f0e2c8;
  border-top: 1px solid var(--line);
}

.companion-band {
  background: #eef3f0;
  border-block: 1px solid #cad9d0;
}

.companion-band .section-heading p:not(.eyebrow) {
  color: var(--muted);
  max-width: 68ch;
}

.route-line {
  counter-reset: stops;
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.route-line li {
  align-items: flex-start;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr;
  position: relative;
}

.route-line li:not(:last-child)::after {
  background: var(--turquoise);
  bottom: -1.15rem;
  content: "";
  left: 1rem;
  position: absolute;
  top: 2.15rem;
  width: 3px;
}

.stop-number {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  position: relative;
  width: 2rem;
  z-index: 1;
}

.route-line strong,
.route-line span {
  display: block;
}

.route-line span {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards.wide {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.article-card a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(44, 31, 18, 0.06);
  display: block;
  min-height: 100%;
  padding: 1rem;
  text-decoration: none;
}

.article-card a:hover {
  border-color: var(--red);
}

.card-date {
  color: var(--blue);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.article-card p {
  color: #3d4545;
  font-size: 0.96rem;
}

.card-meta,
.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-meta span,
.ticket-meta span {
  background: #efe2c9;
  border-radius: 999px;
  color: #3d4545;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
}

.page-title,
.article-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.1rem, 3vw, 2.4rem) clamp(1rem, 5vw, 5rem);
}

.article-hero {
  position: relative;
}

.page-title h1,
.article-hero h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  max-width: 18ch;
}

.article-hero h1 {
  max-width: 20ch;
}

.page-title .lede,
.article-hero .lede,
.page-title > p:not(.eyebrow),
.article-hero > p:not(.eyebrow) {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 64ch;
}

.next-article-button {
  align-items: flex-start;
  background: #e8f0eb;
  border: 1px solid #bfd2c4;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.85rem;
  max-width: 420px;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.next-article-button:hover {
  border-color: var(--green);
  background: #dce9df;
}

.next-article-button span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-article-button strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.page-title p,
.article-hero p {
  max-width: 75ch;
}

.route-page {
  display: block;
}

.interactive-route {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  margin: 0 auto;
  max-width: 1240px;
  min-width: 0;
}

.vintage-map-card {
  aspect-ratio: 959 / 593;
  background:
    linear-gradient(rgba(255, 250, 240, 0.5), rgba(255, 250, 240, 0.5)),
    repeating-linear-gradient(0deg, rgba(201, 75, 59, 0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(31, 95, 139, 0.05) 0 1px, transparent 1px 24px);
  border: 8px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 1240px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.vintage-map-card::before {
  border: 3px solid var(--red);
  content: "";
  inset: 10px;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.vintage-map-card::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2), transparent 18%, rgba(29,35,38,0.05) 19%, transparent 20% 48%, rgba(29,35,38,0.08) 49%, transparent 50%),
    linear-gradient(rgba(29,35,38,0.07), transparent 1px);
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.map-title-card {
  background: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 5px 0 rgba(29, 35, 38, 0.08);
  left: 50%;
  padding: 0.55rem 1.1rem;
  position: absolute;
  text-align: center;
  top: 1.3rem;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 5rem));
  z-index: 5;
}

.map-title-card span,
.map-title-card strong {
  display: block;
}

.map-title-card span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}

.map-title-card strong {
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.travel-map {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.us-map-base {
  filter: sepia(0.18) saturate(0.9) contrast(0.96);
  height: 100%;
  inset: 0;
  object-fit: contain;
  opacity: 0.88;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.map-land {
  fill: #f5e9cf;
  filter: url("#paper-wobble");
  stroke: #683329;
  stroke-width: 0.75;
}

.map-water {
  fill: #77bcc8;
  opacity: 0.85;
}

.state-lines {
  fill: none;
  opacity: 0.32;
  stroke: #9a654e;
  stroke-dasharray: 2 2;
  stroke-width: 0.35;
}

.travel-map text {
  fill: #263034;
  font-size: 2px;
  font-weight: 900;
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 0.45px;
  text-transform: uppercase;
}

.map-stop-layer {
  inset: 0;
  position: absolute;
  z-index: 6;
}

.map-stop {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  height: 1.35rem;
  justify-content: center;
  left: calc(var(--x) * 1%);
  padding: 0;
  position: absolute;
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  width: 1.35rem;
  z-index: 2;
}

.map-stop span {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.map-stop strong {
  background: var(--ink);
  border-radius: 5px;
  bottom: calc(100% + 0.45rem);
  box-shadow: 0 6px 16px rgba(29, 35, 38, 0.2);
  color: var(--white);
  font-size: 0.78rem;
  left: 50%;
  line-height: 1.1;
  opacity: 0;
  padding: 0.35rem 0.5rem;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 0.2rem);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.map-stop strong::after {
  border-left: 0.32rem solid transparent;
  border-right: 0.32rem solid transparent;
  border-top: 0.32rem solid var(--ink);
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.map-stop:hover,
.map-stop:focus-visible,
.map-stop.is-active {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(201, 75, 59, 0.16);
  color: var(--white);
  transform: translate(-50%, -50%) scale(1.05);
}

.map-stop:hover strong,
.map-stop:focus-visible strong {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-stop:hover span,
.map-stop:focus-visible span,
.map-stop.is-active span {
  color: var(--white);
}

.map-stop.is-active {
  box-shadow: 0 0 0 5px rgba(201, 75, 59, 0.18);
  z-index: 7;
}

.tiny-bus {
  background: var(--turquoise);
  border: 2px solid var(--ink);
  border-radius: 7px 9px 4px 4px;
  box-shadow: 0 3px 0 rgba(29, 35, 38, 0.18);
  display: flex;
  gap: 2px;
  height: 1.35rem;
  justify-content: center;
  left: 71%;
  padding-top: 0.22rem;
  pointer-events: none;
  position: absolute;
  top: 39%;
  transform: translate(-50%, -165%);
  transition: left 260ms ease, top 260ms ease;
  width: 2.55rem;
  z-index: 8;
}

.tiny-bus::before,
.tiny-bus::after {
  background: var(--ink);
  border-radius: 50%;
  bottom: -0.22rem;
  content: "";
  height: 0.45rem;
  position: absolute;
  width: 0.45rem;
}

.tiny-bus::before {
  left: 0.45rem;
}

.tiny-bus::after {
  right: 0.45rem;
}

.tiny-bus-window {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  height: 0.42rem;
  width: 0.48rem;
}

.stop-reader {
  margin: 0;
  max-height: min(760px, calc((1240px - 1.25rem) * 2 / 3 * 593 / 959));
  max-width: none;
  min-width: 0;
  overflow: auto;
}

.stop-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.stop-panel[hidden] {
  display: none;
}

.stop-panel h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.stop-count {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0.8rem 0;
  text-transform: uppercase;
}

.stop-articles {
  display: grid;
  gap: 0.7rem;
}

.stop-article-link {
  background: #f8f0dd;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
  padding: 0.75rem;
  text-decoration: none;
}

.stop-article-link:hover {
  border-color: var(--red);
}

.stop-article-link span {
  color: var(--blue);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.stop-article-link strong {
  display: block;
  line-height: 1.2;
}

.stop-article-link p {
  color: #3d4545;
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.map-panel,
.note-panel,
.article-sidebar,
.clipping-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-panel,
.note-panel,
.article-sidebar {
  padding: 1.2rem;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.clipping-frame {
  margin: 0;
  overflow: hidden;
}

.clipping-stack {
  display: grid;
  gap: 1rem;
}

.clipping-frame img {
  background: white;
  margin: 0 auto;
  width: 100%;
}

.clipping-frame figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0.6rem 0.8rem;
}

.clipping-frame figcaption strong,
.clipping-frame figcaption span {
  display: block;
}

.article-sidebar {
  position: sticky;
  top: 6rem;
}

.article-sidebar h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.article-sidebar h3 {
  margin-top: 1rem;
}

.source-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.source-list li + li {
  margin-top: 1rem;
}

.source-list p {
  color: #3d4545;
  font-size: 0.9rem;
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}

.source-list a {
  color: var(--blue);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.tag-list li {
  background: #e8f0eb;
  border: 1px solid #cad9d0;
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 0.25rem 0.55rem;
}

.muted {
  color: var(--muted);
}

.transcript {
  max-width: 920px;
}

.transcript p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 2rem clamp(1rem, 5vw, 5rem);
}

.site-footer p {
  margin: 0;
  max-width: 72ch;
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .intro-grid,
  .route-page,
  .interactive-route,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .bus-scene {
    min-height: 260px;
  }

  .article-sidebar {
    position: static;
  }

  .vintage-map-card {
    min-height: 430px;
  }

  .map-stop {
    height: 1.25rem;
    width: 1.25rem;
  }

  .map-stop strong {
    font-size: 0.72rem;
  }

  .map-title-card {
    top: 1rem;
    width: min(310px, calc(100% - 4rem));
  }
}
