/**
 * Creamy Mami — photo-first cream & peach romance, Mr De Haviland script, soft peach waves.
 * Every rule is scoped to .theme-creamymami (cover is teleported, so it carries the class too).
 */

.theme-creamymami {
	--cm-paper: #fdf6f6;
	--cm-peach: #ffebdf;
	--cm-peach-deep: #f8d7c2;
	--cm-peach-soft: #fff1ea;
	--cm-blush: #ffe1d8;
	--cm-pink: #eb7b8b;
	--cm-pink-hover: #d9697a;
	--cm-pink-deep: #c9566a;
	--cm-ink: #333333;
	--cm-muted: #7a6a6a;
	--cm-line: #f3d9d0;
	--inv-accent: #eb7b8b;
	--inv-accent-hover: #d9697a;
	--inv-border: #f3d9d0;
	--inv-border-strong: #f8b8c1;
	--inv-surface: #ffffff;
	--inv-paper: #fffaf8;
	--inv-tint: #ffebdf;
	--inv-shadow: #eb7b8b;
	color: var(--cm-ink);
	font-family: 'Noto Sans Display', system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	background: var(--cm-paper);
}

.theme-creamymami h1,
.theme-creamymami h2,
.theme-creamymami h3,
.theme-creamymami .caption,
.theme-creamymami .cm-display,
.theme-creamymami .cm-script,
.theme-creamymami .cm-names {
	font-family: 'Mr De Haviland', cursive;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 0.9;
	color: var(--cm-ink);
}

.theme-creamymami .cm-serif {
	font-family: 'Noto Sans Display', system-ui, sans-serif;
	font-weight: 600;
	color: var(--cm-ink);
}

.theme-creamymami .cm-eyebrow {
	font-family: 'Noto Sans Display', system-ui, sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--cm-pink-deep);
}

.theme-creamymami .cm-eyebrow--light {
	color: rgb(255 255 255 / 0.85);
}

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

.theme-creamymami .container {
	width: 100%;
	max-width: 26rem;
	margin-inline: auto;
	padding-inline: 1.25rem;
	text-align: center;
}

.theme-creamymami .cm-section {
	position: relative;
	padding: 4.5rem 0;
	background: var(--cm-paper);
}

.theme-creamymami .cm-section--tight {
	padding-block: 2.5rem;
}

.theme-creamymami .cm-section--peach {
	background: var(--cm-peach-soft);
}

.theme-creamymami .cm-intro {
	padding-top: 3.5rem;
}

.theme-creamymami .cm-intro__crest {
	display: block;
	width: auto;
	height: 2.5rem;
	margin: 0 auto 1.25rem;
}

/* ---------- Headings ---------- */

.theme-creamymami .cm-heading {
	margin-bottom: 1.75rem;
	text-align: center;
}

.theme-creamymami .cm-heading__flower {
	display: block;
	width: auto;
	height: 2.5rem;
	margin: 0 auto 0.75rem;
}

.theme-creamymami .cm-heading__title {
	margin-top: 0.5rem;
	font-size: 3.4rem;
}

.theme-creamymami .cm-heading--dark .cm-eyebrow {
	color: rgb(255 255 255 / 0.85);
}

.theme-creamymami .cm-heading--dark .cm-heading__title {
	color: #fff;
	text-shadow: 0 4px 18px rgb(0 0 0 / 0.35);
}

/* ---------- Hero ---------- */

.theme-creamymami .cm-hero {
	position: relative;
	display: flex;
	min-height: 100dvh;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	background: #f8d7c2;
	color: #fff;
	isolation: isolate;
}

.theme-creamymami .cm-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.28) 55%, rgb(0 0 0 / 0.45) 100%);
	pointer-events: none;
}

.theme-creamymami .cm-hero__body {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 4rem 1.5rem 8rem;
	text-align: center;
}

.theme-creamymami .cm-hero__body > * {
	animation: cm-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.theme-creamymami .cm-hero__body > :nth-child(1) {
	animation-delay: 0.15s;
}
.theme-creamymami .cm-hero__body > :nth-child(2) {
	animation-delay: 0.3s;
}
.theme-creamymami .cm-hero__body > :nth-child(3) {
	animation-delay: 0.45s;
}
.theme-creamymami .cm-hero__body > :nth-child(4) {
	animation-delay: 0.6s;
}
.theme-creamymami .cm-hero__body > :nth-child(5) {
	animation-delay: 0.75s;
}
.theme-creamymami .cm-hero__body > :nth-child(6) {
	animation-delay: 0.9s;
}

@keyframes cm-rise {
	from {
		opacity: 0;
		translate: 0 1.25rem;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}

.theme-creamymami .cm-hero__crest {
	width: auto;
	height: min(6.25rem, 24vw);
	margin-bottom: 1.5rem;
	filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.25));
}

.theme-creamymami .cm-hero__eyebrow {
	color: rgb(255 255 255 / 0.9);
	text-shadow: 0 2px 10px rgb(0 0 0 / 0.3);
}

