:root {
	--pink: #ff99bb;        /* main pink */
	--pink-strong: #ff6fa5; /* brighter accent */
	--rose: #e75480;        /* deeper pink for text/hover */
	--plum: #b0456f;        /* muted pink for body text */
	--blush: #fff0f6;       /* pale background pink */
	--cream: #fffafd;       /* near-white */
	--shadow: 0 18px 40px -12px rgba(231, 84, 128, 0.35);
	--font-display: "Baloo 2", "Comic Sans MS", cursive, sans-serif;
	--font-body: "Quicksand", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	color: var(--plum);
	background:
	radial-gradient(1100px 550px at 85% -5%, var(--blush), transparent 60%),
	radial-gradient(800px 500px at 5% 25%, #ffffff, transparent 60%),
	var(--cream);
	min-height: 100vh;
	overflow-x: hidden; /* hides the slide-in offsets while animating */
}

::selection { background: var(--pink); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--blush); }
::-webkit-scrollbar-thumb {
	background: linear-gradient(var(--pink), var(--rose));
	border-radius: 50px;
	border: 3px solid var(--blush);
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	overflow: hidden;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-26px); }
}

.hero-tag {
	display: inline-block;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.22em;
	color: var(--rose);
	background: #fff;
	border: 2px solid var(--pink);
	border-radius: 2px;
	padding: 0.5rem 1.2rem;
	margin-bottom: 1.5rem;
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(4rem, 16vw, 13rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.02em;
	background: linear-gradient(100deg, var(--pink-strong) 0%, var(--pink) 35%, var(--rose) 70%, var(--plum) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

@keyframes pop-in {
	from { opacity: 0; transform: translateY(30px) scale(0.6) rotate(-8deg); }
	to   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.hero-title .letter {
	display: inline-block;
	opacity: 0;
	animation: pop-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1);
	animation-delay: 0.1s;
}

/*MY DEAR HANAKO OH MY HANAKO IF ONLY YOU KNEW HOW MUCH I FUCKING HATE CROSS BROWSER CSS ANIMATIONS */
@supports (-moz-appearance: none) {
	.hero-title .letter {
		animation: pop-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
	}
}


/* letters land one by one, left to right */
.hero-title .letter:nth-child(1) { animation-delay: 0.15s; }
.hero-title .letter:nth-child(2) { animation-delay: 0.25s; }
.hero-title .letter:nth-child(3) { animation-delay: 0.35s; }
.hero-title .letter:nth-child(4) { animation-delay: 0.45s; }
.hero-title .letter:nth-child(5) { animation-delay: 0.55s; }
.hero-title .letter:nth-child(6) { animation-delay: 0.65s; }
.hero-title .letter:nth-child(7) { animation-delay: 0.75s; }
.hero-title .letter:nth-child(8) { animation-delay: 0.85s; }
.hero-title .letter:nth-child(9) { animation-delay: 0.95s; }


.hero-sub {
	margin-top: 1.5rem;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--rose);
	animation: fade-down 0.8s ease 0.7s both;
}

@keyframes fade-down {
	from { opacity: 0; transform: translateY(-14px); }
	to   { opacity: 1; transform: none; }
}

.scroll-hint {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	animation: fade-down 0.8s ease 1.2s both;
}
.chevron {
	display: block;
	width: 22px; height: 22px;
	border-right: 3px solid var(--rose);
	border-bottom: 3px solid var(--rose);
	transform: rotate(45deg);
	animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
	0%, 100% { transform: rotate(45deg) translate(0, 0); }
	50%      { transform: rotate(45deg) translate(6px, 6px); }
}

/* ---------- marquee divider ---------- */

.marquee {
	overflow: hidden;
	background: linear-gradient(90deg, var(--pink), var(--pink-strong), var(--rose));
	padding: 0.85rem 0;
	transform: rotate(-1.2deg) scale(1.03);
	margin: -0.6rem 0 1rem;
	box-shadow: var(--shadow);
}
.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee 16s linear infinite;
}
.marquee-group {
	display: flex;
	padding-right: 2rem;
	white-space: nowrap;
}
.marquee-group span {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.12em;
	color: #fff;
}
@keyframes marquee {
	to { transform: translateX(-16.6667%); }
}

/* ---------- gallery ---------- */

.gallery {
	max-width: 900px;
	margin: 0 auto;
	padding: 5rem 1.5rem 7rem;
	display: flex;
	flex-direction: column;
	gap: 6rem;
}

.gallery-item {
	display: flex;
	flex-direction: column;
	opacity: 0;
	opacity 0.8s ease,
	transform 0.9s cubic-bezier(0.18, 1.15, 0.3, 1);
	will-change: transform, opacity;
}
/* odd images start off-screen left, even from the right */
.gallery-item:nth-child(odd)  { transform: translateX(-110px) rotate(-2.5deg); }
.gallery-item:nth-child(even) { transform: translateX(110px)  rotate(2.5deg); }

.gallery-item.in {
	opacity: 1;
	transform: translateX(0) rotate(0deg);
}

.gallery-item:nth-child(odd)  { align-items: flex-start; }
.gallery-item:nth-child(even) { align-items: flex-end; }

.gallery-card {
	position: relative;
	width: min(92%, 620px);
	border-radius: 16px;
	overflow: hidden;
	border: 3px solid #fff;
	background: var(--pink);
	box-shadow: var(--shadow);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:nth-child(odd)  .gallery-card { margin-left: 4%; }
.gallery-item:nth-child(even) .gallery-card { margin-right: 4%; }

.gallery-card:hover {
	transform: translateY(-8px) rotate(-0.5deg);
	box-shadow: 0 26px 50px -14px rgba(231, 84, 128, 0.5);
}

.gallery-card img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.gallery-card:hover img { transform: scale(1.05); }

/* soft pink wash over the imgs, */
.gallery-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 153, 187, 0.35);
	mix-blend-mode: soft-light;
	pointer-events: none;
}

