/* ==========================================================================
   PERPETUA – milestones.css
   --------------------------------------------------------------------------
   The milestones page: a horizontal landscape, in the same language as the
   home horizon. Hills, an orange path, and trees that grow from a twig at
   the September launch to a grove at the June rollout. Dates and titles sit
   above the path; the written notes under the picture carry the descriptions.
   ========================================================================== */

.section--milestones {
  overflow: clip;
}

/* -- The picture ---------------------------------------------------------- */

.journey__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.35rem;
  scroll-padding-inline: 1rem;
}
.journey__scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.journey__sheet {
  position: relative;
  width: 100%;
  min-width: 58rem;
  aspect-ratio: 1200 / 640;
}
.journey__scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.journey__marks {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}
.journey__mark {
  position: absolute;
  left: var(--at);
  top: var(--top);
  bottom: var(--foot);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0;
}
.journey__label {
  width: max-content;
  max-width: 10.5rem;
  transform: translateX(var(--shift, 0%));
  text-align: var(--align, center);
}
.journey__date {
  display: block;
  font: 600 0.84rem/1.2 var(--font-sans);
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.journey__name {
  display: block;
  margin-top: 0.2rem;
  font: 600 0.98rem/1.25 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--midnight);
  text-wrap: balance;
}
.journey__stem {
  width: 1px;
  flex: 1 1 auto;
  margin-top: 0.45rem;
  background: rgba(29, 49, 73, 0.38);
}
.journey__dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: none;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px #F6F7FA;
}

/* -- Notes under the picture ---------------------------------------------- */

.journey-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.75rem, 5vw, 4.25rem);
}
.journey-notes time {
  display: block;
  margin-bottom: 0.4rem;
  font: 500 var(--step--2) / 1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}
.journey-notes h3 {
  margin-bottom: 0.4rem;
  font: 400 var(--step-1) / 1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.journey-notes p {
  max-width: 38em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
@media (max-width: 52em) {
  .journey-notes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 36em) {
  .journey-notes { grid-template-columns: 1fr; }
}
