:root {
  background: #0b1110;
  color: #f6f0df;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  align-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(204, 223, 190, 0.12), transparent 32rem),
    linear-gradient(180deg, #0b1110 0%, #17251f 56%, #2d271d 100%);
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  padding: clamp(16px, 4vw, 48px);
}

#app {
  width: min(100%, 1100px);
}

.loop-art {
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  display: block;
  filter: drop-shadow(0 28px 72px rgba(0, 0, 0, 0.42));
  overflow: hidden;
  position: relative;
  width: 100%;
}

.loop-photo {
  animation: slowZoom 20s ease-in-out infinite;
  display: block;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  width: 100%;
}

.loop-art::after {
  background:
    linear-gradient(180deg, rgba(5, 8, 11, 0.18), rgba(5, 8, 11, 0.04) 42%, rgba(5, 8, 11, 0.34)),
    radial-gradient(circle at center, rgba(8, 13, 18, 0.62), rgba(8, 13, 18, 0.42) 48%, transparent 72%);
  content: "";
  inset: 0;
  position: absolute;
}

.moon-haze {
  animation: moonHaze 8s ease-in-out infinite;
  background: #fff3d6;
  border-radius: 50%;
  filter: blur(28px);
  height: 19%;
  left: 33%;
  opacity: 0.28;
  position: absolute;
  top: 8%;
  width: 13%;
}

.text-veil {
  background: radial-gradient(circle, rgba(8, 13, 18, 0.6), rgba(8, 13, 18, 0.34) 48%, transparent 72%);
  inset: 22% 16% 22%;
  position: absolute;
}

.meditation-text {
  color: #f8efd8;
  filter: drop-shadow(0 0 8px rgba(255, 240, 201, 0.48)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.72));
  font-size: clamp(1.28rem, 4vw, 3.15rem);
  inset: 29% 9% auto;
  letter-spacing: 0;
  line-height: 1.22;
  opacity: 0.84;
  position: absolute;
  text-align: center;
  z-index: 2;
}

.meditation-text p {
  animation: breatheText 8s ease-in-out infinite;
  margin: 0 0 0.42em;
}

.meditation-text p:nth-child(2) {
  animation-delay: 0.35s;
}

.meditation-text p:nth-child(3) {
  animation-delay: 0.7s;
}

.meditation-text p:nth-child(4) {
  animation-delay: 1.05s;
}

.meditation-text p:nth-child(5) {
  animation-delay: 1.4s;
  margin-top: 0.25em;
}

@keyframes slowZoom {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

@keyframes breatheText {
  0%, 100% {
    opacity: 0.68;
    transform: translateY(6px);
  }

  50% {
    opacity: 0.95;
    transform: translateY(-5px);
  }
}

@keyframes moonHaze {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.38;
    transform: scale(1.08);
  }
}
