:root {
  --canvas: #0b0c0f;
  --paper: #f4efe6;
  --ember: #e8a87c;
  --gold: #d4a017;
  --signal: #5ce1e6;
  --muted: #9a9488;
  --ink: #121318;
  --line: rgba(244, 239, 230, 0.12);
  --glow: rgba(92, 225, 230, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 480px at 12% -10%, rgba(232, 168, 124, 0.14), transparent 55%),
    radial-gradient(900px 420px at 92% 8%, rgba(92, 225, 230, 0.1), transparent 50%),
    linear-gradient(rgba(92, 225, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.90  0 0 0 0.35 0'/></filter><rect width='80' height='80' filter='url(%23n)'/></svg>");
}
.aurora {
  pointer-events: none;
  position: fixed;
  inset: auto -20% 18% auto;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  z-index: 0;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.16), transparent 68%);
  filter: blur(8px);
}
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--ember);
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  z-index: 10;
  text-decoration: none;
}
.skip:focus { left: 1rem; }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 1.5rem; align-items: baseline; margin-bottom: 1.5rem; }
.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.28em;
  color: var(--ember);
  font-size: 0.78rem;
  margin: 0;
}
h1, h2 { font-weight: 650; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.6rem; color: var(--signal); }
.lede { font-size: 1.15rem; max-width: 46rem; color: var(--paper); }
.muted { color: var(--muted); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--signal);
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(154, 148, 136, 0.15);
}
.dot[data-ready="true"] { background: var(--signal); box-shadow: 0 0 0 4px var(--glow); }
.dot[data-ready="false"] { background: var(--ember); box-shadow: 0 0 0 4px rgba(232, 168, 124, 0.2); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}
.hero-compact { margin-bottom: 1.5rem; grid-template-columns: 1fr auto; align-items: start; }
.mark-sm { width: 96px; height: 96px; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .mark-wrap { justify-self: center; }
}

.mark-wrap {
  display: grid;
  place-items: center;
  justify-self: end;
}
.mark {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 0 28px rgba(92, 225, 230, 0.22));
}
.price {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0;
}
.chip {
  border: 1px solid var(--ember);
  color: var(--ember);
  padding: 0.35rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: rgba(232, 168, 124, 0.06);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card {
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
  backdrop-filter: blur(8px);
}
.card:hover { border-color: rgba(92, 225, 230, 0.28); }
.stat { font-size: 2rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold); margin: 0; }

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}
pre {
  background: #07080a;
  color: var(--paper);
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
}
#payload {
  max-height: min(70vh, 44rem);
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-actions { display: flex; align-items: center; gap: 0.5rem; }
.raw-link { text-decoration: none; display: inline-block; }
.copy {
  appearance: none;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.copy:hover, .copy:focus-visible { border-color: var(--signal); color: var(--signal); background: rgba(92, 225, 230, 0.06); }
a { color: var(--signal); }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}
nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.28rem 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
nav a:hover, nav a:focus-visible {
  text-decoration: none;
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(92, 225, 230, 0.06);
}
nav a[aria-current="page"] {
  color: var(--ember);
  border-color: var(--ember);
  background: rgba(232, 168, 124, 0.1);
  text-decoration: none;
}
.brand-link {
  color: inherit;
  text-decoration: none;
  letter-spacing: inherit;
}
.brand-link:hover, .brand-link:focus-visible { color: var(--signal); text-decoration: underline; }
section { margin: 2.4rem 0; }
.cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--ember);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(232, 168, 124, 0.35);
}
.btn:hover, .btn:focus-visible { filter: brightness(1.06); }
.btn.ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  box-shadow: none;
}

.backends {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0.8rem 0 0;
}
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0.9rem 0 0;
}
.backends li, .facts li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  color: var(--paper);
}
.facts li {
  border-color: rgba(92, 225, 230, 0.28);
  color: var(--signal);
}

.fixture { display: grid; gap: 1rem; }
.fixture-summary, .mention {
  background: rgba(7, 8, 10, 0.72);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.mention:hover { border-color: rgba(92, 225, 230, 0.22); }
.fixture-summary h3 { margin: 0 0 0.55rem; font-size: 1.15rem; color: var(--paper); }
.mention header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.mention p { margin: 0 0 0.65rem; }
.sent {
  height: 4px;
  background: rgba(244, 239, 230, 0.08);
  overflow: hidden;
}
.sent > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ember), var(--signal));
}
.themes { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.themes li {
  font-size: 0.78rem;
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.35);
  padding: 0.2rem 0.5rem;
}

.payto {
  margin: 0 0 1.1rem;
  max-width: 46rem;
}

.citations {
  background: rgba(7, 8, 10, 0.72);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.citations h3 { margin: 0 0 0.75rem; color: var(--signal); font-size: 1rem; }
.cite-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.cite-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
}
.cite-src {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
.mention-link { color: var(--paper); text-decoration: none; }
.mention-link:hover, .mention-link:focus-visible { color: var(--signal); text-decoration: underline; }

@media (max-width: 640px) {
  .cite-list li { grid-template-columns: 1fr; }
}

.site-foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: rgba(92, 225, 230, 0.28);
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark, .aurora, .dot { filter: none; box-shadow: none; }
}
