/* Three numbered steps. The numbers earn their place here because
   this really is a sequence: the second step cannot happen before the
   first. A dotted connector runs between them, echoing the rail in
   the chain section without repeating it. */

@layer components {
  .steps__title {
    margin-block-start: var(--space-xs);
    font-size: var(--step-3);
    font-weight: 700;
  }

  .steps__list {
    display: grid;
    gap: var(--space-l);
    margin: 0;
    margin-block-start: var(--space-xl);
    padding: 0;
    list-style: none;
  }

  .step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-m);
    align-items: start;
  }

  /* The connector: from just under one number down to the next. */
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    inset-block: 3.6rem calc(var(--space-l) * -1);
    inset-inline-start: 1.55rem;
    inline-size: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--color-accent) 0 4px,
      transparent 4px 10px
    );
  }

  .step__n {
    display: grid;
    place-items: center;
    inline-size: 3.2rem;
    block-size: 3.2rem;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
  }

  .step__body h3 {
    margin-block-start: var(--space-2xs);
    font-size: var(--step-2);
    font-weight: 600;
  }

  .step__body p {
    margin-block-start: var(--space-2xs);
    color: var(--color-muted);
  }
}
