@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root{
  --cream:#FBF6EF;
  --cream-deep:#F6EEE1;
  --pink:#F6D6DC;
  --pink-deep:#EFC0C9;
  --lavender:#E1D9F7;
  --blue:#D3E9F7;
  --peach:#FBE1CC;
  --ink:#4A3F42;
  --ink-soft:#7A6B6E;
  --gold:#E3B77D;
  --shadow: 2px 6px 18px rgba(74,63,66,0.12);
  --shadow-soft: 1px 3px 10px rgba(74,63,66,0.08);
  --radius: 18px;
  --serif: 'Caveat', cursive;
  --sans: 'Quicksand', sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
  line-height:1.6;
}

img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;}
a{color:inherit;}

/* subtle paper texture */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(230,210,190,0.18) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(210,200,230,0.16) 0, transparent 45%);
}

.wrap{
  position:relative;
  max-width:1080px;
  margin:0 auto;
  padding:0 24px;
}

/* floating background doodles */
.float-deco{
  position:absolute;
  pointer-events:none;
  opacity:.55;
  font-size:22px;
  animation:drift 9s ease-in-out infinite;
  z-index:0;
  user-select:none;
}
@keyframes drift{
  0%,100%{transform:translateY(0) rotate(0deg);}
  50%{transform:translateY(-18px) rotate(8deg);}
}

/* ---------- nav ---------- */
.nav{
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  z-index:60;
  display:flex;
  gap:6px;
  background:rgba(251,246,239,0.75);
  backdrop-filter:blur(8px);
  border:1px solid rgba(74,63,66,0.08);
  padding:8px;
  border-radius:999px;
  box-shadow:var(--shadow-soft);
}
.nav button{
  border:none;
  background:transparent;
  padding:8px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  color:var(--ink-soft);
  transition:background .25s ease, color .25s ease;
}
.nav button:hover, .nav button:focus-visible{
  background:var(--pink);
  color:var(--ink);
}
@media (max-width:640px){
  .nav{display:none;}
}

/* ---------- hero ---------- */
.hero{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  padding:120px 24px 80px;
}
.hero-eyebrow{
  font-family:var(--serif);
  font-size:22px;
  color:var(--ink-soft);
  margin:0 0 4px;
}
.hero h1{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(48px,9vw,96px);
  margin:0;
  line-height:1;
  color:var(--ink);
}
.hero h1 .name{
  color:#D98A9B;
}
.hero-sub{
  font-size:18px;
  color:var(--ink-soft);
  margin:18px 0 44px;
  max-width:420px;
}

.hero-photo-wrap{
  position:relative;
  width:min(280px,70vw);
  margin-bottom:48px;
}
.hero-photo{
  background:#fff;
  padding:14px 14px 46px;
  border-radius:6px;
  box-shadow:var(--shadow);
  transform:rotate(-3deg);
  transition:transform .4s ease;
}
.hero-photo:hover{transform:rotate(-1deg) scale(1.02);}
.hero-photo img{
  border-radius:2px;
  aspect-ratio:4/5;
  object-fit:cover;
}
.hero-photo figcaption{
  font-family:var(--serif);
  font-size:20px;
  text-align:center;
  margin-top:10px;
  color:var(--ink-soft);
}
.hero-note{
  position:absolute;
  font-family:var(--serif);
  font-size:19px;
  color:var(--ink-soft);
  white-space:nowrap;
}
.hero-note.n1{top:-6%;left:-46%;transform:rotate(-8deg);}
.hero-note.n2{bottom:6%;right:-52%;transform:rotate(6deg);}
.hero-note.n3{top:44%;right:-58%;transform:rotate(-4deg);}
@media (max-width:760px){
  .hero-note{display:none;}
}

.btn-surprise{
  border:none;
  background:var(--pink-deep);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:700;
  font-size:16px;
  padding:16px 34px;
  border-radius:999px;
  box-shadow:var(--shadow-soft);
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-surprise:hover, .btn-surprise:focus-visible{
  transform:translateY(-3px);
  background:#E7AAB6;
  box-shadow:var(--shadow);
}

.scroll-cue{
  margin-top:56px;
  font-size:13px;
  color:var(--ink-soft);
  opacity:.7;
}

/* ---------- section shells ---------- */
section{
  position:relative;
  padding:110px 0;
  z-index:1;
}
.section-head{
  text-align:center;
  max-width:560px;
  margin:0 auto 56px;
}
.section-head h2{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(34px,5vw,52px);
  margin:0 0 10px;
  color:var(--ink);
}
.section-head p{
  color:var(--ink-soft);
  font-size:16px;
  margin:0;
}

.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}

