/* ==========================================================================
   Borborjay — wedding invitation
   An ivory sheet over soft flowers. Inside, the photographer-site look:
   Lora titles under an italic line, a photo banner, a dark emerald band.
   ========================================================================== */

:root {
	--ivory: #f5f1ec;
	--ivory-2: #eee8e1;
	--ivory-3: #e4dcd2;
	--taupe: #1f5a3a; /* emerald, the colour of the day */
	--taupe-deep: #17472d;
	--ink: #2c5240;
	--ink-strong: #163a28;
	--muted: #6b8577;
	--hair: #dcd5c9;
	--blush: #ecd6cc;
	--blush-deep: #c9a08f;
	--white: #fff;
	--band: #1f4d36; /* the dark emerald band */

	--bj-display: "Lora", Georgia, "Times New Roman", serif;
	--serif: "Lora", Georgia, "Times New Roman", serif;
	--script: "Pinyon Script", "Great Vibes", cursive;
	--sans: "Outfit", "Helvetica Neue", Arial, sans-serif;

	--sheet: 1400px;
	--wrap: 700px;
	--wrap-mid: 1040px;
	--wrap-wide: 1200px;
	--gutter: clamp(20px, 5vw, 48px);
	--frame: clamp(12px, 3.4vw, 50px); /* flowers showing around the card */
	--radius: clamp(14px, 1.6vw, 24px);
	--inset: clamp(22px, 10%, 220px); /* the reference's side margin inside the card */
	--pad-y: clamp(3.6rem, 8vw, 7rem);
	--small: clamp(1rem, 1.05vw, 1.08rem);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--flowers: url("../images/flowers-soft.jpg");
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	position: relative;
	margin: 0;
	min-height: 100vh;
	background: #e8ddd3;
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 400;
	font-size: 1.05rem;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* The flowers behind the sheet: fixed, blurred, washed. */
body::before {
	content: "";
	position: fixed;
	inset: -40px;
	z-index: -1;
	background: var(--flowers) center / cover no-repeat;
	filter: blur(10px) saturate(0.95);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(248, 244, 238, 0.28), rgba(232, 222, 212, 0.22));
	pointer-events: none;
}

body.bj-locked {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

p {
	margin: 0;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 400;
}

:focus-visible {
	outline: 1px solid var(--taupe);
	outline-offset: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bj-skip:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 200;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.6rem 1rem;
	background: var(--ivory);
	color: var(--ink-strong);
	text-decoration: none;
}

/* ── Above the card, and the card ────────────────────────────────────── */

/* The reference's line and spaced capital title, sitting on the flowers. */
.bj-showcase {
	padding: clamp(2.2rem, 6vw, 4.2rem) 20px clamp(1.6rem, 4vw, 2.6rem);
	text-align: center;
	color: var(--white);
	text-shadow: 0 1px 18px rgba(40, 30, 24, 0.45);
}

.bj-showcase__kicker {
	font-family: var(--sans);
	font-weight: 400;
	font-size: clamp(0.8rem, 1.6vw, 1.05rem);
	letter-spacing: 0.16em;
}

.bj-showcase__title {
	margin-top: 0.5rem;
	font-family: var(--bj-display);
	font-size: clamp(1.5rem, 4.4vw, 2.9rem);
	line-height: 1.15;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* The card: full width with 50px of flowers around it, rounded corners. */
.bj-main {
	position: relative;
	display: block;
	width: calc(100% - 2 * var(--frame));
	margin: 0 auto var(--frame);
	overflow: clip;
	background: var(--ivory);
	border-radius: var(--radius);
	box-shadow: 0 40px 90px -40px rgba(60, 42, 32, 0.5), 0 2px 10px rgba(60, 42, 32, 0.06);
}

/* ── Layout & type ───────────────────────────────────────────────────── */

.bj-wrap {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--inset);
}

.bj-section {
	position: relative;
	padding: var(--pad-y) 0;
}

.bj-head {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Italic serif line over a title (hero, vows); the sans variant is the
   reference's small "Let's Create Together". */
.bj-kicker {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(0.95rem, 1.3vw, 1.15rem);
	line-height: 1.4;
	color: var(--ink);
}

.bj-head--sans .bj-kicker {
	font-family: var(--sans);
	font-weight: 400;
	font-size: clamp(0.72rem, 0.85vw, 0.82rem);
	letter-spacing: 0.01em;
}

.bj-title {
	margin-top: 0.45rem;
	font-family: var(--bj-display);
	font-weight: 400;
	font-size: clamp(1.85rem, 2.6vw, 2.75rem);
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--ink-strong);
}

.bj-intro {
	max-width: 34rem;
	margin-top: 1rem;
	font-size: var(--small);
	line-height: 1.9;
	color: var(--ink);
}

/* The reference's small justified paragraphs. */
.bj-justify {
	font-size: var(--small);
	line-height: 1.9;
	text-align: justify;
	hyphens: auto;
	color: var(--ink);
}

.bj-amp {
	font-family: var(--script);
	text-transform: none;
	color: var(--blush-deep);
}

/* Small spaced label on a hairline. */
.bj-tag {
	display: block;
	margin: 0;
	padding-bottom: 0.6rem;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 0.64rem;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink);
	border-bottom: 1px solid var(--hair);
}

