:root {
  color-scheme: dark;
  --void: #000000;
  --ink: #eee9dc;
  --muted: rgba(238, 233, 220, 0.72);
  --deep: rgba(20, 34, 37, 0.34);
  --breath: rgba(58, 77, 75, 0.18);
  --song-duration: 210s;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--void);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--void);
}

.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;
}

.abyss {
  position: relative;
  display: grid;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, #000 0%, #020303 42%, #000 100%);
}

.abyss::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: -3;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(31, 50, 52, 0.42), transparent 42%),
    radial-gradient(ellipse at 50% 54%, rgba(5, 9, 10, 0), rgba(0, 0, 0, 0.78) 62%, #000 100%),
    linear-gradient(180deg, #000 0%, #030606 48%, #000 100%);
  filter: blur(3px);
  transform: scale(1);
  opacity: 0.92;
  animation: abyss-breath 14s ease-in-out infinite;
}

.abyss::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.025)),
    radial-gradient(ellipse at 50% 50%, transparent 0 48%, rgba(0, 0, 0, 0.58) 78%, #000 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.94);
  opacity: 0.56;
}

.song-veil {
  position: relative;
  width: min(88vw, 820px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 8%,
    #000 19%,
    #000 76%,
    rgba(0, 0, 0, 0.34) 89%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 8%,
    #000 19%,
    #000 76%,
    rgba(0, 0, 0, 0.34) 89%,
    transparent 100%
  );
}

.song-veil.is-dragging {
  cursor: grabbing;
}

.song-veil::before,
.song-veil::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(56vw, 520px);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(238, 233, 220, 0.18), transparent);
  transform: translateX(-50%);
  opacity: 0.48;
}

.song-veil::before {
  top: 18%;
}

.song-veil::after {
  bottom: 11%;
}

.song-scroll {
  width: 100%;
  padding-top: 72dvh;
  transform: translate3d(0, var(--song-y, 0px), 0);
  will-change: transform;
}

.song-copy {
  width: 100%;
  margin: 0 auto;
  color: var(--ink);
  text-align: center;
  font-size: 1.58rem;
  line-height: 1.94;
  text-wrap: balance;
  text-shadow:
    0 0 24px rgba(238, 233, 220, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.92);
}

.song-copy p {
  margin: 0 0 4.8rem;
}

.song-copy p:nth-child(2n) {
  color: var(--muted);
}

.signature {
  padding-top: 2rem;
  color: rgba(238, 233, 220, 0.88);
  font-size: 1.18rem;
  font-style: italic;
}

@keyframes abyss-breath {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
    filter: blur(3px) brightness(0.82);
  }

  46% {
    opacity: 1;
    transform: scale(1.045);
    filter: blur(2px) brightness(1.08);
  }
}

@media (min-width: 1300px) {
  .song-copy {
    font-size: 1.72rem;
  }
}

@media (max-width: 700px) {
  :root {
    --song-duration: 230s;
  }

  .song-veil {
    width: min(92vw, 520px);
  }

  .song-veil::before,
  .song-veil::after {
    width: 68vw;
  }

  .song-scroll {
    padding-top: 70dvh;
  }

  .song-copy {
    font-size: 1.12rem;
    line-height: 1.86;
    text-wrap: pretty;
  }

  .song-copy p {
    margin-bottom: 3.9rem;
  }

  .signature {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .song-copy {
    font-size: 1rem;
    line-height: 1.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    overflow: auto;
  }

  .abyss {
    min-height: 100%;
    overflow: visible;
  }

  .abyss::before {
    animation: none;
  }

  .song-veil {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding: 14dvh 0 10dvh;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .song-veil::before,
  .song-veil::after {
    display: none;
  }

  .song-scroll {
    padding-top: 0;
    transform: none !important;
  }
}
