/* Layout: Numbered steps */

.steps__header {
	margin-bottom: var(--space-xl);
	text-align: center;
}

.steps__header > :last-child {
	margin-bottom: 0;
}

.steps__header .section__intro {
	margin-inline: auto;
}

.steps__list {
	display: grid;
	gap: var(--space-l);
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
	text-align: center;
}

/*
 * The oversized ghost number. It is decorative — the list is an <ol>, so the
 * order is already conveyed to assistive tech, and the span is aria-hidden.
 */
.steps__number {
	display: block;
	margin-bottom: var(--space-2xs);
	color: var(--color-border);
	font-family: var(--font-heading);
	font-size: clamp(3.5rem, 2rem + 6vw, 5.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

/* Sans, not the serif headings use elsewhere: these are labels under the numbers. */
.steps__title {
	margin-bottom: var(--space-2xs);
	font-family: var(--font-body);
	font-size: var(--text-lg);
	font-weight: 700;
}

.steps__text {
	margin-bottom: 0;
	font-size: var(--text-sm);
	font-weight: 600;
	text-wrap: balance;
}

.steps__action {
	margin: var(--space-xl) 0 0;
	text-align: center;
}