.bj-lead {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.5;
	color: var(--ink-strong);
}

.bj-body {
	margin-top: 1rem;
	font-size: var(--small);
	line-height: 1.9;
	color: var(--ink);
}

.bj-note {
	max-width: 46rem;
	margin-top: 2rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--muted);
}

.bj-registry .bj-note {
	margin-inline: auto;
	text-align: center;
}

.bj-link {
	display: inline-block;
	padding: 0 0 0.25rem;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 0.62rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	cursor: pointer;
	transition: color 0.3s;
}

.bj-link:hover {
	color: var(--blush-deep);
}

/* Buttons: small spaced caps in a pill, as on the reference. */
.bj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.7rem 1.7rem;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 0.6rem;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-strong);
	background: transparent;
	border: 1px solid var(--hair);
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.bj-btn:hover {
	color: var(--ivory);
	background: var(--taupe);
	border-color: var(--taupe);
}

.bj-btn--solid {
	color: var(--ivory);
	background: var(--taupe);
	border-color: var(--taupe);
}

.bj-btn--solid:hover {
	background: var(--taupe-deep);
	border-color: var(--taupe-deep);
}

.bj-btn--light {
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.75);
}

.bj-btn--light:hover {
	color: var(--ink-strong);
	background: var(--white);
	border-color: var(--white);
}

/* White pill on a photo (the reference hero's "My services"). */
.bj-btn--pill {
	color: var(--ink-strong);
	background: var(--white);
	border-color: var(--white);
	text-shadow: none;
}

.bj-btn--pill:hover {
	color: var(--white);
	background: var(--band);
	border-color: var(--band);
}

.bj-btn--solid.bj-btn--pill {
	color: var(--ivory);
	background: var(--taupe);
	border-color: var(--taupe);
}

.bj-btn--sm {
	min-height: 38px;
	padding: 0.65rem 1.2rem;
	font-size: 0.58rem;
}

.bj-btn[disabled] {
	cursor: default;
}

.bj-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.bj-photo {
	margin: 0;
	overflow: hidden;
	background: var(--ivory-2);
}

.bj-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.6s var(--ease);
}

.bj-photo:hover img {
	transform: scale(1.03);
}

/* Two columns: heading block left, text right (the reference's intro row). */
.bj-intro-row {
	display: grid;
	gap: 1.6rem;
	text-align: left;
}

.bj-intro-row > .bj-head {
	margin-bottom: 0;
}

@media (min-width: 820px) {
	.bj-intro-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(3rem, 8vw, 10rem);
		align-items: start;
	}

	.bj-intro-row > .bj-justify,
	.bj-intro-row > div {
		padding-top: 0.2rem;
	}
}

/* ── Intro: ivory card on flowers ────────────────────────────────────── */

.bj-envelope {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 20px;
	overflow: hidden;
	background: #eadfd5;
	transition: opacity 1s var(--ease), visibility 1s;
}

.bj-envelope.is-static {
	position: relative;
	min-height: 100vh;
}

.bj-envelope__bg {
	position: absolute;
	inset: -2%;
	background-position: center;
	background-size: cover;
	transform: scale(1.04);
	animation: bj-breathe 18s ease-in-out infinite alternate;
	transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}

.bj-envelope__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(248, 244, 238, 0.35), rgba(80, 60, 50, 0.18));
}

.bj-envelope__card {
	position: relative;
	z-index: 2;
	width: min(100%, 440px);
	padding: clamp(2.6rem, 8vw, 3.6rem) clamp(1.6rem, 7vw, 3rem) clamp(2.2rem, 6vw, 3rem);
	text-align: center;
	background: var(--ivory);
	box-shadow: 0 40px 90px -30px rgba(60, 42, 32, 0.55);
	animation: bj-rise 1.4s var(--ease) both 0.2s;
	transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

.bj-envelope__card::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid var(--hair);
	pointer-events: none;
}

.bj-envelope__names {
	margin-top: 0.6rem;
	font-family: var(--bj-display);
	font-weight: 400;
	font-size: clamp(1.9rem, 7vw, 2.5rem);
	line-height: 1.08;
	color: var(--taupe);
}

.bj-envelope__names span {
	display: block;
}

.bj-envelope__names .bj-amp {
	margin: 0.1rem 0 0.2rem;
	font-size: 1.25em;
	line-height: 0.9;
}

.bj-envelope__meta span {
	display: block;
}

.bj-envelope__meta {
	margin: 1.4rem auto 0;
	padding-top: 1rem;
	max-width: 16rem;
	font-weight: 500;
	font-size: 0.6rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink);
	border-top: 3px double var(--hair);
}

.bj-envelope__open {
	margin-top: 2rem;
}

