/*
 * Plan My Wed: section styles. Mobile first (written for 390 px), widened at 768 and 900.
 * Colours come from tokens only. Scroll reveals and the hero's drift live in motion.css, which loads after this file.
 */

/* ---------- Shared: arch frame, large button ---------- */

/* A gold hairline ring offset around an arch-topped frame. --arch-radius is set per use. */
.arch {
	--arch-radius: 999px 999px var(--radius-lg) var(--radius-lg);
	position: relative;
	border-radius: var(--arch-radius);
}

.arch::before {
	content: "";
	position: absolute;
	inset: -0.75rem;
	border: 1px solid var(--gold);
	border-radius: inherit;
	opacity: 0.6;
	pointer-events: none;
}

/* A still photo in the arch: picture and img carry the crown's rounding themselves. */
.arch picture,
.arch img {
	border-radius: var(--arch-radius);
}

.arch img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: 50% 30%;
}

.btn--lg {
	min-height: 3.5rem;
	padding: 0.9rem 1.9rem;
	font-size: 1.0625rem;
}

/* ---------- Hero (#top, maroon) ---------- */

.hero {
	padding: var(--space-6) var(--gutter) calc(var(--space-7) + var(--space-4));
	overflow: hidden;
}

/* The peacock hangs below the frame: from 768 the frame is wider, so the section leaves it more room. */
@media (min-width: 768px) {
	.hero {
		padding-bottom: var(--space-8);
	}
}

.hero__inner {
	display: grid;
	gap: var(--space-7);
	max-width: var(--wrap);
	margin: 0 auto;
}

.hero .eyebrow {
	margin-bottom: var(--space-3);
}

.hero h1 {
	margin-bottom: var(--space-4);
}

.hero h1 em {
	color: var(--gold);
}

.hero .lede {
	margin-bottom: var(--space-5);
}

.hero__actions {
	display: grid;
	justify-items: start;
	gap: var(--space-4);
}

/* The count beside the button: a gold serif number, then the words. */
.hero__trust {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0;
	color: var(--cream-soft);
	font-size: var(--text-sm);
}

.hero__trust strong {
	color: var(--gold);
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 400;
	letter-spacing: var(--tracking-display);
	line-height: 1;
}

.hero__art {
	position: relative;
	width: min(100% - 1.5rem, 24rem);
	margin: 0 auto;
}

/* The clip is nearly square, so its crown is a shallow dome: it clears the faces at the top corners. */
.hero__arch {
	--arch-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 30% 30% var(--radius-lg) var(--radius-lg);
	max-width: 44.75rem; /* never wider than the 716 px the video is encoded at */
}

.arch__clip {
	aspect-ratio: 716 / 774;
	overflow: hidden;
	border-radius: inherit;
	background: var(--maroon-deep);
}

/* The video has the clip's own shape, so contain and cover are the same picture: the burned-in caption is never cropped. */
.hero__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 716 / 774;
	object-fit: contain;
	background: var(--maroon-deep);
}

.hero__peacock {
	position: absolute;
	/* Fully on screen at every phone width (it used to run off the right edge), and perched on the frame's corner:
	 * mostly below the picture and clear of the bride's hands, with its left edge (80%) right of the caption. */
	right: -4%;
	bottom: -18%;
	z-index: 1;
	width: 20%;
	color: var(--gold);
	filter: var(--shadow-motif);
	pointer-events: none;
}

/* Added by script once the video plays. */
.hero__toggle {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--line-light);
	border-radius: 50%;
	background: var(--scrim);
	color: var(--cream);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hero__toggle .icon {
	width: 1.125rem;
	height: 1.125rem;
}

.hero__toggle .icon--play,
.hero__toggle.is-paused .icon--pause {
	display: none;
}

.hero__toggle.is-paused .icon--play {
	display: block;
}

@media (hover: hover) {
	.hero__toggle:hover {
		background: var(--maroon-deep);
	}
}

/* When the video does not start by itself (phone Low Power Mode, Reduce Motion, Data Saver) the play button is big and at
 * the bottom of the picture: one tap starts it. */
.hero__toggle.is-needed {
	top: auto;
	left: 50%;
	bottom: 1.25rem; /* low in the picture: clear of the faces and of the caption across the middle */
	width: 4.75rem;
	height: 4.75rem;
	translate: -50% 0;
	border: 2px solid var(--gold);
	background: color-mix(in srgb, var(--maroon-deep) 78%, transparent);
	color: var(--gold);
	box-shadow: 0 0 0 0.5rem color-mix(in srgb, var(--gold) 18%, transparent);
}

.hero__toggle.is-needed .icon {
	width: 1.875rem;
	height: 1.875rem;
}

@media (prefers-reduced-motion: no-preference) {
	.hero__toggle.is-needed {
		animation: hero-tap 2.4s ease-in-out infinite;
	}
}

@keyframes hero-tap {
	50% {
		box-shadow: 0 0 0 0.9rem color-mix(in srgb, var(--gold) 0%, transparent);
	}
}

