:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #ecece7;
  --muted: #777773;
  --faint: #3a3a37;
  --line: #1a1a18;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #151513 0, #090908 32%, var(--bg) 68%),
    var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.scene {
  width: min(92vw, 920px);
  padding: 3rem 2rem 6rem;
  text-align: center;
  animation: arrive 1.7s cubic-bezier(.2,.7,.2,1) both;
}

.signal {
  width: 5px;
  height: 5px;
  margin: 0 auto 2.2rem;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 20px rgba(236, 236, 231, .25);
  animation: pulse 3.8s ease-in-out infinite;
}

.signal--lost {
  opacity: .35;
  animation: none;
}

h1 {
  margin: 0;
  font-size: clamp(3.7rem, 13vw, 9.2rem);
  font-weight: 520;
  line-height: .95;
  letter-spacing: .22em;
  text-indent: .22em;
}

.lead {
  margin: 2.5rem 0 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.65;
  letter-spacing: .025em;
  color: #b7b7b0;
}

.copy {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(.9rem, 1.5vw, 1.02rem);
  line-height: 1.8;
  letter-spacing: .03em;
}

.code {
  margin: 0 0 1.4rem;
  color: var(--faint);
  font: 500 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .32em;
}

a {
  color: #a7a7a1;
  text-decoration-color: var(--faint);
  text-underline-offset: .22em;
}

a:hover,
a:focus-visible {
  color: var(--fg);
  text-decoration-color: var(--muted);
}

footer {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: .55rem;
  color: var(--faint);
  font: 500 .67rem/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: lowercase;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: .28;
    transform: scale(.85);
  }
  50% {
    opacity: .85;
    transform: scale(1);
  }
}

@media (max-width: 520px) {
  h1 {
    letter-spacing: .16em;
    text-indent: .16em;
  }

  .scene {
    padding-inline: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .signal {
    animation: none;
  }
}
