:root {
  --bg: #0a1420;
  --gold: #d4b87a;
  --text: #ece7d8;
  --text-faint: rgba(236, 231, 216, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

main {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
}

#trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.wordmark {
  position: relative;
  z-index: 2;
  font-size: clamp(1.6rem, 5vw, 3.5rem);
  font-weight: 200;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--text);
  opacity: 0;
  animation: fade-in 2s ease-out 19s forwards;
  text-transform: lowercase;
  user-select: none;
  pointer-events: none;
}

.phi {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  opacity: 0;
  animation: fade-in 2s ease-out 19.7s forwards;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark, .phi {
    animation: none;
    opacity: 1;
  }
}
