.tutorial-sheet {
  --tutorial-step-gap: clamp(36px, 6vw, 68px);
}

.tutorial-intro {
  margin-block-end: 24px;
}

.tutorial-intro h1 {
  margin-block: 0 16px;
  letter-spacing: -.02em;
}

.tutorial-intro .lede {
  max-width: 40em;
}

.tutorial-sheet > .toc-tabs {
  box-shadow: var(--hi-line);
}

.tutorial-sheet > .tutorial-step {
  margin-block: var(--tutorial-step-gap) 0;
}

.tutorial-step h2 {
  padding-block-start: 16px;
  border-block-start: 1px solid var(--border);
  margin-block: 0 16px;
}

.tutorial-step h3 {
  margin-block-start: 28px;
  color: var(--accent-dark);
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 20px;
}

.tutorial-step .tutorial-actions .btn {
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.tutorial-step .tutorial-actions .btn-primary,
.tutorial-step .tutorial-actions .btn-ghost:hover,
.tutorial-step .tutorial-actions .btn-ghost:active {
  color: var(--on-accent);
}

.tutorial-step .tutorial-actions .btn-ghost:not(:hover, :active) {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.tutorial-sheet) {
    scroll-behavior: smooth;
  }
}