/* The sound button sits beside the pause button: a small pill that says what it does until sound is on. */
.hero__sound {
	position: absolute;
	bottom: 0.75rem;
	left: 4.25rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 2.75rem;
	padding: 0 1rem 0 0.75rem;
	border: 1px solid var(--line-light);
	border-radius: 1.375rem;
	background: var(--scrim);
	color: var(--cream);
	font: 600 0.875rem/1 var(--font-body);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hero__sound .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.hero__sound .icon--loud,
.hero__sound.is-on .icon--muted {
	display: none;
}

.hero__sound.is-on .icon--loud {
	display: block;
}

.hero__sound:not(.is-on) {
	border-color: var(--gold);
	color: var(--gold);
}

@media (hover: hover) {
	.hero__sound:hover {
		background: var(--maroon-deep);
	}
}

@media (min-width: 900px) {
	.hero {
		display: grid;
		align-items: center;
		min-height: calc(100svh - var(--header-total));
		padding-block: var(--space-8);
	}

	.hero__inner {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: var(--space-7);
	}

	.hero__art {
		width: min(100% - 1.5rem, 34rem);
		margin: 0 auto;
	}

	.hero__peacock {
		right: -18%;
		bottom: -3%;
		width: 30%;
	}
}

/* ---------- Proof strip (#proof, cream) ---------- */

.proof {
	padding: var(--space-7) var(--gutter);
}

.proof__inner {
	display: grid;
	gap: var(--space-4);
	max-width: var(--wrap);
	margin: 0 auto;
}

.proof .eyebrow {
	margin: 0;
}

.proof__title {
	display: grid;
	gap: var(--space-2);
}

.proof__count {
	color: var(--crimson);
	font-size: clamp(5.5rem, 26vw, 9.5rem);
	letter-spacing: -0.03em;
	line-height: 0.82;
}

.proof__label {
	font-size: var(--display-3);
}

.proof__text {
	max-width: 30rem;
	margin: var(--space-2) 0 0;
	color: var(--ink-soft);
	font-size: var(--text-lg);
}

@media (min-width: 768px) {
	.proof {
		padding-block: var(--space-8);
	}

	.proof__inner {
		grid-template-areas:
			"eyebrow eyebrow"
			"title text";
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: var(--space-8);
		row-gap: var(--space-5);
	}

	.proof .eyebrow {
		grid-area: eyebrow;
	}

	.proof__title {
		grid-area: title;
	}

	.proof__text {
		grid-area: text;
		margin: 0;
		padding-left: var(--space-7);
		border-left: 1px solid var(--line-dark);
		font-size: 1.375rem;
	}
}

/* ---------- Story (#story, maroon) ---------- */

.story {
	padding: var(--section-y) var(--gutter);
	overflow: hidden;
}

.story__inner {
	display: grid;
	gap: var(--space-7);
	max-width: var(--wrap);
	margin: 0 auto;
}

.story__art {
	width: min(100% - 1.5rem, 22rem);
	margin: 0 auto;
}

.story h2 {
	max-width: 15ch;
	margin-bottom: var(--space-5);
}

.story h2 em {
	color: var(--gold);
}

.story .lede {
	margin-bottom: var(--space-6);
}

.story__moments {
	margin-bottom: var(--space-6);
	padding-top: var(--space-4);
	border-top: 1px solid var(--line-light);
}

.story__moments-title {
	margin: 0 0 var(--space-2);
	color: var(--gold);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
}

.story__moments ul {
	list-style: none;
}

.story__moments li {
	position: relative;
	padding: 0.85rem 0 0.85rem 1.75rem;
	border-bottom: 1px solid var(--line-light);
	font-size: var(--text-lg);
	line-height: 1.4;
}

.story__moments li::before {
	content: "";
	position: absolute;
	top: 1.35rem;
	left: 0.2rem;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--gold);
	transform: rotate(45deg);
}

.story__quote {
	max-width: 22ch;
	margin: 0 0 var(--space-5);
	color: var(--gold);
	font-family: var(--font-display);
	font-size: var(--display-3);
	font-style: italic;
	letter-spacing: var(--tracking-display);
	line-height: 1.05;
}

.story__close {
	max-width: 32rem;
	margin-bottom: var(--space-5);
	color: var(--cream-soft);
}

@media (min-width: 900px) {
	.story__inner {
		grid-template-columns: 0.8fr 1.2fr;
		align-items: center;
		gap: var(--space-8);
	}

	.story__art {
		width: min(100% - 3rem, 26rem);
	}
}

/* ---------- Founders (#founders, cream) ---------- */

.founders {
	padding: var(--section-y) var(--gutter);
}

.founders__inner {
	display: grid;
	gap: var(--space-7);
	max-width: var(--wrap);
	margin: 0 auto;
}

.founders h2 {
	max-width: 14ch;
	margin-bottom: var(--space-4);
}

.founders h2 em {
	color: var(--crimson);
}

.founders__text {
	max-width: 28rem;
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--text-lg);
}

.founders__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-5) var(--space-4);
	max-width: 36rem;
	list-style: none;
}

/* The photo slot has a fixed shape. A photo fills it exactly; until then it holds a monogram and the peacock. */
.founder__photo {
	position: relative;
	display: grid;
	place-items: start center;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 999px 999px var(--radius) var(--radius);
	background: var(--maroon);
	color: var(--gold);
}

.founder__photo picture,
.founder__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.founder__peacock {
	position: absolute;
	right: 9%;
	bottom: 7%;
	width: 30%;
	opacity: 0.4;
}

.founder__monogram {
	position: relative;
	padding-top: 26%; /* of the slot's width: keeps the letters clear of the peacock below */
	color: var(--cream);
	font-family: var(--font-display);
	font-size: clamp(3rem, 14vw, 4.75rem);
	letter-spacing: 0.02em;
	line-height: 1;
}

.founder__name {
	margin-top: var(--space-4);
	font-size: clamp(1.625rem, 6.4vw, 2.25rem);
}

.founder__role {
	margin: var(--space-1) 0 0;
	color: var(--ink-soft);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.founders__inner {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: var(--space-8);
	}

	.founders__list {
		gap: var(--space-6);
		justify-self: end;
		width: 100%;
	}
}

/* ---------- Personality (#personality, cream) ---------- */

.personality {
	padding: var(--section-y) var(--gutter);
	overflow: hidden;
}

.personality__inner {
	display: grid;
	gap: var(--space-7);
	max-width: var(--wrap);
	margin: 0 auto;
}

