:root {
  --ink: #10241a;
  --ink-soft: #2c4638;
  --paper: #f3efe4;
  --paper-dim: rgba(243, 239, 228, 0.78);
  --gold: #c9a24a;
  --gold-deep: #9a7828;
  --field: #163528;
  --field-mid: #1f4a36;
  --mist: rgba(243, 239, 228, 0.08);
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype",
    Palatino, serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--field);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      120% 80% at 50% -10%,
      rgba(201, 162, 74, 0.18),
      transparent 55%
    ),
    radial-gradient(
      90% 70% at 100% 100%,
      rgba(8, 28, 20, 0.9),
      transparent 50%
    ),
    radial-gradient(
      70% 60% at 0% 80%,
      rgba(45, 90, 64, 0.45),
      transparent 45%
    ),
    linear-gradient(165deg, var(--field-mid) 0%, var(--field) 48%, #0c1f16 100%);
  pointer-events: none;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  width: clamp(5.5rem, 16vw, 7.5rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: crest-in 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-name {
  margin: 1.35rem 0 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
  animation: rise 900ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  margin: 1.1rem 0 0;
  max-width: 22ch;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  text-wrap: balance;
  animation: rise 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(243, 239, 228, 0.72);
  text-wrap: pretty;
  animation: rise 900ms 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.seconds {
  display: inline-block;
  min-width: 1.25ch;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
}

.actions {
  margin: 2rem 0 0;
  animation: rise 900ms 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4b05a 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 14px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.continue:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.continue:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.destination {
  margin: 1.35rem 0 0;
  font-size: 0.86rem;
  color: rgba(243, 239, 228, 0.55);
  animation: rise 900ms 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.destination a {
  color: rgba(243, 239, 228, 0.82);
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 74, 0.55);
  text-underline-offset: 0.18em;
}

.destination a:hover {
  color: var(--paper);
}

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

@keyframes crest-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .brand-mark,
  .brand-name,
  h1,
  .lede,
  .actions,
  .destination {
    animation: none;
  }

  .continue {
    transition: none;
  }
}
