:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --good: #047857;
  --warn: #b45309;
  --bad: #b91c1c;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: white; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248,250,252,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; color: var(--text); }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link { color: var(--muted); padding: 8px 11px; border-radius: 999px; font-size: 0.94rem; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.nav-link.github { border: 1px solid var(--border); background: white; }
.nav-toggle { display: none; border: 1px solid var(--border); background: white; border-radius: 999px; padding: 8px 12px; font: inherit; }
.hero { padding: 82px 0 58px; background: radial-gradient(circle at top right, #dbeafe 0, rgba(219,234,254,.2) 33%, transparent 55%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 38px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent-dark); font-weight: 760; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.34rem); color: var(--muted); max-width: 760px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; background: white; color: var(--text); font-weight: 700; }
.button:hover { text-decoration: none; border-color: #bfdbfe; }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-dark); }
.fine-print { color: var(--muted); font-size: .95rem; }
.hero-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.84); border-radius: 28px; box-shadow: var(--shadow); }
.stat { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.stat span { display: block; font-size: 2.15rem; font-weight: 850; color: var(--accent-dark); letter-spacing: -0.05em; }
.stat small { color: var(--muted); font-weight: 650; }
.section { padding: 58px 0; }
.section.muted { background: #f1f5f9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.page-hero { padding: 56px 0 30px; background: linear-gradient(135deg, #eff6ff, #f8fafc 70%); border-bottom: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.text-link { font-weight: 750; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .table-panel, .prose, .download-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card { padding: 24px; }
.feature-card p { color: var(--muted); margin: 0; }
.table-panel { padding: 18px; overflow: hidden; }
.table-toolbar { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(150px, .55fr)); gap: 12px; margin-bottom: 14px; }
.table-toolbar input, .table-toolbar select { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font: inherit; background: white; color: var(--text); }
.table-meta { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: 10px 0 14px; color: var(--muted); font-size: .93rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 820px; background: white; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 12px; vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #334155; background: #f8fafc; position: sticky; top: 0; z-index: 1; }
td { font-size: .93rem; }
td a { font-weight: 650; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: .78rem; font-weight: 750; background: #e2e8f0; color: #334155; white-space: nowrap; }
.badge.tier-s { background: #dbeafe; color: #1d4ed8; }
.badge.tier-a { background: #dcfce7; color: #047857; }
.badge.tier-b { background: #fef3c7; color: #92400e; }
.badge.official { background: #dcfce7; color: #047857; }
.badge.tentative { background: #fef3c7; color: #92400e; }
.badge.passed { background: #fee2e2; color: #991b1b; }
.badge.upcoming { background: #dbeafe; color: #1d4ed8; }
.split { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: start; }
.download-list { padding: 18px; display: grid; gap: 10px; }
.download-list a { padding: 12px; border-radius: 12px; background: #f8fafc; font-weight: 700; }
.download-list a:hover { background: #eff6ff; text-decoration: none; }
.prose { padding: 28px; max-width: 980px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 28px; font-size: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose table { min-width: 0; margin: 16px 0; }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }
.footer-grid a { display: block; margin-bottom: 8px; font-weight: 700; }
.empty { color: var(--muted); padding: 18px; }
.loading { color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid, .split, .feature-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; padding: 12px; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .nav-toggle { display: inline-flex; }
  .table-toolbar { grid-template-columns: 1fr; }
  .section-heading, .footer-grid { align-items: start; flex-direction: column; }
}

.maintainer-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.maintainer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.maintainer-card h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.2rem;
}

.maintainer-card p {
  margin: 0.25rem 0;
}

.maintainer-links a {
  font-weight: 600;
}

@media (max-width: 640px) {
  .maintainer-card {
    align-items: flex-start;
  }

  .maintainer-avatar {
    width: 56px;
    height: 56px;
  }
}
