:root {
  color-scheme: dark;
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.62);
  --quiet: rgba(244, 239, 230, 0.34);
  --black: #060607;
  --ember: #c7532d;
  --oxide: #7b9278;
  --blue: #253a62;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 48% 42%, rgba(199, 83, 45, 0.22), transparent 22rem),
    radial-gradient(circle at 82% 18%, rgba(123, 146, 120, 0.18), transparent 24rem),
    radial-gradient(circle at 14% 78%, rgba(37, 58, 98, 0.28), transparent 28rem),
    var(--black);
}

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

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.021) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

body::after {
  background:
    linear-gradient(to bottom, rgba(6, 6, 7, 0) 0%, rgba(6, 6, 7, 0.76) 100%),
    radial-gradient(circle at center, transparent 0 34%, rgba(0, 0, 0, 0.72) 100%);
}

#veil {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.64;
  mix-blend-mode: screen;
}

.threshold {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  width: min(100% - 40px, 960px);
  margin: 0 auto;
  padding: 64px 0;
  text-align: center;
}

.signal {
  margin: 0 0 26px;
  padding: 8px 13px;
  border: 1px solid rgba(244, 239, 230, 0.26);
  border-radius: 999px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.4rem, 13vw, 11rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

.message {
  max-width: 28rem;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  line-height: 1.6;
}

.pulse {
  display: flex;
  gap: 12px;
  margin-top: 42px;
}

.pulse span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  color: rgba(244, 239, 230, 0.78);
  animation: breathe 2.8s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(244, 239, 230, 0.28);
}

.pulse span:nth-child(2) {
  animation-delay: 0.28s;
}

.pulse span:nth-child(3) {
  animation-delay: 0.56s;
}

.footer {
  position: fixed;
  z-index: 1;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  justify-content: center;
  color: rgba(244, 239, 230, 0.42);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.22;
    transform: translateY(0) scale(0.74);
  }

  48% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

@media (max-width: 760px) {
  body {
    overflow-y: auto;
  }

  .threshold {
    min-height: 100svh;
    width: min(100% - 28px, 960px);
  }

  .signal {
    margin-bottom: 22px;
  }

  .footer {
    bottom: 18px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse span {
    animation: none;
  }
}
