@charset "UTF-8";

:root {
	color-scheme: light;
	--paper: #fff8f6;
	--cream: #fbefec;
	--ink: #654551;
	--muted: #886c77;
	--accent: #a95c77;
	--accent-dark: #8e4761;
	--rose: #b57084;
	--line: #eddce0;
	--serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
	--sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 104px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
html::-webkit-scrollbar {
	display: none;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
}
body.modal-open {
	overflow: hidden;
}
button,
input {
	font: inherit;
}
button,
a,
input {
	-webkit-tap-highlight-color: transparent;
}
button {
	color: inherit;
	cursor: pointer;
}
button:disabled {
	cursor: wait;
	opacity: 0.65;
}
a {
	color: inherit;
	text-decoration: none;
}
button,
a {
	touch-action: manipulation;
}
img {
	display: block;
	max-width: 100%;
	object-fit: cover;
}
svg {
	display: inline-block;
	vertical-align: middle;
}
.lucide {
	width: 19px;
	height: 19px;
	stroke-width: 1.5;
	flex-shrink: 0;
}
button {
	border: 0;
}
h1,
h2,
h3,
p {
	margin: 0;
}
h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 500;
}
::selection {
	background: #f1d4de;
	color: #654551;
}
:focus-visible {
	outline: 2px solid var(--rose);
	outline-offset: 5px;
}
[hidden] {
	display: none !important;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	top: 10px;
	left: 15px;
	padding: 12px 20px;
	background: var(--paper);
	z-index: 200;
	transform: translateY(-150%);
}
.skip-link:focus {
	transform: translateY(0);
}
.section-wrap {
	width: min(1120px, calc(100% - 112px));
	margin-inline: auto;
}
.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 10px;
	letter-spacing: 2.3px;
	line-height: 1.8;
	font-weight: 500;
}
.chapter-number {
	color: var(--rose);
	letter-spacing: 0;
	border: 1px solid #e4c5cd;
	width: 27px;
	height: 27px;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	font-family: Georgia, serif;
	font-size: 12px;
}
.small-star {
	color: var(--rose);
	font-size: 14px;
}
.short-rule {
	width: 27px;
	height: 1px;
	background: currentColor;
}
h2 {
	font-size: clamp(27px, 2.65vw, 37px);
	line-height: 1.65;
	letter-spacing: 2px;
}
.section-description {
	color: var(--muted);
	line-height: 2.2;
	font-size: 13px;
}
.primary-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 13px;
	min-height: 50px;
	padding: 14px 23px;
	background: var(--accent);
	color: #fffaf8;
	border: 1px solid var(--accent);
	border-radius: 6px;
	letter-spacing: 1px;
	font-size: 13px;
	transition:
		background 0.2s,
		transform 0.2s,
		box-shadow 0.2s;
}
.primary-button:hover {
	background: var(--accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 5px 16px #9d586d24;
}
.primary-button .lucide:last-child {
	width: 16px;
}
.icon-button {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	transition:
		background 0.2s,
		color 0.2s;
}
.icon-button:hover {
	background: #f7e7ec;
}
.text-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 5px 0;
	background: transparent;
	color: var(--accent);
	font-size: 12px;
	text-underline-offset: 5px;
}
.text-button:hover {
	text-decoration: underline;
}
[data-tooltip] {
	position: relative;
}
[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	z-index: 5;
	top: calc(100% + 10px);
	left: 50%;
	transform: translate(-50%, -3px);
	padding: 7px 10px;
	border-radius: 4px;
	background: var(--accent-dark);
	color: white;
	white-space: nowrap;
	font-size: 11px;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.2s,
		transform 0.2s;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* A warm paper cover and an original animated SVG daydream. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	min-height: 84px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 15px max(40px, calc((100vw - 1320px) / 2));
	background: #fff8f6f2;
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(14px);
}
.wordmark {
	display: flex;
	align-items: center;
	gap: 11px;
	font-family: var(--serif);
	font-size: 20px;
	letter-spacing: 2px;
	flex-shrink: 0;
}
.brand-flower {
	color: var(--rose);
	font-size: 36px;
	font-family: Georgia, serif;
	line-height: 1;
	transition: transform 1s;
}
.wordmark:hover .brand-flower {
	transform: rotate(90deg);
}
.wordmark-sub {
	display: block;
	font-family: var(--sans);
	font-size: 7px;
	letter-spacing: 2.4px;
	margin-top: 5px;
	color: var(--muted);
}
.desktop-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}
.desktop-nav a {
	position: relative;
	font-size: 12px;
	letter-spacing: 1px;
	padding: 17px 0;
	color: #896d7a;
	transition: color 0.2s;
}
.desktop-nav a::after {
	content: "";
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--rose);
	transform: scaleX(0);
	transition: transform 0.25s;
}
.desktop-nav a:hover,
.desktop-nav a.active {
	color: var(--ink);
}
.desktop-nav a.active::after {
	transform: scaleX(1);
}
.header-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.music-caption {
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--muted);
}
.music-button {
	border: 1px solid #ead6df;
	width: 38px;
	height: 38px;
}
.music-button[aria-pressed="true"] {
	background: var(--accent);
	color: white;
	border-color: var(--accent);
}
.music-button[aria-pressed="true"] .lucide {
	animation: music-sway 2s ease-in-out infinite;
}
.mobile-menu-button,
.mobile-nav {
	display: none;
}
.hero {
	position: relative;
	min-height: 670px;
	height: min(790px, calc(100svh - 84px));
	overflow: hidden;
	isolation: isolate;
	background: radial-gradient(ellipse at 78% 42%, #f8e1e780, transparent 54%), linear-gradient(120deg, #fffaf7, #fff5f3 62%, #f9eef3);
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(#b2829212 0.65px, transparent 0.65px);
	background-size: 7px 7px;
	pointer-events: none;
}
.hero-art {
	position: absolute;
	width: min(62vw, 820px);
	right: max(18px, calc((100vw - 1400px) / 2));
	top: 50%;
	transform: translateY(-54%);
	pointer-events: none;
}
.birthday-landscape {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.hero-art-caption {
	margin-top: -19px;
	text-align: center;
	color: #967182;
	font-size: 7px;
	letter-spacing: 2.6px;
}
.hero-art-caption span {
	display: block;
	margin-bottom: 8px;
	font: 12px/1.7 var(--serif);
	letter-spacing: 4px;
}
.scene-outline {
	stroke-dasharray: 1;
	animation: scene-trace 2.8s ease both;
}
.scene-sun-halo {
	transform-box: fill-box;
	transform-origin: center;
	animation: scene-glow 8s ease-in-out infinite;
}
.scene-cloud {
	animation: scene-cloud-drift 18s ease-in-out infinite alternate;
}
.scene-cloud-two {
	animation-duration: 24s;
	animation-delay: -11s;
}
.scene-birds {
	animation: bird-drift 12s ease-in-out infinite;
}
.scene-wing {
	transform-box: fill-box;
	transform-origin: center;
	animation: bird-wings 3s ease-in-out infinite;
}
.scene-wing:nth-child(2) {
	animation-delay: -1.2s;
}
.scene-ripple {
	animation: scene-water 7s ease-in-out infinite;
}
.scene-ripple-two {
	animation-duration: 9s;
	animation-delay: -3s;
}
.scene-sprig {
	transform-box: fill-box;
	transform-origin: center bottom;
	animation: scene-sway 7s ease-in-out infinite;
}
.scene-sprig-right {
	animation-delay: -3.5s;
}
.scene-plane {
	transform-box: fill-box;
	transform-origin: center;
	animation: scene-letter-float 8s ease-in-out infinite;
}
.scene-flight-trail {
	animation: scene-trail 16s linear infinite;
}
.scene-sparkle {
	animation: scene-twinkle 5s ease-in-out infinite;
}
.scene-sparkle-two {
	animation-delay: -2.5s;
}
.hero:not(.is-scene-active) * {
	animation: none !important;
}
.hero.is-motion-paused *,
.hero.is-scene-offscreen *,
.hero.is-page-hidden * {
	animation-play-state: paused !important;
}
.hero-content {
	width: min(1120px, calc(100% - 112px));
	margin: 0 auto;
	padding-block: 98px 120px;
	position: relative;
	z-index: 2;
}
.hero-eyebrow {
	color: #95697b;
	font-size: 9px;
	gap: 13px;
	letter-spacing: 1.8px;
}
h1 {
	font-size: clamp(49px, 4.8vw, 68px);
	line-height: 1.5;
	letter-spacing: 4px;
	margin: 24px 0 23px;
	max-width: 48%;
	overflow-wrap: anywhere;
}
.hero-title-ending {
	position: relative;
}
.title-underline {
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 100%;
	height: 16px;
	fill: none;
	stroke: var(--rose);
	stroke-width: 2;
	stroke-linecap: round;
	opacity: 0.7;
	stroke-dasharray: 320;
	animation: draw-line 1.8s ease both 0.5s;
}
.hero-poem {
	color: #866570;
	font-size: 13px;
	letter-spacing: 1px;
	line-height: 2.3;
	margin-bottom: 29px;
}
.hero-footnote {
	margin-top: 18px;
	font-size: 10px;
	letter-spacing: 1.8px;
	color: #92707e;
}
.hero-side-note {
	position: absolute;
	top: 110px;
	right: 36px;
	writing-mode: vertical-rl;
	letter-spacing: 5px;
	font-family: var(--serif);
	font-size: 12px;
	color: #997081;
}
.hero-bottom {
	position: absolute;
	bottom: 27px;
	left: 40px;
	right: 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #896976;
	font-size: 10px;
	letter-spacing: 1px;
}
.hero-location,
.scroll-link {
	display: flex;
	align-items: center;
	gap: 8px;
}
.hero-location .lucide {
	width: 13px;
	height: 13px;
}
.scroll-link {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	flex-direction: column;
	gap: 10px;
}
.scroll-link .lucide {
	animation: scroll-hint 2.5s ease-in-out infinite;
}
.hero-edition {
	font-size: 8px;
	letter-spacing: 2px;
}
.dedication {
	min-height: 102px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 28px;
	padding: 25px;
	border-bottom: 1px solid var(--line);
}
.dedication p {
	font-family: var(--serif);
	font-size: 13px;
	letter-spacing: 2px;
	text-align: center;
	line-height: 2;
}
.dedication .small-star {
	font-size: 11px;
}

/* A paper envelope made with CSS, not a screenshot. */
.letter-section {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	align-items: center;
	gap: 65px;
	padding-block: 112px 119px;
}
.letter-intro h2 {
	margin-block: 20px 18px;
}
.handwritten {
	margin-top: 27px;
	color: #a7785e;
	font:
		italic 16px/1.8 Georgia,
		serif;
}
.little-line {
	display: block;
	width: 40px;
	height: 1px;
	background: #c6b39a;
	margin-top: 26px;
}
.envelope-scene {
	position: relative;
	padding-block: 65px 25px;
	perspective: 1200px;
}
.envelope-note {
	position: absolute;
	top: 0;
	left: 37%;
	font-family: var(--serif);
	font-size: 13px;
	letter-spacing: 2px;
	color: #8c795f;
	transform: rotate(-7deg);
}
.note-arrow {
	position: absolute;
	top: 16px;
	right: 22%;
	width: 58px;
	height: 47px;
	stroke: #a6977c;
	stroke-width: 1.2;
	stroke-dasharray: 3 4;
}
.envelope {
	position: relative;
	width: 100%;
	height: 268px;
	display: block;
	padding: 0;
	background: transparent;
	transform: rotate(-4deg);
	transition: transform 0.55s;
	text-align: left;
	filter: drop-shadow(0 15px 12px #58473216);
}
.envelope:hover,
.envelope:focus-visible {
	transform: rotate(-1deg) translateY(-7px);
}
.envelope-back {
	position: absolute;
	inset: 0;
	background: #dbcbb1;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px #d3c2a3;
}
.envelope-paper {
	position: absolute;
	inset: 11px 16px 14px;
	padding: 32px 15px;
	background: #fffcf4;
	color: #9b8769;
	font-family: var(--serif);
	text-align: center;
	font-size: 12px;
	letter-spacing: 2px;
	transition: transform 0.55s;
}
.envelope:hover .envelope-paper {
	transform: translateY(-15px);
}
.envelope-flap {
	position: absolute;
	inset: 0;
	background: #e8dcc5;
	clip-path: polygon(0 0, 100% 0, 50% 59%);
	z-index: 2;
}
.envelope-front {
	position: absolute;
	inset: 0;
	border-radius: 3px;
	background:
		linear-gradient(150deg, transparent 49.8%, #cdbb9b80 50%, transparent 50.5%) left / 50% 100% no-repeat,
		linear-gradient(210deg, transparent 49.8%, #cdbb9b80 50%, transparent 50.5%) right / 50% 100% no-repeat,
		#eee3cc;
	clip-path: polygon(0 0, 50% 57%, 100% 0, 100% 100%, 0 100%);
	z-index: 3;
}
.envelope-address {
	position: absolute;
	z-index: 4;
	left: 29px;
	bottom: 48px;
	font-family: var(--serif);
	letter-spacing: 3px;
	font-size: 17px;
	color: #6d644d;
}
.envelope-address span {
	display: block;
	margin-top: 12px;
	font-size: 9px;
	letter-spacing: 5px;
	color: #9b8e74;
}
.postage-stamp {
	position: absolute;
	z-index: 4;
	top: 17px;
	right: 20px;
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 60px;
	height: 77px;
	border: 3px dotted #f4ebd6;
	outline: 1px solid #d1a7bc;
	background: #e4c7d4;
	padding: 5px;
	color: #8d6079;
	transform: rotate(6deg);
	gap: 3px;
}
.postage-stamp .lucide {
	width: 27px;
	height: 27px;
}
.postage-stamp span {
	font-size: 7px;
	letter-spacing: 1px;
}
.postage-stamp span:last-child {
	font-size: 6px;
}
.postmark {
	position: absolute;
	z-index: 4;
	top: 42px;
	right: 74px;
	width: 82px;
	height: 82px;
	border: 1px solid #9c998178;
	outline: 1px solid #9c998178;
	outline-offset: -5px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	transform: rotate(-13deg);
	color: #a18383;
	opacity: 0.8;
}
.postmark span {
	font-size: 5px;
	letter-spacing: 0.4px;
}
.postmark b {
	font:
		16px Georgia,
		serif;
	border-block: 1px solid #9c998178;
}
.wax-seal {
	position: absolute;
	z-index: 5;
	top: 48%;
	left: calc(50% - 23px);
	display: grid;
	place-items: center;
	width: 47px;
	height: 47px;
	border-radius: 46% 53% 47% 50%;
	background: #b56a53;
	border: 3px solid #c68066;
	outline: 2px solid #af624d;
	color: #f1c3a0;
	box-shadow:
		2px 4px 5px #84664936,
		inset 1px 1px 3px #864b3b;
}
.wax-seal .lucide {
	width: 22px;
}
.envelope-open-label {
	position: absolute;
	z-index: 5;
	bottom: 22px;
	right: 24px;
	font-size: 9px;
	color: #8b7f66;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.envelope-open-label .lucide {
	width: 13px;
	height: 13px;
}

/* Three things worth keeping. */
.moments-section {
	background: #fbefef;
	padding-block: 87px 35px;
	border-block: 1px solid #f0dfe2;
}
.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	margin-bottom: 37px;
}
.section-heading h2 {
	margin-top: 15px;
	font-size: clamp(26px, 2.5vw, 34px);
}
.section-heading > p {
	color: var(--muted);
	line-height: 2;
	font-size: 11px;
	padding-bottom: 6px;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}
.postcards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}
.postcard {
	min-width: 0;
	padding: 13px 13px 0;
	background: #fffaf8;
	border: 1px solid #efdee2;
	border-radius: 2px;
	box-shadow: 0 3px 7px #89556804;
	transition:
		transform 0.35s,
		box-shadow 0.35s;
}
.postcard:hover {
	transform: translateY(-6px) rotate(-0.5deg);
	box-shadow: 0 12px 24px #89556812;
}
.postcard:nth-child(2):hover {
	transform: translateY(-6px) rotate(0.5deg);
}
.postcard-image {
	position: relative;
	aspect-ratio: 1.47;
	overflow: hidden;
	background: #eddae1;
}
.postcard-image::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(transparent, #49323f4d);
	pointer-events: none;
}
.postcard-image img {
	width: 100%;
	height: 100%;
	transition: transform 0.8s;
}
.postcard:hover img {
	transform: scale(1.035);
}
.photo-label {
	position: absolute;
	z-index: 1;
	left: 13px;
	bottom: 13px;
	font-size: 9px;
	color: #fffef6;
	letter-spacing: 1.5px;
}
.save-button {
	position: absolute;
	z-index: 2;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	background: #fffdf4e6;
	color: var(--accent);
	border: 1px solid #ffffff7a;
}
.save-button::after {
	left: auto;
	right: 0;
	transform: translateY(-3px);
}
.save-button:hover::after,
.save-button:focus-visible::after {
	transform: translateY(0);
}
.save-button[aria-pressed="true"] {
	background: var(--accent);
	color: #fffaf0;
}
.save-button[aria-pressed="true"] .lucide {
	fill: #f8e5bd;
	stroke: #f8e5bd;
}
.postcard-kicker {
	font-size: 8px;
	letter-spacing: 1.7px;
	color: #947681;
	margin: 23px 7px 10px;
}
.postcard h3 {
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.7;
	letter-spacing: 0.4px;
	margin: 0 7px 9px;
}
.postcard h3 + p {
	color: #896c77;
	font-size: 11px;
	line-height: 2.2;
	margin-inline: 7px;
}
.postcard-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--line);
	margin: 23px 7px 0;
	padding-block: 14px;
	color: #916579;
	font-size: 9px;
	letter-spacing: 1px;
}
.postcard-bottom .lucide {
	width: 16px;
	height: 16px;
}
.moments-postscript {
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 12px;
	color: #8d727f;
	font-size: 10px;
	letter-spacing: 0.7px;
	margin-top: 30px;
	line-height: 2;
}
.moments-postscript > span {
	color: #ae8166;
	font:
		italic 18px Georgia,
		serif;
}
.chapter-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	padding-block: 105px;
	align-items: center;
}
.chapter-intro .eyebrow {
	font-size: 8px;
	letter-spacing: 1.7px;
	color: #927184;
}
.chapter-intro h2 {
	font-size: clamp(25px, 2.5vw, 34px);
	margin-block: 20px 17px;
}
.chapter-doodle {
	display: block;
	margin-top: 25px;
	color: #b386a0;
}
.chapter-doodle .lucide {
	width: 46px;
	height: 46px;
	stroke-width: 1;
	transform-origin: bottom center;
	animation: plant-sway 6s ease-in-out infinite;
}
.blessing {
	display: flex;
	align-items: center;
	gap: 23px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}
.blessing:first-child {
	border-top: 1px solid var(--line);
}
.blessing > span {
	font-family: var(--serif);
	color: #a37f65;
	font-size: 12px;
	letter-spacing: 1px;
	white-space: nowrap;
}
.blessing > div {
	flex: 1;
}
.blessing h3 {
	font-size: 18px;
	line-height: 1.7;
}
.blessing p {
	color: var(--muted);
	font-size: 10px;
	line-height: 2;
	margin-top: 6px;
}
.blessing > .lucide {
	color: #b18a9d;
	width: 23px;
	height: 23px;
}

/* A tiny animated birthday ritual. */
.wish-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #fbe9e9, #f5e9f0);
	border-block: 1px solid #edd9e2;
	text-align: center;
	padding: 76px 24px 57px;
	isolation: isolate;
}
.wish-inner {
	width: min(620px, 100%);
	margin-inline: auto;
}
.wish-inner > .eyebrow {
	justify-content: center;
	color: #91687d;
	font-size: 9px;
}
.wish-inner h2 {
	font-size: clamp(25px, 2.7vw, 36px);
	margin: 20px 0 14px;
}
.wish-description {
	color: #856678;
	font-size: 12px;
	line-height: 2.2;
	letter-spacing: 0.5px;
}
.cake-scene {
	position: relative;
	width: 300px;
	max-width: 100%;
	margin: 17px auto 29px;
}
.cake-svg {
	width: 100%;
	height: auto;
	overflow: visible;
}
.cake-note {
	display: block;
	color: #9e9277;
	font:
		italic 14px Georgia,
		serif;
	margin-top: -1px;
	transform: rotate(-3deg);
}
.flame,
.flame-core {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center bottom;
	transition: opacity 0.4s;
}
.cake-scene.is-lit .flame {
	opacity: 1;
	filter: drop-shadow(0 0 6px #efc16fa1);
	animation: flicker 1.5s ease-in-out infinite alternate;
}
.cake-scene.is-lit .flame-core {
	opacity: 1;
	animation: flicker 1.1s ease-in-out infinite alternate-reverse;
}
.candle-left .flame,
.candle-right .flame-core {
	animation-delay: -0.5s !important;
}
.candle-right .flame {
	animation-delay: -0.9s !important;
}
.smoke {
	opacity: 0;
	stroke-linecap: round;
	transform-box: fill-box;
	transform-origin: center bottom;
}
.cake-scene.is-blown .smoke {
	animation: smoke-away 2.1s ease-out both;
}
.cake-scene.is-blown .candle-left .smoke {
	animation-delay: 0.15s;
}
.cake-scene.is-blown .candle-right .smoke {
	animation-delay: 0.3s;
}
.wish-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.wish-input-wrap {
	position: relative;
	width: min(385px, 100%);
}
.wish-input-wrap input {
	display: block;
	width: 100%;
	min-height: 48px;
	border: 1px solid #dfc3d0;
	background: #fffaf8de;
	border-radius: 3px;
	padding: 13px 42px 13px 17px;
	color: var(--ink);
	font-size: 12px;
	transition: border-color 0.2s;
}
.wish-input-wrap input::placeholder {
	color: #967888;
	letter-spacing: 1px;
}
.wish-input-wrap input:focus {
	border-color: var(--accent);
	outline-offset: 3px;
}
.wish-input-wrap > .lucide {
	position: absolute;
	right: 15px;
	top: 14px;
	width: 17px;
	color: #b194a5;
	pointer-events: none;
}
.wish-button {
	min-width: 186px;
	min-height: 46px;
	font-size: 12px;
}
.wish-privacy {
	color: #8a6d7d;
	margin-top: 20px;
	font-size: 10px;
	line-height: 1.8;
	letter-spacing: 0.5px;
}
.wish-result {
	padding: 18px 25px 12px;
	border: 1px solid #e0c5d2;
	border-radius: 4px;
	background: #fff8f5d9;
	max-width: 425px;
	margin-inline: auto;
	animation: reveal-in 0.6s both;
}
.wish-result-title {
	font: 22px/1.8 var(--serif);
	letter-spacing: 2px;
}
#saved-wish-text {
	font-size: 13px;
	color: #8b6076;
	margin: 11px 0 6px;
	line-height: 2;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}
