/* ══════════════════════════════════════════════════
   For Theron — an interactive love letter
   Palette + type carried over exactly from the design.
   ══════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  --cream:    #FBF6F1;
  --paper:    #FFFDFB;
  --ink:      #3A2A2C;
  --plum:     #4A2630;
  --wine:     #7A2537;
  --rose:     #A83D51;
  --blush:    #C0798A;
  --dusty:    #B07F8B;
  --muted:    #7A6265;
  --soft:     #584044;
  --petal:    #D9A3AC;
  --lilac:    #C9A8CE;
  --caption:  #6E4750;
  --tape:     rgba(214, 196, 208, .55);
  --hairline: rgba(168, 61, 81, .14);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  Karla, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand:  Caveat, 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.intro-open,
body.modal-open { overflow: hidden; }

a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--blush); }

img { max-width: 100%; display: block; }
img.missing { display: none; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }


/* ══════════ motion ══════════ */

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50%      { opacity: .9;  transform: scale(1.1); }
}
@keyframes riseUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes burst {
  0%   { opacity: 1; transform: translate(0, 0) scale(.5) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(var(--r)); }
}

/* Reveal on scroll. Visible by default so the page still reads
   with JavaScript off; .js opts into the animation. */
.reveal { opacity: 1; }

.js .reveal {
  opacity: 0;
  transform: translateY(var(--rise, 18px));
  transition: opacity .9s ease var(--d, 0s),
              transform .9s ease var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}


/* ══════════ ground ══════════ */

.page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 12% -6%, #F7E3E4 0%, rgba(247, 227, 228, 0) 62%),
    radial-gradient(760px 480px at 96% 18%, #EFE7F3 0%, rgba(239, 231, 243, 0) 60%),
    radial-gradient(800px 600px at 50% 108%, #F6E1E0 0%, rgba(246, 225, 224, 0) 65%),
    var(--cream);
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(112deg, rgba(120, 80, 70, .035) 0 1px, rgba(0, 0, 0, 0) 1px 4px),
    repeating-linear-gradient(6deg,   rgba(120, 80, 70, .025) 0 1px, rgba(0, 0, 0, 0) 1px 6px);
}

.accents { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.accents span { position: absolute; }

.wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding-inline: 22px;
}

section { padding-top: 80px; }
section.centered { text-align: center; }


/* ══════════ our song ══════════ */

.music {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(122, 37, 55, .18);
  border-radius: 999px;
  background: rgba(251, 246, 241, .82);
  backdrop-filter: blur(8px);
  color: var(--wine);
  font: 400 12px/1 var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(122, 37, 55, .08);
  transition: background .3s ease, border-color .3s ease;
}
.music:hover { background: #fff; border-color: rgba(122, 37, 55, .35); }
.music .glyph { font-size: 13px; }
.music .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(168, 61, 81, .22);
  transition: background .3s ease;
}
.music[aria-pressed="true"] .dot { background: var(--rose); }


/* ══════════ full-screen curtains (the lock, the intro) ══════════ */

.curtain {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(700px 500px at 50% 30%, #F8E6E6 0%, rgba(248, 230, 230, 0) 70%),
    var(--cream);
  transition: opacity .9s ease;
}
.curtain.fading { opacity: 0; }
.curtain .grain { opacity: .55; }

.curtain .psst {
  font: 400 15px/1 var(--hand);
  color: var(--blush);
  letter-spacing: .08em;
  animation: riseUp .8s ease both;
}
.curtain h1 {
  margin: 14px 0 0;
  font: 400 clamp(38px, 13vw, 62px)/1.05 var(--serif);
  color: var(--plum);
  letter-spacing: -.01em;
  text-wrap: balance;
  animation: riseUp .9s ease .15s both;
}
.curtain h1 em { font-style: normal; color: var(--rose); }
.curtain p {
  margin: 18px 0 0;
  max-width: 22ch;
  font: 300 16px/1.6 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
  animation: riseUp .9s ease .35s both;
}
.curtain .aside {
  margin-top: 20px;
  font: 400 14px/1 var(--hand);
  color: #B99BA0;
  animation: riseUp .9s ease .75s both;
}


/* ══════════ the lock ══════════ */

/* Fail closed: while .locked is on <html>, the letter itself is never
   rendered. JavaScript removes the class once he gets the date right,
   so with JS off the gate simply never opens. */
.locked .wrap,
.locked .music { display: none; }

html:not(.locked) .gate { display: none; }

.gate { z-index: 55; }
.gate p { max-width: 24ch; }

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  animation: riseUp .9s ease .5s both;
}

.gate-input {
  width: min(230px, 80vw);
  padding: 15px 18px;
  border: 1px solid rgba(168, 61, 81, .28);
  border-radius: 14px;
  background: rgba(255, 253, 251, .9);
  color: var(--plum);
  font: 400 17px/1 var(--sans);
  letter-spacing: .04em;
  text-align: center;
  cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.gate-input:hover { border-color: rgba(168, 61, 81, .45); }
.gate-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(168, 61, 81, .12);
}
.gate-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .5;
}