.personality h2 {
	max-width: 11ch;
	margin-bottom: var(--space-4);
}

.personality h2 em {
	color: var(--crimson);
}

.personality__lead {
	max-width: 30rem;
	margin-bottom: var(--space-4);
	font-size: var(--text-lg);
}

.personality__text {
	max-width: 30rem;
	margin-bottom: var(--space-6);
	color: var(--ink-soft);
}

/* The portrait sits in a leaf: two opposite corners round off completely, like a feather's vane. */
.personality__art {
	position: relative;
	width: min(100% - 2rem, 20rem);
	margin: 0 auto;
}

.leaf {
	--leaf-radius: 999px 0 999px 0;
	position: relative;
	border-radius: var(--leaf-radius);
}

.leaf::before {
	content: "";
	position: absolute;
	inset: -0.75rem;
	border: 1px solid var(--ink-soft);
	border-radius: inherit;
	opacity: 0.4;
	pointer-events: none;
}

.leaf picture,
.leaf img {
	border-radius: var(--leaf-radius);
}

.leaf img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 25%;
}

.personality__peacock {
	position: absolute;
	right: -0.75rem;
	bottom: -1.5rem;
	width: 22%;
	color: var(--maroon);
	pointer-events: none;
}

/* The one quiet line: more is on the way. It is a murmur beside the heading, not a second headline. */
.personality__soon {
	max-width: 30rem;
	padding-top: var(--space-5);
	border-top: 1px solid var(--line-dark);
}

.personality__soon-line {
	margin: 0 0 var(--space-2);
	color: var(--ink-soft);
	font-family: var(--font-display);
	font-size: clamp(1.375rem, 4.8vw, 1.625rem);
	font-style: italic;
	letter-spacing: var(--tracking-display);
	line-height: 1.15;
}

.personality__follow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 2.75rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: underline;
	text-decoration-color: var(--crimson-deep);
	text-underline-offset: 0.25em;
}

.personality__follow > span {
	text-wrap: balance; /* no lone "them" on the second line */
}

.personality__follow .icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--crimson-deep);
}

@media (min-width: 900px) {
	.personality__inner {
		grid-template-areas:
			"copy art"
			"soon art";
		grid-template-columns: 1.1fr 0.9fr;
		align-items: center;
		column-gap: var(--space-8);
	}

	.personality__copy {
		grid-area: copy;
	}

	.personality__art {
		grid-area: art;
		width: min(100% - 3rem, 24rem);
	}

	.personality__soon {
		grid-area: soon;
	}
}

/* ---------- Vendor trust (#trust, maroon) ---------- */

.trust {
	padding: var(--section-y) var(--gutter);
	overflow: hidden;
}

.trust__inner {
	display: grid;
	gap: var(--space-7);
	max-width: var(--wrap);
	margin: 0 auto;
}

.trust h2 {
	max-width: 12ch;
	margin-bottom: var(--space-5);
}

.trust h2 em {
	color: var(--gold);
}

.trust .lede {
	max-width: 36rem;
	margin: 0;
}

/* A round medallion, so the close-up of the jewellery reads like a keepsake. */
.trust__art {
	position: relative;
	width: min(68%, 15rem);
	margin: 0 auto;
}

.medallion {
	position: relative;
	border-radius: 50%;
}

.medallion::before {
	content: "";
	position: absolute;
	inset: -0.75rem;
	border: 1px solid var(--gold);
	border-radius: 50%;
	opacity: 0.6;
	pointer-events: none;
}

.medallion picture,
.medallion img {
	border-radius: 50%;
}

.medallion img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 42%;
}

.trust__peacock {
	position: absolute;
	right: -16%;
	bottom: -10%;
	width: 24%;
	color: var(--gold);
	filter: var(--shadow-motif);
	pointer-events: none;
}

.trust__points {
	display: grid;
	gap: var(--space-4);
	list-style: none;
}

/* Each point is a card like the package cards: it lifts on hover, focus and tap, and its diamond turns. */
.trust__point {
	position: relative;
	padding: var(--space-5) var(--space-5) var(--space-5);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-lg);
	background: color-mix(in srgb, var(--cream) 6%, transparent);
	box-shadow: var(--shadow-soft);
	transition: translate 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.trust__point::before {
	content: "";
	display: block;
	width: 0.625rem;
	height: 0.625rem;
	margin-bottom: var(--space-4);
	background: var(--gold);
	transform: rotate(45deg);
	transition: transform 0.5s var(--ease);
}

.trust__point:active,
.trust__point:focus-within {
	translate: 0 -4px;
	border-color: color-mix(in srgb, var(--gold) 70%, transparent);
	background: color-mix(in srgb, var(--cream) 10%, transparent);
	box-shadow: var(--shadow-lift);
}

.trust__point:active::before {
	transform: rotate(225deg) scale(1.25);
}

@media (hover: hover) {
	.trust__point:hover {
		translate: 0 -6px;
		border-color: color-mix(in srgb, var(--gold) 70%, transparent);
		background: color-mix(in srgb, var(--cream) 10%, transparent);
		box-shadow: var(--shadow-lift);
	}

	.trust__point:hover::before {
		transform: rotate(225deg) scale(1.25);
	}
}

.trust__point h3 {
	margin-bottom: var(--space-2);
	font-size: clamp(1.625rem, 6vw, 2.125rem);
}

.trust__point p {
	margin: 0;
	color: var(--cream-soft);
}

.trust__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-4);
	margin: 0;
	color: var(--cream-soft);
}

.trust__note a {
	display: inline-flex;
	align-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	color: var(--gold);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

@media (min-width: 768px) {
	.trust__points {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-5);
	}
}

