:root {
	--bg: #101010;
	--text: #f4efe8;
	--muted: #c8beb7;
	--rose: #d6b09e;
	--gold: #d8ad73;
	--line: #302a28
}

* {
	box-sizing: border-box
}

html {
	scroll-behavior: smooth
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'DM Sans', sans-serif;
	-webkit-font-smoothing: antialiased
}

button,
a {
	font: inherit
}

button {
	cursor: pointer
}

a {
	color: inherit
}

img,
video {
	display: block;
	max-width: 100%
}

[hidden] {
	display: none!important
}

.progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--rose);
	z-index: 50
}

.section {
	padding: 110px max(6vw, 24px)
}

.eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .25em;
	color: var(--gold)
}

h1,
h2,
h3,
p {
	margin-top: 0
}

h1,
h2,
h3 {
	font-family: 'Playfair Display', serif;
	font-weight: 400;
	letter-spacing: -.035em
}

h1 {
	font-size: clamp(56px, 8vw, 130px);
	line-height: 1.08;
	margin: 34px 0
}

h2 {
	font-size: clamp(43px, 5.8vw, 90px);
	line-height: 1.22;
	margin: 34px 0
}

h3 {
	font-size: 42px
}

h1 em,
h2 em {
	font-weight: 400;
	color: var(--rose)
}

p {
	color: var(--muted);
	line-height: 1.95;
	font-size: clamp(16px, 1.35vw, 20px)
}

.hero {
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: 100px max(6vw, 24px);
	position: relative
}

.hero-inner {
	max-width: 1050px
}

.hero-inner p {
	max-width: 600px
}

.cta {
	display: inline-flex;
	gap: 28px;
	align-items: center;
	border: 1px solid #66554d;
	border-radius: 50px;
	text-decoration: none;
	padding: 17px 27px;
	margin-top: 24px;
	transition: background .25s, border-color .25s
}

.cta:hover {
	background: #27201e;
	border-color: var(--rose)
}

.access {
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: 24px 16px;
	background: radial-gradient(ellipse at top, #2b201f, var(--bg) 68%)
}

.access-card {
	width: min(100%, 540px);
	padding: clamp(22px, 6vw, 52px);
	border: 1px solid #493b36;
	background: #181515;
	text-align: center
}

.access-heart {
	color: var(--rose);
	font-size: 36px;
	line-height: 1
}

.access-card h1 {
	font-size: clamp(36px, 8vw, 64px);
	margin: 12px 0 16px
}

.access-form {
	display: grid;
	gap: 8px;
	text-align: left;
	margin: 24px auto 0;
	max-width: 340px
}

.access-form label {
	font-size: 14px
}

.access-form input {
	width: 100%;
	border: 1px solid #66554d;
	border-radius: 6px;
	background: #101010;
	color: var(--text);
	font: inherit;
	padding: 12px;
	margin-bottom: 8px
}

.access-form .cta {
	justify-content: center;
	background: #211b19;
	color: var(--text);
	margin-top: 4px
}

.access-form .cta:hover {
	background: #372925
}

.access-form .access-error {
	color: var(--rose);
	margin: 0 0 6px
}

.access-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 28px auto 16px
}

.access-countdown div {
	display: grid;
	gap: 4px;
	padding: 10px 0;
	border-top: 1px solid #66554d;
	font-size: clamp(10px, 2.5vw, 13px);
	color: var(--muted)
}

.access-countdown [data-countdown] {
	color: var(--rose);
	font-family: 'Playfair Display', serif;
	font-size: clamp(24px, 7vw, 52px);
	font-variant-numeric: lining-nums tabular-nums
}

.access-card .access-date {
	font-size: 14px;
	margin-bottom: 18px
}

.story-session {
	position: absolute;
	top: 24px;
	right: max(6vw, 24px)
}

.session-exit {
	border: 0;
	background: transparent;
	color: var(--muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 4px;
	padding: 10px 0
}

.access-card :focus-visible,
.session-exit:focus-visible {
	outline: 2px solid var(--rose);
	outline-offset: 3px
}

.hero-bottom {
	position: absolute;
	bottom: 30px;
	right: 6vw;
	color: var(--gold);
	letter-spacing: .2em;
	font-size: 12px
}

.intro {
	text-align: center;
	max-width: 1100px;
	margin: auto;
	padding-top: 150px;
	padding-bottom: 160px
}

.intro p {
	max-width: 650px;
	margin: auto
}

.chapter {
	min-height: 760px;
	display: flex;
	align-items: center
}

.chapter-grid {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7%;
	align-items: center
}

.chapter-copy {
	max-width: 690px
}

.photo-frame {
	position: relative;
	min-height: 520px;
	background: #211d1c;
	overflow: hidden
}

.photo-frame img {
	width: 100%;
	height: 100%;
	min-height: 520px;
	max-height: 740px;
	object-fit: cover
}

.photo-frame .placeholder {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--rose);
	padding: 30px
}

.photo-frame.missing img {
	display: none
}

.photo-frame.missing .placeholder {
	display: flex
}

.alternate .chapter-copy {
	order: 2
}

.alternate .quote-panel {
	order: 1
}

.quote-panel {
	min-height: 480px;
	background: #1c1918;
	padding: 65px;
	display: flex;
	flex-direction: column;
	justify-content: center
}