.bj-envelope__mono {
	margin-top: 1.8rem;
	font-family: var(--bj-display);
	font-size: 1.1rem;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.bj-envelope__mono span {
	font-family: var(--script);
	margin: 0 0.2em;
	color: var(--blush-deep);
}

.bj-envelope__petals span {
	position: absolute;
	top: -30px;
	left: var(--x);
	z-index: 1;
	width: var(--s);
	height: calc(var(--s) * 0.8);
	background: radial-gradient(ellipse at 35% 35%, #fff6f1, #efcfc2 70%);
	border-radius: 80% 10% 80% 30%;
	opacity: 0.85;
	animation: bj-petal var(--t) linear var(--d) infinite;
}

/* Opening: the card lifts away, then the flowers fade into the page. */
.bj-envelope.is-untying .bj-envelope__card {
	transform: translateY(-24px) scale(0.97);
	opacity: 0;
}

.bj-envelope.is-opening {
	opacity: 0;
	visibility: hidden;
}

.bj-envelope.is-opening .bj-envelope__bg {
	transform: scale(1.12);
	filter: blur(6px);
}

@keyframes bj-rise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
}

@keyframes bj-breathe {
	to {
		transform: scale(1.1);
	}
}

@keyframes bj-petal {
	0% {
		transform: translate3d(0, 0, 0) rotate(0deg);
		opacity: 0;
	}
	10% {
		opacity: 0.85;
	}
	100% {
		transform: translate3d(60px, 110vh, 0) rotate(320deg);
		opacity: 0;
	}
}

/* ── Bar: menu left, script names centred, icons right ───────────────── */

.bj-bar {
	position: relative;
	z-index: 20;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: clamp(56px, 6vw, 84px);
	padding: 0 clamp(18px, 2.6vw, 44px);
	background: var(--ivory);
}

.bj-bar__logo {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	z-index: 2;
	font-family: var(--script);
	font-size: clamp(1.35rem, 1.9vw, 2rem);
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	color: var(--ink-strong);
}

.bj-bar__icons {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	display: none;
	gap: clamp(0.7rem, 1vw, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bj-bar__icons a {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	color: var(--ink-strong);
	transition: color 0.3s;
}

.bj-bar__icons a:hover {
	color: var(--blush-deep);
}

.bj-bar__icons svg {
	width: 16px;
	height: 16px;
}

.bj-bar__toggle {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	color: var(--ink-strong);
	background: none;
	border: 0;
	cursor: pointer;
}

.bj-bar__burger,
.bj-bar__burger::before,
.bj-bar__burger::after {
	display: block;
	width: 20px;
	height: 1px;
	background: currentColor;
	transition: transform 0.3s var(--ease), background 0.3s;
}

.bj-bar__burger {
	position: relative;
}

.bj-bar__burger::before,
.bj-bar__burger::after {
	content: "";
	position: absolute;
	left: 0;
}

.bj-bar__burger::before { top: -6px; }
.bj-bar__burger::after { top: 6px; }

.bj-bar.is-menu .bj-bar__burger { background: transparent; }
.bj-bar.is-menu .bj-bar__burger::before { transform: translateY(6px) rotate(45deg); }
.bj-bar.is-menu .bj-bar__burger::after { transform: translateY(-6px) rotate(-45deg); }

/* Small screens: the menu is a full-screen ivory sheet. */
.bj-bar__nav {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem 32px 3rem;
	background: rgba(245, 241, 236, 0.98);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s, visibility 0.4s;
}

.bj-bar.is-menu .bj-bar__nav {
	opacity: 1;
	visibility: visible;
}

.bj-bar__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bj-bar__menu a {
	display: block;
	padding: 0.45rem 0;
	font-family: var(--bj-display);
	font-size: 1.8rem;
	text-decoration: none;
	color: var(--ink-strong);
}

@media (min-width: 1000px) {
	.bj-bar__toggle {
		display: none;
	}

	.bj-bar__icons {
		display: flex;
	}

	.bj-bar__nav {
		position: static;
		grid-column: 1;
		grid-row: 1;
		display: block;
		padding: 0;
		background: none;
		opacity: 1;
		visibility: visible;
	}

	.bj-bar__menu {
		display: flex;
		gap: clamp(1rem, 1.9vw, 2.2rem);
	}

	.bj-bar__menu a {
		padding: 0.2rem 0;
		font-family: var(--sans);
		font-weight: 400;
		font-size: clamp(0.68rem, 0.78vw, 0.8rem);
		color: var(--ink-strong);
		transition: color 0.3s;
	}

	/* The reference greys out the current page ("Home"). */
	.bj-bar__menu a.is-current,
	.bj-bar__menu a:hover {
		color: var(--muted);
	}
}

/* ── Hero: full-width photo, centred white type ──────────────────────── */

.bj-hero {
	position: relative;
	text-align: center;
}

.bj-hero__banner {
	position: relative;
	display: grid;
	place-items: center;
	min-height: max(520px, 43.5vw);
	padding: 4rem 20px;
	overflow: hidden;
	color: var(--white);
	background: var(--band);
}

.bj-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 30%;
}

.bj-hero__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(25, 22, 18, 0.34), rgba(25, 22, 18, 0.46));
}

.bj-hero__content {
	position: relative;
	z-index: 1;
	max-width: 46rem;
	text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.bj-hero__kicker {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1rem, 1.55vw, 1.45rem);
}

.bj-hero__title {
	margin-top: 0.9rem;
	font-family: var(--bj-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 3.6vw, 3.9rem);
	line-height: 1.22;
	letter-spacing: 0.01em;
	color: var(--white);
}