@media (min-width: 900px) {
	.trust__inner {
		grid-template-areas:
			"art copy"
			"points points"
			"note note";
		grid-template-columns: 0.8fr 1.2fr;
		align-items: center;
		column-gap: var(--space-8);
	}

	.trust__art {
		grid-area: art;
		width: min(100% - 2rem, 21rem);
	}

	.trust__copy {
		grid-area: copy;
	}

	.trust__stage {
		grid-area: points;
	}

	.trust__note {
		grid-area: note;
	}
}

/* ---------- Vendor promises as a 3D slideshow (script adds html.cf-on; see initVendors in main.js) ----------
 * The four cards sit on top of each other. Each gets --o (its place relative to the one in front: 0 in front, 1 to
 * the right, -1 to the left) and --a (the size of that place), and slides, turns and dims from them. Cards two or
 * more places away are hidden. Without script, or with reduced motion, the plain grid above stays. */
@media (prefers-reduced-motion: no-preference) {
	html.cf-on .trust__stage {
		position: relative;
		overflow-x: clip;
		padding-block: var(--space-4) var(--space-2);
		touch-action: pan-y;
		user-select: none;
	}

	html.cf-on .trust__points {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 0;
		perspective: 1400px;
		perspective-origin: 50% 40%;
	}

	html.cf-on .trust__point {
		grid-area: 1 / 1;
		width: min(100%, 21.5rem);
		cursor: pointer;
		background: color-mix(in srgb, var(--cream) 9%, var(--maroon)); /* solid, so the cards behind never show through */
		transform: translateX(calc(var(--o, 0) * 66%)) translateZ(calc(var(--a, 0) * -90px)) rotateY(calc(var(--o, 0) * -34deg)) scale(calc(1 - var(--a, 0) * 0.1));
		opacity: calc(1 - var(--a, 0) * 0.42);
		filter: brightness(calc(1 - var(--a, 0) * 0.32));
		transition: transform 0.85s var(--ease), opacity 0.85s var(--ease), filter 0.85s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
		will-change: transform, opacity;
	}

	html.cf-on .trust__point.is-front {
		cursor: default;
		border-color: color-mix(in srgb, var(--gold) 70%, transparent);
		background: color-mix(in srgb, var(--cream) 15%, var(--maroon));
		box-shadow: var(--shadow-lift);
	}

	html.cf-on .trust__point.is-away {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	/* The lift on hover and the turning diamond belong to the card in front; the others just come forward on a tap. */
	html.cf-on .trust__point:not(.is-front):hover,
	html.cf-on .trust__point:not(.is-front):active {
		translate: 0 0;
		box-shadow: var(--shadow-soft);
	}

	html.cf-on .trust__ctrl {
		display: flex;
		flex-wrap: wrap; /* on the narrowest phones the pause button drops to a second line instead of widening the page */
		align-items: center;
		justify-content: center;
		gap: var(--space-2) var(--space-3);
		margin-top: var(--space-5);
	}

	html.cf-on .trust__btn {
		display: grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		border: 1px solid var(--line-light);
		border-radius: 50%;
		background: transparent;
		color: var(--cream);
		cursor: pointer;
		transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
	}

	html.cf-on .trust__btn svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	html.cf-on .trust__btn:active {
		background: var(--gold);
		color: var(--ink);
	}

	@media (hover: hover) {
		html.cf-on .trust__btn:hover {
			background: var(--gold);
			color: var(--ink);
		}
	}

	html.cf-on .trust__dots {
		display: flex;
		align-items: center;
	}

	/* A dot is a 44 px target that draws a small dot, wider for the one in front. */
	html.cf-on .trust__dot {
		position: relative;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	html.cf-on .trust__dot::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 0.5rem;
		height: 0.5rem;
		border-radius: 999px;
		background: var(--cream-soft);
		opacity: 0.55;
		translate: -50% -50%;
		transition: width 0.4s var(--ease), background-color 0.4s var(--ease), opacity 0.4s var(--ease);
	}

	html.cf-on .trust__dot[aria-current="true"]::before {
		width: 1.5rem;
		background: var(--gold);
		opacity: 1;
	}
}

/* ---------- Services (#services, cream) ---------- */

.services {
	padding: var(--section-y) var(--gutter);
}

.services__inner {
	display: grid;
	gap: var(--space-6);
	max-width: var(--wrap);
	margin: 0 auto;
}

.services__head {
	margin-bottom: var(--space-4);
}

.services h2 {
	max-width: 15ch;
	margin-bottom: var(--space-4);
}

.services h2 em {
	color: var(--crimson);
}

.services__lead {
	max-width: 34rem;
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--text-lg);
}

.offers {
	display: grid;
	gap: var(--space-5);
	list-style: none;
}

