/* Pons Burn Book: tokens, reset and the handful of primitives every page composes from. */
:root {
  --ground: #0A0A0C;
  --panel: #121216;
  --panel-2: #17171C;
  --line: #1E1E24;
  --line-2: #2A2A31;

  /* brand red, sampled from the approved logo: fills only */
  --brand: #9D331E;
  --brand-hover: #B03A22;
  /* brand red lifted so it reads as text or a thin line on near-black */
  --brand-text: #C4462A;
  /* fire: only live dots, countdowns, burn badges, the ember canvas and the burn tab */
  --fire: #FF8A3D;
  --spark: #FFE7B8;
  --steel: #C9CED6;

  --cream: #F2E9D8;
  --paper: #E8DFCF;
  --ash: #8C8C96;
  --ash-2: #6A6A73;

  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --gut: 24px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--cream); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1 1 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ember { color: var(--brand-text); }
.ash { color: var(--ash); }
.hide { display: none !important; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-2);
}
.h1, .h2, .h3 { color: var(--cream); }
.h1 { font-size: clamp(38px, 6.6vw, 82px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--ash); margin: 0; max-width: 62ch; }
.small { font-size: 13px; color: var(--ash); }
.tiny { font-size: 12px; color: var(--ash-2); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,0.02); font-family: var(--mono); font-size: 12px; color: var(--ash);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ash-2); flex: none; }
.dot.on { background: var(--fire); box-shadow: 0 0 0 0 rgba(255,138,61,0.7); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,138,61,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255,138,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
  background: var(--brand); color: var(--cream);
}
.btn:hover { transform: translateY(-1px); background: var(--brand-hover); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--cream); }
.btn.ghost:hover { border-color: var(--ash-2); background: rgba(255,255,255,0.03); }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: var(--r-sm); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash-2); }
.input {
  width: 100%; padding: 13px 14px; background: #0D0D10; border: 1px solid var(--line-2);
  border-radius: var(--r); font-family: var(--mono); font-size: 14px; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input::placeholder { color: #4A4A52; }
.input:focus { border-color: var(--brand-text); box-shadow: 0 0 0 3px rgba(157,51,30,0.22); }
.input.bad { border-color: #8E2B14; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.seam { height: 1px; background: linear-gradient(90deg, transparent, var(--brand-text), transparent); opacity: 0.5; }
