:root {
  --bg: #0f1218;
  --bg-elev: #171b24;
  --text: #e8ecf4;
  --muted: #9aa3b5;
  --line: #2a3140;
  --accent: #5ec8a0;
  --accent-2: #7eb6ff;
  --warn: #e0b35a;
  --cheap: rgba(94, 200, 160, 0.12);
  --max: 960px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1a2438 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #13251f 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 24, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
}

nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 2rem 0 3rem; }

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.45rem, 3.6vw, 1.85rem); margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }

.lede { color: var(--muted); margin: 0 0 1rem; max-width: 70ch; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

th, td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}

tr:last-child td { border-bottom: 0; }

tr.cheap {
  background: var(--cheap);
}

tr.cheap td:first-child { font-weight: 600; }

.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.88em; }

.note {
  font-size: 0.9rem;
  color: var(--warn);
  margin: 0.85rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .sources { word-break: break-all; }

.model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.model-grid a { font-size: 0.92rem; }

@media (max-width: 640px) {
  table { min-width: 520px; }
}