.offer {
	display: flex;
	flex-direction: column;
	padding: var(--space-6) var(--space-5);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
	transition: translate 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* The package cards are the maroon of the owner's own carousel slides, with a faint peacock behind the words. */
.offer--package {
	overflow: hidden;
}

.offer__peacock {
	position: absolute;
	right: -0.75rem;
	bottom: -1.25rem;
	z-index: -1;
	width: 7.5rem;
	color: var(--gold);
	opacity: 0.13;
	pointer-events: none;
	transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}

/* The smaller cards are paper, lighter than the packages and just as large to tap. */
.offer--more {
	border: 1px solid var(--line-dark);
	background: var(--cream-deep);
	color: var(--ink);
	box-shadow: none;
}

.offer__tag {
	margin: 0 0 var(--space-3);
	color: var(--gold);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	line-height: 1.3;
	text-transform: uppercase;
}

.offer--more .offer__tag {
	color: var(--crimson-deep);
}

.offer__title {
	margin-bottom: var(--space-3);
	font-size: clamp(2.125rem, 9vw, 2.875rem);
}

.offer__blurb {
	margin: 0 0 var(--space-5);
	font-size: var(--text-lg);
	line-height: 1.45;
}

.offer__list {
	margin: 0 0 var(--space-6);
	list-style: none;
	border-top: 1px solid var(--line-light);
}

.offer--more .offer__list {
	border-top-color: var(--line-dark);
}

.offer__list li {
	position: relative;
	padding: 0.65rem 0 0.65rem 1.5rem;
	border-bottom: 1px solid var(--line-light);
	color: var(--cream-soft);
	font-size: 1rem;
	line-height: 1.4;
}

.offer--more .offer__list li {
	border-bottom-color: var(--line-dark);
	color: var(--ink-soft);
}

.offer__list li::before {
	content: "";
	position: absolute;
	top: 1.1rem;
	left: 0.15rem;
	width: 0.4rem;
	height: 0.4rem;
	background: var(--gold);
	transform: rotate(45deg);
}

.offer--more .offer__list li::before {
	background: var(--crimson);
}

/* The label is short enough for one line at every card width; if a longer one is ever set it wraps evenly and
 * the button grows with it, instead of leaving a lone word. */
.offer__cta {
	width: 100%;
	min-height: 3.25rem;
	margin-top: auto;
	padding-inline: 1rem;
	line-height: 1.15;
	text-wrap: balance;
}

/* Alive under a finger or a pointer: the card lifts and its peacock stirs. The lift uses the
 * individual translate property so a reveal that animates transform never fights it. */
.offer:focus-within {
	translate: 0 -4px;
	box-shadow: var(--shadow-lift);
}

.offer:focus-within .offer__peacock {
	opacity: 0.22;
	translate: -0.25rem -0.5rem;
}

@media (hover: hover) {
	.offer:hover {
		translate: 0 -6px;
		box-shadow: var(--shadow-lift);
	}

	.offer:hover .offer__peacock {
		opacity: 0.22;
		translate: -0.25rem -0.5rem;
	}
}

/* Two columns: Full Service is the wide card, then Partial and Day of Coordination side by side. */
@media (min-width: 700px) {
	.offers--packages,
	.offers--more {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.offers--packages .offer:first-child {
		grid-column: 1 / -1;
	}
}

/* A wide card keeps its words on the left and its list on the right. */
@media (min-width: 700px) and (max-width: 1023.98px) {
	.offers--packages .offer:first-child {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto 1fr auto;
		column-gap: var(--space-7);
	}

	.offers--packages .offer:first-child .offer__list {
		grid-column: 2;
		grid-row: 1 / -1;
		align-self: start;
		margin-bottom: 0;
	}

	.offers--packages .offer:first-child .offer__cta {
		grid-column: 1;
		align-self: end;
		margin-top: var(--space-5);
	}
}

/* Three packages across, then the two smaller cards, each with its list beside the words. */
@media (min-width: 1024px) {
	.offers--packages {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.offers--packages .offer:first-child {
		grid-column: auto;
	}

	.offers--more .offer {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr auto;
		column-gap: var(--space-6);
	}

	/* The list runs beside the words; the button spans both columns, as wide as the packages' buttons. */
	.offers--more .offer__list {
		grid-column: 2;
		grid-row: 1 / 4;
		align-self: start;
		margin-bottom: 0;
	}

	.offers--more .offer__cta {
		grid-column: 1 / -1;
		margin-top: var(--space-5);
	}
}

/* ---------- How it works (#how, maroon) ---------- */

.how {
	padding: var(--section-y) var(--gutter);
}

.how__inner {
	display: grid;
	gap: var(--space-7);
	max-width: var(--wrap);
	margin: 0 auto;
}

.how h2 {
	max-width: 12ch;
	margin-bottom: var(--space-5);
}

.how h2 em {
	color: var(--gold);
}

.how .lede {
	max-width: 30rem;
	margin: 0;
}

/* Numbers and the connecting line are drawn in CSS: the markup stays a plain ordered list. */
.steps {
	margin: 0;
	padding: 0; /* base.css resets ul only: an ol keeps the browser's indent without this */
	counter-reset: step;
	list-style: none;
}

.step {
	position: relative;
	padding: 0 0 var(--space-6) 3.75rem;
	counter-increment: step;
}

.step:last-child {
	padding-bottom: 0;
}

/* The connector: a fine gold shaft that fades as it falls to the next step. */
.step::before {
	content: "";
	position: absolute;
	top: 2.9rem;
	bottom: 0.4rem;
	left: 1.25rem;
	width: 1px;
	background: linear-gradient(var(--gold), var(--line-light));
}

.step:last-child::before {
	display: none;
}

.step::after {
	content: counter(step);
	content: counter(step) / "";
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--gold);
	border-radius: 50%;
	background: var(--maroon);
	color: var(--gold);
	font-family: var(--font-display);
	font-size: 1.4rem;
	line-height: 1;
}

/* The last marker is filled: this is the day itself. */
.step:last-child::after {
	background: var(--gold);
	color: var(--ink);
}

/* Each step is a card: it slides toward you on hover, focus and tap, and its number fills in. */
.step__card {
	padding: var(--space-4) var(--space-5);
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	background: color-mix(in srgb, var(--cream) 4%, transparent);
	transition: translate 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.step::after {
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), scale 0.35s var(--ease);
}

.step:active .step__card,
.step:focus-within .step__card {
	translate: 0.5rem 0;
	border-color: color-mix(in srgb, var(--gold) 70%, transparent);
	background: color-mix(in srgb, var(--cream) 10%, transparent);
	box-shadow: var(--shadow-lift);
}

.step:active::after,
.step:focus-within::after {
	background: var(--gold);
	color: var(--ink);
	scale: 1.12;
}

@media (hover: hover) {
	.step:hover .step__card {
		translate: 0.5rem 0;
		border-color: color-mix(in srgb, var(--gold) 70%, transparent);
		background: color-mix(in srgb, var(--cream) 10%, transparent);
		box-shadow: var(--shadow-lift);
	}

	.step:hover::after {
		background: var(--gold);
		color: var(--ink);
		scale: 1.12;
	}
}

/* Where the browser supports scroll-driven animation, the number lights up as its step passes the middle of the screen. */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.step::after {
			animation: step-lit linear both;
			animation-timeline: view();
			animation-range: entry 55% cover 55%;
		}
	}
}

