/*
 * Theme nine — "Boho Line"
 * Warm linen, copper line-art, slate and sand organic shapes.
 * Every rule is scoped to .theme-nine (cover is teleported, so it carries the class too).
 */

.theme-nine {
	--th-bg: #faf6f1;
	--th-bg-deep: #f3ebe2;
	--th-bg-soft: #efe3d6;
	--th-gold: #b8805e;
	--th-gold-strong: #9a6748;
	--th-gold-line: rgba(63, 79, 95, 0.16);
	--th-ivory: #3f4f5f;
	--th-muted: #6b7682;
	--th-panel: rgba(255, 255, 255, 0.82);

	/* Reusable cards stay ivory on velvet; accent uses the rose ink */
	--inv-accent: #b8805e;
	--inv-accent-hover: #faf6f1;
	--inv-border: #eadfd3;
	--inv-border-strong: #dcc3b0;
	--inv-tint: #fbf3ea;
	--inv-surface: #ffffff;
	--inv-shadow: #3f4f5f;

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

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

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

.theme-nine .nine-italic {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
}

.theme-nine .nine-eyebrow {
	font-family: 'Outfit', 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-nine .text-secondary {
	color: var(--th-gold) !important;
}

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

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

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

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

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

.theme-nine .nine-band {
	background:
		url('images/paper.svg'),
		radial-gradient(90% 50% at 50% 0%, rgba(184, 128, 94, 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-nine .nine-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(63, 79, 95, 0.35);
}

.theme-nine .nine-panel::before {
	position: absolute;
	inset: 5px;
	border: 1px solid rgba(184, 128, 94, 0.16);
	content: '';
	pointer-events: none;
}

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

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

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

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

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

.theme-nine .nine-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('images/paper.svg'),
		radial-gradient(60% 40% at 50% 42%, rgba(184, 128, 94, 0.14), transparent 70%),
		linear-gradient(180deg, var(--th-bg-deep) 0%, var(--th-bg) 50%, var(--th-bg-deep) 100%);
}

.theme-nine .nine-hero::after {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: min(88%, 22rem);
	aspect-ratio: 1;
	border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
	background: rgba(207, 216, 224, 0.42);
	transform: translate(-50%, -52%) rotate(-8deg);
	content: '';
	pointer-events: none;
}

.theme-nine .nine-hero::before {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: min(70%, 17rem);
	aspect-ratio: 1;
	border: 1px solid rgba(184, 128, 94, 0.45);
	border-radius: 45% 55% 40% 60% / 55% 45% 58% 42%;
	transform: translate(-46%, -48%) rotate(12deg);
	content: '';
	pointer-events: none;
}

.theme-nine .nine-portal {

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

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

.theme-nine .nine-names {
	margin-top: 0.75rem;
	font-family: 'Instrument Serif', Georgia, serif;
	font-size: clamp(3.2rem, 15vw, 4rem);
	font-style: italic;
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.01em;
	color: var(--th-ivory);
	text-wrap: balance;
}

.theme-nine .nine-names .nine-amp {
	display: block;
	margin-block: 0.1rem;
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 0.42em;
	font-weight: 500;
	letter-spacing: 0.3em;
	color: var(--th-gold);
}

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

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

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

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

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

.theme-nine .nine-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, #cf9c7c 0%, var(--th-gold) 50%, var(--th-gold-strong) 100%);
	box-shadow:
		0 14px 30px -14px rgba(184, 128, 94, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
	color: var(--th-bg-deep);
	font-family: 'Outfit', 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-nine .nine-btn::before {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	content: '';
	animation: nine-ripple 2.6s ease-out infinite;
}

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

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

@keyframes nine-ripple {
	0% {
		box-shadow: 0 0 0 0 rgba(184, 128, 94, 0.4);
	}

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

.theme-nine .nine-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: 'Outfit', 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-nine .nine-btn-outline:hover {
	background: var(--th-gold);
	color: var(--th-bg-deep);
}

.theme-nine .nine-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-nine .nine-scroll-cue svg {
	animation: nine-bob 2.2s ease-in-out infinite;
}

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

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

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

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

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

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

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

/* Cover overlay — fixed, teleported to <body> */
.theme-nine.theme-nine-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-nine.theme-nine-cover .nine-hero {
	height: 100dvh;
}

.theme-nine.theme-nine-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-nine .nine-corner {
	position: absolute;
	z-index: 2;
	width: min(56%, 14rem);
	height: auto;
	pointer-events: none;
	opacity: 0;
	animation:
		nine-corner-in 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) var(--nine-delay, 0.4s) forwards,
		nine-sway 10s ease-in-out calc(var(--nine-delay, 0.4s) + 1.4s) infinite;
}

.theme-nine .nine-corner--tl {
	top: 0;
	left: 0;
	transform-origin: top left;
	--nine-from: -16px -16px;
}

.theme-nine .nine-corner--tr {
	top: 0;
	right: 0;
	width: min(24%, 6rem);
	transform-origin: top right;
	--nine-from: 16px -16px;
}

.theme-nine .nine-corner--bl {
	bottom: 0;
	left: 0;
	width: min(24%, 6rem);
	transform-origin: bottom left;
	--nine-from: -16px 16px;
	--nine-delay: 0.6s;
}

.theme-nine .nine-corner--br {
	right: 0;
	bottom: 0;
	transform-origin: bottom right;
	--nine-from: 16px 16px;
	--nine-delay: 0.6s;
}

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

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

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

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

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

.theme-nine .nine-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, #e3c2ab, #b8805e);
	opacity: 0;
	animation: nine-fall var(--dust-duration) linear var(--dust-delay) infinite;
}

@keyframes nine-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-nine .information-content .caption-notes {
	font-family: 'Outfit', system-ui, sans-serif;
	font-size: 1.6rem;
	letter-spacing: 0.06em;
	color: var(--th-ivory);
}

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

/* ---------- Profile — arch window ---------- */

.theme-nine .nine-arch {
	position: relative;
	width: 12.5rem;
	aspect-ratio: 3 / 4;
	margin: 0 auto 1.75rem;
}

.theme-nine .nine-arch::before {
	position: absolute;
	right: -1.75rem;
	bottom: -1rem;
	width: 8rem;
	aspect-ratio: 1;
	border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
	background: #efe3d6;
	content: '';
}

.theme-nine .nine-arch--alt::before {
	right: auto;
	left: -1.75rem;
	background: rgba(207, 216, 224, 0.7);
}

.theme-nine .nine-arch::after {
	position: absolute;
	inset: -0.6rem;
	border: 1px solid rgba(184, 128, 94, 0.55);
	border-radius: 999px 999px 1rem 1rem;
	content: '';
	pointer-events: none;
}

.theme-nine .nine-arch__photo {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 999px 999px 0.75rem 0.75rem;
	background: #efe3d6;
}

.theme-nine .nine-arch__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.theme-nine .nine-couple-amp {
	margin-block: 1.25rem;
	font-family: 'Instrument Serif', Georgia, serif;
	font-size: 3.75rem;
	font-style: italic;
	line-height: 1;
	color: var(--th-gold);
}

/* ---------- Agenda — linen cards on a slate band ---------- */

.theme-nine .nine-ink {
	--th-ivory: #faf6f1;
	--th-muted: #cfd8e0;
	--th-gold: #e6c6ae;
	--th-gold-line: rgba(230, 198, 174, 0.4);
	--th-bg-deep: #3f4f5f;

	color: #faf6f1;
	background:
		url('images/paper.svg'),
		radial-gradient(80% 40% at 50% 0%, rgba(230, 198, 174, 0.14), transparent 70%),
		#3f4f5f;
}

.theme-nine .nine-event {
	--th-ivory: #3f4f5f;
	--th-muted: #6b7682;
	--th-gold: #b8805e;
	--th-gold-line: rgba(63, 79, 95, 0.18);
	--th-bg-deep: #faf6f1;

	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 2.75rem 1.5rem 2.5rem;
	border-radius: 999px 999px 1.25rem 1.25rem;
	color: #3f4f5f;
	background: #faf6f1;
	box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.55);
}

.theme-nine .nine-event::before {
	position: absolute;
	right: -2.5rem;
	bottom: -2.5rem;
	z-index: -1;
	width: 9rem;
	aspect-ratio: 1;
	border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
	background: #efe3d6;
	content: '';
}

.theme-nine .nine-event::after {
	position: absolute;
	top: 3rem;
	left: -2rem;
	z-index: -1;
	width: 5rem;
	aspect-ratio: 1;
	border-radius: 45% 55% 40% 60% / 55% 45% 58% 42%;
	background: rgba(207, 216, 224, 0.55);
	content: '';
}

.theme-nine .nine-event__title {
	font-size: 2.1rem;
	font-style: italic;
	line-height: 1.1;
	letter-spacing: 0;
	color: #3f4f5f;
}

/* ---------- Countdown — slate arches ---------- */

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

.theme-nine .nine-countbar > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.4rem 0.25rem 0.85rem;
	border-radius: 999px 999px 0.6rem 0.6rem;
	background: #3f4f5f;
}

.theme-nine .nine-countbar > div:nth-child(even) {
	background: #b8805e;
}

.theme-nine .nine-count__value {
	font-family: 'Instrument Serif', Georgia, serif;
	font-size: 2.1rem;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: #faf6f1;
}

.theme-nine .nine-count__label {
	margin-top: 0.45rem;
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(250, 246, 241, 0.8);
}

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

.theme-nine .nine-photo {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 1rem;
	background: var(--th-bg-soft);
	box-shadow: 0 18px 30px -22px rgba(63, 79, 95, 0.6);
}

.theme-nine .nine-photo::after {
	position: absolute;
	inset: 0;
	border: 0 solid transparent;
	box-shadow: inset 0 0 0 1px rgba(63, 79, 95, 0.06);
	content: '';
	pointer-events: none;
}

.theme-nine .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-nine .videoWrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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