/*
 * Theme two — "Rose Watercolor"
 * Linen stationery, watercolor garden roses, eucalyptus ink, script names.
 * Every rule is scoped to .theme-two (cover is teleported, so it carries the class too).
 */

.theme-two {
	--two-linen: #fbfaf7;
	--two-linen-deep: #f2f4ef;
	--two-blush: #f9eff0;
	--two-rose: #eeb3bb;
	--two-rose-ink: #a8435a;
	--two-euca: #3e6b5e;
	--two-euca-strong: #2f5348;
	--two-sage: #8fa89c;
	--two-sage-soft: #c9d8cf;
	--two-ink: #2f3a36;
	--two-muted: #66706b;
	--two-line: rgba(62, 107, 94, 0.22);
	--two-paper: rgba(255, 255, 255, 0.82);
	--two-shadow: 0 20px 40px -28px rgba(47, 83, 72, 0.45);

	/* Tokens consumed by reusable invitation components (Gift, Guestbook, QR) */
	--inv-accent: var(--two-euca);
	--inv-accent-hover: var(--two-euca-strong);
	--inv-border: #dfe8e3;
	--inv-border-strong: #c5d6cd;
	--inv-tint: #eef4f0;
	--inv-surface: #fffefc;
	--inv-shadow: #2f5348;

	width: 100%;
	color: var(--two-ink);
	font-family: 'Lora', Georgia, serif;
	font-size: 0.95rem;
	line-height: 1.75;
	background-color: var(--two-linen);
	background-image: url('image/linen.svg');
	-webkit-font-smoothing: antialiased;
}

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

.theme-two h1,
.theme-two h2,
.theme-two .caption,
.theme-two .two-script {
	font-family: 'Alex Brush', 'Brush Script MT', cursive;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0;
}

.theme-two h3,
.theme-two .two-serif {
	font-family: 'Lora', Georgia, serif;
	font-weight: 500;
	line-height: 1.3;
}

.theme-two .two-eyebrow {
	font-family: 'Lora', Georgia, serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--two-rose-ink);
}

.theme-two .two-eyebrow--euca {
	color: var(--two-euca);
}

.theme-two .text-secondary {
	color: var(--two-euca) !important;
}

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

.theme-two a {
	text-underline-offset: 3px;
}

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

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

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

.theme-two .two-band {
	position: relative;
	background:
		url('image/wash-sage.svg') -55% 2% / 95% auto no-repeat,
		url('image/wash-rose.svg') 165% 100% / 95% auto no-repeat,
		url('image/linen.svg'),
		linear-gradient(180deg, var(--two-linen) 0%, var(--two-linen-deep) 14%, var(--two-linen-deep) 86%, var(--two-linen) 100%);
}

/* Stationery frame: hairline double border in eucalyptus + rose */
.theme-two .two-frame {
	position: relative;
	border: 1px solid var(--two-line);
	border-radius: 0.5rem;
	background: var(--two-paper);
	box-shadow: var(--two-shadow);
}

.theme-two .two-frame::before {
	position: absolute;
	inset: 6px;
	border: 1px solid rgba(168, 67, 90, 0.2);
	border-radius: 0.3rem;
	content: '';
	pointer-events: none;
}

.theme-two .two-card {
	border: 1px solid var(--inv-border);
	border-radius: 1rem;
	background: var(--two-paper);
	box-shadow: var(--two-shadow);
}

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

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

.theme-two .two-heading__branch {
	display: block;
	width: 7.5rem;
	height: auto;
	margin: 0 auto 0.5rem;
}

.theme-two .two-heading__title {
	font-size: 3rem;
	color: var(--two-euca-strong);
}

.theme-two .two-heading .two-eyebrow {
	margin-top: 0.35rem;
}

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

.theme-two .two-hero {
	position: relative;
	display: flex;
	min-height: 100dvh;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 7rem 1.5rem 6rem;
	text-align: center;
	background:
		url('image/wash-rose.svg') 118% 14% / 78% auto no-repeat,
		url('image/wash-sage.svg') -22% 88% / 82% auto no-repeat,
		url('image/linen.svg'),
		var(--two-linen);
}