/* One step at a time: as the visitor scrolls, each step pops in when it passes about 60% of the way down the screen
 * and stays; the ones further down wait (blank space, like the path in the reference). initSteps in main.js adds
 * html.steps-on and marks the steps .is-shown. With reduced motion or no script every step is simply there. */
@media (prefers-reduced-motion: no-preference) {
	html.steps-on .step {
		transition: opacity 0.6s var(--ease), transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2);
	}

	html.steps-on .step:not(.is-shown) {
		opacity: 0;
		transform: translateY(2.25rem) scale(0.94);
		pointer-events: none;
	}

	/* The line down to the next step draws itself a moment after the step appears. */
	html.steps-on .step::before {
		transform-origin: top;
		transform: scaleY(0);
		transition: transform 1s var(--ease) 0.4s;
	}

	html.steps-on .step.is-shown::before {
		transform: scaleY(1);
	}
}

@keyframes step-lit {
	40%, 60% {
		background: var(--gold);
		color: var(--ink);
		scale: 1.12;
	}
}

.step__title {
	margin: 0.15rem 0 var(--space-2);
	font-size: clamp(1.625rem, 6vw, 2.125rem);
}

.step__text {
	max-width: 32rem;
	margin: 0;
	color: var(--cream-soft);
}

@media (min-width: 900px) {
	.how__inner {
		grid-template-columns: 0.85fr 1.15fr;
		align-items: start;
		column-gap: var(--space-8);
	}

	/* The heading stays in view while the steps scroll past. */
	.how__head {
		position: sticky;
		top: calc(var(--header-total) + var(--space-6));
		grid-row: 1 / span 2;
		grid-column: 1;
	}

	.steps {
		grid-column: 2;
		grid-row: 1;
	}

	.how__cta {
		grid-column: 2;
		grid-row: 2;
		padding-left: 3.75rem;
	}
}

/* ---------- Voices (#voices, maroon) ---------- */

.voices {
	padding: var(--section-y) var(--gutter);
	overflow: hidden;
}

.voices__inner {
	max-width: var(--wrap);
	margin: 0 auto;
}

.voices__head {
	margin-bottom: var(--space-6);
}

.voices h2 {
	max-width: 12ch;
	margin-bottom: var(--space-4);
}

.voices h2 em {
	color: var(--gold);
}

.voices .lede {
	margin-bottom: 0;
}

/* The carousel: a native scroll-snap row. It bleeds to the screen edges on a phone so the next slide peeks in,
 * which says "swipe" without a word. Previous, Next and the dots are added by main.js. */
.carousel {
	position: relative;
}

.carousel__track {
	position: relative;
	display: flex;
	gap: var(--space-4);
	margin-inline: calc(-1 * var(--gutter));
	padding: var(--space-3) var(--gutter) var(--space-4);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
}

/* With script on there are buttons and dots, so the scrollbar can go; with it off the scrollbar stays the way in. */
.js .carousel__track {
	scrollbar-width: none;
}

.js .carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__track:focus-visible {
	outline-offset: -3px;
}

.voice {
	display: grid;
	flex: 0 0 calc(100% - 2rem);
	gap: var(--space-5);
	align-content: start;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

/* A lone slide has nothing to peek at: it takes the whole row. */
.voice:only-child {
	flex-basis: 100%;
}

.voice__quote {
	margin: 0;
}

.voice__text {
	margin: 0;
}

/* The opening quotation mark is decoration: the empty alternative keeps it out of a screen reader's reading. */
.voice__text::before {
	content: "\201C";
	content: "\201C" / "";
	display: block;
	height: 2.25rem;
	color: var(--gold);
	font-family: var(--font-display);
	font-size: 5.5rem;
	line-height: 1;
}

.voice__text p {
	margin: 0;
	color: var(--cream);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 6.4vw, 1.875rem);
	letter-spacing: -0.005em;
	line-height: 1.16;
}

.voice--long .voice__text p {
	font-size: clamp(1.25rem, 5.3vw, 1.5rem);
	line-height: 1.22;
}

.voice--short .voice__text p {
	font-size: clamp(1.875rem, 8.6vw, 2.375rem);
	line-height: 1.1;
}

.voice__by {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-1) var(--space-3);
	margin-top: var(--space-4);
	color: var(--cream-soft);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
}

.voice__label::before {
	content: "";
	display: inline-block;
	width: 1.5rem;
	height: 1px;
	margin-right: var(--space-2);
	vertical-align: middle;
	background: var(--gold);
}