.wish-botanical {
	position: absolute;
	z-index: -1;
	width: clamp(140px, 19vw, 250px);
	bottom: -35px;
	color: #c19db2;
	transform-origin: bottom center;
	animation: plant-sway 7s ease-in-out infinite;
	pointer-events: none;
}
.botanical-left {
	left: 3%;
}
.botanical-right {
	right: 3%;
	scale: -1 1;
	animation-delay: -3s;
}
.botanical-flower {
	transform-box: fill-box;
	transform-origin: center;
}

.site-footer {
	padding: 59px 40px 0;
	text-align: center;
}
.footer-flower {
	display: inline-block;
	color: var(--rose);
	font:
		35px Georgia,
		serif;
	margin-bottom: 15px;
}
.site-footer h2 {
	font-size: 25px;
	letter-spacing: 3px;
	line-height: 1.9;
}
.footer-signature {
	font-size: 10px;
	color: #907382;
	letter-spacing: 1.4px;
	margin-top: 14px;
	line-height: 2;
}
.footer-bottom {
	max-width: 1240px;
	margin: 43px auto 0;
	padding-block: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 9px;
	color: #937785;
	letter-spacing: 0.8px;
}
.footer-bottom > span:first-child {
	display: flex;
	align-items: center;
	gap: 12px;
}
.footer-bottom > span:nth-child(2) {
	font-size: 8px;
	letter-spacing: 1.7px;
}
/* Native dialogs keep keyboard focus in the letter. */
dialog {
	border: 1px solid #e8ccd4;
	border-radius: 5px;
	color: var(--ink);
	background: #fffbf8;
	width: min(660px, calc(100% - 32px));
	max-height: min(88svh, 950px);
	padding: 0;
	box-shadow: 0 30px 100px #4a293b40;
	overscroll-behavior: contain;
}
dialog::backdrop {
	background: #4d354994;
	backdrop-filter: blur(7px);
}
dialog[open] {
	animation: letter-appear 0.4s ease both;
}
.dialog-close {
	position: sticky;
	top: 14px;
	float: right;
	margin: 14px 14px -56px 0;
	z-index: 2;
	background: #fffbf8eb;
	color: #886979;
}
.letter-document {
	padding: 49px 57px 36px;
	background-image: radial-gradient(#b9a58212 0.6px, transparent 0.6px);
	background-size: 6px 6px;
}
.letter-document > .eyebrow {
	font-size: 8px;
	color: #a48b70;
	letter-spacing: 1.6px;
	padding-right: 25px;
}
.letter-date {
	margin-top: 19px;
	font:
		12px Georgia,
		serif;
	letter-spacing: 2px;
	color: #a9947d;
}
.letter-document h2 {
	margin: 30px 0 23px;
	font-size: 25px;
	letter-spacing: 2px;
	overflow-wrap: anywhere;
}
.letter-body {
	font-family: var(--serif);
	font-size: 15px;
	line-height: 2.25;
	color: #806672;
	overflow-wrap: anywhere;
}
.letter-body p {
	margin-bottom: 19px;
}
.letter-body .letter-last-line {
	color: #a2607b;
}
.letter-signature {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	color: #a1755c;
	font: 15px/2 var(--serif);
	margin-top: 30px;
	text-align: right;
	overflow-wrap: anywhere;
}
.letter-signature .lucide {
	width: 16px;
}
.letter-keep {
	display: flex;
	margin: 32px auto 0;
	color: #947486;
}
.toast {
	position: fixed;
	z-index: 100;
	bottom: max(28px, env(safe-area-inset-bottom));
	left: 50%;
	transform: translate(-50%, 12px);
	background: #85536ef2;
	color: #fffdf5;
	padding: 13px 21px;
	border-radius: 5px;
	box-shadow: 0 5px 24px #57314929;
	max-width: calc(100% - 32px);
	width: max-content;
	font-size: 12px;
	line-height: 1.8;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition:
		transform 0.3s,
		opacity 0.3s;
}
.toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}
.confetti-container {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 60;
}
.confetti-piece {
	position: absolute;
	top: -35px;
	width: 12px;
	height: 16px;
	animation: confetti-fall var(--duration) cubic-bezier(0.2, 0.6, 0.4, 1) var(--delay) both;
}
.noscript-note {
	padding: 20px;
	background: #f3e0e8;
	text-align: center;
	font-size: 13px;
	line-height: 2;
}
.reveal.is-pending {
	opacity: 0;
	transform: translateY(22px);
}
.reveal {
	transition:
		opacity 0.75s ease,
		transform 0.75s ease;
}
.postcards > :nth-child(2) {
	transition-delay: 0.08s;
}
.postcards > :nth-child(3) {
	transition-delay: 0.16s;
}