.gate-btn { margin-top: 0; animation: none; }

.gate.wrong .gate-form { animation: shake .45s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(7px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(3px); }
}

.gate-miss {
  min-height: 1.4em;
  margin: 18px 0 0;
  font: 400 17px/1.4 var(--hand);
  color: var(--rose);
}
.gate-miss:empty { opacity: 0; }

.gate .aside { margin-top: 14px; }

.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;
}


/* ══════════ intro ══════════ */

.intro { z-index: 50; }

.open-btn {
  margin-top: 38px;
  padding: 17px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #8E2839, #B34B5C);
  color: #FDF6F2;
  font: 400 15px/1 var(--sans);
  letter-spacing: .09em;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(142, 40, 57, .28);
  animation: riseUp .9s ease .55s both, breathe 3.4s ease-in-out 1.6s infinite;
  transition: box-shadow .3s ease;
}
.open-btn:hover { box-shadow: 0 18px 40px rgba(142, 40, 57, .36); }


/* ══════════ shared type ══════════ */

.eyebrow-hand {
  font: 400 15px/1 var(--hand);
  color: var(--blush);
  letter-spacing: .06em;
}

.h-section {
  margin: 0;
  font: 400 clamp(28px, 8vw, 38px)/1.15 var(--serif);
  color: var(--plum);
  text-align: center;
  text-wrap: balance;
}

.sub-hand {
  margin: 12px auto 0;
  max-width: 28ch;
  font: 400 15px/1.4 var(--hand);
  color: var(--dusty);
  text-align: center;
}


/* ══════════ hero ══════════ */

.hero { padding-top: 84px; text-align: center; }

.hero h2 {
  margin: 16px 0 0;
  font: 400 clamp(34px, 10.5vw, 50px)/1.12 var(--serif);
  color: var(--plum);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero p {
  margin: 22px auto 0;
  max-width: 34ch;
  font: 300 15.5px/1.75 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.hero-shot {
  position: relative;
  margin: 46px auto 0;
  width: min(300px, 82%);
}

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 92px;
  height: 26px;
  background: var(--tape);
  box-shadow: 0 1px 3px rgba(90, 60, 60, .12);
  z-index: 2;
}

.hero-note {
  position: absolute;
  right: -14px;
  top: calc(100% - 10px);
  max-width: 150px;
  transform: rotate(5deg);
  font: 400 17px/1.3 var(--hand);
  color: var(--rose);
  text-align: left;
}

.rule {
  margin: 86px auto 0;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(168, 61, 81, 0),
    rgba(168, 61, 81, .5),
    rgba(168, 61, 81, 0));
}


/* ══════════ polaroid ══════════ */

.polaroid {
  position: relative;
  margin: 0;
  transform: rotate(var(--tilt, 0deg));
  background: var(--paper);
  padding: 12px 12px 52px;
  border-radius: 3px;
  box-shadow: 0 20px 44px rgba(90, 52, 58, .16);
  cursor: pointer;
  transition: transform .5s ease;
}
.polaroid[data-cap]:hover,
.polaroid[data-cap]:focus-visible { transform: rotate(0deg) scale(1.015); }