.gallery-num {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 2;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.8rem;
	color: #fff;
	background: linear-gradient(135deg, var(--pink), var(--rose));
	border-radius: 100px;
	padding: 0.3rem 0.75rem;
}

.gallery-caption {
	position: absolute;
	left: 16px; bottom: 16px;
	z-index: 2;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--rose);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 16px;
	padding: 0.35rem 0.95rem;
}

/* ---------- footer ---------- */

.footer {
	background: var(--blush);
	border-top: 2px solid var(--pink);
	text-align: center;
	padding: 3rem 1.5rem 3.5rem;
}
.footer-heart {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.4rem;
	color: var(--rose);
	margin-bottom: 0.5rem;
}
.footer p { font-size: 1rem; }
.footer-mail {
	color: var(--pink-strong);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--pink);
	padding-bottom: 2px;
	transition: color 0.2s, border-color 0.2s;
}
.footer-mail:hover { color: var(--rose); border-color: var(--rose); }

/* ---------- letter link (index) ---------- */

.letter-link-wrap {
	text-align: center;
	padding: 0 1.5rem 6rem;
}

.letter-link {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.03em;
	color: #fff;
	background: var(--pink);
	border-radius: 3px;
	padding: 0.95rem 2.1rem;
	box-shadow: var(--shadow);
	text-decoration: none;
}
.letter-link:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 26px 50px -14px rgba(231, 84, 128, 0.55);
}

/* ---------- letter page ---------- */

.hero-short { min-height: 60svh; }
.hero-title-sm { font-size: clamp(3rem, 11vw, 6.5rem); }

.letter-main {
	max-width: 780px;
	margin: 0 auto;
	padding: 5rem 1.5rem 7rem;
}

.letter-paper {
	background: #fff;
	border: 3px solid var(--pink);
	padding: 2.75rem 2.75rem 2.25rem;
}

/*love box */
.letter-text {
	display: block;
	width: 100%;
	min-height: 62vh;
	resize: none;
	border: none;
	outline: none;
	background-color: transparent;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent 35px,
		rgba(231, 84, 128, 0.12) 35px,
		rgba(231, 84, 128, 0.12) 36px
	);
	background-origin: content-box;
	font-family: "Dancing Script", "Brush Script MT", "Segoe Script", cursive;
	font-size: 1.5rem;
	line-height: 36px;
	color: var(--plum);
	padding: 0.25rem 0.5rem 0;
}

.letter-back {
	text-align: center;
	margin-top: 2.75rem;
}

/* ---------- smaller screens ---------- */

@media (max-width: 1269px) {
	.letter-paper { padding: 1.75rem 1.25rem; }
	.hero-title .letter { opacity: 1; display: inline; }
}

/* ---------- reduced motion --------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
	.hero-title .letter,
	.hero-tag,
	.hero-sub,
	.scroll-hint { opacity: 1 !important; }
	.gallery-item { opacity: 1 !important; transform: none !important; }
}