/* ---------- gallery ---------- */
.gallery-bg{background:var(--cream-deep);}
.masonry{
  columns:3 220px;
  column-gap:26px;
}
@media (max-width:640px){ .masonry{columns:1 260px;} }

.polaroid{
  break-inside:avoid;
  margin:0 0 30px;
  background:#fff;
  padding:12px 12px 40px;
  border-radius:5px;
  box-shadow:var(--shadow);
  cursor:pointer;
  border:none;
  display:block;
  width:100%;
  text-align:left;
  position:relative;
  transition:transform .3s ease, box-shadow .3s ease;
}
.polaroid:nth-child(3n+1){transform:rotate(-4deg);}
.polaroid:nth-child(3n+2){transform:rotate(3deg);}
.polaroid:nth-child(3n+3){transform:rotate(-1.5deg);}
.polaroid:hover, .polaroid:focus-visible{
  transform:rotate(0deg) scale(1.035) translateY(-4px);
  box-shadow:0 10px 26px rgba(74,63,66,0.18);
  z-index:5;
}
.polaroid img{border-radius:2px;width:100%;object-fit:cover;}
.polaroid figcaption{
  font-family:var(--serif);
  font-size:19px;
  color:var(--ink-soft);
  margin-top:10px;
  text-align:center;
}
.tape{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%) rotate(-2deg);
  width:64px;
  height:22px;
  background:rgba(246,214,220,0.75);
  border:1px solid rgba(255,255,255,0.4);
  box-shadow:var(--shadow-soft);
}

/* lightbox */
.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(74,63,66,0.55);
  backdrop-filter:blur(3px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  padding:24px;
}
.lightbox.is-open{opacity:1;pointer-events:auto;}
.lightbox-card{
  background:#fff;
  padding:18px 18px 34px;
  border-radius:8px;
  max-width:min(560px,90vw);
  box-shadow:0 20px 60px rgba(0,0,0,0.25);
  transform:scale(.9);
  transition:transform .3s ease;
}
.lightbox.is-open .lightbox-card{transform:scale(1);}
.lightbox-card img{border-radius:3px;max-height:70vh;width:100%;object-fit:cover;}
.lightbox-card figcaption{
  font-family:var(--serif);
  font-size:24px;
  text-align:center;
  margin-top:12px;
  color:var(--ink-soft);
}
.lightbox-close{
  position:absolute;
  top:22px;
  right:26px;
  background:rgba(255,255,255,0.85);
  border:none;
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:18px;
  color:var(--ink);
}

/* ---------- videos ---------- */
.video-featured{
  max-width:720px;
  margin:0 auto 36px;
  background:#fff;
  padding:16px 16px 30px;
  border-radius:20px;
  box-shadow:var(--shadow);
  position:relative;
}
.video-frame{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:var(--lavender);
  aspect-ratio:16/9;
}
.video-frame video{width:100%;height:100%;object-fit:cover;display:block;}
.video-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(74,63,66,0.18);
  border:none;
  transition:background .25s ease;
}
.video-play:hover{background:rgba(74,63,66,0.28);}
.video-play .circle{
  width:64px;height:64px;border-radius:50%;
  background:rgba(255,255,255,0.92);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-soft);
  font-size:0;
}
.video-play .circle::after{
  content:"";
  border-style:solid;
  border-width:11px 0 11px 18px;
  border-color:transparent transparent transparent #D98A9B;
  margin-left:4px;
}
.video-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
  font-family:var(--serif);
  font-size:20px;
  color:var(--ink-soft);
}
.video-sticker{
  position:absolute;
  top:-14px;
  right:14px;
  font-size:28px;
  transform:rotate(10deg);
}
.video-grid-small{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  max-width:720px;
  margin:0 auto;
}
@media (max-width:560px){.video-grid-small{grid-template-columns:1fr;}}
.video-small{
  background:#fff;
  padding:10px 10px 20px;
  border-radius:14px;
  box-shadow:var(--shadow-soft);
}
.video-small .video-frame{aspect-ratio:16/10;border-radius:8px;}
.video-small figcaption{
  font-family:var(--serif);
  font-size:17px;
  margin-top:8px;
  text-align:center;
  color:var(--ink-soft);
}

