:root {
  --bg: #16110c;
  --bg-glow: #2b1d10;
  --ink: #f1e6d2;
  --muted: #c9b89b;
  --faint: #8f7f66;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}

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

html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 60% 45% at 50% 30%, var(--bg-glow) 0%, var(--bg) 70%);
  color: var(--ink);
  font-family: var(--serif);
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
}

/* The candle is drawn as flat dabs of paint (site/make-candle.mjs), like the game. */
.candle {
  width: 140px;
  height: 190px;
  margin-bottom: 18px;
  overflow: visible;
}

.candle .glow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: glow 3.2s ease-in-out infinite;
}

.candle .flame {
  transform-box: fill-box;
  transform-origin: 50% 95%;
  animation: flicker 3.2s ease-in-out infinite;
}

.candle .core {
  transform-box: fill-box;
  transform-origin: 50% 95%;
  animation: flicker 2.3s ease-in-out infinite reverse;
}

@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  25% { transform: scale(0.96, 1.04) rotate(-1.5deg); }
  50% { transform: scale(1.03, 0.97) rotate(1deg); }
  75% { transform: scale(0.98, 1.02) rotate(-0.5deg); }
}

@keyframes glow {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  30% { opacity: 0.8; transform: scale(0.98); }
  55% { opacity: 1; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .candle .glow, .candle .flame, .candle .core { animation: none; }
}

.wordmark {
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.tagline {
  margin-top: 14px;
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-style: italic;
  color: var(--muted);
}

.note {
  margin-top: 28px;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--faint);
}

.foot {
  padding: 20px 16px 28px;
  font-size: 0.85rem;
  color: var(--faint);
}
