/* ============================================================
   Reviews: one large quote at a time on sand, a big pale quote mark,
   arrows below (assets/js/reviews.js). Without JS every review shows,
   one under another. (prototype: .reviews, .review)
   ============================================================ */

.reviews {
	background: var(--color-surface-light);
	color: var(--color-text);
}

.reviews__inner {
	padding-block: var(--space-section);
}

.reviews__body {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	max-width: 900px;
	margin: 0 auto;
}

.reviews__mark {
	position: absolute;
	top: -58px;
	left: -10px;
	color: var(--color-line);
	font-family: var(--font-quote);
	font-size: 220px;
	font-weight: 400;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.reviews__stage {
	position: relative;
	display: grid;
	gap: 48px;
}

.review {
	display: grid;
	align-content: center;
	gap: 26px;
	margin: 0;
}

.review__quote {
	margin: 0;
	font-size: clamp(22px, 2.5vw, 32px);
	font-weight: 300;
	line-height: 1.5;
}

.review__quote em {
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: 1.25em;
	font-style: normal;
	font-variant-ligatures: common-ligatures;
	line-height: 1;
}

.review__guest {
	font-size: 15px;
	font-weight: 600;
}

.reviews__nav {
	display: none;
}

/* With JS: one review at a time, fading and rising into place. */
.has-js .reviews__stage {
	gap: 0;
	min-height: 300px;
}

.has-js .review {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), visibility 0s linear 0.8s;
}

.has-js .review.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.7s var(--ease) 0.15s, transform 0.8s var(--ease) 0.15s, visibility 0s;
}

.has-js .reviews__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 44px;
}

/* The prototype keeps 22px between the review arrows at every width. */
.reviews__nav .arrow-buttons {
	gap: 22px;
}

@media (min-width: 761px) {
	.reviews__body {
		gap: 0;
	}

	.reviews__mark {
		left: -40px;
		font-size: 300px;
	}

	.has-js .reviews__stage {
		min-height: 260px;
	}
}
