/* PROCESS: steps-path. Section heading on the left (stays in view on wide
   screens), the steps on the right as one numbered vertical path: numbers in
   circles joined by a line, the last step lit in brass. Reads top to bottom
   on every screen size. Calm variant. */

.steps-path__grid {
  display: grid;
  gap: var(--space-xl);
}

.steps-path .section-head {
  margin-bottom: 0;
}

.steps-path__list {
  list-style: none;
  padding: 0;
  counter-reset: step;
  max-width: 34rem;
}

.steps-path__item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: var(--space-m);
  padding-bottom: var(--space-xl);
  counter-increment: step;
}

.steps-path__item:last-child {
  padding-bottom: 0;
}

/* the number */
.steps-path__item::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  border: var(--border-width-strong) solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  font-family: var(--font-heading);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

/* the path joining one number to the next */
.steps-path__item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 3rem 0;
  inset-inline-start: calc(1.5rem - var(--border-width));
  inline-size: var(--border-width-strong);
  background: var(--color-line);
}

.steps-path__item:last-child::before {
  background: var(--color-brass);
  border-color: var(--color-brass);
  color: var(--color-brass-contrast);
}

.steps-path__item h3 {
  padding-top: 0.45rem;
  margin-bottom: var(--space-2xs);
}

.steps-path__item p {
  color: var(--color-text-muted);
  max-width: 40ch;
}

@media (min-width: 56em) {
  .steps-path__grid {
    grid-template-columns: 5fr 6fr;
    gap: var(--space-3xl);
    align-items: start;
  }

  .steps-path .section-head {
    position: sticky;
    top: var(--space-2xl);
  }
}
