:root {
  --coffee-dark: #24120d;
  --coffee: #4b281a;
  --coffee-warm: #754126;
  --cream: #f4dfc5;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 10% 10%, rgb(143 82 47 / 52%), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgb(119 66 40 / 45%), transparent 25rem),
    linear-gradient(135deg, var(--coffee-dark), var(--coffee) 48%, #32170f);
}

.music-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.music-background::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: repeating-linear-gradient(
    125deg,
    transparent 0,
    transparent 20px,
    rgb(255 226 188 / 12%) 21px,
    transparent 22px
  );
}

.note {
  position: absolute;
  color: rgb(255 225 183 / 20%);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 1;
  text-shadow: 0 0 40px rgb(24 9 3 / 35%);
  animation: drift 12s ease-in-out infinite alternate;
}

.note-one {
  top: 9%;
  left: 7%;
}

.note-two {
  top: 18%;
  right: 10%;
  font-size: clamp(7rem, 17vw, 15rem);
  animation-delay: -4s;
}

.note-three {
  bottom: 8%;
  left: 16%;
  animation-delay: -8s;
}

.note-four {
  right: 19%;
  bottom: 4%;
  font-size: clamp(4rem, 10vw, 9rem);
  animation-delay: -2s;
}

.wave {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border: 1px solid rgb(255 221 179 / 13%);
  border-radius: 50%;
}

.wave-one {
  top: -34vmax;
  right: -21vmax;
}

.wave-two {
  bottom: -37vmax;
  left: -23vmax;
}

main {
  display: grid;
  place-items: center;
  height: 100dvh;
}

main img {
  display: block;
  width: auto;
  height: 100dvh;
  max-width: 100vw;
  object-fit: contain;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(1.5rem, -1rem, 0) rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .note {
    animation: none;
  }
}

@media (max-width: 600px) {
  body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
  }

  main {
    height: auto;
    min-height: 100dvh;
    padding: 2.5vh 3vw;
  }

  main img {
    width: 94vw;
    height: auto;
    max-width: none;
  }
}