.theme-two .two-hero__card {
	position: relative;
	z-index: 3;
	display: flex;
	width: 100%;
	max-width: 20.5rem;
	flex-direction: column;
	align-items: center;
	padding: 2.75rem 1.5rem 2.25rem;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(3px);
}

.theme-two .two-hero__branch {
	width: 6.5rem;
	height: auto;
	margin-top: 0.85rem;
}

.theme-two .two-names {
	margin-top: 0.85rem;
	font-size: clamp(3.1rem, 15vw, 3.9rem);
	line-height: 1;
	color: var(--two-euca-strong);
	text-wrap: balance;
}

.theme-two .two-names .two-amp {
	display: block;
	margin-block: 0.05rem 0.1rem;
	font-size: 0.7em;
	line-height: 1;
	color: var(--two-rose-ink);
}

.theme-two .two-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	margin-top: 1.4rem;
}

.theme-two .two-date__day {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--two-muted);
}

.theme-two .two-date__numbers {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--two-ink);
	font-variant-numeric: lining-nums;
}

.theme-two .two-date__numbers i {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: var(--two-rose);
}

.theme-two .two-guest {
	width: 100%;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--two-line);
}

.theme-two .two-guest__name {
	margin-top: 0.3rem;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--two-ink);
}

.theme-two .two-guest__address {
	margin-top: 0.1rem;
	font-size: 0.8rem;
	font-style: italic;
	color: var(--two-muted);
}

.theme-two .two-open-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, #4a7b6d 0%, var(--two-euca) 55%, var(--two-euca-strong) 100%);
	box-shadow:
		0 14px 28px -14px rgba(47, 83, 72, 0.8),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: #fff;
	font-family: 'Lora', Georgia, serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

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

.theme-two .two-open-btn:hover {
	transform: translateY(-2px);
	box-shadow:
		0 18px 32px -14px rgba(47, 83, 72, 0.9),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.theme-two .two-open-btn:active {
	transform: translateY(0) scale(0.98);
}

.theme-two .two-open-btn:focus-visible {
	outline: 2px solid var(--two-euca);
	outline-offset: 4px;
}

@keyframes two-ripple {
	0% {
		box-shadow: 0 0 0 0 rgba(62, 107, 94, 0.38);
	}

	70%,
	100% {
		box-shadow: 0 0 0 16px rgba(62, 107, 94, 0);
	}
}

.theme-two .two-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;
	gap: 0.15rem;
	color: var(--two-muted);
	transform: translateX(-50%);
}

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

@keyframes two-bob {
	0%,
	100% {
		translate: 0 0;
	}

	50% {
		translate: 0 5px;
	}
}

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

	.theme-two .two-hero__card {
		padding-block: 2rem 1.6rem;
	}

	.theme-two .two-names {
		margin-top: 0.5rem;
		font-size: clamp(2.7rem, 13vw, 3.3rem);
	}

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

	.theme-two .two-guest {
		padding-top: 0.9rem;
	}

	.theme-two .two-floral {
		width: min(40%, 12rem);
	}
}

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

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

.theme-two.theme-two-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;
}

.theme-two.theme-two-cover.is-closed {
	pointer-events: auto;
}

/* ---------- Diagonal florals (FloralFrame.vue) ---------- */

.theme-two .two-floral {
	position: absolute;
	z-index: 2;
	width: min(56%, 15.5rem);
	height: auto;
	pointer-events: none;
	user-select: none;
	opacity: 0;
	filter: drop-shadow(0 10px 18px rgba(47, 83, 72, 0.12));
	animation:
		two-floral-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) var(--two-floral-delay, 0.3s) forwards,
		two-floral-breathe var(--two-breathe, 7s) ease-in-out calc(var(--two-floral-delay, 0.3s) + 1.2s) infinite;
}

.theme-two .two-floral--tl {
	top: -1.5rem;
	left: -2.25rem;
	--two-from: -24% -24%;
	transform-origin: top left;
}