.polaroid .frame {
  position: relative;
  aspect-ratio: var(--ratio, 1/1);
  max-width: 100%;
  background: repeating-linear-gradient(135deg, #EFE1DE 0 9px, #F8EFEB 9px 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.polaroid .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid .frame .mark {
  font: 400 22px/1 var(--hand);
  color: rgba(160, 129, 127, .7);
}
.polaroid .frame img:not(.missing) ~ .mark { display: none; }

.polaroid .cap {
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font: 400 19px/1 var(--hand);
  color: var(--caption);
}

.polaroid.sm { padding: 9px 9px 40px; box-shadow: 0 14px 30px rgba(90, 52, 58, .13); }
.polaroid.sm .cap { bottom: 13px; font-size: 16px; }
.polaroid.sm .cap.sm-cap { font-size: 15px; }

.polaroid.xs {
  padding: 9px 9px 34px;
  box-shadow: 0 12px 28px rgba(90, 52, 58, .13);
  cursor: default;
}
.polaroid.xs .cap { bottom: 11px; font-size: 15px; }

.stamp {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 58px;
  height: 20px;
  transform: rotate(14deg);
  background: rgba(214, 196, 208, .5);
  z-index: 2;
}


/* ══════════ timeline ══════════ */

.timeline {
  position: relative;
  margin-top: 46px;
  padding-left: 34px;
}
.timeline .spine {
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, rgba(168, 61, 81, .45), rgba(168, 61, 81, .12));
}

.beat { position: relative; padding-bottom: 40px; }
.beat:last-child { padding-bottom: 0; }

.beat .dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(168, 61, 81, .14);
}
.beat .dot.now {
  background: var(--cream);
  border: 1.5px solid var(--rose);
  box-shadow: 0 0 0 4px rgba(168, 61, 81, .1);
}

.beat .when {
  font: 400 11px/1 var(--sans);
  color: var(--dusty);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.beat h4 {
  margin: 9px 0 0;
  font: 500 22px/1.25 var(--serif);
  color: var(--plum);
}
.beat p {
  margin: 7px 0 0;
  font: 300 14.5px/1.7 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}
.beat .polaroid { margin-top: 16px; width: min(190px, 62%); }


/* ══════════ gallery ══════════ */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 44px;
}

.gallery-hero {
  margin: 30px auto 0;
  width: min(260px, 76%);
  padding: 11px 11px 46px;
  box-shadow: 0 18px 38px rgba(90, 52, 58, .15);
}
.gallery-hero .cap { bottom: 15px; font-size: 18px; }


/* ══════════ things I adore ══════════ */

.adore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.adore {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  border: 1px solid rgba(168, 61, 81, .16);
  border-radius: 14px;
  background: rgba(255, 253, 251, .75);
  cursor: pointer;
  text-align: center;
  transition: opacity .8s ease var(--d, 0s),
              transform .8s ease var(--d, 0s),
              box-shadow .4s ease,
              border-color .4s ease;
}
.adore:hover {
  box-shadow: 0 12px 26px rgba(122, 37, 55, .1);
  border-color: rgba(168, 61, 81, .34);
}

.adore .front {
  font: 400 21px/1.25 var(--serif);
  color: var(--plum);
  transition: opacity .35s ease;
}
.adore .back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  font: 300 13.5px/1.6 var(--sans);
  color: var(--wine);
  opacity: 0;
  transition: opacity .35s ease;
  text-wrap: pretty;
}
.adore[data-open="1"] .front { opacity: 0; }
.adore[data-open="1"] .back  { opacity: 1; }

.adore.special {
  border-color: rgba(168, 61, 81, .28);
  background: linear-gradient(160deg, rgba(248, 228, 229, .9), rgba(255, 253, 251, .75));
}
.adore.special:hover { border-color: rgba(168, 61, 81, .45); }
.adore.special .front { font-size: 22px; color: var(--wine); }


/* ══════════ love notes ══════════ */

.notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.note-btn {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 61, 81, .2);
  border-radius: 16px;
  background: rgba(255, 253, 251, .8);
  color: var(--rose);
  font-size: 22px;
  cursor: pointer;
  animation: floaty var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
  transition: box-shadow .3s ease;
}
.note-btn:hover { box-shadow: 0 12px 24px rgba(122, 37, 55, .14); }
.note-btn.alt { color: var(--dusty); font-size: 20px; }