.bj-hero__title span {
	display: block;
}

.bj-hero__text {
	max-width: 32rem;
	margin: 1.3rem auto 0;
	font-size: clamp(0.76rem, 0.85vw, 0.88rem);
	line-height: 1.85;
}

.bj-hero__cta {
	margin-top: 1.9rem;
}

/* Entrance after the intro. */
.js.bj-has-envelope [data-hero-step] {
	opacity: 0;
	transform: translateY(16px);
}

.js.bj-ready [data-hero-step] {
	opacity: 1;
	transform: none;
	transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.js.bj-ready [data-hero-step="1"] { transition-delay: 0.3s; }
.js.bj-ready [data-hero-step="2"] { transition-delay: 0.5s; }
.js.bj-ready [data-hero-step="3"] { transition-delay: 0.7s; }
.js.bj-ready [data-hero-step="4"] { transition-delay: 1s; }

/* ── Families + the row of photos (one section on the reference) ─────── */

.bj-families + .bj-gallery,
.bj-section-widget:has(.bj-families) + .bj-section-widget .bj-gallery,
.e-con:has(.bj-families) + .e-con .bj-gallery {
	padding-top: 0;
}

.bj-families {
	padding-bottom: clamp(2.4rem, 5vw, 4.4rem);
}

.bj-gallery .bj-head:empty {
	display: none;
}

.bj-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 2.2vw, 26px);
	align-items: start;
}

.bj-gallery__grid .bj-photo {
	aspect-ratio: 3 / 4;
}

@media (min-width: 700px) {
	/* As on the reference: two equal portraits and a slightly narrower third. */
	.bj-gallery__grid--3 {
		grid-template-columns: 1fr 1fr 0.89fr;
	}

	.bj-gallery__grid--3 .bj-photo:nth-child(3) {
		aspect-ratio: 0.666;
	}

	.bj-gallery__grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 699px) {
	.bj-gallery__grid--3 .bj-photo:nth-child(3) {
		grid-column: span 2;
		aspect-ratio: 4 / 3;
	}

	.bj-gallery__grid--3 .bj-photo:nth-child(3) img {
		object-position: 50% 30%;
	}
}

.bj-gallery__grid--1 {
	grid-template-columns: minmax(0, 460px);
}

/* ── Countdown ───────────────────────────────────────────────────────── */

.bj-countdown__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 1.8rem;
	border-top: 1px solid var(--hair);
}

.bj-countdown__unit {
	display: grid;
	gap: 0.3rem;
	padding: 1.1rem 0 0;
}

.bj-countdown__unit + .bj-countdown__unit {
	padding-left: 1rem;
	border-left: 1px solid var(--hair);
}

.bj-countdown__num {
	font-family: var(--bj-display);
	font-weight: 400;
	font-size: clamp(2rem, 3.4vw, 3.2rem);
	line-height: 1;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ink-strong);
}

.bj-countdown__label {
	font-size: 0.6rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.bj-countdown__grid.is-done {
	display: block;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.6rem;
	color: var(--ink-strong);
}

/* ── The dark band (the reference's third section) ───────────────────── */

.bj-band {
	padding: clamp(3rem, 7vw, 6.5rem) 0;
	color: var(--ivory);
	background: var(--band);
}

.bj-band__grid {
	display: grid;
	gap: 2.8rem;
	align-items: center;
}

@media (min-width: 820px) {
	.bj-band__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(3rem, 8vw, 10rem);
	}
}

.bj-band .bj-head {
	margin-bottom: 1.2rem;
}

.bj-band .bj-title {
	color: var(--ivory);
}

.bj-band .bj-justify {
	max-width: 36rem;
	color: rgba(248, 246, 241, 0.88);
}

.bj-band__photo {
	margin: 0;
	aspect-ratio: 336 / 394;
	background: rgba(255, 255, 255, 0.06);
}

.bj-band__photo img {
	object-position: 50% 18%;
}

/* Numbered list on short hairlines. */
.bj-numlist {
	display: grid;
	gap: 0;
	max-width: min(100%, 21rem);
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.bj-numlist li {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: 0.8rem 0 0.7rem;
	font-size: clamp(0.62rem, 0.72vw, 0.72rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(248, 246, 241, 0.38);
}

.bj-numlist__n {
	flex: none;
	font-family: var(--serif);
	font-style: italic;
	font-size: 0.95em;
	letter-spacing: 0;
	opacity: 0.85;
}

.bj-numlist a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s;
}

.bj-numlist a:hover {
	color: var(--blush);
}

/* ── Vows: flowers, an oval badge on the edge, an inset ivory card ───── */

.bj-vows {
	position: relative;
	padding: clamp(3.2rem, 7vw, 4.6rem) var(--inset) clamp(3.6rem, 8vw, 6rem);
}

.bj-vows::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bg) center / cover no-repeat;
}

.bj-vows::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(30, 26, 22, 0.28);
}