@keyframes draw-line {
	from {
		stroke-dashoffset: 320;
	}
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes scroll-hint {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(5px);
	}
}
@keyframes plant-sway {
	0%,
	100% {
		transform: rotate(-3deg);
	}
	50% {
		transform: rotate(3deg);
	}
}
@keyframes music-sway {
	0%,
	100% {
		transform: rotate(-8deg);
	}
	50% {
		transform: rotate(8deg);
	}
}
@keyframes scene-trace {
	from {
		stroke-dashoffset: 1;
	}
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes scene-cloud-drift {
	from {
		transform: translateX(-14px);
	}
	to {
		transform: translateX(18px);
	}
}
@keyframes scene-glow {
	0%,
	100% {
		transform: scale(1);
		opacity: 0.3;
	}
	50% {
		transform: scale(1.12);
		opacity: 0.5;
	}
}
@keyframes scene-water {
	0%,
	100% {
		transform: translateX(-7px);
	}
	50% {
		transform: translateX(9px);
	}
}
@keyframes scene-sway {
	0%,
	100% {
		transform: rotate(-1.5deg);
	}
	50% {
		transform: rotate(1.5deg);
	}
}
@keyframes scene-letter-float {
	0%,
	100% {
		transform: translate(0, 0) rotate(-3deg);
	}
	50% {
		transform: translate(9px, -12px) rotate(3deg);
	}
}
@keyframes scene-trail {
	to {
		stroke-dashoffset: -44;
	}
}
@keyframes scene-twinkle {
	0%,
	100% {
		opacity: 0.4;
	}
	50% {
		opacity: 1;
	}
}
@keyframes bird-drift {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(-28px, -10px);
	}
}
@keyframes bird-wings {
	0%,
	100% {
		transform: scaleY(1);
	}
	50% {
		transform: scaleY(0.65);
	}
}
@keyframes flicker {
	0% {
		transform: rotate(-4deg) scale(0.93, 1.04);
	}
	35% {
		transform: rotate(3deg) scale(1.05, 0.93);
	}
	100% {
		transform: rotate(-2deg) scale(0.96, 1.08);
	}
}
@keyframes smoke-away {
	0% {
		opacity: 0.6;
		transform: translateY(0) scaleX(0.7);
	}
	100% {
		opacity: 0;
		transform: translateY(-35px) scaleX(1.6);
	}
}
@keyframes letter-appear {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@keyframes reveal-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes confetti-fall {
	0% {
		transform: translate3d(0, -20px, 0) rotate(0);
		opacity: 0;
	}
	8% {
		opacity: 0.95;
	}
	85% {
		opacity: 0.8;
	}
	100% {
		transform: translate3d(var(--drift), 110vh, 0) rotate(var(--turn));
		opacity: 0;
	}
}

@media (min-width: 1500px) {
	.hero-content {
		padding-top: 105px;
	}
}
@media (max-width: 1100px) {
	.site-header {
		padding-inline: 28px;
		gap: 18px;
	}
	.desktop-nav {
		gap: 23px;
	}
	.music-caption {
		display: none;
	}
	.section-wrap,
	.hero-content {
		width: calc(100% - 80px);
	}
	.letter-section {
		gap: 40px;
	}
	.envelope {
		height: 244px;
	}
	.postcards {
		gap: 18px;
	}
	.chapter-section {
		gap: 45px;
	}
	.blessing {
		gap: 16px;
	}
}
@media (max-width: 760px) {
	html {
		scroll-padding-top: 89px;
	}
	.site-header {
		min-height: 73px;
		padding: 12px 22px;
	}
	.wordmark {
		font-size: 18px;
		gap: 8px;
	}
	.wordmark-sub {
		font-size: 6px;
		letter-spacing: 1.9px;
	}
	.brand-flower {
		font-size: 32px;
	}
	.desktop-nav {
		display: none;
	}
	.header-actions {
		gap: 7px;
	}
	.icon-button {
		width: 44px;
		height: 44px;
	}
	.mobile-menu-button {
		display: inline-grid;
	}
	.mobile-nav {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		padding: 10px 22px 18px;
		background: #fff8f6;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 18px #7f48680a;
	}
	.mobile-nav a {
		min-height: 47px;
		display: flex;
		align-items: center;
		padding: 10px 12px;
		color: #876076;
		font-size: 13px;
		border-bottom: 1px solid #f1e0e6;
	}
	.mobile-nav a.active {
		color: var(--rose);
	}
	.section-wrap,
	.hero-content {
		width: calc(100% - 48px);
	}
	.hero {
		display: flex;
		flex-direction: column;
		min-height: 0;
		height: auto;
		padding-bottom: 87px;
	}
	.hero-content {
		order: -1;
		padding-block: 46px 0;
	}
	.hero-art {
		position: relative;
		top: auto;
		right: auto;
		width: min(540px, 100%);
		margin: 8px auto 14px;
		transform: none;
	}
	.hero-art-caption {
		margin-top: -8px;
		font-size: 6px;
		letter-spacing: 2px;
	}
	.hero-art-caption span {
		font-size: 11px;
		letter-spacing: 3px;
	}
	.hero-eyebrow {
		font-size: 8px;
		gap: 10px;
		letter-spacing: 1.1px;
	}
	.hero-eyebrow .short-rule {
		width: 17px;
	}
	h1 {
		font-size: clamp(46px, 8vw, 60px);
		margin: 21px 0 20px;
		line-height: 1.55;
		letter-spacing: 3px;
		max-width: 100%;
	}
	.hero-poem {
		font-size: 12px;
		letter-spacing: 0.3px;
		margin-bottom: 27px;
	}
	.hero-side-note {
		right: 17px;
		top: 97px;
		font-size: 10px;
		letter-spacing: 4px;
		opacity: 0.65;
	}
	.hero-bottom {
		left: 24px;
		right: 24px;
		bottom: 24px;
	}
	.hero-location {
		font-size: 9px;
		max-width: 100px;
		line-height: 1.8;
	}
	.hero-edition {
		display: none;
	}
	.scroll-link {
		left: auto;
		right: 0;
		transform: none;
		font-size: 9px;
	}
	.dedication {
		min-height: 94px;
		gap: 15px;
		padding-inline: 20px;
	}
	.dedication p {
		font-size: 11px;
		letter-spacing: 1px;
		text-wrap: balance;
	}
	.letter-section {
		grid-template-columns: 1fr;
		padding-block: 69px 77px;
		gap: 40px;
	}
	.letter-intro {
		padding-inline: 4px;
	}
	h2 {
		font-size: 30px;
	}
	.letter-intro h2 {
		margin-top: 18px;
	}
	.section-description {
		font-size: 12px;
	}
	.handwritten {
		font-size: 15px;
		margin-top: 19px;
	}
	.little-line {
		margin-top: 20px;
	}
	.envelope-scene {
		width: min(440px, calc(100% - 18px));
		margin-inline: auto;
		padding-top: 60px;
	}
	.envelope {
		height: 255px;
	}
	.envelope-note {
		left: 30%;
	}
	.moments-section {
		padding-top: 61px;
	}
	.section-heading {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		margin-bottom: 25px;
	}
	.section-heading h2 {
		font-size: 27px;
		letter-spacing: 1px;
	}
	.section-heading > p br {
		display: none;
	}
	.postcards {
		grid-template-columns: 1fr;
		gap: 23px;
		max-width: 470px;
		margin-inline: auto;
	}
	.postcard {
		padding: 12px 12px 0;
	}
	.postcard-image {
		aspect-ratio: 1.6;
	}
	.postcard-kicker {
		font-size: 9px;
		margin-top: 23px;
	}
	.postcard h3 {
		font-size: 22px;
	}
	.postcard h3 + p {
		font-size: 12px;
	}
	.postcard-bottom {
		font-size: 10px;
		padding-block: 17px;
	}
	.moments-postscript {
		margin-top: 24px;
		font-size: 10px;
		text-align: left;
		gap: 9px;
	}
	.chapter-section {
		grid-template-columns: 1fr;
		padding-block: 67px;
		gap: 24px;
	}
	.chapter-intro h2 {
		font-size: 28px;
	}
	.chapter-doodle {
		margin-top: 16px;
	}
	.chapter-doodle .lucide {
		width: 36px;
		height: 36px;
	}
	.blessing {
		padding-block: 23px;
		gap: 19px;
	}
	.blessing h3 {
		font-size: 18px;
	}
	.blessing p {
		font-size: 11px;
	}
	.wish-section {
		padding: 59px 24px 48px;
	}
	.wish-inner h2 {
		font-size: 26px;
		letter-spacing: 1px;
	}
	.wish-input-wrap input {
		font-size: 16px;
	}
	.wish-botanical {
		width: 150px;
		opacity: 0.55;
		bottom: -45px;
	}
	.botanical-left {
		left: -58px;
	}
	.botanical-right {
		right: -58px;
	}
	.cake-scene {
		width: 280px;
		margin-block: 20px 28px;
	}
	.site-footer {
		padding: 43px 24px 0;
	}
	.site-footer h2 {
		font-size: 23px;
		letter-spacing: 2px;
	}
	.footer-signature {
		font-size: 10px;
		letter-spacing: 0.5px;
	}
	.footer-bottom {
		margin-top: 30px;
		gap: 12px;
		flex-wrap: wrap;
		justify-content: center;
		padding-block: 19px;
	}
	.footer-bottom > span:nth-child(2) {
		width: 100%;
		order: 3;
		font-size: 7px;
	}
	.footer-bottom .text-button {
		min-height: 44px;
	}
	.letter-document {
		padding: 41px 27px 27px;
	}
	.letter-body {
		font-size: 14px;
		line-height: 2.2;
	}
	.letter-document h2 {
		font-size: 23px;
	}
	.letter-signature {
		font-size: 13px;
	}
}
@media (max-width: 380px) {
	.site-header {
		padding-inline: 15px;
		gap: 10px;
	}
	.wordmark {
		font-size: 17px;
		letter-spacing: 1px;
	}
	.wordmark-sub {
		letter-spacing: 1.3px;
	}
	.header-actions {
		gap: 3px;
	}
	.hero-content,
	.section-wrap {
		width: calc(100% - 40px);
	}
	.hero-eyebrow {
		font-size: 7px;
		letter-spacing: 0.7px;
		gap: 7px;
	}
	.hero-side-note {
		display: none;
	}
	h1 {
		font-size: 43px;
		letter-spacing: 2px;
	}
	.hero-poem {
		font-size: 11px;
	}
	.envelope {
		height: 215px;
	}
	.envelope-address {
		left: 19px;
		font-size: 15px;
	}
	.postage-stamp {
		scale: 0.8;
		transform-origin: right top;
	}
	.postmark {
		right: 55px;
		scale: 0.8;
		transform-origin: right top;
	}
	.postcard h3 {
		font-size: 20px;
	}
	.blessing {
		gap: 12px;
	}
	.blessing h3 {
		font-size: 16px;
	}
	.blessing > .lucide {
		width: 18px;
	}
	.wish-section {
		padding-inline: 20px;
	}
	.wish-inner h2 {
		font-size: 23px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.reveal.is-pending {
		opacity: 1;
		transform: none;
	}
	.confetti-container {
		display: none;
	}
}