/* ══════════ days counter ══════════ */

.counter { padding-top: 86px; text-align: center; }
.counter h3 {
  margin: 0;
  font: 400 clamp(24px, 7vw, 32px)/1.2 var(--serif);
  color: var(--plum);
}
.counter .num {
  margin: 18px 0 0;
  font: 400 clamp(58px, 20vw, 96px)/1 var(--serif);
  color: var(--rose);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.counter .unit {
  margin: 2px 0 0;
  font: 400 12px/1 var(--sans);
  color: var(--dusty);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.counter .tail {
  margin: 24px auto 0;
  max-width: 26ch;
  font: 300 15px/1.7 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}


/* ══════════ songs ══════════ */

.songs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 38px;
}

.song {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 253, 251, .7);
  overflow: hidden;
  transition: opacity .8s ease var(--d, 0s), transform .8s ease var(--d, 0s),
              border-color .4s ease, background .4s ease;
}

.song .art {
  position: relative;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #EFE1DE 0 8px, #F8EFEB 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.song .art:hover { transform: scale(1.04); box-shadow: 0 8px 20px rgba(122, 37, 55, .22); }

/* Play / pause badge over the cover */
.song .art .pp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 30, 36, .42);
  opacity: 0;
  transition: opacity .28s ease;
}
.song .art:hover .pp,
.song .art:focus-visible .pp,
.song.playing .art .pp { opacity: 1; }

/* Triangle = play. Two bars = pause, once it's playing. */
.song .art .pp::before {
  content: "";
  width: 0; height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #FFF4F2;
}
.song.playing .art .pp::before {
  width: 15px; height: 16px;
  margin-left: 0;
  border: none;
  background: linear-gradient(90deg, #FFF4F2 0 5px, transparent 5px 10px, #FFF4F2 10px 15px);
}

.song.playing { border-color: rgba(168, 61, 81, .42); background: rgba(250, 236, 236, .8); }
.song.playing .title { color: var(--rose); }

/* Thin progress line along the bottom of the row while it plays */
.song .bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, rgba(168,61,81,.35), var(--rose));
  border-radius: 0 2px 2px 0;
  transition: width .25s linear;
}
.song .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.song .art .mark { font-size: 20px; color: rgba(160, 129, 127, .8); }
.song .art img:not(.missing) ~ .mark { display: none; }

.song .meta { min-width: 0; }
.song .title  { margin: 0; font: 500 17px/1.2 var(--serif); color: var(--plum); }
.song .artist { margin: 3px 0 0; font: 400 12px/1.2 var(--sans); color: var(--dusty); letter-spacing: .06em; }
.song .why    { margin: 8px 0 0; font: 300 13px/1.55 var(--sans); color: var(--muted); text-wrap: pretty; }

/* A line from the song, in your handwriting. Empty = nothing renders. */
.song .lyric {
  position: relative;
  margin: 10px 0 0;
  padding-left: 13px;
  border-left: 2px solid rgba(168, 61, 81, .3);
  font: 400 16px/1.45 var(--hand);
  color: var(--rose);
  text-wrap: pretty;
}
.song .lyric:empty { display: none; }

.playlist-row { text-align: center; }
.playlist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 14px 24px;
  border: 1px solid rgba(168, 61, 81, .28);
  border-radius: 999px;
  color: var(--wine);
  font: 400 14px/1 var(--sans);
  letter-spacing: .05em;
  transition: background .35s ease;
}
.playlist:hover { background: rgba(248, 228, 229, .7); color: var(--wine); }


/* ══════════ the letter ══════════ */

.letter-section { padding-top: 90px; }
.letter-head {
  font-style: italic;
  font-size: clamp(26px, 7.5vw, 34px);
}

