.section--journey {
  background: #eae6df;
}

.journey {
  --route-ink: #271d22;
  --route-surface: #35212a;
  --route-accent: #ffd5aa;
  --route-padding: clamp(20px, 3.8vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: var(--card-gap);
}

.journey-route {
  min-width: 0;
  padding: var(--route-padding);
  border-radius: 6px;
  color: #fff;
  background: var(--route-surface);
}

.journey-route .eyebrow {
  margin-bottom: 10px;
  color: var(--route-accent);
}

.journey-route h2 {
  max-width: 15ch;
  text-wrap: balance;
}

.journey-lead {
  max-width: 46ch;
  margin-top: 12px;
  color: #f0e2e8;
}

.journey-stops {
  position: relative;
  display: grid;
  gap: 6px;
  max-width: 30rem;
  margin-top: clamp(21px, 3.15vw, 44px);
}

.journey-stops::before {
  content: "";
  position: absolute;
  inset: 25px auto 25px 24px;
  width: 1px;
  background: rgb(255 213 170 / .47);
}

.journey-stop {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: clamp(8px, 1vw, 14px);
  align-items: center;
  min-width: 0;
  min-height: 47px;
  padding: 6px 10px 6px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fcf4f1;
  font-size: clamp(.88rem, 1.2vw, 1.015rem);
  font-weight: 650;
  line-height: 1.32;
  overflow-wrap: anywhere;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.journey-stop:is([aria-selected="true"], [aria-current="true"]) {
  border-color: rgb(255 213 170 / .55);
  background: rgb(36 23 32 / .86);
  color: var(--route-accent);
}

.journey-stop:focus-visible {
  outline: 2px solid var(--route-accent);
  outline-offset: 2px;
}

.journey-index {
  position: relative;
  display: grid;
  place-items: center;
  height: 2rem;
  border: 1px solid rgb(255 213 170 / .63);
  border-radius: 50%;
  background: var(--route-ink);
  color: var(--route-accent);
  font-size: .73rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .045em;
}

.journey-stop:is([aria-selected="true"], [aria-current="true"]) .journey-index {
  border-color: var(--route-accent);
  background: var(--route-accent);
  color: var(--route-ink);
}

.journey-panels {
  display: grid;
  min-width: 0;
  gap: var(--card-gap);
}

.journey-panel {
  display: grid;
  align-content: start;
  min-width: 0;
  border: 1px solid #d6cec4;
  border-radius: 6px;
  background: #fdfaf4;
}

.journey-panel[hidden] { display: none; }
.journey-panel:target { border-color: var(--clay); }

.journey-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  aspect-ratio: 1.87;
  background: #d7cac0;
}

.journey-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-copy {
  display: grid;
  gap: 11px;
  align-content: start;
  padding: clamp(21px, 3.4vw, 48px);
}

.journey-copy h3 {
  color: var(--ink);
  font-size: clamp(1.42rem, 2.45vw, 2.4rem);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}

.journey-copy p {
  max-width: 48ch;
  color: var(--muted);
}

.journey-link {
  justify-self: start;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--clay);
  font-weight: 720;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.journey-link::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .journey-stop:not([aria-selected="true"]):hover {
    background: rgb(36 23 32 / .67);
    border-color: rgb(255 213 170 / .35);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .journey.is-enhanced .journey-panel:not([hidden]) .journey-photo img {
    animation: journey-photo-in .35s ease-out both;
  }

  .journey.is-enhanced .journey-panel:not([hidden]) .journey-copy {
    animation: journey-copy-in .28s ease-out both;
  }
}

@keyframes journey-photo-in {
  from { opacity: .8; transform: scale(1.025); }
  to { opacity: 1; transform: none; }
}

@keyframes journey-copy-in {
  from { opacity: .65; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey-route h2 { max-width: 23ch; }
  .journey-stops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-width: none;
  }
  .journey-stops::before { display: none; }
  .journey-stop {
    grid-template-columns: 1.65rem minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
    border-color: rgb(255 213 170 / .27);
    background: rgb(36 23 32 / .35);
  }
  .journey-index { height: 1.65rem; font-size: .657rem; }
  .journey-photo { aspect-ratio: 1.83; }
}

@media (max-width: 360px) {
  .journey { --route-padding: 14px; }
  .journey-stop { font-size: .79rem; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-stop { transition: none; }
}
