:root {
  --bg: #fff7f8;
  --paper: #ffffff;
  --ink: #25191d;
  --muted: #7d626a;
  --rose: #e84d72;
  --rose-dark: #b62f51;
  --peach: #ffd0bc;
  --mint: #d9f2e3;
  --gold: #f3b23c;
  --border: rgba(37, 25, 29, 0.1);
  --shadow: 0 18px 50px rgba(182, 47, 81, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 208, 188, 0.95), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(217, 242, 227, 0.9), transparent 24rem),
    linear-gradient(180deg, var(--bg), #fff);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
}

section {
  padding: 48px 22px;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.flower-scene {
  position: relative;
  width: 100%;
  min-height: 245px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 240, 244, 0.9)),
    radial-gradient(circle at 50% 100%, rgba(255, 208, 188, 0.7), transparent 55%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 42px rgba(243, 178, 60, 0.45);
}

.flower-title {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 22px;
  max-width: 180px;
  margin: 0;
  color: var(--rose-dark);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.05;
}

.heart {
  position: absolute;
  color: var(--rose);
  font-size: 1.45rem;
  opacity: 0.78;
  animation: float 3s ease-in-out infinite;
}

.heart-one {
  bottom: 60px;
  left: 34px;
}

.heart-two {
  top: 118px;
  right: 42px;
  animation-delay: 500ms;
}

.heart-three {
  top: 54px;
  right: 118px;
  animation-delay: 900ms;
}

.bouquet {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 190px;
  height: 170px;
  transform: translateX(-50%);
}

.flower,
.stem {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.flower {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 0, currentColor 0 23%, transparent 24%),
    radial-gradient(circle at 100% 50%, currentColor 0 23%, transparent 24%),
    radial-gradient(circle at 50% 100%, currentColor 0 23%, transparent 24%),
    radial-gradient(circle at 0 50%, currentColor 0 23%, transparent 24%);
  animation: bloom 2.6s ease-in-out infinite;
}

.pink {
  top: 18px;
  color: #f2668b;
}

.coral {
  top: 54px;
  left: 28%;
  color: #ff9a76;
  animation-delay: 400ms;
}

.cream {
  top: 58px;
  left: 72%;
  color: #ffd7a8;
  animation-delay: 800ms;
}

.stem {
  bottom: 0;
  width: 6px;
  height: 110px;
  border-radius: 999px;
  background: #64a66d;
  transform-origin: bottom;
}

.stem-one {
  transform: translateX(-50%) rotate(0deg);
}

.stem-two {
  transform: translateX(-50%) rotate(-20deg);
}

.stem-three {
  transform: translateX(-50%) rotate(20deg);
}
}

.date,
.section-number {
  margin: 0;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 14vw, 4.2rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.intro {
  max-width: 34ch;
  font-size: 1.08rem;
}

.scroll-link,
.love-button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  box-shadow: 0 12px 26px rgba(232, 77, 114, 0.28);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.message {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quality-list {
  display: grid;
  gap: 14px;
}

.quality-list article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(37, 25, 29, 0.06);
}

.quality-list span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  font-size: 1.25rem;
}

.quality-list p {
  margin-bottom: 0;
}

.memory-gif {
  position: relative;
  background: #2a1d22;
  color: #fff;
  overflow: hidden;
}

.memory-gif .section-number,
.memory-gif p {
  color: #ffd9e1;
}

.gif-card {
  position: relative;
  display: grid;
  min-height: 230px;
  margin: 22px 0 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(232, 77, 114, 0.48), transparent 34%),
    linear-gradient(145deg, #3a2630, #171114);
  overflow: hidden;
}

.gif-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.moon {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffe0b8;
  box-shadow: 0 0 46px rgba(255, 224, 184, 0.38);
}

.floating-heart {
  position: absolute;
  z-index: 1;
  color: #ff6f91;
  font-size: 6.4rem;
  animation: pulse 1.6s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
  animation: twinkle 1.8s ease-in-out infinite;
}

.spark-one {
  top: 64px;
  left: 58px;
}

.spark-two {
  bottom: 48px;
  right: 58px;
  animation-delay: 500ms;
}

.spark-three {
  bottom: 86px;
  left: 86px;
  animation-delay: 900ms;
}

.secret-message {
  min-height: 54px;
  margin: 18px 0 0;
  color: #ffd9e1;
  font-weight: 700;
}

.falling-heart {
  position: absolute;
  top: -24px;
  color: #ffb3c4;
  font-size: 1.2rem;
  pointer-events: none;
  animation: fall 2.8s linear forwards;
}

.final-note {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(232, 77, 114, 0.12), transparent 45%),
    #fff;
}

.signature {
  margin-top: 20px;
  color: var(--rose-dark);
  font-weight: 800;
}

@media (min-width: 700px) {
  body {
    padding: 28px;
  }

  .page {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--bg);
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: no-preference) {

  .flower-scene,
  .quality-list article {
    animation: rise 700ms ease both;
  }

  .quality-list article:nth-child(2) {
    animation-delay: 100ms;
  }

  .quality-list article:nth-child(3) {
    animation-delay: 200ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0) scale(1);
    }

    50% {
      transform: translateY(-12px) scale(1.08);
    }
  }

  @keyframes bloom {

    0%,
    100% {
      transform: translateX(-50%) rotate(-2deg) scale(1);
    }

    50% {
      transform: translateX(-50%) rotate(2deg) scale(1.06);
    }
  }

  @keyframes pulse {

    0%,
    100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.14);
    }
  }

  @keyframes twinkle {

    0%,
    100% {
      opacity: 0.35;
      transform: scale(0.8);
    }

    50% {
      opacity: 1;
      transform: scale(1.3);
    }
  }

  @keyframes fall {
    to {
      transform: translateY(360px) rotate(160deg);
      opacity: 0;
    }
  }
}