:root {
  --ink: #261c22;
  --muted: #735d63;
  --cream: #fff7ea;
  --petal: #ffd4d8;
  --coral: #f07368;
  --coral-dark: #b7434d;
  --mint: #8dd5c5;
  --teal: #176b6a;
  --butter: #f8d86d;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(67, 38, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 234, 0.96) 0%, rgba(255, 247, 234, 0.86) 38%, rgba(255, 247, 234, 0.22) 73%),
    linear-gradient(180deg, rgba(255, 247, 234, 0) 70%, var(--cream) 100%);
  z-index: -2;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow,
.panel-label {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 5.4vw, 4.9rem);
  line-height: 1;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.lead {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: #4f3e44;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action,
.icon-action,
.answer-button {
  border: 0;
  cursor: pointer;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.secondary-action:disabled {
  cursor: wait;
  opacity: 0.64;
}

.secondary-action {
  background: var(--coral-dark);
  margin-top: 10px;
}

.icon-action {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--coral-dark);
  background: var(--petal);
  font-size: 1.4rem;
  box-shadow: var(--shadow);
}

.letter p {
  font-size: 1rem;
  line-height: 1.7;
}

.question-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(32px, 7vw, 86px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 80% 16%, rgba(141, 213, 197, 0.42), transparent 28%),
    linear-gradient(135deg, #ffe5de 0%, var(--cream) 54%, #e8fbf6 100%);
}

.question-card {
  width: min(780px, 100%);
  text-align: center;
}

.answer-stage {
  position: relative;
  width: min(560px, 100%);
  min-height: 150px;
  margin: 34px auto 16px;
}

.answer-button {
  min-width: 132px;
  min-height: 56px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition:
    left 260ms ease,
    top 260ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.no-button {
  position: absolute;
  left: calc(50% - 150px);
  top: 42px;
  color: var(--white);
  background: var(--coral-dark);
}

.yes-button {
  position: absolute;
  left: calc(50% + 18px);
  top: 42px;
  color: var(--ink);
  background: var(--butter);
}

.no-button:hover,
.no-button:focus-visible {
  transform: translateY(-2px);
  background: var(--ink);
}

.question-note {
  width: min(520px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.letter-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(52px, 9vw, 118px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 12% 10%, rgba(248, 216, 109, 0.35), transparent 26%),
    var(--cream);
}

.sweet-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 12%, rgba(141, 213, 197, 0.36), transparent 28%),
    var(--cream);
}

.sweet-unlocked {
  min-height: 100vh;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 48px);
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 28, 34, 0.76);
  backdrop-filter: blur(8px);
}

.video-frame {
  position: relative;
  width: min(820px, 100%);
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: clamp(14px, 3vw, 22px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  justify-self: end;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffe8cc;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.video-frame video {
  width: 100%;
  max-height: min(72vh, 680px);
  display: block;
  background: #000;
  border-radius: 6px;
}

.play-fallback {
  margin-top: 0;
}

.is-hidden {
  display: none;
}

.letter {
  max-width: 760px;
}

.letter p {
  color: var(--muted);
}

.sweet-panel {
  padding: clamp(26px, 5vw, 44px);
  background: var(--white);
  border: 2px solid rgba(240, 115, 104, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#sweet-proof {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.heart {
  position: absolute;
  color: var(--coral);
  font-size: 1.4rem;
  animation: float-heart 1400ms ease-out forwards;
  text-shadow: 0 4px 14px rgba(183, 67, 77, 0.24);
}

@keyframes float-heart {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.7) rotate(-8deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -120px, 0) scale(1.45) rotate(12deg);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 88vh;
    align-items: end;
  }

  .hero-art {
    object-position: 72% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 247, 234, 0.14) 0%, rgba(255, 247, 234, 0.92) 54%, var(--cream) 100%),
      linear-gradient(90deg, rgba(255, 247, 234, 0.8), rgba(255, 247, 234, 0.1));
  }

  .hero-copy {
    padding-top: 26vh;
  }

  h1 {
    max-width: 10ch;
  }

  .letter-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .primary-action {
    width: calc(100% - 64px);
  }

  .answer-stage {
    min-height: 180px;
  }

  .no-button {
    left: 8%;
  }

  .yes-button {
    left: auto;
    right: 8%;
  }
}
