:root {
  --ink: #211417;
  --soft-ink: #51333c;
  --muted: #80616a;
  --rose: #f0436f;
  --rose-dark: #ad2446;
  --coral: #ff8068;
  --cream: #fff8ee;
  --paper: #fffdf8;
  --gold: #f4b84f;
  --mint: #7ccfb9;
  --blue: #7fb7ee;
  --shadow: 0 28px 90px rgba(99, 37, 58, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 128, 104, 0.34), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(127, 183, 238, 0.34), transparent 30%),
    linear-gradient(135deg, #fff8ee 0%, #ffd8e3 48%, #e1f3ff 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.question-screen {
  display: grid;
  place-items: center;
  padding: 28px;
}

.question-screen::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.question-panel {
  width: min(660px, 100%);
  padding: clamp(30px, 7vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  text-align: center;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 12vw, 7.2rem);
  line-height: 0.92;
}

.message {
  width: min(500px, 100%);
  margin: 24px auto 0;
  color: var(--soft-ink);
  font-size: 1.06rem;
  line-height: 1.75;
}

.qa-box {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(240, 67, 111, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 238, 0.92)),
    var(--cream);
}

.qa-box h2 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
}

.answer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.answer {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: 800 1.05rem "Poppins", system-ui, sans-serif;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  touch-action: manipulation;
}

.answer:hover {
  transform: translateY(-2px);
}

.answer:active {
  transform: scale(0.97);
}

.yes {
  background: linear-gradient(135deg, var(--rose), var(--coral));
  box-shadow: 0 14px 28px rgba(240, 67, 111, 0.3);
}

.no {
  position: relative;
  background: linear-gradient(135deg, #7a8798, #4b5563);
  box-shadow: 0 12px 26px rgba(75, 85, 99, 0.2);
}

.love-screen {
  background:
    linear-gradient(90deg, rgba(255, 248, 238, 0.96) 0%, rgba(255, 248, 238, 0.86) 52%, rgba(255, 248, 238, 0.62) 100%),
    url("https://images.unsplash.com/photo-1518621736915-f3b1c41bfd00?auto=format&fit=crop&w=1800&q=80") center / cover fixed;
}

.love-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: min(44vw, 520px);
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(240, 67, 111, 0.24), transparent 48%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.love-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(880px, 100%);
  padding: 64px clamp(24px, 7vw, 90px);
  position: relative;
  z-index: 1;
}

.love-hero h1 {
  max-width: 780px;
}

.love-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.04rem, 3vw, 1.22rem);
  line-height: 1.85;
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.promise-row span {
  padding: 10px 14px;
  border: 1px solid rgba(240, 67, 111, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.scroll-link {
  width: fit-content;
  margin-top: 30px;
  padding: 15px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(33, 20, 23, 0.2);
}

.memories {
  min-height: 100vh;
  padding: 80px clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 184, 79, 0.2), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(124, 207, 185, 0.22), transparent 32%),
    var(--paper);
}

.memories h2 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
}

.gallery-note {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.photo-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.photo-card {
  min-height: 260px;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 8px solid white;
  border-radius: 8px;
  background: #f4e6dd;
  box-shadow: 0 18px 38px rgba(41, 24, 28, 0.14);
  transform: rotate(-1deg);
}

.photo-card:nth-child(even) {
  transform: rotate(1deg);
}

.photo-card.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 11;
}

.photo-card.tall {
  grid-row: span 2;
  aspect-ratio: 3 / 5;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 500ms ease;
}

.photo-card:hover img {
  transform: scale(1.06);
}

.floating-hearts span {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: 0.62;
  transform: rotate(45deg);
  background: var(--rose);
  animation: float 8s linear infinite;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: inherit;
}

.floating-hearts span::before {
  left: -17px;
}

.floating-hearts span::after {
  top: -17px;
}

.floating-hearts span:nth-child(1) {
  left: 8%;
  bottom: -40px;
  animation-delay: 0s;
}

.floating-hearts span:nth-child(2) {
  left: 24%;
  bottom: -80px;
  background: var(--gold);
  animation-delay: 1.8s;
}

.floating-hearts span:nth-child(3) {
  right: 16%;
  bottom: -60px;
  background: var(--mint);
  animation-delay: 3.2s;
}

.floating-hearts span:nth-child(4) {
  right: 7%;
  bottom: -95px;
  background: var(--blue);
  animation-delay: 4.6s;
}

.floating-hearts span:nth-child(5) {
  left: 48%;
  bottom: -90px;
  animation-delay: 5.5s;
}

.floating-hearts span:nth-child(6) {
  left: 70%;
  bottom: -120px;
  background: var(--coral);
  animation-delay: 6.4s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(45deg) scale(0.72);
  }

  100% {
    transform: translateY(-120vh) rotate(45deg) scale(1.18);
  }
}

@media (max-width: 860px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .question-screen {
    padding: 16px;
  }

  .question-screen::before {
    inset: 10px;
  }

  .question-panel {
    padding: 28px 18px;
  }

  .answer-row {
    grid-template-columns: 1fr;
  }

  .love-screen {
    background-attachment: scroll;
  }

  .love-ribbon {
    width: 100%;
    opacity: 0.45;
  }

  .promise-row span {
    width: 100%;
    text-align: center;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card.wide,
  .photo-card.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
    aspect-ratio: 4 / 5;
    transform: none;
  }

  .photo-card:nth-child(even) {
    transform: none;
  }
}