.voice__name {
	color: var(--cream);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* The screenshot, as a small print resting on the maroon. Its box hugs the picture and is capped at 14 rem on a
 * phone; the picture is never given a width of its own, so it is never shown larger than its width attribute,
 * which is the file's own pixel width. main.js wraps the picture in a button (a zoom badge in the corner). */
.shot {
	--focus-ring: var(--maroon-deep); /* the ring is drawn on the cream print, so it is maroon */
	position: relative;
	display: block;
	width: fit-content;
	max-width: 14rem;
	padding: 0.5rem 0.5rem 3rem; /* the wide band under the picture is where the zoom badge sits */
	border-radius: 0.75rem;
	background: var(--cream);
	box-shadow: var(--shadow-print);
}

.shot picture,
.shot img {
	display: block;
	border-radius: 0.375rem;
}

.shot img {
	max-width: 100%;
	height: auto;
}

.shot__open {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0.375rem;
	background: none;
	color: inherit;
	cursor: zoom-in;
	-webkit-tap-highlight-color: transparent;
}

/* The ring hugs the picture inside the print's border, so no scroller can clip it and it never touches the badge. */
.shot__open:focus-visible {
	outline-offset: 2px;
}

/* The badge is a hint, not part of the screenshot: it lives in the band under the picture and covers none of it. */
.shot__zoom {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	width: 2rem;
	height: 2rem;
	padding: 0.4375rem;
	border-radius: var(--radius-pill);
	background: var(--maroon);
	color: var(--cream);
	box-shadow: 0 6px 14px -6px var(--maroon-deep);
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

@media (hover: hover) {
	.shot__open:hover .shot__zoom {
		background: var(--gold);
		color: var(--ink);
		transform: scale(1.08);
	}
}

/* Previous and Next sit above the row, to the right; the dots sit under it. */
.carousel__nav {
	display: flex;
	justify-content: flex-end;
	gap: var(--space-3);
	margin-bottom: var(--space-2);
}

.carousel__btn {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1.5px solid var(--cream-soft);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--cream);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.carousel__btn svg {
	width: 1.375rem;
	height: 1.375rem;
}

/* Unavailable at either end: dimmed, but still focusable, so a keyboard user does not lose their place. */
.carousel__btn[aria-disabled="true"] {
	opacity: 0.4;
	cursor: default;
}

@media (hover: hover) {
	.carousel__btn:not([aria-disabled="true"]):hover {
		border-color: var(--gold);
		background: var(--gold);
		color: var(--ink);
	}
}

.carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.carousel__dot {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.carousel__dot span {
	width: 0.625rem;
	height: 0.625rem;
	border: 2px solid var(--cream-soft);
	border-radius: var(--radius-pill);
	transition: width 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.carousel__dot[aria-current="true"] span {
	width: 1.5rem;
	border-color: var(--gold);
	background: var(--gold);
}

@media (min-width: 768px) {
	.carousel__track {
		margin-inline: 0;
		padding-inline: 0;
	}

	.voice {
		flex-basis: 100%;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: clamp(var(--space-5), 6vw, var(--space-8));
	}

	.voice__text p {
		font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	}

	.voice--long .voice__text p {
		font-size: clamp(1.5rem, 2.7vw, 2rem);
	}

	.voice--short .voice__text p {
		font-size: clamp(2.25rem, 4.4vw, 3.25rem);
	}

	/* A fixed cap, never a percentage: a percentage max-width in an auto grid column lets the picture's own
	 * width (1091 px for the comment) squeeze the quote's column to nothing. */
	.shot {
		max-width: 24rem;
		padding: 0.625rem 0.625rem 3rem;
	}
}

@media (min-width: 900px) {
	/* Up in the heading's row, at the right, where the eye already is. */
	.carousel__nav {
		position: absolute;
		right: 0;
		bottom: calc(100% + var(--space-5));
		margin: 0;
	}
}

/* ---------- From our feed (#feed, cream) ---------- */

.feed {
	padding: var(--section-y) var(--gutter);
	overflow: hidden;
}

.feed__inner {
	max-width: var(--wrap);
	margin: 0 auto;
}

.feed__head {
	margin-bottom: var(--space-4);
}

.feed h2 {
	max-width: 12ch;
	margin-bottom: var(--space-4);
}

.feed h2 em {
	color: var(--crimson);
}

.feed__lead {
	max-width: 28rem;
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--text-lg);
}

/* On a phone the strip scrolls sideways inside itself; the padding leaves room for each frame's gold ring. */
.feed__strip {
	display: flex;
	gap: var(--space-6);
	margin: 0 calc(-1 * var(--gutter));
	padding: var(--space-6) var(--gutter) var(--space-6);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--gutter);
	scroll-snap-type: x proximity;
	list-style: none;
}

.feed__strip:focus-visible {
	outline-offset: -3px;
}

.feed__tile {
	flex: 0 0 min(62vw, 15rem);
	scroll-snap-align: start;
}

.feed__frame::before {
	border-color: var(--maroon);
	opacity: 0.35;
}

.feed__frame {
	box-shadow: var(--shadow-soft);
}

.feed__cta {
	display: flex;
	justify-content: center;
	margin-top: var(--space-2);
}

@media (min-width: 900px) {
	.feed__head {
		display: grid;
		grid-template-areas:
			"eyebrow eyebrow"
			"title lead";
		grid-template-columns: 1fr auto;
		align-items: end;
		column-gap: var(--space-7);
	}

	.feed__head .eyebrow {
		grid-area: eyebrow;
	}

	.feed h2 {
		grid-area: title;
		margin-bottom: 0;
	}

	.feed__lead {
		grid-area: lead;
		padding-bottom: var(--space-2);
	}

	/* All the tiles fit in one row; every other one sits a little lower, like frames hung by hand. */
	.feed__strip {
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}

	.feed__tile {
		flex: 1 1 0;
		min-width: 0;
	}

	.feed__tile:nth-child(even) {
		margin-top: var(--space-6);
	}
}

/* ---------- Contact (#contact, the deepest maroon) ---------- */

.contact.surface-maroon {
	padding: var(--section-y) var(--gutter);
	overflow: hidden;
	background-color: var(--maroon-deep);
}

.contact__inner {
	display: grid;
	gap: var(--space-7);
	max-width: var(--wrap);
	margin: 0 auto;
}

/* An arch-shaped window with the peacock standing in a pool of light, like the gate the wedding walks through. */
.contact__art {
	justify-self: center;
	width: min(100% - 1.5rem, 11rem);
}

.contact__window {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 4;
	background: var(--maroon);
	background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 66%), var(--maroon);
}

.contact__peacock {
	width: 46%;
	color: var(--gold);
	filter: var(--shadow-motif);
}

.contact h2 {
	max-width: 11ch;
	margin-bottom: var(--space-5);
	font-size: clamp(3.25rem, 15vw, 6rem);
}

.contact h2 em {
	color: var(--gold);
}

.contact__text {
	max-width: 30rem;
	margin-bottom: var(--space-6);
	color: var(--cream-soft);
	font-size: var(--text-lg);
	line-height: 1.5;
}

.contact__actions {
	margin-bottom: var(--space-6);
}

.btn--xl {
	width: 100%;
	min-height: 4.25rem;
	padding: 1rem 2rem;
	box-shadow: var(--glow-gold);
	font-size: 1.1875rem;
}

.btn--xl .icon {
	width: 1.625rem;
	height: 1.625rem;
}

.contact__number {
	margin: var(--space-4) 0 0;
	color: var(--cream-soft);
	font-size: var(--text-md);
	text-align: center;
}

.contact__number span {
	color: var(--cream);
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	user-select: all;
}

.contact__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin: 0;
	padding: var(--space-5) 0 0;
	border-top: 1px solid var(--line-light);
	list-style: none;
}

