/*
 * Theme five — "Ink Botanical"
 * Cotton paper, navy ink botanicals, a blush of pink.
 * Every rule is scoped to .theme-five (cover is teleported, so it carries the class too).
 */

.theme-five {
	--th-bg: #fdfbf8;
	--th-bg-deep: #f6f1ec;
	--th-bg-soft: #f3e6ea;
	--th-gold: #b4466b;
	--th-gold-strong: #9c3a5b;
	--th-gold-line: rgba(31, 42, 77, 0.16);
	--th-ivory: #1f2a4d;
	--th-muted: #5d6478;
	--th-panel: rgba(255, 255, 255, 0.82);

	/* Reusable cards stay ivory on velvet; accent uses the blush ink */
	--inv-accent: #b4466b;
	--inv-accent-hover: #fdfbf8;
	--inv-border: #f2dfe5;
	--inv-border-strong: #e7bfcd;
	--inv-tint: #fbf0f3;
	--inv-surface: #ffffff;
	--inv-shadow: #1f2a4d;

	width: 100%;
	color: var(--th-ivory);
	font-family: 'Figtree', system-ui, sans-serif;
	font-size: 0.95rem;
	line-height: 1.8;
	background-color: var(--th-bg);
	background-image: url('image/paper.svg');
	-webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

.theme-five h1,
.theme-five h2,
.theme-five h3,
.theme-five .caption,
.theme-five .five-display {
	font-family: 'Gilda Display', Georgia, serif;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.theme-five .five-italic {
	font-family: 'Pinyon Script', cursive;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
}

.theme-five .five-eyebrow {
	font-family: 'Figtree', system-ui, sans-serif;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.34em;
	line-height: 1.7;
	text-transform: uppercase;
	color: var(--th-gold);
}

.theme-five .text-secondary {
	color: var(--th-gold) !important;
}

.theme-five .five-muted {
	color: var(--th-muted);
}

.theme-five .five-gold {
	color: var(--th-gold);
}

/* ---------- Layout ---------- */

.theme-five .container {
	max-width: 30rem !important;
	margin-inline: auto;
	padding-inline: 1.5rem;
	text-align: center;
}

.theme-five .five-section {
	position: relative;
	padding-block: 4.5rem;
}

.theme-five .five-band {
	background:
		url('image/paper.svg'),
		radial-gradient(90% 50% at 50% 0%, rgba(214, 104, 141, 0.08), transparent 70%),
		linear-gradient(180deg, var(--th-bg) 0%, var(--th-bg-deep) 15%, var(--th-bg-deep) 85%, var(--th-bg) 100%);
}

.theme-five .five-panel {
	position: relative;
	border: 1px solid var(--th-gold-line);
	border-radius: 0.25rem;
	background: var(--th-panel);
	box-shadow: 0 24px 48px -32px rgba(31, 42, 77, 0.35);
}

.theme-five .five-panel::before {
	position: absolute;
	inset: 5px;
	border: 1px solid rgba(214, 104, 141, 0.16);
	content: '';
	pointer-events: none;
}

/* ---------- Section heading ---------- */

.theme-five .five-heading {
	margin-bottom: 2.25rem;
	text-align: center;
}

.theme-five .five-heading__title {
	margin-top: 0.4rem;
	font-size: 1.75rem;
	color: var(--th-ivory);
}

.theme-five .five-heading__rule {
	display: block;
	width: 10rem;
	height: auto;
	margin: 0.9rem auto 0;
}

/* ---------- Hero & cover ---------- */

.theme-five .five-hero {
	position: relative;
	display: flex;
	min-height: 100dvh;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 5.5rem 1.75rem 6rem;
	text-align: center;
	background:
		url('image/paper.svg'),
		radial-gradient(60% 40% at 50% 42%, rgba(214, 104, 141, 0.14), transparent 70%),
		linear-gradient(180deg, var(--th-bg-deep) 0%, var(--th-bg) 50%, var(--th-bg-deep) 100%);
}

.theme-five .five-portal {
	position: relative;
	z-index: 3;
	display: flex;
	width: 100%;
	max-width: 20rem;
	flex-direction: column;
	align-items: center;
	padding: 1rem 0.5rem;
}

.theme-five .five-ornament {
	width: 9.5rem;
	height: auto;
	opacity: 0.85;
}

.theme-five .five-names {
	margin-top: 0.75rem;
	font-family: 'Pinyon Script', cursive;
	font-size: clamp(3.1rem, 15vw, 3.8rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	color: var(--th-ivory);
	text-wrap: balance;
}

.theme-five .five-names .five-amp {
	display: block;
	margin-block: -0.2rem 0;
	font-size: 0.75em;
	color: var(--th-gold);
}

.theme-five .five-date {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.35rem;
	font-family: 'Figtree', system-ui, sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--th-gold);
}

.theme-five .five-date i {
	width: 1px;
	height: 1.1rem;
	background: var(--th-gold-line);
}

.theme-five .five-guest {
	width: 100%;
	margin-top: 1.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--th-gold-line);
}

.theme-five .five-guest__name {
	margin-top: 0.25rem;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--th-ivory);
}