.theme-creamymami .cm-names {
	margin-top: 1.25rem;
	max-width: 20rem;
	font-size: clamp(3.8rem, 17vw, 4.8rem);
	line-height: 0.85;
	color: #fff;
	text-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
}

.theme-creamymami .cm-hero__date {
	margin-top: 1.5rem;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.92);
	text-shadow: 0 2px 10px rgb(0 0 0 / 0.3);
}

.theme-creamymami .cm-guest {
	margin-top: 1.75rem;
	max-width: 16rem;
	padding: 0.9rem 1.1rem;
	border-radius: 0.75rem;
	background: rgb(0 0 0 / 0.4);
	backdrop-filter: blur(6px);
	font-size: 0.9rem;
}

.theme-creamymami .cm-guest .cm-eyebrow {
	color: rgb(255 255 255 / 0.75);
	font-style: italic;
	letter-spacing: 0.08em;
	text-transform: none;
}

.theme-creamymami .cm-guest__name {
	margin-top: 0.3rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
}

.theme-creamymami .cm-guest__address {
	margin-top: 0.25rem;
	font-size: 0.8rem;
	font-style: italic;
	color: rgb(255 255 255 / 0.8);
}

.theme-creamymami .cm-scroll-cue {
	position: absolute;
	bottom: 5.25rem;
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	translate: -50% 0;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.8);
	pointer-events: none;
}

.theme-creamymami .cm-scroll-cue svg {
	animation: cm-bob 1.8s ease-in-out infinite;
}

@keyframes cm-bob {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 5px;
	}
}

/* ---------- Waves ---------- */

.theme-creamymami .cm-wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	z-index: 4;
	display: block;
	width: 100%;
	height: 3.75rem;
	max-height: 3.75rem;
	pointer-events: none;
}

.theme-creamymami .cm-wave__parallax--1 > use {
	animation: cm-wave-1 10s linear infinite;
}
.theme-creamymami .cm-wave__parallax--2 > use {
	animation: cm-wave-2 8s linear infinite;
}
.theme-creamymami .cm-wave__parallax--3 > use {
	animation: cm-wave-3 6s linear infinite;
}
.theme-creamymami .cm-wave__parallax--4 > use {
	animation: cm-wave-4 4s linear infinite;
}

@keyframes cm-wave-1 {
	0% {
		transform: translate(85px, 0%);
	}
	100% {
		transform: translate(-90px, 0%);
	}
}
@keyframes cm-wave-2 {
	0% {
		transform: translate(-90px, 0%);
	}
	100% {
		transform: translate(85px, 0%);
	}
}
@keyframes cm-wave-3 {
	0% {
		transform: translate(85px, 0%);
	}
	100% {
		transform: translate(-90px, 0%);
	}
}
@keyframes cm-wave-4 {
	0% {
		transform: translate(-90px, 0%);
	}
	100% {
		transform: translate(85px, 0%);
	}
}

/* ---------- Buttons ---------- */

.theme-creamymami .cm-btn {
	position: relative;
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.75rem;
	padding: 0 1.6rem;
	border-radius: 0.5rem;
	background: var(--cm-pink);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	box-shadow: 0 14px 30px -16px rgb(235 123 139 / 0.9);
	transition:
		translate 0.3s ease,
		background 0.3s ease;
	animation: cm-pulse 2.4s ease-in-out infinite;
}

.theme-creamymami .cm-btn:hover {
	translate: 0 -2px;
	background: var(--cm-pink-hover);
}

@keyframes cm-pulse {
	0%,
	100% {
		scale: 1;
	}
	50% {
		scale: 1.04;
	}
}

.theme-creamymami .cm-btn-outline,
.theme-creamymami .cm-btn-ghost {
	display: inline-flex;
	min-height: 2.25rem;
	align-items: center;
	gap: 0.35rem;
	padding: 0 0.9rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	transition: background 0.25s ease;
}

.theme-creamymami .cm-btn-outline {
	border: 1px solid var(--cm-pink);
	color: var(--cm-pink-deep);
}

.theme-creamymami .cm-btn-outline:hover {
	background: var(--cm-pink);
	color: #fff;
}

.theme-creamymami .cm-btn-ghost {
	border: 1px solid rgb(255 255 255 / 0.5);
	background: rgb(0 0 0 / 0.28);
	color: #fff;
}

.theme-creamymami .cm-btn-ghost:hover {
	background: rgb(0 0 0 / 0.45);
}

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

.theme-creamymami .cm-couple-amp {
	font-family: 'Mr De Haviland', cursive;
	font-size: 3.5rem;
	line-height: 1;
	color: var(--cm-pink);
}

.theme-creamymami .cm-couple-ring {
	margin: 0 auto 1.25rem;
	max-width: 15rem;
}

.theme-creamymami .cm-couple-ring img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	padding: 3px;
	border: 3px solid var(--cm-pink);
	border-radius: 50%;
	background: #fff;
}

/* ---------- Photo breaks ---------- */

.theme-creamymami .cm-break {
	--photo-break-height: 72dvh;
	--photo-break-shade: linear-gradient(
		180deg,
		rgb(0 0 0 / 0.2) 0%,
		rgb(0 0 0 / 0.3) 50%,
		rgb(0 0 0 / 0.45) 100%
	);
	background: var(--cm-peach-deep);
	color: #fff;
}

