:root {
  --bg: #0b0b0e;
  --bg-2: #14141a;
  --fg: #eeece2;
  --fg-dim: #a5a29a;
  --fg-mute: #6b6a66;
  --gold: #d9c98a;
  --gold-deep: #b89a58;
  --gold-pale: #f3eed8;
  --line: rgba(217, 201, 138, 0.22);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ambient background — slow drift of warm & cool light */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 28% 22%, rgba(217, 201, 138, 0.14), transparent 62%),
    radial-gradient(48% 38% at 78% 72%, rgba(120, 96, 190, 0.12), transparent 62%),
    radial-gradient(70% 55% at 50% 55%, rgba(20, 20, 26, 1), rgba(11, 11, 14, 1));
  filter: blur(40px);
  animation: drift 44s ease-in-out infinite alternate;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-4%, 3%, 0) scale(1.06);
  }
}

/* Subtle film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.83  0 0 0 0 0.78  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

/* Small chevron mark, top-left */
.chev {
  color: var(--gold);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 400ms ease, transform 400ms ease;
}
.chev:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.chev__glyph {
  width: 22px;
  height: 22px;
  display: block;
}

/* Centered hero */
.hero {
  align-self: center;
  justify-self: center;
  max-width: 640px;
  text-align: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.hero > * {
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero > *:nth-child(1) { animation-delay: 120ms; }
.hero > *:nth-child(2) { animation-delay: 320ms; }
.hero > *:nth-child(3) { animation-delay: 520ms; }
.hero > *:nth-child(4) { animation-delay: 720ms; }
.hero > *:nth-child(5) { animation-delay: 920ms; }
.hero > *:nth-child(6) { animation-delay: 1120ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wordmark {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(4.5rem, 15vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  background: linear-gradient(
    100deg,
    var(--gold-deep) 0%,
    var(--gold-pale) 40%,
    var(--gold) 60%,
    var(--gold-deep) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both,
    shimmer 9s ease-in-out infinite 900ms;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lede {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  color: var(--fg);
  margin: 0 0 2.25rem;
  opacity: 0.94;
  letter-spacing: 0.005em;
}

.rule {
  width: 1px;
  height: 44px;
  margin: 0 auto 2rem;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.9;
}

.body {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--fg-dim);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.draft {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 2rem 0 0;
}

.draft-link {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-style: italic;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 300ms ease, border-color 300ms ease;
}
.draft-link:hover {
  color: var(--gold-pale);
  border-bottom-color: var(--gold);
}

.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-mute);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  padding-top: 1.5rem;
}
.foot__dot {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .wordmark,
  .hero > * {
    animation: none !important;
  }
  .hero > * {
    opacity: 1;
    transform: none;
  }
}