.theme-five .five-guest__address {
	font-size: 0.85rem;
	font-style: italic;
	color: var(--th-muted);
}

.theme-five .five-btn {
	position: relative;
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 1.5rem;
	padding: 0.75rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #d6688d 0%, var(--th-gold) 50%, var(--th-gold-strong) 100%);
	box-shadow:
		0 14px 30px -14px rgba(214, 104, 141, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
	color: var(--th-bg-deep);
	font-family: 'Figtree', system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.25s ease;
}

.theme-five .five-btn::before {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	content: '';
	animation: five-ripple 2.6s ease-out infinite;
}

.theme-five .five-btn:hover {
	transform: translateY(-2px);
}

.theme-five .five-btn:focus-visible {
	outline: 2px solid var(--th-gold);
	outline-offset: 4px;
}

@keyframes five-ripple {
	0% {
		box-shadow: 0 0 0 0 rgba(214, 104, 141, 0.4);
	}

	70%,
	100% {
		box-shadow: 0 0 0 16px rgba(214, 104, 141, 0);
	}
}

.theme-five .five-btn-outline {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: 0.5rem;
	padding-inline: 1.25rem;
	border: 1px solid var(--th-gold-line);
	border-radius: 999px;
	color: var(--th-gold);
	font-family: 'Figtree', system-ui, sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition:
		background 0.25s ease,
		color 0.25s ease;
}

.theme-five .five-btn-outline:hover {
	background: var(--th-gold);
	color: var(--th-bg-deep);
}

.theme-five .five-scroll-cue {
	position: absolute;
	bottom: calc(6.25rem + env(safe-area-inset-bottom));
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--th-gold);
	transform: translateX(-50%);
}

.theme-five .five-scroll-cue svg {
	animation: five-bob 2.2s ease-in-out infinite;
}

@keyframes five-bob {
	50% {
		translate: 0 5px;
	}
}

@media (max-height: 760px) {
	.theme-five .five-hero {
		padding-block: 4rem;
	}

	.theme-five .five-portal {
		padding-block: 2.25rem 1.6rem;
	}

	.theme-five .five-crest {
		width: 3.5rem;
	}

	.theme-five .five-names {
		margin-top: 0.75rem;
		font-size: clamp(1.9rem, 9vw, 2.25rem);
	}

	.theme-five .five-date,
	.theme-five .five-guest,
	.theme-five .five-btn {
		margin-top: 1rem;
	}

	.theme-five .five-corner {
		width: min(40%, 9rem);
	}
}

/* Cover overlay — fixed, teleported to <body> */
.theme-five.theme-five-cover {
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 99999;
	width: 100%;
	max-width: 430px;
	height: 100dvh;
	overflow: hidden;
	background: var(--th-bg);
	transform: translateX(-50%) translateY(0);
	transition:
		transform 1s cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s linear 0s;
}

