:root {
  --wine: #4d173a;
  --berry: #7d2858;
  --rose: #c9829d;
  --blush: #f5e7ea;
  --cream: #fffaf4;
  --gold: #d5af63;
  --ink: #2e1b28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Montserrat", sans-serif;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 56px 20px;
  text-align: center;
  color: white;
  background:
    radial-gradient(circle at 50% 25%, rgba(215, 159, 180, .22), transparent 36%),
    linear-gradient(145deg, #260e21 0%, var(--wine) 48%, #6a214c 100%);
}

.hero::before {
  content: "50";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -54%);
  font-family: "Cormorant Garamond", serif;
  font-size: min(72vw, 720px);
  line-height: .7;
  color: rgba(255,255,255,.025);
  font-weight: 700;
}

.hero-content { position: relative; z-index: 2; width: min(940px, 100%); }
.eyebrow {
  margin: 0 0 18px;
  color: #f1dca9;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(.68rem, 2vw, .82rem);
  font-weight: 600;
}

h1, h2 { font-family: "Cormorant Garamond", serif; }
h1 {
  margin: 0;
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  line-height: .72;
  letter-spacing: -.045em;
  font-weight: 600;
}
h1 span {
  display: block;
  margin-bottom: .25em;
  font: 500 clamp(1.25rem, 4vw, 2.35rem)/1 "Montserrat", sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.subtitle { margin: 34px auto 28px; max-width: 620px; color: #f7eaf0; font-size: clamp(1rem, 2.2vw, 1.25rem); }

.hero-photo {
  width: min(340px, 78vw);
  margin: 0 auto 30px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
  transform: rotate(-1deg);
}
.hero-photo img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 34%; border-radius: 16px; }
.hero-photo figcaption { padding: 9px 4px 3px; color: #f5dfe7; font: 600 .76rem/1.2 "Cormorant Garamond", serif; letter-spacing: .12em; text-transform: uppercase; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 720px; margin: 0 auto; }
.time-card {
  padding: 22px 10px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 15px 40px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
}
.time-card strong { display: block; font: 600 clamp(2rem, 8vw, 4rem)/.9 "Cormorant Garamond", serif; color: #fff; }
.time-card span { display: block; margin-top: 10px; color: #f0cedb; font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; }

.progress-wrap { max-width: 720px; margin: 34px auto 0; }
.progress-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: #ebcad7; font-size: .72rem; }
.progress-track { overflow: hidden; height: 5px; border-radius: 99px; background: rgba(255,255,255,.14); }
#progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #f6d992); transition: width .8s ease; }
.scroll-cue { display: inline-flex; gap: 12px; align-items: center; margin-top: 44px; color: #fff; text-decoration: none; font-size: .82rem; letter-spacing: .08em; }

.glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(95px); opacity: .15; }
.glow-one { top: -140px; right: -70px; background: #ffc6d9; }
.glow-two { bottom: -170px; left: -70px; background: #f4cb73; }

.celebration { padding: clamp(80px, 12vw, 140px) 20px; text-align: center; }
.eyebrow.dark { color: var(--berry); }
h2 { max-width: 780px; margin: 0 auto 20px; color: var(--wine); font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .95; }
.intro { max-width: 700px; margin: 0 auto 48px; color: #715b68; line-height: 1.85; }
.message-card {
  position: relative;
  max-width: 720px;
  margin: auto;
  padding: clamp(44px, 8vw, 78px) clamp(26px, 8vw, 80px) 42px;
  border: 1px solid #ead9dd;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(77,23,58,.10);
}
.message-card::before { content: "“"; position: absolute; top: 14px; left: 28px; color: #ead1da; font: 700 6rem/1 "Cormorant Garamond", serif; }
.day-badge { display: inline-block; margin-bottom: 25px; padding: 8px 15px; border-radius: 999px; color: white; background: var(--berry); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.message-card p { margin: 0; color: var(--wine); font: 600 clamp(1.8rem, 4.4vw, 2.7rem)/1.2 "Cormorant Garamond", serif; }
.signature { display: block; margin-top: 32px; color: #9c687e; font-size: .82rem; letter-spacing: .08em; }

.memories { padding: 100px 20px; text-align: center; color: white; background: var(--wine); }
.memories h2 { color: white; }
.memories-intro { max-width: 660px; margin: 0 auto; color: #e8ccd7; line-height: 1.7; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 1000px; margin: 44px auto 0; }
.photo-grid figure { overflow: hidden; margin: 0; border-radius: 20px; background: rgba(255,255,255,.08); text-align: left; }
.photo-grid figure.wide { grid-column: span 2; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-grid .wide img { aspect-ratio: 16/9; }
.photo-grid figcaption { padding: 16px 18px 18px; color: #f8eaf0; font: 600 1.05rem/1.2 "Cormorant Garamond", serif; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(20px, 5vw); color: #806272; background: #f5e9ec; font-size: .72rem; letter-spacing: .05em; }
footer p { margin: 0; }

@media (max-width: 600px) {
  .countdown { gap: 6px; }
  .time-card { padding: 17px 4px 14px; border-radius: 13px; }
  .time-card span { font-size: .56rem; letter-spacing: .08em; }
  .progress-label { align-items: flex-end; font-size: .62rem; text-align: left; }
  .progress-label span:last-child { text-align: right; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid figure.wide { grid-column: span 1; }
  .photo-grid .wide img { aspect-ratio: 4/3; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
