:root {
  color-scheme: dark;
  background: #23102b;
  color: #fff3fb;
}

.wave {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.25rem;
  overflow: hidden;
  isolation: isolate;
  background: #23102b;
}

.wave::before,
.wave::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 70vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.wave::after {
  width: 45vw;
}

.wave__dial {
  position: absolute;
  z-index: -1;
  width: min(38rem, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff78ca, #ffcb52, #5ef6cc, #7d8cff, #ff78ca);
  filter: blur(4rem);
  opacity: 0.38;
  animation: spin 12s linear infinite;
}

.wave__label {
  margin: 0 0 3rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(3.6rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

h1 .a11y-text-split__visual {
  white-space: nowrap;
}

h1 .a11y-text-split__letter {
  display: inline-block;
  color: hsl(calc(320 + var(--a11y-text-split-letter-index) * 13) 90% 78%);
  transform:
    translateY(calc(var(--wave-y, 0) * 1em))
    rotate(calc(var(--wave-rotation, 0) * 1deg))
    scaleY(var(--wave-scale, 1));
  transform-origin: center 70%;
  will-change: transform;
}

.wave__button {
  margin-top: 3rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.wave__button:hover,
.wave__button:focus-visible {
  color: #23102b;
  background: #fff3fb;
}

.wave__button:focus-visible {
  outline: 3px solid #ff78ca;
  outline-offset: 4px;
}

.wave.is-paused .wave__dial {
  animation-play-state: paused;
}

.recipe {
  color: #23102b;
  background: #ffb6e2;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