.theme-five.theme-five-cover .five-hero {
	height: 100dvh;
}

.theme-five.theme-five-cover.is-open {
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(-100%);
	transition:
		transform 1s cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s linear 1s;
}

/* ---------- Line-art botanicals (Florals.vue) ---------- */

.theme-five .five-corner {
	position: absolute;
	z-index: 2;
	width: min(52%, 13rem);
	height: auto;
	pointer-events: none;
	opacity: 0;
	animation:
		five-corner-in 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) var(--five-delay, 0.4s) forwards,
		five-sway 10s ease-in-out calc(var(--five-delay, 0.4s) + 1.4s) infinite;
}

.theme-five .five-corner--tl {
	top: -1rem;
	left: -1.5rem;
	transform-origin: top left;
	--five-from: -16px -16px;
}

.theme-five .five-corner--tr {
	top: -1rem;
	right: -1.5rem;
	width: min(40%, 10rem);
	transform-origin: top right;
	--five-from: 16px -16px;
}

.theme-five .five-corner--bl {
	bottom: -1rem;
	left: -1.5rem;
	width: min(40%, 10rem);
	transform-origin: bottom left;
	--five-from: -16px 16px;
	--five-delay: 0.6s;
}

.theme-five .five-corner--br {
	right: -1.5rem;
	bottom: -1rem;
	transform-origin: bottom right;
	--five-from: 16px 16px;
	--five-delay: 0.6s;
}

@keyframes five-corner-in {
	from {
		opacity: 0;
		translate: var(--five-from);
	}

	to {
		opacity: 0.9;
		translate: 0 0;
	}
}

@keyframes five-sway {
	50% {
		transform: rotate(1.5deg);
	}
}

/* ---------- Drifting petals (Petals.vue) ---------- */

.theme-five .five-dust {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.theme-five .five-dust span {
	position: absolute;
	top: -6%;
	left: var(--dust-x);
	width: calc(var(--dust-size) * 2.2);
	height: calc(var(--dust-size) * 1.6);
	border-radius: 80% 0 80% 0;
	background: linear-gradient(135deg, #f7c6d4, #e58ea9);
	opacity: 0;
	animation: five-fall var(--dust-duration) linear var(--dust-delay) infinite;
}

@keyframes five-fall {
	0% {
		opacity: 0;
		transform: translate(0, 0) rotate(0deg);
	}

	12%,
	80% {
		opacity: var(--dust-opacity);
	}

	100% {
		opacity: 0;
		transform: translate(var(--dust-drift), 105dvh) rotate(320deg);
	}
}

/* ---------- Information ---------- */

.theme-five .information-content .caption-notes {
	font-family: 'Figtree', system-ui, sans-serif;
	font-size: 1.6rem;
	letter-spacing: 0.06em;
	color: var(--th-ivory);
}

.theme-five .information-content .content-notes {
	color: var(--th-muted);
	line-height: 1.85;
}

/* ---------- Profile — polaroid ---------- */

.theme-five .five-polaroid {
	position: relative;
	width: 13.5rem;
	margin: 0 auto 1.75rem;
	padding: 0.65rem 0.65rem 2.6rem;
	background: #fff;
	box-shadow: 0 22px 40px -24px rgba(31, 42, 77, 0.45);
	rotate: -3deg;
}

.theme-five .five-polaroid--alt {
	rotate: 3deg;
}

.theme-five .five-polaroid img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.theme-five .five-polaroid::before {
	position: absolute;
	top: -0.7rem;
	left: 50%;
	width: 4.5rem;
	height: 1.4rem;
	background: rgba(229, 142, 169, 0.45);
	content: '';
	transform: translateX(-50%) rotate(-4deg);
}

.theme-five .five-polaroid__caption {
	position: absolute;
	right: 0;
	bottom: 0.55rem;
	left: 0;
	font-family: 'Pinyon Script', cursive;
	font-size: 1.35rem;
	color: var(--th-gold);
}

.theme-five .five-couple-amp {
	margin-block: 1.25rem;
	font-family: 'Pinyon Script', cursive;
	font-size: 3.75rem;
	line-height: 1;
	color: var(--th-gold);
}

/* ---------- Agenda — navy ink band ---------- */

.theme-five .five-ink {
	--th-ivory: #fdfbf8;
	--th-muted: #c3c8d8;
	--th-gold: #f2a7bf;
	--th-gold-line: rgba(242, 167, 191, 0.4);
	--th-bg-deep: #1f2a4d;

	color: #fdfbf8;
	background:
		url('image/paper.svg'),
		radial-gradient(80% 40% at 50% 0%, rgba(242, 167, 191, 0.14), transparent 70%),
		#1f2a4d;
}

.theme-five .five-event {
	position: relative;
	padding: 2rem 1.5rem;
	border: 1px solid rgba(253, 251, 248, 0.18);
	border-radius: 999px 999px 1rem 1rem;
	background: rgba(253, 251, 248, 0.04);
}

.theme-five .five-event__title {
	font-family: 'Pinyon Script', cursive;
	font-size: 2.6rem;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--th-ivory);
}

/* ---------- Countdown ---------- */

.theme-five .five-countbar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.5rem;
}

