:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #4b292c;
  background: #fff8f5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 205, 198, 0.72), transparent 31%),
    radial-gradient(circle at 86% 82%, rgba(246, 178, 184, 0.46), transparent 34%),
    #fff8f5;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(153, 65, 75, 0.12);
  border-radius: 50%;
}

body::before {
  top: -9rem;
  right: -7rem;
}

body::after {
  bottom: -10rem;
  left: -6rem;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(2rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
  animation: arrive 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hearts {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.45rem;
  height: 2rem;
  margin-bottom: 1.4rem;
  color: #c75b68;
}

.hearts span {
  display: block;
  animation: float 2.8s ease-in-out infinite;
}

.hearts span:nth-child(1) {
  font-size: 0.8rem;
  animation-delay: -0.55s;
}

.hearts span:nth-child(2) {
  font-size: 1.25rem;
}

.hearts span:nth-child(3) {
  font-size: 0.68rem;
  animation-delay: -1.1s;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #a15c63;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 21rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 17vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.note {
  max-width: 21rem;
  margin: 1.35rem auto 2.4rem;
  color: #775157;
  font-size: 1.05rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  min-height: 3.75rem;
  padding: 1rem 1.4rem 1rem 1.6rem;
  color: #fff;
  background: #934752;
  border-radius: 999px;
  box-shadow: 0 0.75rem 1.8rem rgba(147, 71, 82, 0.25);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:focus-visible {
  outline: 3px solid rgba(147, 71, 82, 0.32);
  outline-offset: 4px;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    background: #813c46;
    box-shadow: 0 1rem 2rem rgba(147, 71, 82, 0.3);
  }
}

@media (max-height: 650px) {
  .hearts {
    margin-bottom: 0.8rem;
  }

  .note {
    margin: 1rem auto 1.5rem;
  }
}

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