/* Trip page: bike preparation. */

.trip-header {
  padding-block: 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 1px;
  background: var(--orange);
  vertical-align: 0.05em;
}

.trip-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.trip-header .lead {
  margin: 0;
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.bike-section {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.bike-section:last-of-type {
  border-bottom: 0;
}

.bike-section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--heading);
}

.bike-section > p {
  margin: 0 0 1.5rem;
  max-width: 68ch;
  color: var(--muted);
}

.pair,
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 0;
  padding: 0;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.pair figure,
.steps figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--footer-bg);
}

.pair img,
.steps img {
  width: 100%;
}

.figure-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pair .figure-link:focus-visible,
.steps .figure-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .figure-link {
    transition: opacity 0.15s ease;
  }

  .figure-link:hover {
    opacity: 0.92;
  }
}

.pair figcaption,
.steps figcaption {
  padding: 0.75rem 0.875rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.pair figcaption strong,
.steps figcaption strong {
  color: var(--heading);
}

.steps figcaption::before {
  content: counter(step, decimal-leading-zero);
  margin-right: 0.4rem;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 761px) {
  .pair,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