.contact__links a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--line-light);
	border-radius: var(--radius-pill);
	color: var(--cream);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.contact__links .icon {
	flex: none;
	width: 1.375rem;
	height: 1.375rem;
	color: var(--gold);
}

@media (hover: hover) {
	.contact__links a:hover {
		border-color: var(--gold);
		background: var(--maroon);
	}
}

@media (min-width: 900px) {
	.contact__inner {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		align-items: center;
		column-gap: var(--space-8);
	}

	.contact__art {
		width: min(100% - 1.5rem, 20rem);
	}

	.contact__peacock {
		width: 44%;
	}

	.btn--xl {
		width: auto;
		min-width: 22rem;
	}

	.contact__number {
		text-align: left;
	}
}

/* ---------- Lightbox: a screenshot at its own size, in a native modal dialog ---------- */

/* The page behind stays put while the dialog is open. */
html.lb-open {
	overflow: hidden;
}

.lightbox {
	--focus-ring: var(--gold);
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: transparent;
	color: var(--cream);
}

.lightbox::backdrop {
	background: var(--scrim-deep);
}

.lightbox[open] {
	display: grid;
	animation: lightbox-in 0.25s var(--ease);
}

@keyframes lightbox-in {
	from {
		opacity: 0;
	}
}

/* The stage fills the dialog, so a tap anywhere around the picture is a tap outside it. */
.lightbox__stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: center;
	justify-items: center;
	gap: var(--space-5);
	min-height: 100%;
	padding: var(--space-8) max(var(--space-3), env(safe-area-inset-right, 0px)) var(--space-7) max(var(--space-3), env(safe-area-inset-left, 0px));
}

/* No width of its own: a plain src shows at its file's own size, and --nat (the same number) is a second cap. */
.lightbox__img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, var(--nat, 100%));
	max-height: 70vh;
	max-height: calc(100dvh - 13rem);
	border-radius: 0.5rem;
	background: var(--cream);
	box-shadow: var(--shadow-photo);
}

.lightbox__bar {
	display: flex;
	align-items: center;
	gap: var(--space-5);
}

.lightbox__bar[hidden] {
	display: none;
}

.lightbox__count {
	min-width: 5.5rem;
	color: var(--cream-soft);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	text-align: center;
	text-transform: uppercase;
}

.lightbox__btn {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--cream);
	color: var(--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.lightbox__btn svg {
	width: 1.375rem;
	height: 1.375rem;
}

.lightbox__btn[aria-disabled="true"] {
	opacity: 0.4;
	cursor: default;
}

@media (hover: hover) {
	.lightbox__btn:not([aria-disabled="true"]):hover {
		background: var(--gold);
	}
}

.lightbox__close {
	position: absolute;
	top: max(var(--space-4), env(safe-area-inset-top, 0px));
	right: max(var(--space-4), env(safe-area-inset-right, 0px));
}

/* ---------- 404 (404.php, maroon) ---------- */

.notfound {
	display: grid;
	align-items: center;
	min-height: calc(100svh - var(--header-total));
	padding: var(--section-y) var(--gutter);
	overflow: hidden;
}

.notfound__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
}

.notfound h1 {
	max-width: 14ch; /* balanced by the heading rule: no lone "off." */
	margin-bottom: var(--space-4);
}

.notfound h1 em {
	color: var(--gold);
}

.notfound .lede {
	margin-bottom: var(--space-6);
}

.notfound__actions {
	display: grid;
	justify-items: start;
	gap: var(--space-3);
}

/* The outline button is ink by default: here it sits on maroon, so it is cream. */
.notfound .btn--outline {
	color: var(--cream);
}

/* A big, faint peacock behind the words, like the watermark on the package cards. */
.notfound__peacock {
	position: absolute;
	right: -4%;
	bottom: -2rem;
	width: min(62%, 17rem);
	color: var(--gold);
	opacity: 0.16;
	pointer-events: none;
}

@media (min-width: 900px) {
	.notfound__actions {
		grid-auto-flow: column;
		justify-content: start;
	}

	.notfound__peacock {
		right: 8%;
		bottom: 0;
		width: 22rem;
		opacity: 0.2;
	}
}
