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

html,
body {
  height: 100%;
}

body {
  background: #040407;
  color: #d8d5ea;
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.void {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0.4rem;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #eceafd;
  text-transform: lowercase;
  text-shadow: 0 0 30px rgba(140, 120, 255, 0.35);
}

h1 span {
  color: #8f86c9;
  font-style: italic;
}

.line {
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 1rem;
  color: #77719f;
  letter-spacing: 0.06em;
}

.doors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0;
  margin-top: 3rem;
}

.doors a {
  position: relative;
  color: #a49dd0;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.35rem 1.3rem;
  transition: color 0.25s ease, letter-spacing 0.25s ease, text-shadow 0.25s ease;
}

.doors a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.9em;
  background: rgba(164, 157, 208, 0.3);
}

.doors a:hover {
  color: #eceafd;
  letter-spacing: 0.32em;
  text-shadow: 0 0 14px rgba(160, 140, 255, 0.55);
}

.edge {
  position: fixed;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4e4a6b;
}

@supports (height: 100dvh) {
  .void {
    min-height: 100dvh;
  }
}

@media (max-width: 640px), (max-height: 500px) {
  .void {
    padding: 1.5rem 1rem;
    gap: 0.3rem;
  }

  h1 {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }

  .line {
    font-size: 0.92rem;
    max-width: 32ch;
  }

  .doors {
    margin-top: 2.5rem;
    row-gap: 0.2rem;
    max-width: 340px;
  }

  .doors a {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    padding: 0.45rem 1rem;
  }

  .edge {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }
}
