:root {
	--champagne: #c9b28f;
	--basil: #545e35;
	--black: #111111;
	--gold: #d4af37;
	--ivory: #f4ede1;
	--paper: #faf7f2;
	--bg: var(--paper);
	--bg-2: var(--ivory);
	--text: var(--black);
	--muted: #6b6558;
	--line: rgba(201, 178, 143, 0.65);
	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--script: "Great Vibes", cursive;
	--sans: "Manrope", system-ui, sans-serif;
	--radius: 18px;
	--radius-sm: 14px;
	--radius-lg: 28px;
	--radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-weight: 400;
	line-height: 1.65;
	overflow-x: hidden;
}

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.4rem 1.35rem;
	padding: 0.9rem 1rem;
	background: transparent;
	transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
	border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
	background: rgba(250, 247, 242, 0.9);
	border-bottom-color: var(--champagne);
	box-shadow: 0 8px 24px rgba(84, 94, 53, 0.06);
	backdrop-filter: blur(12px);
}
.site-nav a {
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}
.site-nav a.is-on,
.site-nav a:hover { color: var(--black); }

img { max-width: 100%; display: block; }
a { color: var(--basil); text-decoration: none; }
h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: 0.12em;
	margin: 0;
	color: var(--black);
}

#snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 40;
}

.grain {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 30;
	opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.kicker {
	font-family: var(--sans);
	letter-spacing: 0.42em;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: var(--champagne);
	margin: 0 0 1rem;
}

.script {
	font-family: var(--script);
	font-size: clamp(3rem, 8vw, 6.4rem);
	letter-spacing: 0.02em;
	line-height: 1;
	margin: 0 0 1.2rem;
	color: var(--basil);
}
.script span { color: var(--gold); padding: 0 0.15em; }
.script--sm { font-size: 2.4rem; margin-bottom: 0.4rem; }

.date-line {
	font-size: clamp(1.8rem, 5vw, 3.4rem);
	letter-spacing: 0.28em;
	font-weight: 400;
	margin: 0.4rem 0 1rem;
	color: var(--black);
}

.section-title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	text-align: center;
	margin-bottom: 1.2rem;
}
.section-title--left { text-align: left; }

.lead {
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
	font-family: var(--serif);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--muted);
}
.lead--left { margin: 0 0 1.4rem; text-align: left; }

