:root {
  --cream: #fff9e8;
  --blue: #4053bf;
  --pink: #f2bfd5;
  --ink: #282827;
  --footer-cream: #e3d9bc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 3.6rem;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  display: grid;
  min-height: 27svh;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 6vw, 6rem);
  place-items: center;
  overflow: hidden;
}

.identity {
  position: relative;
  z-index: 1;
  text-align: center;
}

.identity h1 {
  display: flex;
  margin: 0;
  color: var(--blue);
  font-family: "Lobster", cursive;
  font-size: clamp(3.75rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.7;
  flex-direction: column;
  transform: rotate(-2deg);
}

.identity h1 span:last-child {
  margin-left: 0.4em;
}

.sparkle {
  position: absolute;
  width: clamp(5rem, 12vw, 10rem);
  fill: var(--pink);
}

.sparkle-left {
  top: 29%;
  left: clamp(2rem, 18vw, 24rem);
}

.sparkle-right {
  right: clamp(2rem, 18vw, 24rem);
  bottom: 22%;
  transform: scale(0.8);
}

.video-section {
  margin-top: -25px;
  padding: clamp(1.25rem, 2.5vw, 2.25rem) clamp(1.25rem, 7vw, 7rem)
    clamp(5rem, 10vw, 9rem);
  color: var(--blue);
  background: var(--cream);
}

.video-frame {
  position: relative;
  width: min(58vw, 103svh, 56rem);
  margin: 0 auto;
  border: clamp(0.4rem, 1vw, 0.75rem) solid var(--blue);
  background: var(--ink);
  box-shadow: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) 0
    var(--pink);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 1.3rem clamp(1.25rem, 4vw, 4rem);
  color: var(--ink);
  background: var(--footer-cream);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  justify-content: space-between;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration-color: var(--pink);
  text-underline-offset: 0.25em;
}

@media (max-width: 700px) {
  body {
    padding-bottom: 6.7rem;
  }

  .hero {
    min-height: 28svh;
  }

  .identity h1 {
    font-size: clamp(3.5rem, 15vw, 4.75rem);
  }

  .identity h1 span:last-child {
    margin-top: 0.08em;
    margin-left: 0;
  }

  .sparkle-left {
    top: 18%;
  }

  .sparkle-right {
    bottom: 14%;
  }

  .video-frame {
    width: 94%;
  }

  footer {
    gap: 0.75rem;
    align-items: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .identity {
    animation: arrive 700ms ease-out both;
  }

  .sparkle {
    animation: appear 700ms 200ms ease-out both;
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(1rem);
    }
  }

  @keyframes appear {
    from {
      opacity: 0;
      scale: 0.75;
    }
  }
}
