:root {
  color-scheme: dark;
  --bg: #050816;
  --fg: #f8fafc;
  --muted: #cbd5e1;
  --accent: #67e8f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(103, 232, 249, 0.16), transparent 35%),
    linear-gradient(180deg, #0b1020 0%, var(--bg) 100%);
  color: var(--fg);
  font-family: "SFMono-Regular", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.shell {
  width: min(90vw, 900px);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  padding: 2rem;
}

.headline-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}

.headline {
  margin: 0;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cursor {
  width: 0.12em;
  height: 1em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

.message-block {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  max-width: 44rem;
}

.message {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  line-height: 1.6;
  text-wrap: balance;
}

.redirect-line {
  min-height: 3.2em;
}

.countdown {
  display: inline-block;
  min-width: 11ch;
  text-align: left;
  font-weight: 800;
}

.quote {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  line-height: 1.6;
}

.quote figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.78);
}

.hidden {
  display: none;
  opacity: 0;
}

.quote.visible {
  display: block;
  opacity: 1;
  transition: opacity 600ms ease;
}

.message-block.visible {
  display: grid;
  opacity: 1;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
