:root{
  --night:#12081c; --plum:#1e0e2e; --wine:#3a1a47;
  --rose:#f0b8c6; --gold:#e9c9a2; --ivory:#fbf4ee; --ink:#3b1f3d; --mist:#b9a6c9;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sans:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --deva:"Tiro Devanagari Hindi","Noto Serif Devanagari",serif;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--night);color:var(--ivory);font-family:var(--sans);line-height:1.65;overflow-x:hidden}
body.locked{overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--rose);outline-offset:3px}

.wrap{width:min(1100px,calc(100% - 3rem));margin-inline:auto}
.sec{padding:clamp(5rem,12vw,9rem) 0}
.sec-plum{background:var(--plum)}
.sec-ivory{background:var(--ivory);color:var(--ink)}
.sec-close{background:var(--night)}

h2{font-family:var(--serif);font-weight:500;font-size:clamp(2.3rem,5.2vw,3.9rem);line-height:1.05;margin-bottom:1.6rem}
p{max-width:34em;font-size:1.1rem;color:rgba(251,244,238,.82)}
p + p{margin-top:1.1rem}
.muted{color:var(--mist)}

/* intro */
.intro{position:fixed;inset:0;z-index:50;background:var(--night);display:grid;place-items:center;text-align:center;padding:2rem;transition:opacity 1.2s ease,visibility 1.2s}
.intro.gone{opacity:0;visibility:hidden}
.intro-inner{display:grid;justify-items:center;gap:1.6rem}
.intro-star{width:34px;height:34px;fill:var(--gold)}
.intro-line{font-family:var(--serif);font-style:italic;font-size:clamp(1.9rem,6vw,3rem);line-height:1.2;color:var(--ivory)}

.btn{padding:.85rem 2.2rem;border:1px solid var(--gold);border-radius:999px;background:transparent;color:var(--gold);font-size:.98rem;letter-spacing:.02em;transition:background .3s,color .3s}
.btn:hover{background:var(--gold);color:var(--night)}

.music{position:fixed;top:max(1rem,env(safe-area-inset-top));right:1rem;z-index:30;width:2.8rem;height:2.8rem;border-radius:50%;border:1px solid rgba(233,201,162,.5);background:rgba(18,8,28,.6);backdrop-filter:blur(6px);display:grid;place-items:center}
.music[hidden]{display:none}
.music svg{width:1.2rem;height:1.2rem;fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.music[aria-pressed="true"]{background:var(--gold)}
.music[aria-pressed="true"] svg{stroke:var(--night)}

/* hero */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:radial-gradient(120% 80% at 0% 100%,var(--wine) 0%,rgba(58,26,71,0) 60%),var(--night)}
#sky{position:absolute;inset:0;width:100%;height:100%}
.hero-copy{position:relative;padding-bottom:clamp(2.5rem,8vh,5rem)}
.kicker{font-size:1rem;color:var(--gold);letter-spacing:.02em;margin-bottom:.4rem}
.title{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:clamp(1rem,3vw,2.5rem);font-weight:400;line-height:.85}
.name{font-family:var(--serif);font-style:italic;font-weight:500;font-size:clamp(5.5rem,24vw,17rem);letter-spacing:-.02em;color:var(--ivory)}
.deva{font-family:var(--deva);font-size:clamp(2.2rem,6.5vw,4.8rem);color:var(--rose)}
.sub{margin-top:1.4rem;color:var(--mist)}

/* naam */
.naam-grid{display:grid;gap:2.5rem;grid-template-columns:minmax(0,1fr)}
.glyph{font-family:var(--deva);font-size:clamp(8rem,30vw,20rem);line-height:1;color:var(--gold)}
@media (min-width:800px){
  .naam-grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:center;gap:4rem}
}

/* counter */
.clock{font-family:var(--serif);font-size:clamp(1.9rem,5.4vw,3.8rem);line-height:1.2;color:var(--ivory);max-width:18em;margin-bottom:1.4rem}
.clock b{font-weight:500;color:var(--rose);font-variant-numeric:tabular-nums}