.gold-rule {
	position: relative;
	width: 180px;
	height: 1px;
	margin: 0 auto 1.6rem;
	background: var(--champagne);
}
.gold-rule::before {
	content: "✦";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: var(--section-bg, var(--bg-2));
	padding: 0 0.45rem;
	color: var(--gold);
	font-size: 0.7rem;
}
.invite .gold-rule:last-child { margin: 1.8rem auto 0; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1.6rem;
	border: 1px solid var(--gold);
	font-family: var(--sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.72rem;
	cursor: pointer;
	transition: 0.25s ease;
	border-radius: var(--radius-pill);
}
.btn--gold {
	background: linear-gradient(180deg, #f0d56a 0%, #d4af37 48%, #b8962e 100%);
	color: var(--black);
	border: none;
	box-shadow: 0 8px 18px rgba(212, 175, 55, 0.28);
}
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost {
	background: transparent;
	color: var(--basil);
	margin-top: 1rem;
	border-color: var(--champagne);
}
.btn--ghost:hover { background: rgba(201, 178, 143, 0.18); }

.hero {
	--section-bg: var(--ivory);
	position: relative;
	min-height: 100svh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 6.2rem 1.2rem 6rem;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(201, 178, 143, 0.28), transparent 55%),
		radial-gradient(ellipse at 50% 100%, rgba(84, 94, 53, 0.08), transparent 50%),
		var(--ivory);
}
.hero--page { min-height: 58svh; padding-bottom: 3rem; }
.hero.has-photo {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding: 5.5rem 1.2rem 4.4rem;
	background:
		linear-gradient(180deg, rgba(17, 17, 17, 0.28) 0%, rgba(17, 17, 17, 0.04) 34%, rgba(10, 10, 8, 0.66) 100%),
		var(--hero-image) var(--hero-pos, 50% 22%) / cover no-repeat;
}
.hero.has-photo .hero__veil {
	background: linear-gradient(180deg, rgba(17, 17, 17, 0.18) 0%, transparent 28%, rgba(7, 8, 6, 0.58) 100%);
}
.hero.has-photo .hero__inner {
	background: none;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
	padding: 0;
	max-width: 46rem;
}
.hero.has-photo .kicker { color: var(--gold); }
.hero.has-photo .script {
	color: var(--ivory);
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}
.hero.has-photo .date-line {
	color: var(--ivory);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.hero.has-photo .hero__sub { color: #e8d5a3; }
.hero.has-photo .countdown {
	margin-left: auto;
	margin-right: auto;
}
.hero.has-photo .ornament { opacity: 0.5; }

body.has-hero-photo .site-nav a {
	color: rgba(244, 237, 225, 0.92);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
body.has-hero-photo .site-nav a.is-on,
body.has-hero-photo .site-nav a:hover { color: #fff; }
body.has-hero-photo .site-nav.is-solid a {
	color: var(--muted);
	text-shadow: none;
}
body.has-hero-photo .site-nav.is-solid a.is-on,
body.has-hero-photo .site-nav.is-solid a:hover { color: var(--black); }
.hero__veil {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 42%, transparent 18%, rgba(250, 247, 242, 0.35) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 52rem; }
.hero__sub {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.3rem;
	color: var(--muted);
	margin: 0 0 2rem;
}

.ornament {
	position: absolute;
	width: 88px;
	height: 88px;
	z-index: 2;
	opacity: 0.85;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='%23d4af37' stroke-width='1'%3E%3Cpath d='M10 10h26M10 10v26'/%3E%3Cpath d='M10 10l18 18'/%3E%3Ccircle cx='10' cy='10' r='1.8' fill='%23d4af37' stroke='none'/%3E%3Cpath d='M28 10l3.2-7 3.2 7h-6.4zM10 28l-7 3.2 7 3.2V28z' fill='%23c9b28f' stroke='none'/%3E%3C/svg%3E") no-repeat center/contain;
}
.ornament--tl { top: 18px; left: 18px; }
.ornament--tr { top: 18px; right: 18px; transform: scaleX(-1); }
.ornament--bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.ornament--br { bottom: 18px; right: 18px; transform: scale(-1); }

.countdown {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 0.7rem;
	justify-content: center;
	margin-top: 1.6rem;
	padding: 0.85rem 0.9rem;
	background: rgba(250, 247, 242, 0.9);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(201, 178, 143, 0.55);
	border-radius: var(--radius-lg);
	box-shadow: 0 14px 36px rgba(17, 17, 17, 0.18);
}
.countdown div {
	min-width: 68px;
	padding: 0.35rem 0.4rem;
	display: grid;
	gap: 0.15rem;
	border-radius: var(--radius-sm);
	background: rgba(244, 237, 225, 0.9);
}
.countdown b {
	font-family: var(--serif);
	font-size: 1.8rem;
	font-weight: 500;
	color: var(--basil);
	line-height: 1.1;
}
.countdown span {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6b6558;
}

.scroll-hint {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	font-size: 0.68rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ivory);
	text-shadow: 0 1px 8px rgba(17, 17, 17, 0.55);
}

.section {
	--section-bg: var(--paper);
	padding: 5.5rem 1.4rem;
	background: var(--section-bg);
}
.section:nth-of-type(even) { --section-bg: var(--ivory); background: var(--ivory); }

.couple {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1.4rem;
	align-items: center;
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}
.amp {
	font-family: var(--script);
	font-size: 3.4rem;
	color: var(--gold);
	padding-top: 2rem;
}
.person h2 {
	font-size: 2rem;
	margin-top: 0.4rem;
	letter-spacing: 0.08em;
}
.person__role {
	margin: 1rem 0 0;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-size: 0.7rem;
	color: var(--basil);
}

.frame {
	margin: 0;
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border: 1px solid var(--champagne);
	border-radius: var(--radius);
	box-shadow: 0 0 0 8px rgba(244, 237, 225, 0.9), 0 18px 40px rgba(84, 94, 53, 0.08);
}
.frame::after {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(212, 175, 55, 0.35);
	pointer-events: none;
}
.frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9) contrast(1.04);
}
.frame--wide {
	aspect-ratio: auto;
	overflow: hidden;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto 2.2rem;
	background: transparent;
	box-shadow: 0 18px 40px rgba(84, 94, 53, 0.08);
}
.frame--wide::after { display: none; }
.frame--wide img {
	height: auto;
	object-fit: contain;
	object-position: center;
	filter: none;
}
.frame__placeholder {
	height: 100%;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 50% 28%, rgba(212, 175, 55, 0.18), transparent 55%),
		linear-gradient(180deg, #efe4d2, #dcc9a8);
	font-family: var(--script);
	font-size: 5rem;
	color: var(--basil);
}
.frame__placeholder--wide {
	font-family: var(--serif);
	font-size: 1.1rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--basil);
}

.venue {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.2rem;
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}
.venue__copy {
	max-width: 36rem;
	margin: 0 auto;
}
.venue__copy h2 { font-size: 2.4rem; margin-bottom: 0.8rem; }
.venue__date {
	font-family: var(--serif);
	letter-spacing: 0.22em;
	color: var(--basil);
	margin-top: 1.2rem;
}
.venue__photo.frame {
	aspect-ratio: 16 / 9;
	width: 100%;
	max-height: none;
}
.venue:not(:has(.venue__photo)) {
	max-width: 720px;
}
.map-wrap {
	grid-column: 1 / -1;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--champagne);
	min-height: 320px;
	box-shadow: 0 18px 40px rgba(84, 94, 53, 0.08);
}
.map-wrap iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