/* ---------- letters ---------- */
.letters-bg{background:var(--cream-deep);}
.letters-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:30px;
  max-width:900px;
  margin:0 auto;
}
.envelope{
  background:linear-gradient(180deg,#fff,#FBF6EF);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:22px 20px;
  cursor:pointer;
  border:none;
  text-align:left;
  width:100%;
  font-family:inherit;
  transition:transform .3s ease;
  position:relative;
}
.envelope:nth-child(odd){transform:rotate(-2deg);}
.envelope:nth-child(even){transform:rotate(1.5deg);}
.envelope:hover, .envelope:focus-visible{transform:rotate(0) translateY(-4px);}
.envelope-seal{font-size:22px;margin-bottom:10px;display:block;}
.envelope-from{
  font-family:var(--serif);
  font-size:24px;
  color:var(--ink);
  margin:0;
}
.envelope-hint{
  font-size:13px;
  color:var(--ink-soft);
  margin-top:6px;
}

.letter-modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(74,63,66,0.55);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  padding:24px;
}
.letter-modal.is-open{opacity:1;pointer-events:auto;}
.letter-paper{
  background:#FFFDF9;
  max-width:480px;
  width:100%;
  padding:38px 34px;
  border-radius:6px;
  box-shadow:0 24px 60px rgba(0,0,0,0.28);
  transform:translateY(30px) scale(.96);
  transition:transform .35s ease;
  max-height:80vh;
  overflow-y:auto;
}
.letter-modal.is-open .letter-paper{transform:translateY(0) scale(1);}
.letter-paper .avatar{
  width:56px;height:56px;border-radius:50%;
  object-fit:cover;
  margin-bottom:14px;
  box-shadow:var(--shadow-soft);
}
.letter-paper h3{
  font-family:var(--serif);
  font-size:26px;
  margin:0 0 14px;
}
.letter-paper p{
  font-size:16px;
  color:var(--ink);
  white-space:pre-line;
}
.letter-sign{
  font-family:var(--serif);
  font-size:24px;
  color:var(--ink-soft);
  margin-top:18px;
}
.letter-close{
  position:absolute;
  top:22px;
  right:26px;
  background:rgba(255,255,255,0.85);
  border:none;
  width:40px;height:40px;border-radius:50%;
  font-size:18px;
}

/* ---------- music player (floating) ---------- */
.player{
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:70;
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  max-width:min(320px,88vw);
  transition:transform .3s ease;
}
.player.collapsed .player-body{display:none;}
.player-art{
  width:46px;height:46px;border-radius:10px;
  object-fit:cover;
  flex-shrink:0;
}
.player-body{min-width:0;}
.player-label{font-size:11px;color:var(--ink-soft);margin:0;}
.player-title{font-family:var(--serif);font-size:17px;margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.player-controls{display:flex;align-items:center;gap:8px;}
.player-controls button{
  border:none;background:var(--pink);
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;color:var(--ink);
}
.player-progress{
  flex:1;
  height:4px;
  border-radius:2px;
  background:var(--cream-deep);
  cursor:pointer;
  position:relative;
}
.player-progress-bar{
  position:absolute;left:0;top:0;bottom:0;
  background:var(--gold);
  border-radius:2px;
  width:0%;
}
.player-time{font-size:10px;color:var(--ink-soft);}
.player-start{
  border:none;
  background:var(--pink-deep);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:700;
  font-size:13px;
  padding:10px 16px;
  border-radius:999px;
  white-space:nowrap;
}
@media (max-width:480px){
  .player{left:16px;right:16px;bottom:16px;max-width:none;}
}

/* ---------- message ---------- */
.message-section{
  text-align:center;
  max-width:640px;
  margin:0 auto;
  padding:110px 24px;
}
.message-kicker{
  font-family:var(--serif);
  font-size:32px;
  color:var(--ink-soft);
  margin:0 0 20px;
}
.message-body{
  font-size:18px;
  color:var(--ink);
  max-width:520px;
  margin:0 auto 30px;
}
.message-huge{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(40px,7vw,72px);
  color:#D98A9B;
  margin:0;
}

/* ---------- surprise ---------- */
.surprise{
  text-align:center;
  padding:80px 24px 160px;
}
.surprise-trigger{
  border:none;
  background:transparent;
  font-family:var(--serif);
  font-size:22px;
  color:var(--ink-soft);
  text-decoration:underline;
  text-decoration-color:var(--pink-deep);
  text-underline-offset:6px;
}
.surprise-reveal{
  margin-top:34px;
  max-width:420px;
  margin-left:auto;
  margin-right:auto;
  opacity:0;
  max-height:0;
  overflow:hidden;
  transition:opacity .6s ease, max-height .6s ease;
}
.surprise-reveal.is-open{opacity:1;max-height:600px;}
.surprise-reveal .polaroid{cursor:default;}
.surprise-reveal p{font-family:var(--serif);font-size:24px;color:var(--ink-soft);margin-top:18px;}

footer{
  text-align:center;
  padding:30px 24px 46px;
  font-size:13px;
  color:var(--ink-soft);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
  html{scroll-behavior:auto;}
}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
