:root {
  --ink: #0c0c0e;
  --paper: #f4f1ea;
  --muted: #7d7a75;
  --amber: #e8b04b;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* soft light source behind the text */
.glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(232, 176, 75, 0.10), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, rgba(120, 140, 255, 0.07), transparent 70%);
  pointer-events: none;
}

/* very faint grain so the flat colour doesn't band */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  text-align: center;
  max-width: 32rem;
}

.mark {
  margin: 0 0 2.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.mark span {
  color: var(--amber);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 span {
  display: block;
  color: var(--muted);
  font-style: italic;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.footnote {
  margin: 1.75rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #57545a;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(232, 176, 75, 0.8);
  animation: pulse 3.2s ease-in-out infinite;
}

/* gentle entrance, then a slow breathing pulse */
.stage > * {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stage > :nth-child(2) { animation-delay: 0.12s; }
.stage > :nth-child(3) { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .stage > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .dot {
    animation: none;
  }
}

::selection {
  background: var(--amber);
  color: var(--ink);
}
