:root {
  color-scheme: dark;
  --ink: #fffaf4;
  --muted: #decbbf;
  --surface: rgba(16, 11, 14, 0.46);
  --surface-strong: rgba(16, 11, 14, 0.72);
  --line: rgba(255, 250, 244, 0.2);
  --rose: #ff3d73;
  --coral: #ff7a59;
  --gold: #ffd166;
  --mint: #69f0c9;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #0d090b;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

.experience {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

#heart-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hero {
  position: relative;
  z-index: 2;
  width: min(94vw, 860px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 5rem);
  pointer-events: none;
}

h1 {
  margin: 0.08em 0 0.02em;
  max-width: 100%;
  font-family: "Dancing Script", cursive;
  font-size: clamp(6.5rem, 23vw, 19rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow:
    0 4px 0 rgba(255, 61, 115, 0.28),
    0 18px 70px rgba(255, 61, 115, 0.48),
    0 6px 30px rgba(0, 0, 0, 0.65);
  animation: alyGlow 5.4s ease-in-out infinite;
}

.controls {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.1);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.16);
}

.icon-button[aria-pressed="false"] {
  color: rgba(255, 250, 244, 0.54);
  background: rgba(255, 250, 244, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .hero {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: max(4.75rem, 10vh) 1rem 7rem;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(4.25rem, 20vw, 5.9rem);
    line-height: 0.78;
    text-align: center;
  }

  .controls {
    right: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(50%);
  }

  .icon-button {
    width: 3rem;
    height: 3rem;
  }
}

@keyframes alyGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 209, 102, 0));
    transform: translate3d(0, 0, 0) scale(1);
  }

  45% {
    filter: drop-shadow(0 0 28px rgba(255, 209, 102, 0.34));
    transform: translate3d(0, -0.025em, 0) scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  .icon-button {
    animation: none;
    transition: none;
  }
}