.theme-creamymami .cm-break .photo-break__content {
	padding-bottom: 5.5rem;
}

.theme-creamymami .cm-break--agenda {
	--photo-break-height: auto;
	min-height: 70dvh;
}

.theme-creamymami .cm-break--agenda .photo-break__content {
	padding-block: 4.5rem 6rem;
}

.theme-creamymami .cm-quote-mark {
	display: block;
	margin-bottom: 0.35rem;
	font-family: 'Mr De Haviland', cursive;
	font-size: 5rem;
	line-height: 0.6;
	color: rgb(255 255 255 / 0.7);
}

.theme-creamymami .cm-closing {
	--photo-break-height: 100dvh;
}

.theme-creamymami .cm-break__gradient {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url('/assets/creamymami/images/bg-gradient.png') repeat-x top left / auto 100%;
	opacity: 0.45;
	pointer-events: none;
}

.theme-creamymami .cm-closing h2,
.theme-creamymami .cm-closing p {
	text-shadow: 0 4px 18px rgb(0 0 0 / 0.35);
}

/* ---------- Agenda cards ---------- */

.theme-creamymami .cm-event {
	display: grid;
	gap: 0;
	overflow: hidden;
	border-radius: 0.75rem;
	background: rgb(253 246 246 / 0.92);
	color: var(--cm-ink);
	text-align: left;
	box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.45);
}

.theme-creamymami .cm-event__date {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 1.15rem 0.35rem;
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	text-align: center;
	color: var(--cm-muted);
}

.theme-creamymami .cm-event__day {
	padding-inline: 0.75rem;
	border-inline: 1px solid var(--cm-peach-deep);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--cm-ink);
	font-variant-numeric: lining-nums;
}

.theme-creamymami .cm-event__month {
	font-weight: 600;
	text-transform: uppercase;
}

.theme-creamymami .cm-event__body {
	padding: 0.75rem 1.25rem 1.35rem;
	text-align: center;
}

.theme-creamymami .cm-event__body h3 {
	font-size: 2.4rem;
	color: var(--cm-pink-deep);
}

.theme-creamymami .cm-event__body h3::after {
	content: '';
	display: block;
	width: 1.75rem;
	height: 3px;
	margin: 0.6rem auto 0;
	border-radius: 2px;
	background: var(--cm-pink);
}

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

.theme-creamymami .cm-countbar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
}

.theme-creamymami .cm-count {
	display: flex;
	aspect-ratio: 1;
	width: 100%;
	max-width: 5.25rem;
	flex-direction: column;
	justify-content: center;
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid var(--cm-peach-deep);
	border-radius: 50%;
	background: var(--cm-peach);
	color: var(--cm-ink);
	text-align: center;
	box-shadow: 0 10px 24px -18px rgb(235 123 139 / 0.8);
}

.theme-creamymami .cm-count__value {
	display: block;
	padding-top: 0.2rem;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.3;
	color: #555;
	font-variant-numeric: lining-nums tabular-nums;
}

.theme-creamymami .cm-count__label {
	display: block;
	margin: 0.1rem 0.55rem 0;
	padding: 0.15rem 0;
	border-radius: 0.3rem;
	background: var(--cm-pink);
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #fff;
}

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

.theme-creamymami .cm-photo {
	overflow: hidden;
	border-radius: 0.65rem;
	background: var(--cm-peach);
}

.theme-creamymami .cm-panel {
	border: 1px solid var(--cm-line);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 16px 36px -28px rgb(235 123 139 / 0.6);
}

.theme-creamymami .videoWrapper {
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
	border-radius: 0.75rem;
	background: var(--cm-peach-deep);
}

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

.theme-creamymami footer {
	padding: 1.5rem 0 7rem;
	background: #ffebde;
	color: var(--cm-ink);
	text-align: center;
}

/* ---------- Cover teleport ---------- */

.theme-creamymami.theme-creamymami-cover {
	position: fixed;
	inset: 0;
	z-index: 99999;
	width: 100%;
	max-width: 430px;
	height: 100dvh;
	margin-inline: auto;
	overflow: hidden;
	transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
	transform: translateY(0);
}

.theme-creamymami.theme-creamymami-cover .cm-hero {
	min-height: 100dvh;
}

.theme-creamymami.theme-creamymami-cover .cm-hero__body {
	padding-bottom: 6rem;
}

.theme-creamymami.theme-creamymami-cover.is-open {
	transform: translateY(-100%);
	pointer-events: none;
}

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

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

.theme-creamymami .aos-init[data-aos='fade-up'] {
	transform: translate3d(0, 28px, 0);
}

.theme-creamymami .aos-init[data-aos='fade-down'] {
	transform: translate3d(0, -24px, 0);
}

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

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

	.theme-creamymami .cm-hero__body > *,
	.theme-creamymami .cm-scroll-cue svg,
	.theme-creamymami .cm-btn,
	.theme-creamymami .cm-wave__parallax > use {
		animation: none !important;
	}

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