/*
 * Section heading lockups. design/DESIGN-SYSTEM.md §4.20, PAGE-STRUCTURE §0.3.
 *
 * A -- skewed red marker beside the h2 (the dominant pattern, 12 uses).
 * B -- red dash rule + eyebrow label, heading underneath (heroes, split bands).
 */

.sp-heading {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
}

.sp-heading--center {
	justify-content: center;
	text-align: center;
}

.sp-heading__mark {
	flex: 0 0 auto;
	width: 26px;
	height: 22px;
	background: var(--sp-red);
	transform: var(--sp-skew);
}

.sp-heading__title {
	margin: 0;
	font-family: var(--sp-font-display);
	font-style: italic;
	font-weight: 800;
	font-size: var(--sp-fs-h2);
	line-height: var(--sp-lh-tight);
	text-transform: uppercase;
	color: var(--sp-text);
}

.sp-heading--sub .sp-heading__title {
	font-size: var(--sp-fs-h2-sub);
}

.sp-heading--page .sp-heading__title {
	font-size: var(--sp-fs-h1-page);
	font-weight: 900;
	line-height: var(--sp-lh-display);
}

/* --------------------------------------------------------------- eyebrow */

.sp-eyebrow {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.sp-eyebrow__bar {
	flex: 0 0 auto;
	width: 34px;
	height: 4px;
	background: var(--sp-red);
}

.sp-eyebrow__text {
	font-family: var(--sp-font-display);
	font-style: italic;
	font-weight: 800;
	font-size: var(--sp-fs-eyebrow);
	letter-spacing: var(--sp-ls-eyebrow-lg);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.sp-eyebrow--lg .sp-eyebrow__text {
	font-size: var(--sp-fs-eyebrow-lg);
	letter-spacing: var(--sp-ls-eyebrow);
}

.sp-eyebrow + .sp-heading__title,
.sp-eyebrow + h1,
.sp-eyebrow + h2 {
	margin-top: var(--sp-4);
}
