:root {
  --black: #050505;
  --paper: #fffaf2;
  --rose: #ff4f7a;
  color: var(--paper);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: manipulation;
}

body {
  min-height: 100svh;
  background: var(--black);
}

.landing {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 28px;
  isolation: isolate;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: transparent;
  animation: intro-exit 3.2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.intro p {
  margin: 0;
  color: var(--paper);
  font-family: "Bodoni 72", "Didot", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 9vw, 108px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: center;
  animation: intro-type 2.45s steps(17, end) both, intro-glow 1.8s ease-in-out infinite alternate;
  overflow: hidden;
  white-space: nowrap;
}

.love-logo {
  --logo-rotation: -4deg;
  --logo-scale: 0.82;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(178px, 24vw, 330px);
  aspect-ratio: 1070.7 / 1090.9;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(var(--logo-scale)) rotate(var(--logo-rotation));
  transition:
    left 760ms cubic-bezier(0.16, 1, 0.3, 1),
    top 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: logo-arrive 920ms cubic-bezier(0.16, 1, 0.3, 1) 2.62s forwards;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.love-logo img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.love-logo.is-ready {
  --logo-scale: 1;
  opacity: 1;
  animation: none;
}

.heart {
  position: fixed;
  z-index: 3;
  left: var(--heart-x);
  top: var(--heart-y);
  color: var(--rose);
  font-size: var(--heart-size);
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 79, 122, 0.58);
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
  animation: heart-escape 980ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes intro-type {
  0% {
    width: 0;
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  100% {
    width: 17ch;
    opacity: 1;
  }
}

@keyframes intro-glow {
  from {
    transform: translateY(10px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes intro-exit {
  0%,
  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes logo-arrive {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72) rotate(-10deg);
  }

  68% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(3deg);
  }

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

@keyframes heart-escape {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--heart-dx)), calc(-50% + var(--heart-dy))) scale(1.08) rotate(var(--heart-rotate));
  }
}

@media (hover: hover) and (pointer: fine) {
  .love-logo {
    cursor: default;
    pointer-events: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .love-logo:active {
    --logo-scale: 0.94;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .intro p,
  .love-logo,
  .heart {
    animation-duration: 1ms;
    transition-duration: 1ms;
  }
}