.quote-panel span {
	font-family: Georgia, serif;
	font-size: 110px;
	color: var(--rose);
	line-height: 1
}

.quote-panel p {
	font-family: 'Playfair Display', serif;
	font-size: clamp(30px, 3.5vw, 52px);
	line-height: 1.35;
	color: var(--text)
}

.date-section {
	text-align: center;
	padding-top: 170px;
	padding-bottom: 170px
}

.big-date {
	font-family: 'Playfair Display', serif;
	font-size: clamp(65px, 13vw, 190px);
	letter-spacing: -.065em;
	white-space: nowrap;
	margin: 40px 0 10px
}

.big-date span {
	color: var(--rose)
}

.date-section p {
	max-width: 740px;
	margin: 20px auto
}

.date-section .date-end {
	color: var(--rose);
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 26px
}

.counter {
	color: var(--gold);
	font-size: 14px;
	letter-spacing: .16em;
	margin-top: 40px
}

.gallery-section {
	padding-top: 150px;
	padding-bottom: 150px
}

.gallery-head {
	max-width: 760px;
	margin-bottom: 65px
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px
}

.gallery-item {
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	padding: 0;
	min-width: 0
}

.gallery-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/5;
	background: #211d1c
}

.gallery-thumb img,
.gallery-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease
}

.gallery-item:hover .gallery-thumb img,
.gallery-item:hover .gallery-thumb video {
	transform: scale(1.045)
}

.play-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #101010b8;
	border: 1px solid #ffffffa0;
	color: white;
	font-size: 24px;
	padding-left: 3px
}

.gallery-caption {
	display: block;
	font-family: 'Playfair Display', serif;
	color: var(--text);
	font-size: 19px;
	line-height: 1.45;
	margin-top: 14px
}

.gallery-hint {
	font-size: 13px;
	text-align: center;
	margin-top: 50px;
	color: var(--rose)
}

.letter-section {
	text-align: center;
	padding-top: 150px;
	padding-bottom: 170px
}

.letter-button {
	background: transparent;
	border: 1px solid var(--rose);
	color: var(--text);
	border-radius: 50px;
	padding: 19px 30px;
	margin-top: 30px;
	transition: background .2s
}

.letter-button:hover {
	background: #2a201f
}

.letter {
	margin: 60px auto 0;
	max-width: 760px;
	background: #eee7dc;
	color: #302923;
	text-align: left;
	padding: clamp(30px, 6vw, 85px);
	box-shadow: 0 25px 90px #0005
}

.letter .eyebrow {
	color: #8b5c50
}

.letter h3 {
	margin: 35px 0
}

.letter p {
	color: #4b4039;
	font-size: 18px
}

.letter .signature {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 28px;
	color: #7b4d47;
	margin-top: 35px
}

.ending {
	text-align: center;
	min-height: 80vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center
}

.ending h2 {
	max-width: 1150px
}

.ending .heart {
	font-size: 64px;
	color: var(--rose);
	margin-top: 35px
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: #090909f5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px 24px
}

.lightbox-media {
	max-width: min(1100px, 95vw);
	width: 100%;
	display: flex;
	justify-content: center;
	min-height: 0
}

.lightbox-media img,
.lightbox-media video {
	max-height: 75vh;
	max-width: 100%;
	width: auto;
	object-fit: contain
}

.lightbox-media video {
	width: min(100%, 950px)
}

#closeLightbox {
	position: absolute;
	right: 25px;
	top: 15px;
	border: 0;
	background: transparent;
	color: white;
	font-size: 43px;
	line-height: 1;
	padding: 10px
}

#lightboxCaption {
	margin: 20px 0 0;
	text-align: center;
	color: var(--text);
	font-family: 'Playfair Display', serif;
	font-size: 21px
}

.reveal {
	opacity: 0;
	transform: translateY(25px);
	transition: opacity .85s ease, transform .85s ease
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0)
}

@media(max-width:850px) {
	.section {
		padding: 90px 24px
	}
	.chapter {
		min-height: auto
	}
	.chapter-grid {
		grid-template-columns: 1fr;
		gap: 35px
	}
	.alternate .chapter-copy,
	.alternate .quote-panel {
		order: initial
	}
	.photo-frame,
	.photo-frame img {
		min-height: 380px;
		max-height: 650px
	}
	.quote-panel {
		min-height: 280px;
		padding: 40px
	}
	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px
	}
	.gallery-caption {
		font-size: 16px
	}
	.hero {
		padding: 90px 24px
	}
	.intro {
		padding-top: 110px;
		padding-bottom: 110px
	}
	.date-section {
		padding-top: 110px;
		padding-bottom: 110px
	}
}

@media(max-width:520px) {
	h1 {
		font-size: clamp(48px, 12vw, 70px)
	}
	h2 {
		font-size: clamp(40px, 10vw, 58px)
	}
	.gallery {
		gap: 12px
	}
	.gallery-caption {
		font-size: 14px
	}
	.play-icon {
		width: 46px;
		height: 46px;
		font-size: 19px
	}
	.big-date {
		font-size: clamp(53px, 13vw, 75px)
	}
	.eyebrow {
		font-size: 10px
	}
	.letter p {
		font-size: 16px
	}
}

@media(prefers-reduced-motion:reduce) {
	html {
		scroll-behavior: auto
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none
	}
	.gallery-thumb img,
	.gallery-thumb video {
		transition: none
	}
}
