:root {
  color-scheme: dark;
  --bg: #04070d;
  --ink: #eef2fb;
  --glow-blue: rgba(95, 143, 255, 0.42);
  --glow-cyan: rgba(88, 223, 255, 0.22);
  --glow-amber: rgba(255, 165, 76, 0.18);
  --pointer-x: 50%;
  --pointer-y: 50%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Songti SC", serif;
  background:
    radial-gradient(circle at 18% 24%, rgba(81, 117, 210, 0.2), transparent 28%),
    radial-gradient(circle at 84% 26%, rgba(255, 165, 76, 0.12), transparent 20%),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(116, 170, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #060a12 0%, #04070d 50%, #020409 100%);
  color: var(--ink);
}

body::before,
body::after,
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(121, 154, 218, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 154, 218, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.22;
}

body::after {
  background:
    radial-gradient(circle at center, rgba(125, 170, 255, 0.15), transparent 42%),
    radial-gradient(circle at center, rgba(255, 165, 76, 0.08), transparent 58%);
  filter: blur(90px);
  transform: scale(1.2);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  isolation: isolate;
}

.stage::before {
  inset: 6vh 8vw;
  border: 1px solid rgba(154, 183, 241, 0.08);
  border-radius: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top, rgba(95, 143, 255, 0.08), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(6, 9, 16, 0.64);
}

.stage::after {
  inset: auto 14vw 14vh 14vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.wordmark {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0.08em;
  font-size: clamp(3.8rem, 11vw, 10rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(215, 226, 247, 0.96) 36%, rgba(126, 150, 191, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 12px rgba(231, 239, 255, 0.14),
    0 0 40px var(--glow-blue),
    0 0 84px rgba(95, 143, 255, 0.12);
  user-select: none;
  animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
    text-shadow:
      0 0 12px rgba(231, 239, 255, 0.14),
      0 0 40px var(--glow-blue),
      0 0 84px rgba(95, 143, 255, 0.12);
  }
  50% {
    transform: translateY(-6px);
    text-shadow:
      0 0 12px rgba(231, 239, 255, 0.14),
      0 0 46px var(--glow-cyan),
      0 0 92px var(--glow-amber);
  }
}

@media (max-width: 900px) {
  .stage::before {
    inset: 5vh 5vw;
    border-radius: 34px;
  }

  .wordmark {
    font-size: clamp(2.4rem, 16vw, 5rem);
    letter-spacing: 0.18em;
  }
}

@media (max-width: 520px) {
  .wordmark {
    font-size: clamp(2rem, 15vw, 3.4rem);
    letter-spacing: 0.14em;
  }
}
