/* ========== Fire Angel News — design tokens ========== */
:root {
  --ink: #0d0d0f;
  --ink-2: #1a1a1d;
  --ink-3: #2a2a2f;
  --paper: #faf8f5;
  --cream: #f3ede2;
  --rule: #d8d2c6;
  --rule-soft: #ece6d8;
  --muted: #6b6558;
  --text: #1a1a1d;
  --flame: #e8743a;
  --flame-2: #f49a4a;
  --ember: #c83820;
  --gold: #e5b04a;
  --urgent: #c8182b;
  --live: #16a34a;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-2: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-flame: 0 0 40px rgba(232,116,58,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== INTRO ========== */
.intro {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, #1a0f08 0%, #0a0606 60%, #000 100%);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  overflow: hidden;
}
.intro.fade-out { animation: introFadeOut 0.8s ease forwards; }
@keyframes introFadeOut {
  to { opacity: 0; visibility: hidden; }
}

.intro-stage {
  position: relative;
  width: 520px; height: 360px;
  display: flex; align-items: center; justify-content: center;
}

/* Book base */
.book {
  position: absolute;
  bottom: 60px;
  width: 280px; height: 90px;
  opacity: 0;
  animation: bookRise 1.2s ease-out 0.3s forwards;
}
@keyframes bookRise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Flame */
.flame-wrap {
  position: absolute;
  bottom: 120px;
  width: 160px; height: 220px;
  opacity: 0;
  transform: scale(0.2);
  transform-origin: bottom center;
  animation: flameGrow 1.6s cubic-bezier(0.2,0.7,0.3,1) 1.0s forwards;
}
@keyframes flameGrow {
  0%   { opacity: 0; transform: scale(0.2); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.flame-inner { width: 100%; height: 100%; animation: flameFlicker 2.4s ease-in-out 2.4s infinite; transform-origin: bottom center; }
@keyframes flameFlicker {
  0%,100% { transform: scale(1) skewX(0deg); }
  25% { transform: scale(1.03, 0.98) skewX(1.5deg); }
  50% { transform: scale(0.98, 1.02) skewX(-1deg); }
  75% { transform: scale(1.02, 0.99) skewX(0.8deg); }
}

.spark {
  position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  opacity: 0;
}
@keyframes sparkRise {
  0%   { opacity: 0; transform: translate(0,0) scale(1); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx,0), -180px) scale(0.3); }
}

.intro-title {
  position: absolute;
  bottom: -40px;
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  animation: titleIn 1.2s cubic-bezier(0.2,0.7,0.3,1) 2.6s forwards;
}
@keyframes titleIn {
  from { opacity: 0; transform: translate(-50%, 10px); letter-spacing: 0.3em; }
  to   { opacity: 1; transform: translate(-50%, 0); letter-spacing: 0.12em; }
}
.intro-title .fire, .intro-title .angel {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 54px;
  letter-spacing: 0.06em;
}
.intro-title .fire {
  background: linear-gradient(180deg, #ffb86b 0%, #e8743a 50%, #c83820 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-title .angel { color: #fffaf0; }
.intro-title .news {
  display: block;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.7em;
  font-size: 18px;
  margin-top: 6px;
  padding: 0 10px;
  position: relative;
}
.intro-title .news::before,
.intro-title .news::after {
  content: "";
  position: absolute; top: 50%;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.intro-title .news::before { right: 100%; background: linear-gradient(90deg, transparent, var(--gold)); }
.intro-title .news::after  { left: 100%;  background: linear-gradient(90deg, var(--gold), transparent); }

.intro-skip {
  position: absolute;
  bottom: 32px; right: 32px;
  color: rgba(255,255,255,0.55);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  text-transform: uppercase;
  transition: all 0.2s;
}
.intro-skip:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.intro-glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,116,58,0.25) 0%, transparent 55%);
  opacity: 0;
  animation: glowIn 2s ease 1.2s forwards;
  pointer-events: none;
}
@keyframes glowIn { to { opacity: 1; } }