.theme-five .five-countbar > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem 0.25rem 0.85rem;
	border: 1px solid #f2dfe5;
	border-radius: 999px 999px 1rem 1rem;
	background: #fff;
	box-shadow: 0 14px 26px -22px rgba(31, 42, 77, 0.45);
}

.theme-five .five-count__value {
	font-family: 'Gilda Display', Georgia, serif;
	font-size: 1.85rem;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--th-gold);
}

.theme-five .five-count__label {
	margin-top: 0.45rem;
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--th-muted);
}

/* ---------- Gallery & video ---------- */

.theme-five .five-photo {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 0.2rem;
	background: var(--th-bg-soft);
	box-shadow: 0 14px 28px -20px rgba(31, 42, 77, 0.45);
}

.theme-five .five-photo::after {
	position: absolute;
	inset: 0;
	border: 6px solid #fff;
	box-shadow: inset 0 0 0 1px rgba(31, 42, 77, 0.06);
	content: '';
	pointer-events: none;
}

.theme-five .videoWrapper {
	position: relative;
	height: 0;
	margin-bottom: 1rem;
	padding-bottom: 56.25%;
	overflow: hidden;
	border: 1px solid var(--th-gold-line);
	border-radius: 0.25rem;
}

.theme-five .videoWrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ---------- Closing ---------- */

.theme-five .five-closing {
	position: relative;
	overflow: hidden;
	padding: 4rem 1.75rem 9rem;
	text-align: center;
	background:
		url('image/paper.svg'),
		radial-gradient(70% 45% at 50% 40%, rgba(214, 104, 141, 0.12), transparent 70%),
		var(--th-bg-deep);
}

.theme-five .five-closing .five-corner {
	opacity: 0.85;
	animation: none;
}

.theme-five footer {
	background: url('image/paper.svg'), var(--th-bg-deep);
	color: var(--th-muted);
}

/* ---------- Scroll reveal ---------- */

.theme-five .aos-init {
	opacity: 0 !important;
	pointer-events: none;
}

.theme-five .aos-init[data-aos='fade-up'] {
	transform: translate3d(0, 2rem, 0);
}

.theme-five .aos-init[data-aos='zoom-in'] {
	transform: scale3d(0.92, 0.92, 0.92);
}

@media (prefers-reduced-motion: reduce) {
	.theme-five .aos-init {
		opacity: 1 !important;
		pointer-events: auto;
		transform: none !important;
	}

	.theme-five .five-corner {
		opacity: 0.9;
		animation: none;
	}

	.theme-five .five-dust {
		display: none;
	}

	.theme-five .five-btn::before,
	.theme-five .five-scroll-cue svg {
		animation: none;
	}

	.theme-five.theme-five-cover,
	.theme-five.theme-five-cover.is-open {
		transition: none;
	}
}