.bj-badge {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: clamp(70px, 6vw, 96px);
	height: clamp(118px, 10vw, 160px);
	font-family: var(--bj-display);
	font-size: clamp(1.4rem, 2vw, 1.9rem);
	line-height: 1;
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	transform: translate(-50%, -14%);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.bj-badge::before {
	content: "";
	position: absolute;
	inset: 5px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: inherit;
}

.bj-badge__amp {
	margin: 0.2em 0;
	font-family: var(--script);
	font-size: 0.85em;
}

.bj-vows__card {
	position: relative;
	z-index: 2;
	margin-top: clamp(3rem, 5vw, 4rem);
	padding: clamp(2.4rem, 5vw, 4rem) clamp(1.4rem, 4vw, 3.6rem);
	text-align: center;
	background: var(--ivory);
}

.bj-vows__card .bj-head {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.bj-vows__grid {
	display: grid;
	gap: 2.6rem;
	text-align: left;
}

@media (min-width: 900px) {
	.bj-vows__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 4rem);
		align-items: start;
	}

	.bj-vows__grid--text {
		grid-template-columns: 1fr 1fr;
	}

	.bj-vows__photo {
		margin-top: 3.5rem;
	}
}

.bj-vows__photo {
	margin: 0;
	aspect-ratio: 3 / 4;
}

.bj-vows__photo img {
	object-position: 50% 15%;
}

.bj-vow__greeting {
	margin-bottom: 0.9rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--ink-strong);
}

.bj-vow__text p {
	font-size: var(--small);
	line-height: 1.9;
	text-align: justify;
	hyphens: auto;
	color: var(--ink);
}

.bj-vow__text p + p {
	margin-top: 0.8em;
}

.bj-vow__sign {
	margin-top: 1.1rem;
	font-family: var(--script);
	font-size: 1.9rem;
	line-height: 1;
	color: var(--ink-strong);
}

/* Attribution, as the reference card's "River & Anne Watts". */
.bj-vow__label {
	margin-top: 0.6rem;
	font-family: var(--sans);
	font-style: italic;
	font-weight: 400;
	font-size: 0.72rem;
	color: var(--muted);
}

/* ── Colour code ─────────────────────────────────────────────────────── */

.bj-dresscode {
	background: var(--ivory-2);
}

.bj-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
}

.bj-swatch {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.bj-swatch__chip {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--chip);
	box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--hair);
}

.bj-swatch__name {
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-strong);
}

/* ── Gifts: photo left, words right ──────────────────────────────────── */

.bj-gift .bj-wrap--mid {
	max-width: none;
}

.bj-gift__inner {
	display: grid;
	gap: 2.4rem;
	align-items: center;
}

.bj-gift__collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(10px, 1.2vw, 16px);
	width: min(100%, 520px);
	margin-inline: auto;
}

.bj-gift .bj-gift__tile {
	margin: 0;
	aspect-ratio: 1;
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px -18px rgba(22, 58, 40, 0.35);
}

/* The last gift (the TV) runs the full width under the other four. */
.bj-gift .bj-gift__tile:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	aspect-ratio: 2 / 1;
}

.bj-gift .bj-gift__tile img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	padding: 8%;
	object-fit: contain;
}

/* The power tank photo has its own backdrop, so it fills its tile. */
.bj-gift .bj-gift__tile img[src*="power-tank"] {
	padding: 0;
	object-fit: cover;
}

.bj-gift .bj-gift__tile:last-child:nth-child(odd) img {
	padding: 5% 8%;
}

.bj-gift__text .bj-head {
	margin-bottom: 1.4rem;
}

@media (min-width: 820px) {
	.bj-gift__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(3rem, 8vw, 10rem);
	}

	.bj-gift__collage {
		width: 100%;
	}
}

/* ── RSVP ────────────────────────────────────────────────────────────── */

.bj-rsvp__side .bj-contacts {
	margin-top: 2.4rem;
}

.bj-rsvp__side .bj-contacts__list {
	grid-template-columns: 1fr;
}


.bj-rsvp__deadline {
	margin: -1.6rem 0 2.4rem;
	font-weight: 500;
	font-size: 0.62rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink);
}

.bj-rsvp__panel {
	text-align: left;
}

.bj-rsvp__thanks {
	padding: 3rem 1.5rem;
	text-align: center;
	border: 1px solid var(--hair);
}

.bj-rsvp__thanks:focus {
	outline: none;
}

.bj-form {
	display: grid;
	gap: 2rem;
	padding: clamp(1.6rem, 6vw, 2.8rem);
	background: var(--white);
	border: 1px solid var(--ivory-3);
}

.bj-form[hidden],
.bj-rsvp__thanks[hidden],
[data-rsvp-guests][hidden] {
	display: none;
}

.bj-field {
	display: grid;
	gap: 0.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.bj-field-row {
	display: grid;
	gap: 2rem;
}

@media (min-width: 560px) {
	.bj-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

.bj-label {
	padding: 0;
	font-weight: 500;
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink);
}

.bj-input {
	width: 100%;
	padding: 0.55rem 0;
	font-family: var(--serif);
	font-size: 1.25rem;
	color: var(--ink-strong);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--hair);
	border-radius: 0;
	transition: border-color 0.3s;
}

textarea.bj-input {
	resize: vertical;
	min-height: 5rem;
}

.bj-input:focus {
	outline: none;
	border-color: var(--taupe);
}

