@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;700&display=swap");

:root {
  --forest: #6f201d;
  --sage: #e4b7af;
  --olive: #f1d4cd;
  --cream: #fff4ef;
  --moss: #d39a90;
  --forest-shadow: rgba(111, 32, 29, 0.2);
  --line: rgba(111, 32, 29, 0.12);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-xl: 5rem;
  --radius-lg: 2.5rem;
  --radius-md: 1.5rem;
  --page-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--forest);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(228, 183, 175, 0.9), transparent 24%),
    linear-gradient(180deg, var(--sage) 0%, var(--olive) 34%, var(--cream) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.04;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow--footer {
  color: var(--sage);
}

.site-header {
  position: sticky;
  top: 0.6rem;
  z-index: 40;
  padding: 0.6rem 0.75rem 0;
}

.site-header__inner {
  width: min(calc(100% - 0px), 36rem);
  margin: 0 auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px var(--forest-shadow);
  overflow-x: auto;
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(254, 250, 224, 0.65);
  transform: translateY(-1px);
}

.page-shell,
.stop-shell {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  padding-top: 1.25rem;
}

.hero-section,
.story-section,
.map-section,
.stops-section,
.stop-hero,
.stop-story,
.stop-strip {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 50px var(--forest-shadow);
}

.hero-section {
  display: grid;
  gap: 1.8rem;
  min-height: calc(100vh - 7rem);
  padding: 2rem;
  background: var(--sage);
}

.hero-section::before,
.story-section::before,
.map-section::before,
.stops-section::before,
.stop-hero::before,
.stop-story::before,
.stop-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(254, 250, 224, 0.5), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 26%);
}

.hero-section > *,
.story-section > *,
.map-section > *,
.stops-section > *,
.stop-hero > *,
.stop-story > *,
.stop-strip > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-display {
  position: relative;
  min-height: 34vh;
  display: grid;
  place-items: center;
}

.hero-word {
  position: relative;
  z-index: 2;
  font-size: clamp(5rem, 21vw, 18rem);
  line-height: 0.78;
  text-align: center;
}

.hero-word .char {
  display: inline-block;
  transform: translateY(100px);
  opacity: 0;
  animation: reveal-char 1.2s var(--ease-premium) forwards;
}

.hero-ghost {
  position: absolute;
  inset: 10% 14% 6%;
  margin: 0;
  overflow: hidden;
  border-radius: 3rem;
  opacity: 0.12;
  filter: grayscale(1) blur(0.4px);
  box-shadow: 0 20px 40px var(--forest-shadow);
}

.hero-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead,
.story-prose,
.stop-copy,
.stop-address,
.stop-note {
  color: rgba(111, 32, 29, 0.78);
}

.lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1rem;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.hero-bottom__meta {
  display: grid;
  gap: 0.8rem;
}

.meta-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: rgba(254, 250, 224, 0.62);
  border: 1px solid rgba(111, 32, 29, 0.12);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.meta-pill strong {
  font-size: 0.9rem;
  letter-spacing: 0;
}

.story-section,
.map-section,
.stops-section,
.stop-story,
.stop-strip {
  margin-top: 1.75rem;
  padding: 2rem;
}

.story-section,
.stop-strip {
  background: var(--olive);
}

.map-section,
.stop-hero {
  background: var(--sage);
}

.stops-section,
.stop-story {
  background: var(--cream);
}

.section-copy--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.story-prose p,
.story-prose blockquote,
.stop-copy p {
  margin: 0 0 1rem;
}

.story-prose blockquote {
  padding-left: 1.1rem;
  border-left: 4px solid var(--forest);
}

.round-cta,
.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  box-shadow: 0 20px 34px var(--forest-shadow);
  transition: transform 0.5s var(--ease-premium);
}

.round-cta:hover,
.round-cta:focus-visible,
.footer-button:hover,
.footer-button:focus-visible {
  transform: translateY(-3px);
}

.map-stage {
  position: relative;
  overflow: hidden;
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(111, 32, 29, 0.12);
  box-shadow: inset 0 0 0 1px rgba(254, 250, 224, 0.3);
}

.map-stage--editorial {
  min-height: 24rem;
  max-height: 32rem;
}

.map-stage--compact {
  min-height: 16rem;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  font-family: "Inter", sans-serif;
  background: var(--cream);
}

.leaflet-control-zoom a,
.leaflet-control-attribution {
  color: var(--forest);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--cream);
  color: var(--forest);
}

.route-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--sage);
  border: 2px solid var(--cream);
  box-shadow: 0 10px 20px var(--forest-shadow);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
}

.route-marker span {
  display: block;
  line-height: 1;
}

.route-marker.is-active {
  background: var(--forest);
  color: var(--cream);
}