.timeline {
	list-style: none;
	margin: 2.4rem auto 0;
	padding: 0;
	max-width: 560px;
}
.timeline li {
	display: grid;
	grid-template-columns: 5.4rem 1fr;
	gap: 1.4rem;
	padding: 0 0 2rem 0;
	position: relative;
}
.timeline li:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 5.05rem;
	top: 1.4rem;
	bottom: 0;
	width: 1px;
	background: var(--champagne);
}
.timeline time {
	font-family: var(--serif);
	color: var(--gold);
	font-size: 1.15rem;
	padding-top: 0.15rem;
}
.timeline h3 {
	font-size: 1.15rem;
	letter-spacing: 0.16em;
}
.timeline p { margin: 0.3rem 0 0; color: var(--muted); }

.dress {
	display: block;
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}
.dress__copy { max-width: 42rem; margin: 0 auto; }
.dress__fallback {
	max-width: 420px;
	margin: 0 auto 1.8rem;
	aspect-ratio: 4 / 3;
}
.swatches { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; justify-content: center; }
.swatches span {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--champagne);
	box-shadow: 0 0 0 4px rgba(250, 247, 242, 0.9);
}

.wish-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
	max-width: 980px;
	margin: 2rem auto 0;
}
.wish-card {
	padding: 1.6rem 1.4rem 1.5rem;
	border: 1px solid var(--champagne);
	background: rgba(250, 247, 242, 0.72);
	border-radius: var(--radius);
}
.wish-card span {
	font-family: var(--serif);
	color: var(--gold);
	letter-spacing: 0.2em;
	font-size: 0.9rem;
}
.wish-card h3 {
	margin: 0.5rem 0 0.7rem;
	font-size: 1.15rem;
}
.wish-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.org {
	text-align: center;
	margin: 2.4rem 0 0;
	color: var(--muted);
}

.rsvp {
	--section-bg: var(--paper);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(201, 178, 143, 0.22), transparent 55%),
		var(--paper);
}
.rsvp__card {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.4rem 1.6rem 2.2rem;
	border: 1px solid var(--champagne);
	background: rgba(244, 237, 225, 0.78);
	border-radius: var(--radius-lg);
}

.form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.form label, .form legend {
	display: grid;
	gap: 0.4rem;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}
