:root {
  --ink: #132238;
  --cream: #f5f0e7;
  --paper: #fffdf8;
  --gold: #c6923d;
  --muted: #69717b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); }
img { display: block; max-width: 100%; }

.progress { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,.2); }
.progress span { display: block; width: 0; height: 100%; background: var(--gold); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--ink); color: white; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; filter: saturate(.85); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,19,34,.08) 30%, rgba(8,19,34,.92) 100%); }
.hero-copy { position: relative; z-index: 2; width: min(740px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 9svh; }
.eyebrow, .chapter { margin: 0 0 16px; color: #e2b967; font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font: 600 clamp(4.2rem, 15vw, 8.5rem)/.85 var(--serif); letter-spacing: -.04em; }
.intro { max-width: 560px; margin: 28px 0; font: 500 clamp(1.05rem, 2.8vw, 1.28rem)/1.65 var(--sans); color: rgba(255,255,255,.88); }
.begin { display: inline-flex; gap: 14px; align-items: center; color: white; text-decoration: none; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.begin span { color: var(--gold); font-size: 1.2rem; }

.opening { width: min(840px, calc(100% - 40px)); margin: 0 auto; padding: 18vh 0 14vh; text-align: center; }
.opening h2, .interlude h2 { margin: 0; font: 500 clamp(2.6rem, 7vw, 5.4rem)/1.02 var(--serif); letter-spacing: -.025em; }

.story-list { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.moment { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); align-items: center; gap: clamp(28px, 6vw, 90px); min-height: 84svh; margin: 0; padding: 8vh 0; }
.moment:nth-of-type(even) { grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); }
.moment:nth-of-type(even) img { order: 2; }
.moment img { width: 100%; max-height: 74svh; object-fit: contain; border-radius: 4px; box-shadow: 0 22px 65px rgba(23,31,43,.18); background: #e8e1d6; }
.moment figcaption { max-width: 400px; font: 500 clamp(1.75rem, 3.5vw, 3.1rem)/1.12 var(--serif); }
.moment figcaption::before { content: ""; display: block; width: 42px; height: 2px; margin-bottom: 24px; background: var(--gold); }

.interlude { margin: 8vh calc(50% - 50vw); padding: 18vh max(24px, calc((100vw - 900px) / 2)); text-align: center; background: var(--ink); color: white; }
.interlude span { display: block; margin-bottom: 20px; color: #e2b967; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.interlude.school { background: #6f531e; }
.interlude.music { background: #22202a; }

.letter-wrap { padding: 14vh 20px; background: #ded4c5; }
.letter { width: min(780px, 100%); margin: 0 auto; padding: clamp(38px, 8vw, 88px); background: var(--paper); box-shadow: 0 25px 80px rgba(31,27,20,.12); }
.letter h2 { margin: 0 0 38px; font: 600 clamp(3.3rem, 8vw, 5.4rem)/1 var(--serif); }
.letter p:not(.chapter):not(.signoff) { margin: 0 0 1.35em; color: #263343; font: 400 clamp(1rem, 2vw, 1.1rem)/1.82 var(--sans); }
.letter .signoff { margin: 48px 0 0; font: italic 500 1.55rem/1.5 var(--serif); }

footer { min-height: 70svh; display: grid; place-content: center; padding: 60px 24px; text-align: center; background: var(--ink); color: white; }
footer p { margin: 0; font: 500 clamp(4rem, 12vw, 8rem)/.95 var(--serif); }
footer span { margin-top: 24px; color: rgba(255,255,255,.66); font-size: .9rem; letter-spacing: .04em; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .hero > img { object-position: 56% 26%; }
  .hero-copy { padding-bottom: 8svh; }
  .moment, .moment:nth-of-type(even) { display: flex; min-height: auto; flex-direction: column; align-items: stretch; gap: 28px; padding: 8vh 0; }
  .moment:nth-of-type(even) img { order: 0; }
  .moment img { max-height: 68svh; }
  .moment figcaption { padding: 0 12px 3vh; font-size: 2.15rem; }
  .interlude { padding-top: 14vh; padding-bottom: 14vh; }
  .letter-wrap { padding: 8vh 12px; }
  .letter { padding: 42px 25px; }
}

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