/* LLM Inference Bottleneck Registry — landing page
   Minimal, lab-notebook aesthetic. No frameworks, no build step. */

:root {
  --bg: #0e0f12;
  --bg-elev: #16181d;
  --bg-elev2: #1d2027;
  --fg: #e6e8eb;
  --fg-muted: #9099a3;
  --accent: #5eead4;
  --accent-2: #f0b429;
  --warn: #ef4444;
  --border: #2a2e36;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: var(--max-narrow); }
.muted { color: var(--fg-muted); }
.small { font-size: 0.9rem; }
.accent { color: var(--accent); }
.hidden { display: none; }
code { font-family: var(--mono); background: var(--bg-elev2); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0.3em 0; letter-spacing: -0.02em; }
h2 { font-size: 1.7rem; margin: 0 0 0.8rem 0; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 0 0 0.6rem 0; color: var(--accent); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0.7rem 0; }
ul, ol { padding-left: 1.4rem; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color .15s; }
a:hover { border-bottom-color: var(--accent); }

.kicker {
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hero {
  background: linear-gradient(180deg, #0a0b0e 0%, var(--bg) 100%);
  padding: 5rem 0 4rem 0;
  border-bottom: 1px solid var(--border);
}
.lede { font-size: 1.2rem; max-width: 760px; color: var(--fg); margin-top: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.8rem 0 1rem; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: transform .08s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #052e2a; border-color: var(--accent); }
.btn.primary:hover { background: #4dd6c0; }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--bg-elev); }
.meta { color: var(--fg-muted); font-family: var(--mono); font-size: 0.85rem; margin-top: 0.8rem; }

.manifesto, .paper-section, .registry-section, .contribute, .support {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.manifesto { background: var(--bg-elev); }
.big-bullets { font-size: 1.05rem; }
.big-bullets li { margin: 0.5rem 0; }

.paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.paper-subtitle { color: var(--fg-muted); margin-bottom: 1.5rem; }
.kpi { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.95rem; }
.kpi td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.kpi td:last-child { text-align: right; color: var(--accent); }
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.figures img { width: 100%; height: auto; border-radius: 4px; background: white; padding: 8px; }
.figures figcaption { font-size: 0.85rem; color: var(--fg-muted); margin-top: 0.4rem; font-style: italic; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  flex: 1 1 150px;
}
.stat-card .num { font-family: var(--mono); font-size: 1.8rem; color: var(--accent); display: block; }
.stat-card .lbl { font-size: 0.78rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0 1rem;
  padding: 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.filters label { display: flex; flex-direction: column; font-size: 0.78rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; gap: 0.3rem; }
.filters select, .filters input {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.45rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  min-width: 130px;
}

table.registry {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-top: 0.5rem;
}
table.registry th, table.registry td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.registry th { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); }
table.registry tbody tr { cursor: pointer; transition: background .1s; }
table.registry tbody tr:hover { background: var(--bg-elev); }
.b-id { font-family: var(--mono); color: var(--accent); }
.tag {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg-elev2);
  border: 1px solid var(--border);
}
.tag.status-open    { color: var(--warn); border-color: var(--warn); }
.tag.status-partial { color: var(--accent-2); border-color: var(--accent-2); }
.tag.status-resolved { color: var(--accent); border-color: var(--accent); }
.prio-pill {
  display: inline-block;
  width: 2.2em;
  text-align: center;
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 700;
}
.prio-5 { background: var(--warn); color: #fff; }
.prio-4 { background: var(--accent-2); color: #1a1a1a; }
.prio-3 { background: #6b7280; color: #fff; }
.prio-2, .prio-1 { background: var(--bg-elev2); color: var(--fg-muted); }

.entry-detail {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.entry-detail h3 { color: var(--accent); margin-bottom: 0.4rem; }
.entry-detail .meta-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.88rem; color: var(--fg-muted); margin-bottom: 1rem; }
.entry-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; margin: 1rem 0; font-size: 0.92rem; }
.entry-detail dt { color: var(--fg-muted); font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.entry-detail .body { margin-top: 1.2rem; line-height: 1.6; }
.entry-detail .close { float: right; cursor: pointer; color: var(--fg-muted); font-family: var(--mono); }

footer { padding: 2rem 0 3rem; color: var(--fg-muted); font-size: 0.88rem; }
footer code { color: var(--fg); }

@media (max-width: 600px) {
  table.registry th:nth-child(7), table.registry td:nth-child(7) { display: none; }
  table.registry th:nth-child(6), table.registry td:nth-child(6) { display: none; }
  .filters select, .filters input { min-width: 100px; }
}