.bj-input[aria-invalid="true"] {
	border-color: #b06a55;
}

.bj-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.4rem;
}

.bj-choice {
	position: relative;
	cursor: pointer;
}

.bj-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bj-choice span {
	display: inline-block;
	padding: 0.8rem 1.3rem;
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--ink);
	border: 1px solid var(--hair);
	border-radius: 12px;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.bj-choice input:checked + span {
	color: var(--ivory);
	background: var(--taupe);
	border-color: var(--taupe);
}

.bj-choice input:focus-visible + span {
	outline: 1px solid var(--taupe);
	outline-offset: 3px;
}

.bj-stepper {
	display: inline-flex;
	align-items: center;
	width: max-content;
	border: 1px solid var(--hair);
	border-radius: 12px;
}

.bj-stepper__btn {
	width: 46px;
	height: 46px;
	font-size: 1.2rem;
	color: var(--ink);
	background: none;
	border: 0;
	cursor: pointer;
}

.bj-stepper__val {
	width: 52px;
	height: 46px;
	font-family: var(--serif);
	font-size: 1.3rem;
	text-align: center;
	color: var(--ink-strong);
	background: none;
	border: 0;
	border-left: 1px solid var(--hair);
	border-right: 1px solid var(--hair);
	-moz-appearance: textfield;
}

.bj-stepper__val::-webkit-outer-spin-button,
.bj-stepper__val::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bj-form .bj-btn--solid {
	width: 100%;
	min-height: 52px;
}

.bj-form .bj-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.bj-form__status:empty {
	display: none;
}

.bj-form__status,
.bj-form__error {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.1rem;
	color: #a35f4b;
	text-align: center;
}

.bj-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bj-contacts {
	margin-top: 3rem;
	text-align: left;
}

.bj-contacts__list {
	display: grid;
	gap: 1.4rem;
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 560px) {
	.bj-contacts__list {
		grid-template-columns: 1fr 1fr;
	}
}

.bj-contact {
	display: grid;
	gap: 0.2rem;
}

.bj-contact__name {
	font-family: var(--serif);
	font-size: 1.35rem;
	color: var(--ink-strong);
}

.bj-contact__line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.8rem;
	font-size: 0.88rem;
}

.bj-contact__line a {
	text-decoration: none;
	color: var(--ink);
}

.bj-contact__wa {
	font-weight: 500;
	font-size: 0.58rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--hair);
}

/* ── Closing: the dark footer band ───────────────────────────────────── */

.bj-closing {
	position: relative;
	padding: clamp(4.6rem, 9vw, 7rem) var(--inset) clamp(3rem, 6vw, 4.4rem);
	text-align: center;
	color: var(--ivory);
	background: var(--band);
}

.bj-closing__inner {
	position: relative;
}

.bj-closing__badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 108px;
	margin-bottom: 1.6rem;
	font-family: var(--bj-display);
	font-size: 1.3rem;
	line-height: 1;
	border: 1px solid rgba(248, 246, 241, 0.7);
	border-radius: 999px;
}

.bj-closing__badge span {
	display: block;
	margin: 0.2em 0;
	font-family: var(--script);
	font-size: 0.9em;
	color: var(--blush);
}

.bj-closing .bj-kicker {
	color: rgba(248, 246, 241, 0.85);
}

.bj-closing__names {
	margin-top: 0.3rem;
	font-family: var(--script);
	font-size: clamp(2.6rem, 5vw, 4.2rem);
	line-height: 1.15;
	color: var(--ivory);
}

.bj-closing__date {
	margin-top: 0.9rem;
	font-size: 0.68rem;
	letter-spacing: 0.3em;
	color: rgba(248, 246, 241, 0.85);
}

.bj-closing .bj-actions {
	justify-content: center;
}

.bj-closing .bj-btn {
	color: var(--ink-strong);
	background: var(--ivory);
	border-color: var(--ivory);
}

.bj-closing .bj-btn:hover {
	color: var(--ivory);
	background: transparent;
	border-color: var(--ivory);
}

.bj-closing__tag {
	margin-top: 2.4rem;
	padding-top: 1.4rem;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	color: rgba(248, 246, 241, 0.7);
	border-top: 1px solid rgba(248, 246, 241, 0.2);
}

.bj-credit {
	margin-top: 1.2rem;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: rgba(248, 246, 241, 0.6);
}

.bj-credit a {
	color: rgba(248, 246, 241, 0.9);
	text-decoration: underline;
	text-decoration-color: rgba(248, 246, 241, 0.35);
	text-underline-offset: 3px;
	transition: color 0.3s, text-decoration-color 0.3s;
}

.bj-credit a:hover {
	color: var(--white);
	text-decoration-color: currentColor;
}

/* ── Registry page ───────────────────────────────────────────────────── */

.bj-registry {
	text-align: center;
}

.bj-registry .bj-intro {
	margin-left: auto;
	margin-right: auto;
}


.bj-pagebar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	min-height: 76px;
	padding: 0 var(--gutter);
	border-bottom: 1px solid var(--ivory-3);
}

.bj-pagebar a {
	text-decoration: none;
	color: var(--ink);
}