/* story */
.story{margin-top:3rem;padding-left:2rem;border-left:1px solid rgba(233,201,162,.35)}
.chapter{position:relative;padding-bottom:3.5rem}
.chapter:last-child{padding-bottom:0}
.chapter::before{content:"";position:absolute;left:calc(-2rem - 4.5px);top:.55rem;width:9px;height:9px;border-radius:50%;background:var(--gold)}
.chapter-date{font-size:.9rem;color:var(--gold);margin-bottom:.2rem}
.chapter h3{font-family:var(--serif);font-weight:500;font-size:clamp(1.7rem,3.6vw,2.4rem);line-height:1.15;margin-bottom:.6rem}
.polaroid{margin-top:1.4rem;width:min(100%,360px);background:var(--ivory);padding:.6rem .6rem 0;color:var(--ink);transform:rotate(-1.5deg)}
.chapter:nth-child(even) .polaroid{transform:rotate(1.5deg)}
.polaroid img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.polaroid figcaption{font-family:var(--serif);font-style:italic;font-size:1.15rem;padding:.5rem .2rem .9rem;min-height:2.6rem}

/* reasons */
.reason-box{min-height:clamp(10rem,26vw,15rem);display:flex;align-items:center;margin:1rem 0 2rem}
.reason-text{font-family:var(--serif);font-style:italic;font-size:clamp(1.9rem,4.6vw,3.3rem);line-height:1.2;color:var(--ivory);max-width:22em;transition:opacity .25s ease}
.reason-text.fade{opacity:0}
.reason-nav{display:flex;align-items:center;gap:1.2rem}
.reason-count{font-variant-numeric:tabular-nums;color:var(--mist);min-width:4.5rem;text-align:center}
.round{width:3rem;height:3rem;border-radius:50%;border:1px solid var(--gold);background:transparent;display:grid;place-items:center;transition:background .3s}
.round svg{width:1.2rem;height:1.2rem;fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .3s}
.round:hover{background:var(--gold)}
.round:hover svg{stroke:var(--night)}

/* letter */
.letter-wrap{display:grid;justify-items:center}
.seal{display:grid;justify-items:center;gap:1rem;background:none;border:0;color:var(--ink)}
.seal-mark{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:#9b2d4f;color:var(--ivory);font-family:var(--serif);font-style:italic;font-size:3.2rem;box-shadow:inset 0 0 0 6px #9b2d4f,inset 0 0 0 8px rgba(251,244,238,.35),0 10px 24px rgba(59,31,61,.28);transition:transform .6s ease}
.seal[aria-expanded="true"] .seal-mark{transform:scale(.62)}
.seal-label{font-size:.98rem}
.letter{display:grid;grid-template-rows:0fr;width:100%;transition:grid-template-rows 1s ease}
.letter.open{grid-template-rows:1fr}
.letter-inner{overflow:hidden;min-height:0}
.paper{width:min(36rem,100%);margin:2rem auto 0;font-family:var(--serif);font-size:clamp(1.3rem,2.6vw,1.55rem);line-height:1.7;color:var(--ink)}
.paper p{max-width:none;font-size:inherit;color:inherit;opacity:0;transform:translateY(8px)}
.paper p + p{margin-top:1.2rem}
.letter.open .paper p{opacity:1;transform:none;transition:opacity .9s ease,transform .9s ease;transition-delay:calc(var(--i) * .4s + .5s)}
.paper .sign{font-style:italic}
.paper .from{font-size:1.9em;line-height:1.1;font-style:italic;margin-top:.2rem}

/* close */
.close-wrap{text-align:center;display:grid;justify-items:center}
.close-wrap p{max-width:28em}
.close-wrap .btn{margin-top:1.6rem}
.wish-msg{margin-top:1.6rem;font-family:var(--serif);font-style:italic;font-size:1.6rem;color:var(--rose);min-height:2.2rem}
.foot{margin-top:5rem;font-size:.9rem;color:var(--mist)}
.shoot{position:fixed;top:14%;left:-12%;width:150px;height:2px;z-index:20;pointer-events:none;background:linear-gradient(90deg,rgba(233,201,162,0),var(--gold));transform:rotate(24deg);opacity:0;animation:shoot 1.5s ease-out forwards}
@keyframes shoot{
  0%{opacity:0;transform:rotate(24deg) translateX(0)}
  15%{opacity:1}
  100%{opacity:0;transform:rotate(24deg) translateX(135vw)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms !important;transition-delay:0s !important;animation-duration:.01ms !important}
}