.theme-two .two-floral--br {
	right: -2.5rem;
	bottom: -3rem;
	--two-from: 24% 24%;
	--two-breathe: 7.8s;
	transform-origin: bottom right;
}

.theme-two .two-floral-frame--slow .two-floral {
	--two-floral-delay: 0.6s;
}

.theme-two .two-floral-frame--slow .two-floral--br {
	--two-floral-delay: 0.9s;
}

.theme-two .two-floral-frame--fast .two-floral--br {
	--two-floral-delay: 0.5s;
}

@keyframes two-floral-in {
	from {
		opacity: 0;
		translate: var(--two-from);
	}

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

@keyframes two-floral-breathe {
	0%,
	100% {
		rotate: 0deg;
		scale: 1;
	}

	50% {
		rotate: 1.2deg;
		scale: 1.025;
	}
}

/* ---------- Drifting leaves & petals (Leaves.vue) ---------- */

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

.theme-two .two-leaf {
	position: absolute;
	top: -6%;
	left: var(--leaf-x);
	width: var(--leaf-size);
	height: calc(var(--leaf-size) * 0.62);
	border-radius: 100% 0 100% 0;
	background: linear-gradient(135deg, #cfe0d6 0%, #93b2a2 60%, #6f8f82 100%);
	opacity: var(--leaf-opacity);
	animation:
		two-leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite,
		two-leaf-spin calc(var(--leaf-duration) / 3) ease-in-out var(--leaf-delay) infinite alternate;
	will-change: translate, rotate;
}

.theme-two .two-leaf--petal {
	height: calc(var(--leaf-size) * 0.72);
	border-radius: 80% 10% 80% 10%;
	background: linear-gradient(135deg, #fbe3e6 0%, var(--two-rose) 70%, #dc8f9b 100%);
}

@keyframes two-leaf-fall {
	from {
		translate: 0 -5dvh;
	}

	to {
		translate: var(--leaf-drift) 110dvh;
	}
}

@keyframes two-leaf-spin {
	from {
		rotate: -30deg;
	}

	to {
		rotate: 150deg;
	}
}

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

.theme-two .information-content .caption-notes {
	font-family: 'Alex Brush', cursive;
	font-size: 2.75rem;
	color: var(--two-euca-strong);
}

.theme-two .information-content .content-notes {
	color: var(--two-muted);
	font-size: 0.95rem;
	line-height: 1.9;
}

/* ---------- Profile ---------- */

.theme-two .two-portrait {
	position: relative;
	width: 13rem;
	aspect-ratio: 1;
	margin: 0 auto 2.25rem;
}

.theme-two .two-portrait::before {
	position: absolute;
	inset: -22%;
	content: '';
	background: url('image/wash-rose.svg') center / contain no-repeat;
}

.theme-two .two-portrait--alt::before {
	background-image: url('image/wash-sage.svg');
}

.theme-two .two-portrait__photo {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 6px solid #fff;
	border-radius: 999px;
	background: var(--two-sage-soft);
	box-shadow:
		0 0 0 1px var(--two-line),
		var(--two-shadow);
}

.theme-two .two-portrait__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.theme-two .two-portrait__bouquet {
	position: absolute;
	right: -2.75rem;
	bottom: -1.25rem;
	width: 9rem;
	height: auto;
	rotate: -8deg;
	filter: drop-shadow(0 8px 14px rgba(47, 83, 72, 0.14));
}

.theme-two .two-portrait--alt .two-portrait__bouquet {
	right: auto;
	left: -2.75rem;
	rotate: 8deg;
	scale: -1 1;
}

.theme-two .two-couple-amp {
	margin-block: 1.75rem 1.5rem;
	font-size: 4.5rem;
	line-height: 1;
	color: var(--two-rose-ink);
}

/* ---------- Agenda ticket ---------- */

.theme-two .two-ticket {
	position: relative;
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	overflow: hidden;
	border: 1px solid var(--inv-border);
	border-radius: 1rem;
	background: var(--two-paper);
	box-shadow: var(--two-shadow);
	text-align: left;
}

.theme-two .two-ticket__date {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	padding: 1.25rem 0.4rem;
	color: #fff;
	text-align: center;
	background:
		radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.16), transparent 65%),
		linear-gradient(180deg, var(--two-euca) 0%, var(--two-euca-strong) 100%);
}

/* Perforation notches between stub and body */
.theme-two .two-ticket__date::before,
.theme-two .two-ticket__date::after {
	position: absolute;
	right: -0.6rem;
	z-index: 1;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 999px;
	content: '';
	background: var(--two-linen-deep);
}

.theme-two .two-ticket__date::before {
	top: -0.6rem;
	box-shadow: inset 0 -1px 0 var(--inv-border);
}

.theme-two .two-ticket__date::after {
	bottom: -0.6rem;
	box-shadow: inset 0 1px 0 var(--inv-border);
}

.theme-two .two-ticket__day,
.theme-two .two-ticket__month {
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	opacity: 0.88;
}

.theme-two .two-ticket__number {
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 1;
	font-variant-numeric: lining-nums;
}

.theme-two .two-ticket__body {
	padding: 1.4rem 1.25rem 1.3rem;
	border-left: 1.5px dashed var(--two-sage-soft);
}

.theme-two .two-ticket__title {
	font-family: 'Alex Brush', cursive;
	font-size: 2.1rem;
	font-weight: 400;
	line-height: 1.05;
	color: var(--two-euca-strong);
}

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

.theme-two .two-count {
	position: relative;
	display: flex;
	aspect-ratio: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--two-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 12px 24px -18px rgba(47, 83, 72, 0.55);
}

.theme-two .two-count::before {
	position: absolute;
	inset: 4px;
	border: 1px dashed rgba(168, 67, 90, 0.28);
	border-radius: inherit;
	content: '';
	animation: two-spin 40s linear infinite;
}

@keyframes two-spin {
	to {
		rotate: 360deg;
	}
}

.theme-two .two-count__value {
	font-size: 1.6rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1;
	color: var(--two-euca-strong);
}

.theme-two .two-count__label {
	margin-top: 0.3rem;
	font-size: 0.55rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--two-muted);
}

