:root {
  color-scheme: light;
  --ink: #311c23;
  --muted: #795964;
  --rose: #b64264;
  --rose-dark: #83304a;
  --rose-soft: #fff1f4;
  --cream: #fffaf4;
  --gold: #c9954d;
  --line: rgba(116, 58, 75, 0.16);
  --shadow: 0 28px 80px rgba(93, 28, 52, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.heart-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  padding: clamp(48px, 9vh, 96px) clamp(18px, 5vw, 72px);
}

.hero__bg,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(90deg, rgba(255, 250, 244, 0.92), rgba(255, 244, 247, 0.42)),
    url("assets/romantic-hero.webp") center / cover;
  transform: scale(1.02);
  animation: breathe 16s ease-in-out infinite alternate;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.2), rgba(255, 250, 244, 0.82)),
    radial-gradient(circle at 50% 50%, rgba(255, 250, 244, 0.76), transparent 52%);
}

.hero__content {
  width: min(760px, 100%);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--rose-dark);
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(3.45rem, 10vw, 7.6rem);
}

.hero__text {
  width: min(660px, 100%);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.24rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
  cursor: pointer;
}

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

.button:focus-visible {
  outline: 3px solid rgba(182, 66, 100, 0.28);
  outline-offset: 3px;
}

.button--primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  box-shadow: var(--shadow);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(131, 48, 74, 0.26);
  color: var(--rose-dark);
  backdrop-filter: blur(14px);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(131, 48, 74, 0.42);
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 30px;
  height: 48px;
  border: 1px solid rgba(131, 48, 74, 0.3);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--rose-dark);
  content: "";
  transform: translateX(-50%);
  animation: cue 1.7s ease-in-out infinite;
}

.love-letter {
  position: relative;
  padding: clamp(64px, 11vw, 126px) clamp(20px, 6vw, 88px);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0), var(--rose-soft) 18%),
    radial-gradient(circle at 78% 20%, rgba(255, 223, 227, 0.92), transparent 26%),
    radial-gradient(circle at 12% 82%, rgba(255, 240, 215, 0.86), transparent 30%);
}

.love-letter__inner {
  width: min(840px, 100%);
  margin-inline: auto;
  padding-block: clamp(8px, 2vw, 24px);
}

.love-letter h2 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

.love-letter p:not(.section-kicker) {
  width: min(720px, 100%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.signature {
  display: grid;
  gap: 2px;
  width: min(420px, 100%);
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--rose-dark);
}

.signature span {
  color: var(--muted);
}

.signature strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

@keyframes breathe {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.07);
  }
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 94svh;
    padding-inline: 18px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .heart-canvas {
    display: none;
  }
}