.route-marker--compact {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.route-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.route-list--editorial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-list--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.7rem;
  min-height: 12rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(211, 154, 144, 0.22), rgba(111, 32, 29, 0.08)),
    var(--cream);
  border: 1px solid rgba(111, 32, 29, 0.1);
  box-shadow: 0 22px 36px var(--forest-shadow);
  transition: transform 0.6s var(--ease-premium), box-shadow 0.6s var(--ease-premium);
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(228, 183, 175, 0.65), transparent 30%),
    linear-gradient(180deg, transparent 40%, rgba(111, 32, 29, 0.16) 100%);
}

.route-card:hover,
.route-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 46px var(--forest-shadow);
}

.route-card__heading,
.route-card__address,
.route-card__excerpt,
.route-card__cta {
  position: relative;
  z-index: 1;
}

.route-card__heading {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.route-card__number {
  min-width: 2.35rem;
  min-height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-size: 1rem;
  font-family: "Anton", sans-serif;
}

.route-card__title {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.route-card__address {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.route-card__excerpt {
  font-size: 0.92rem;
  max-width: 38ch;
}

.route-card__cta {
  margin-top: auto;
}

.route-card__cta span {
  min-height: 2.6rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(111, 32, 29, 0.08);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-premium), background 0.5s var(--ease-premium);
}

.route-card:hover .route-card__cta span,
.route-card:focus-visible .route-card__cta span {
  transform: translateY(-2px);
  background: white;
}

.site-footer {
  margin-top: 1.75rem;
  padding: 1.75rem 1rem 1.5rem;
  background: var(--forest);
  color: var(--sage);
}

.site-footer__grid,
.site-footer__cta {
  width: min(calc(100% - 0px), var(--page-width));
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1.5rem;
}

.site-footer__grid--compact {
  grid-template-columns: 1fr;
  align-items: start;
}

.footer-signup h2 {
  max-width: 14ch;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}

.footer-links a {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-footer__cta {
  margin-top: 1.25rem;
}

.stop-hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.8rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stop-number {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.stop-title {
  font-size: clamp(3rem, 10vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.stop-title--long {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
}

.stop-title--xlong {
  font-size: clamp(2.1rem, 6.5vw, 4.4rem);
}

.section-title--long {
  font-size: clamp(2.5rem, 8vw, 5.8rem);
}

.stop-address {
  margin: 0.9rem 0 0;
  max-width: 40ch;
  overflow-wrap: anywhere;
}

.stop-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.nav-pill {
  padding: 0.95rem 1rem;
  border-radius: 999px;
  background: rgba(254, 250, 224, 0.62);
  border: 1px solid rgba(111, 32, 29, 0.12);
  min-width: 0;
}

.nav-pill span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-pill strong {
  display: block;
  margin-top: 0.28rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  line-height: 1.2;
}

.stop-story {
  display: grid;
  gap: 1.6rem;
}

.stop-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 3rem;
  box-shadow: 0 22px 36px var(--forest-shadow);
}

.stop-figure img {
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
}

.stop-figure figcaption {
  padding: 1rem 1.1rem;
  background: rgba(254, 250, 224, 0.92);
}

.stop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(17rem, 0.82fr);
  gap: 1.5rem;
}

.stop-side {
  display: grid;
  gap: 1rem;
}

.stop-map-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(254, 250, 224, 0.72);
  border: 1px solid rgba(111, 32, 29, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1.2s var(--ease-premium), transform 1.2s var(--ease-premium);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-char {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hero-bottom,
  .stop-layout,
  .site-footer__grid,
  .section-copy--row {
    grid-template-columns: 1fr;
  }

  .section-copy--row {
    display: grid;
    align-items: start;
  }

  .route-list--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-list--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 0.4rem;
    padding: 0.4rem 0.5rem 0;
  }

  .site-header__inner {
    width: min(calc(100% - 0px), 100%);
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    min-height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .page-shell,
  .stop-shell {
    width: min(calc(100% - 0.8rem), var(--page-width));
    padding-top: 0.7rem;
  }

  .hero-section,
  .story-section,
  .map-section,
  .stops-section,
  .stop-hero,
  .stop-story,
  .stop-strip {
    padding: 1.1rem;
    border-radius: 2.8rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-display {
    min-height: 26vh;
  }

  .hero-ghost {
    inset: 8% 8% 6%;
    opacity: 0.1;
  }

  .map-stage--editorial {
    min-height: 18rem;
    max-height: 21rem;
  }

  .route-list--editorial,
  .route-list--compact,
  .stop-nav,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 8.6rem;
    padding: 1rem;
  }

  .route-card__excerpt {
    display: none;
  }

  .route-card__heading {
    gap: 0.5rem;
  }

  .route-card__title {
    font-size: clamp(1.3rem, 7vw, 1.9rem);
  }

  .stop-title {
    font-size: clamp(2.3rem, 10vw, 4.1rem);
  }

  .stop-title--long {
    font-size: clamp(2rem, 8.6vw, 3.4rem);
  }

  .stop-title--xlong {
    font-size: clamp(1.75rem, 7.4vw, 2.8rem);
  }

  .nav-pill {
    padding: 0.85rem 0.9rem;
  }

  .stop-layout {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