.form input[type="text"],
.form textarea {
	width: 100%;
	border: 1px solid var(--champagne);
	background: #fffdf8;
	color: var(--black);
	padding: 0.85rem 0.9rem;
	font: 400 1rem var(--sans);
	text-transform: none;
	letter-spacing: 0;
	border-radius: var(--radius-sm);
}
.form textarea { resize: vertical; }
.form fieldset {
	border: 1px solid var(--champagne);
	margin: 0;
	padding: 0.9rem;
	display: grid;
	gap: 0.5rem;
	border-radius: var(--radius);
}
.choice {
	display: flex !important;
	align-items: center;
	gap: 0.6rem;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1rem;
	color: var(--black);
	cursor: pointer;
}
.choice input { accent-color: var(--basil); }
.hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}
.form-msg { text-align: center; color: var(--basil); }
.form-msg.is-err { color: #8a3a3a; }
.form small { text-transform: none; letter-spacing: 0; color: var(--champagne); }

.story-section { padding-top: 3.2rem; }
.story-frame {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	padding: 2.6rem 2.1rem 2.2rem;
	background:
		linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(244, 237, 225, 0.88));
	border: 1px solid var(--gold);
	border-radius: var(--radius-lg);
	box-shadow:
		0 0 0 8px rgba(244, 237, 225, 0.85),
		0 0 0 9px rgba(212, 175, 55, 0.45),
		0 22px 50px rgba(84, 94, 53, 0.1);
}
.story-frame::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(201, 178, 143, 0.7);
	border-radius: calc(var(--radius-lg) - 8px);
	pointer-events: none;
}
.story-frame p {
	position: relative;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.28rem;
	line-height: 1.75;
	color: #3a342c;
	text-align: center;
	margin: 0 0 1.25rem;
}
.story-frame p:last-child { margin-bottom: 0; }

.music-bar {
	position: fixed;
	left: 50%;
	bottom: 1.1rem;
	transform: translateX(-50%);
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.45rem 0.55rem 0.45rem 0.45rem;
	background: rgba(250, 247, 242, 0.94);
	border: 1px solid var(--champagne);
	border-radius: var(--radius-pill);
	box-shadow: 0 12px 32px rgba(84, 94, 53, 0.12);
	backdrop-filter: blur(10px);
	max-width: calc(100% - 1.6rem);
}
.music-bar__btn {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(180deg, #f0d56a, #d4af37 50%, #b8962e);
	color: var(--black);
	font-size: 0.85rem;
	cursor: pointer;
	flex: none;
}
.music-bar__label {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--black);
	white-space: nowrap;
	padding-right: 0.55rem;
}
body:has(.music-bar) { padding-bottom: 4.8rem; }

.story-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	max-width: 1100px;
	margin: 0 auto;
}
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	max-width: 1100px;
	margin: 2rem auto 0;
}
.photo-grid--preview { grid-template-columns: repeat(4, 1fr); }
.photo-card {
	display: block;
	aspect-ratio: 3 / 4;
}
.photos-preview .kicker { text-align: center; }
.photo-group .kicker {
	text-align: center;
	margin-bottom: 0.4rem;
}
.photo-group .photo-grid { margin-top: 1.2rem; }
.photo-group + .photo-group { padding-top: 1rem; }

.reveal,
.reveal-stagger > * {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in,
.reveal-stagger.is-in > * {
	opacity: 1;
	transform: none;
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.41s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
	.reveal,
	.reveal-stagger > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.footer {
	text-align: center;
	padding: 3rem 1rem 4rem;
	border-top: 1px solid var(--champagne);
	background: var(--ivory);
}

@media (max-width: 860px) {
	.couple, .venue, .wish-grid, .story-gallery {
		grid-template-columns: 1fr;
	}
	.photo-grid--preview { grid-template-columns: 1fr 1fr; }
	.amp { padding: 0; }
	.ornament { width: 56px; height: 56px; }
	.site-nav { gap: 0.35rem 0.9rem; padding: 0.7rem 0.6rem; }
	.story-frame { padding: 1.6rem 1.15rem 1.4rem; }
	.story-frame p { font-size: 1.12rem; }
}