.bj-pagebar__back,
.bj-pagebar__rsvp {
	font-weight: 500;
	font-size: 0.6rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.bj-pagebar__rsvp {
	justify-self: end;
}

.bj-pagebar .bj-pagebar__mono {
	font-family: var(--script);
	font-size: clamp(1.4rem, 4.6vw, 1.9rem);
	line-height: 1;
	white-space: nowrap;
	color: var(--ink-strong);
}

.bj-pagebar__mono span {
	font-family: var(--script);
	margin: 0 0.15em;
	color: var(--blush-deep);
}

.bj-registry::before {
	display: none;
}

.bj-registry__sub {
	margin-top: -1.6rem;
	font-weight: 500;
	font-size: 0.6rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink);
}

.bj-registry__prose {
	padding-top: 3rem;
}

.bj-registry__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 3rem 0 2.2rem;
	padding-bottom: 1rem;
	border-bottom: 3px double var(--hair);
}

.bj-registry__count {
	font-family: var(--serif);
	font-size: 1.15rem;
	color: var(--ink);
}

.bj-registry__count strong {
	font-weight: 600;
	color: var(--taupe);
}

.bj-registry__filters {
	display: inline-flex;
	gap: 0.3rem;
}

.bj-registry__filters button {
	padding: 0.55rem 0.9rem;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.58rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	background: none;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	transition: color 0.3s, border-color 0.3s;
}

.bj-registry__filters button[aria-pressed="true"] {
	color: var(--ink);
	border-color: var(--hair);
}

/* Flex rather than grid so a short last row sits centred. */
.bj-registry__grid {
	--cols: 4;
	--col-gap: clamp(1.2rem, 3vw, 2.4rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3rem var(--col-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.bj-registry__grid[data-filter="open"] .is-taken,
.bj-registry__grid[data-filter="taken"] .bj-gift-item:not(.is-taken) {
	display: none;
}

.bj-gift-item {
	display: flex;
	flex: 0 0 calc((100% - (var(--cols) - 1) * var(--col-gap)) / var(--cols));
	flex-direction: column;
	min-width: 0;
}

@media (max-width: 1099px) {
	.bj-registry__grid {
		--cols: 3;
	}
}

@media (max-width: 819px) {
	.bj-registry__grid {
		--cols: 2;
	}
}

.bj-gift-item__art {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 4.4;
	overflow: hidden;
	color: var(--taupe);
	background:
		radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), transparent 64%),
		linear-gradient(170deg, #f4ebe5, #ead9d0);
}

.bj-gift-item__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bj-gift-icon {
	width: 36%;
	max-width: 110px;
	height: auto;
	stroke-width: 1.2;
	transition: opacity 0.4s;
}

.bj-gift-item__tag {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.8rem;
	font-weight: 500;
	font-size: 0.56rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ivory);
	background: var(--taupe);
	border-radius: 4px;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.bj-gift-item__tag::before {
	content: "";
	width: 0.62rem;
	height: 0.32rem;
	margin-top: -0.16rem;
	border-left: 1.3px solid currentColor;
	border-bottom: 1.3px solid currentColor;
	transform: rotate(-45deg);
}

.bj-gift-item__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 1.3rem;
}

.bj-gift-item__title {
	margin-top: 0.9rem;
	font-family: var(--serif);
	font-size: 1.45rem;
	line-height: 1.3;
	color: var(--ink-strong);
}

.bj-gift-item__desc {
	margin-top: 0.4rem;
	font-size: 0.82rem;
	line-height: 1.75;
	color: var(--muted);
}

.bj-gift-item__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 1.2rem;
	margin-top: auto;
	padding-top: 1.3rem;
}

.bj-gift-item__done,
.is-taken .bj-gift-item__open {
	display: none;
}

.is-taken .bj-gift-item__done {
	display: inline;
}

.is-taken .bj-gift-item__tag {
	opacity: 1;
	transform: none;
}

.is-taken .bj-gift-icon,
.is-taken .bj-gift-item__art img {
	opacity: 0.4;
}

.is-taken .bj-gift-item__title {
	color: var(--muted);
}

.bj-gift-item .bj-btn[disabled] {
	color: var(--muted);
	background: var(--ivory-2);
	border-color: var(--ivory-3);
}

.bj-gift-item.is-busy .bj-btn {
	cursor: progress;
	opacity: 0.7;
}

