/* THE DEATH OF PASSION — the mausoleum */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  font-family: "Cormorant Garamond", serif;
  -webkit-user-select: none;
  user-select: none;
}

/* Before the gate is revealed: not even a cursor */
body.pre { cursor: none; }

/* After passion dies: the page itself is dead */
body.void, body.void * { cursor: none !important; }

#world {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: filter 2.5s ease;
}

#spirits {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 4s ease;
}

body.entered #spirits { opacity: 1; }
body.void #spirits { opacity: 0 !important; }

/* The mercy hint — barely there */
#hint {
  position: fixed;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.9em;
  text-indent: 0.9em;
  color: rgba(190, 195, 215, 0.0);
  text-transform: lowercase;
  pointer-events: none;
  transition: color 3s ease;
}

#hint.show {
  color: rgba(190, 195, 215, 0.22);
  animation: hintbreathe 5s ease-in-out infinite;
}

@keyframes hintbreathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Screen-reader / no-JS poem */
.sr-poem {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.noscript {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-style: italic;
  padding: 2rem;
  text-align: center;
}

noscript ~ .sr-poem,
.no-js .sr-poem {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  white-space: normal;
  color: #9a9daf;
  max-width: 34em;
  margin: 14vh auto;
  padding: 0 2rem;
  font-size: 1.25rem;
  line-height: 2;
  text-align: center;
}

.no-js .sr-poem h1,
noscript ~ .sr-poem h1 {
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  margin-bottom: 3rem;
  color: #c7cade;
}
