:root {
  --void: #05060c;
  --star: #eef2ff;
  --muted: rgba(238, 242, 255, 0.38);
  --faint: rgba(238, 242, 255, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  color: var(--star);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti TC", "Noto Serif TC", serif;
  background: var(--void);
  overflow: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 120%, rgba(18, 22, 48, 0.55), transparent 55%),
    radial-gradient(50% 40% at 18% 22%, rgba(56, 48, 92, 0.16), transparent 70%),
    radial-gradient(40% 35% at 82% 18%, rgba(32, 48, 88, 0.12), transparent 70%);
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.45rem;
  padding: 12vh 24px max(16vh, calc(env(safe-area-inset-bottom) + 72px));
  text-align: center;
}

.brand-zh,
.brand-en {
  margin: 0;
  font-weight: 400;
  color: var(--faint);
}

.brand-zh {
  font-size: clamp(0.72rem, 2.2vw, 0.88rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
}

.brand-en {
  font-family: "Avenir Next", "Segoe UI", "PingFang TC", sans-serif;
  font-size: clamp(0.58rem, 1.8vw, 0.7rem);
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  margin-bottom: 1.6rem;
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.1rem, 8.4vw, 4.4rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.15;
  color: rgba(244, 246, 255, 0.92);
  text-shadow: 0 0 42px rgba(180, 196, 255, 0.18);
}

.staff-entry {
  position: fixed;
  z-index: 2;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  color: rgba(238, 242, 255, 0.2);
  text-decoration: none;
  font-family: "PingFang TC", "Hiragino Sans TC", "Noto Sans TC", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}

.staff-entry:hover,
.staff-entry:focus-visible {
  color: rgba(238, 242, 255, 0.45);
}

@media (max-width: 480px) {
  .stage {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 {
    text-shadow: none;
  }
}
