/* Match the Ko-fi banner’s left-to-right shading in the homepage cream palette. */
.spr-home .light-section {
	background: var(--paper);
	background: linear-gradient(90deg, var(--paper), #ded0b9);
}

.spr-home .light-section :is(a.text-link, a.latest-episode-link) {
	color: #b50024;
}

.spr-home .light-section :is(a.text-link, a.latest-episode-link):is(:hover, :focus-visible) {
	text-decoration: underline;
}

.spr-home .home-fabric {
	background: var(--black) url('../img/site/fabric.webp') center / cover;
}

@media (width < 640px) {
	.spr-home .hero {
		display: grid;
	}

	.spr-home .hero-content {
		display: flex;
		flex-direction: column;
	}

	.spr-home .hero-content > .button-row {
		margin-block-start: auto;
		padding-block-start: 27px;
	}

	.spr-home .hero-signoff {
		margin-block-start: 12px;
	}
}

@media (min-width: 640px) {
	.spr-home .hero {
		display: grid;
		align-items: center;
		min-height: max(0px, calc(100vh - var(--home-header-height, 89px)));
		min-height: max(0px, calc(100svh - var(--home-header-height, 89px)));
	}

	.spr-home .hero-content {
		padding-block: clamp(24px, 6vh, 70px);
	}
}

@media (min-width: 640px) and (prefers-reduced-motion: no-preference) {
	/* Repeat the fabric vertically so moving it never reveals an exposed edge. */
	.spr-home .home-fabric,
	.spr-home .kofi-section {
		background-repeat: repeat-y;
		background-position-y: var(--home-parallax-offset, 0px);
	}

	.spr-home .hero-portrait {
		top: -48px;
		bottom: -48px;
		transform: translateY(var(--home-parallax-offset, 0px));
	}
}