.letter {
  position: relative;
  margin-top: 34px;
  padding: 34px 24px 40px;
  border-radius: 4px;
  background: linear-gradient(170deg, #FFFCF8, #FDF4EE);
  box-shadow: 0 22px 50px rgba(90, 52, 58, .14);
}
.letter .ruled {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 4px;
  background-image: repeating-linear-gradient(180deg, rgba(168, 61, 81, .05) 0 1px, rgba(0, 0, 0, 0) 1px 30px);
}
.letter .tape-l,
.letter .tape-r {
  position: absolute;
  top: -12px;
  width: 76px;
  height: 24px;
  background: rgba(214, 196, 208, .5);
}
.letter .tape-l { left: 22px; transform: rotate(-4deg); }
.letter .tape-r { right: 22px; transform: rotate(3deg); }

.letter p {
  position: relative;
  margin: 0 0 18px;
  font: 300 15px/2 var(--sans);
  color: var(--soft);
  text-wrap: pretty;
}
.letter p:last-of-type { margin-bottom: 0; }

.sign {
  position: relative;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.sign .love {
  margin: 0;
  font: 300 12px/1 var(--sans);
  color: var(--dusty);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sign .name {
  margin: 8px 0 0;
  font: 600 34px/1 var(--hand);
  color: var(--rose);
}


/* ══════════ final ══════════ */

.final {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 0 110px;
  text-align: center;
}
.final .soyeah {
  margin: 0;
  font: 400 20px/1 var(--sans);
  color: var(--dusty);
  letter-spacing: .06em;
}
.final h2 {
  margin: 20px 0 0;
  font: 400 clamp(38px, 12vw, 58px)/1.1 var(--serif);
  color: var(--plum);
}
.final .alot {
  margin: 10px 0 0;
  font: 600 40px/1 var(--hand);
  color: var(--rose);
}
.final .found {
  margin: 26px auto 0;
  max-width: 24ch;
  font: 300 15.5px/1.75 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.heart-btn {
  margin-top: 46px;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: radial-gradient(circle at 34% 28%, #C4576A, #8E2839);
  color: #FFF2F2;
  font-size: 42px;
  cursor: pointer;
  box-shadow: 0 20px 44px rgba(142, 40, 57, .3);
  animation: breathe 3.2s ease-in-out infinite;
  transition: transform .3s ease;
}
.heart-btn:hover { transform: scale(1.05); }

.kiss {
  margin: 34px 0 0;
  font: 600 34px/1.25 var(--hand);
  color: var(--wine);
  animation: riseUp .9s ease both;
}

.made {
  margin: 54px 0 0;
  font: 400 11px/1 var(--sans);
  color: #C4A9AE;
  letter-spacing: .2em;
  text-transform: uppercase;
}


/* ══════════ falling hearts ══════════ */

#burst {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}


/* ══════════ modals ══════════ */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(58, 42, 44, .34);
  backdrop-filter: blur(6px);
  animation: riseUp .3s ease both;
}
.scrim.photo-scrim {
  padding: 24px;
  background: rgba(58, 42, 44, .44);
  backdrop-filter: blur(7px);
}

.note-card {
  position: relative;
  max-width: 340px;
  width: 100%;
  padding: 38px 28px;
  border-radius: 6px;
  background: linear-gradient(170deg, #FFFCF8, #FDF2EC);
  box-shadow: 0 26px 60px rgba(60, 34, 38, .3);
  text-align: center;
}
.note-card .pip { font-size: 18px; color: var(--petal); }
.note-card p {
  margin: 16px 0 0;
  font: 400 22px/1.5 var(--serif);
  color: var(--plum);
  text-wrap: pretty;
}

.close-btn {
  margin-top: 26px;
  padding: 10px 20px;
  border: 1px solid rgba(168, 61, 81, .25);
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  font: 400 12px/1 var(--sans);
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .3s ease;
}
.close-btn:hover { background: rgba(248, 228, 229, .7); }

.lightbox {
  position: relative;
  max-width: 380px;
  width: 100%;
  background: var(--paper);
  padding: 14px 14px 58px;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(50, 28, 32, .36);
}
.lightbox .frame {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 100%;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #EFE1DE 0 10px, #F8EFEB 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox .frame .mark { font: 400 26px/1 var(--hand); color: rgba(160, 129, 127, .7); }
.lightbox .frame img:not(.missing) ~ .mark { display: none; }

.lightbox p {
  margin: 18px 0 0;
  text-align: center;
  font: 400 22px/1.2 var(--hand);
  color: var(--caption);
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 61, 81, .2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--wine);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(50, 28, 32, .2);
}
.lightbox-close:hover { background: #fff; }