/* ---------- Gallery ---------- */

.theme-two .two-print {
	display: block;
	width: 100%;
	margin-bottom: 0.65rem;
	padding: 0.35rem;
	border-radius: 0.35rem;
	background: #fff;
	box-shadow: 0 14px 28px -22px rgba(47, 83, 72, 0.7);
	break-inside: avoid;
}

/* ---------- Video ---------- */

.theme-two .videoWrapper {
	position: relative;
	height: 0;
	margin-bottom: 1rem;
	padding-bottom: 56.25%;
	overflow: hidden;
	border: 6px solid #fff;
	border-radius: 0.6rem;
	box-shadow: var(--two-shadow);
}

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

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

.theme-two .two-closing {
	position: relative;
	overflow: hidden;
	padding: 2.5rem 1.75rem 0;
	text-align: center;
	background:
		url('image/linen.svg'),
		linear-gradient(180deg, var(--two-linen) 0%, var(--two-linen) 45%, var(--two-blush) 100%);
}

.theme-two .two-closing__names {
	margin-top: 1.25rem;
	font-size: 2.75rem;
	color: var(--two-euca-strong);
}

.theme-two .two-closing__bed {
	display: block;
	width: min(100%, 26rem);
	height: auto;
	margin: 2.5rem auto 0;
	mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.theme-two footer {
	background: url('image/linen.svg'), var(--two-blush);
	color: var(--two-muted);
}

/* ---------- Scroll reveal (useScrollReveal) ---------- */

.theme-two .aos-init {
	opacity: 0 !important;
	pointer-events: none;
	will-change: opacity, transform;
}

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

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

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

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

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

/* ---------- Reduced motion ---------- */

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

	.theme-two .two-floral {
		opacity: 1;
		animation: none;
	}

	.theme-two .two-leaves {
		display: none;
	}

	.theme-two .two-open-btn::before,
	.theme-two .two-scroll-cue svg,
	.theme-two .two-count::before {
		animation: none;
	}

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