/* Product shots on white: blend the white into the blush card. */
.bj-gift-item__art--photo img {
	padding: 9%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* ── Cash gift card ───────────────────────────────────────────────────── */

.bj-cash {
	max-width: 560px;
	margin: clamp(3rem, 8vw, 4.5rem) auto 0;
	padding: clamp(2rem, 6vw, 2.8rem) clamp(1.4rem, 5vw, 2.6rem);
	text-align: center;
	background: var(--ivory-2);
	border: 3px double var(--hair);
}

.bj-cash__title {
	margin-top: 0.2rem;
	font-family: var(--bj-display);
	font-weight: 400;
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	letter-spacing: 0.01em;
	color: var(--taupe);
}

.bj-cash__body {
	margin-top: 0.7rem;
	font-size: 0.85rem;
	line-height: 1.75;
	color: var(--muted);
}

.bj-cash__details {
	display: grid;
	gap: 1.1rem;
	margin: 1.6rem 0 1.5rem;
}

.bj-cash__details .bj-tag {
	display: inline-block;
	padding-bottom: 0.45rem;
	font-size: 0.56rem;
}

.bj-cash__details dd {
	margin: 0.45rem 0 0;
	font-family: var(--serif);
	font-size: 1.3rem;
	color: var(--ink-strong);
}

.bj-cash__details .bj-cash__number {
	font-size: 1.75rem;
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: 0.12em;
	color: var(--taupe-deep);
}

.bj-gift .bj-cash {
	margin-top: clamp(2.6rem, 7vw, 3.6rem);
}

@media (max-width: 599px) {
	.bj-registry__bar {
		justify-content: center;
		text-align: center;
	}

	.bj-registry__grid {
		--col-gap: 0.9rem;
		row-gap: 2.2rem;
	}

	.bj-gift-item__title {
		font-size: 1.2rem;
	}

	.bj-gift-item__desc {
		display: none;
	}

	.bj-gift-item /* White pill on photos, as on the reference hero. */
.bj-btn--pill {
	min-height: 42px;
	padding: 0.8rem 1.8rem;
	color: var(--ink-strong);
	background: var(--white);
	border-color: var(--white);
	text-shadow: none;
}

.bj-btn--pill:hover {
	color: var(--white);
	background: var(--band);
	border-color: var(--band);
}

.bj-btn--solid.bj-btn--pill {
	color: var(--ivory);
	background: var(--taupe);
	border-color: var(--taupe);
}

.bj-btn--sm {
		width: 100%;
		padding-inline: 0.6rem;
		font-size: 0.54rem;
		letter-spacing: 0.16em;
	}

	.bj-gift-item__tag {
		top: 8px;
		left: 8px;
		padding: 0.35rem 0.55rem;
		font-size: 0.5rem;
	}
}

/* Selection dialog */

.bj-dialog {
	width: min(calc(100% - 32px), 460px);
	max-height: calc(100dvh - 32px);
	padding: 0;
	color: var(--ink);
	background: var(--ivory);
	border: 0;
	border-radius: 0;
	box-shadow: 0 40px 90px -30px rgba(60, 42, 32, 0.55);
}

.bj-dialog::backdrop {
	background: rgba(70, 55, 45, 0.4);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.bj-dialog[open] {
	animation: bj-rise 0.5s var(--ease);
}

.bj-dialog__form {
	position: relative;
	padding: clamp(2rem, 7vw, 2.8rem);
	text-align: center;
}

.bj-dialog__form::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid var(--hair);
	pointer-events: none;
}

.bj-dialog__form [data-gift-step="ask"] {
	display: grid;
	gap: 1.4rem;
}

.bj-dialog__form [hidden] {
	display: none !important;
}

.bj-dialog__form .bj-field {
	text-align: left;
}

.bj-dialog__form .bj-intro {
	margin-top: -0.6rem;
}

.bj-dialog__title {
	font-family: var(--bj-display);
	font-weight: 400;
	font-size: clamp(1.9rem, 7vw, 2.4rem);
	line-height: 1.1;
	color: var(--taupe);
}

.bj-dialog__actions {
	display: grid;
	justify-items: center;
	gap: 1.1rem;
	margin-top: 0.4rem;
}

.bj-dialog__actions .bj-btn {
	width: 100%;
	min-height: 50px;
}

[data-gift-step="done"] .bj-intro {
	margin: 1rem auto 1.8rem;
}

[data-gift-step="done"]:focus {
	outline: none;
}

/* ── Music ───────────────────────────────────────────────────────────── */

.bj-music {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--taupe);
	background: rgba(248, 246, 241, 0.94);
	border: 1px solid var(--hair);
	border-radius: 50%;
	box-shadow: 0 10px 24px -12px rgba(70, 52, 40, 0.5);
	cursor: pointer;
}

.bj-music svg {
	width: 20px;
	height: 20px;
}

.bj-music .bj-music__on,
.bj-music[aria-pressed="true"] .bj-music__off {
	display: none;
}

.bj-music[aria-pressed="true"] .bj-music__on {
	display: block;
}

/* ── Plain pages ─────────────────────────────────────────────────────── */

.bj-page {
	padding: 6rem 0;
	text-align: center;
}

.bj-prose {
	text-align: left;
	font-size: 0.95rem;
}

.bj-page__back {
	margin-top: 3rem;
}

/* ── Reveal on scroll ────────────────────────────────────────────────── */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.js [data-reveal],
	.js.bj-has-envelope [data-hero-step] {
		opacity: 1;
		transform: none;
	}
}

/* ── Directions: map of the venue ────────────────────────────────────── */

.bj-map__frame {
	position: relative;
	margin-top: clamp(2.4rem, 5vw, 4rem);
	aspect-ratio: 16 / 7;
	min-height: 320px;
	overflow: hidden;
	background: var(--ivory-2);
	border-radius: 12px;
	box-shadow: 0 18px 40px -28px rgba(22, 58, 40, 0.45);
}

.bj-map__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 819px) {
	.bj-map__frame {
		aspect-ratio: 4 / 5;
	}
}
