:root { color-scheme: dark; }

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #070916;
}

body {
  color: rgba(226, 226, 220, .82);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}

#land {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

.words {
  position: fixed;
  left: clamp(24px, 8vw, 120px);
  bottom: clamp(76px, 15vh, 150px);
  width: min(78vw, 660px);
  pointer-events: none;
  font-size: clamp(12px, 1.35vw, 16px);
  line-height: 2.15;
  letter-spacing: .12em;
}

.words p {
  margin: 0 0 .75em;
  opacity: 0;
  animation: appear 3.5s ease forwards;
}

.words p:nth-child(2) { animation-delay: 8s; }
.words p:nth-child(3) { animation-delay: 16s; }

.nikki {
  position: fixed;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vh, 42px);
  color: rgba(216, 218, 217, .55);
  font-size: 11px;
  letter-spacing: .22em;
  text-underline-offset: .4em;
  opacity: 0;
  animation: appear 3s ease 24s forwards;
}

#voice {
  position: fixed;
  z-index: 2;
  max-width: 10em;
  padding: 7px 10px;
  border: 1px solid rgba(150, 205, 210, .22);
  border-radius: 2px;
  background: rgba(7, 9, 18, .84);
  color: rgba(210, 229, 226, .8);
  font: 11px/1.5 ui-monospace, monospace;
  letter-spacing: .1em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

#voice.shown { opacity: 1; transform: translateY(0); }

@keyframes appear { to { opacity: 1; } }

@media (max-width: 520px) {
  .words { left: 24px; bottom: 92px; width: calc(100vw - 48px); line-height: 2; }
  .words p { margin-bottom: .9em; }
}

@media (prefers-reduced-motion: reduce) {
  .words p, .nikki { animation-duration: .01ms; }
}
