:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #151d28;
  --text: #e8eef6;
  --muted: #a4b2c4;
  --accent: #7cbcff;
  --line: #334155;
  --radius: 12px;
  --max: 1120px;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 163, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: #b9ddff; }
:focus-visible { outline: 3px solid #f4d03f; outline-offset: 4px; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--panel);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.97);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.5rem;
}
.brand { color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }
.nav-links, .cta, .section-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nav-links a {
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 32, 48, 0.55), transparent 80%);
}
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.8rem; }
p { margin: 0 0 1rem; }
.lede { max-width: 51rem; color: #bdc9d9; font-size: 1.2rem; }
.cta { margin-top: 1.5rem; gap: 0.65rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: #1a2432; border-color: var(--accent); color: var(--text); }
.btn.primary { color: #041018; background: #7cbcff; border-color: transparent; }
.btn.primary:hover { background: #a9d4ff; }
.hero-note { max-width: 51rem; color: var(--muted); margin: 1.5rem 0 0; }
.page { padding-block: 2.75rem 1rem; }
section { margin-bottom: 3.5rem; }
.feature-group { margin: 2.5rem 0 3rem; }
.setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; min-width: 0; }
.card p { font-size: 0.95rem; }
.card .eyebrow { font-size: 0.74rem; }
.card > a { font-size: 0.95rem; }
.callout {
  margin: 1.5rem 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(74, 163, 255, 0.12);
  padding: 1rem 1.15rem;
}
.callout p { margin: 0; }
.callout.warn { border-color: #f0b777; background: rgba(240, 163, 90, 0.09); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }
.status-key { list-style: none; padding: 0; }
.status-key li { margin: 0.7rem 0; }
.status-key .status { margin-right: 0.4rem; }
.status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.25rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.implemented { color: #6ee7aa; background: rgba(61, 214, 140, 0.07); }
.progress { color: #ffd18c; background: rgba(240, 163, 90, 0.07); }
.planned { color: #c5b4ff; background: rgba(180, 150, 255, 0.07); }
.section-links { gap: 0.6rem 1.2rem; margin: 1.25rem 0; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-top: 1rem;
}
table { width: 100%; min-width: 43rem; border-collapse: collapse; font-size: 0.95rem; }
caption { padding: 0.9rem 1rem; text-align: left; font-weight: 600; background: #111821; color: var(--muted); }
th, td { text-align: left; vertical-align: top; padding: 0.9rem 1rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tbody th { font-weight: 600; width: 25%; }
td:nth-child(2) { width: 23%; }
td:last-child { width: auto; }
tbody tr:hover { background: rgba(74, 163, 255, 0.035); }
code { font-family: var(--mono); font-size: 0.87em; overflow-wrap: anywhere; }
:not(pre) > code { color: #d7e7ff; }
pre { margin: 1rem 0; padding: 0.9rem; background: #0a1018; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; line-height: 1.55; }
pre code { font-size: 0.8rem; overflow-wrap: normal; }
.resource-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.resource-list li { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.resource-list a { font-weight: 600; }
.resource-list span { display: block; margin-top: 0.4rem; font-size: 0.93rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .setup-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 1rem; }
  .topbar { position: static; }
  .hero { padding: 2.2rem 0 1.8rem; }
  .lede { font-size: 1.07rem; }
  .nav-links { gap: 0.1rem; }
  .nav-links a { padding: 0.45rem; }
  .resource-list { grid-template-columns: 1fr; }
  .page { padding-top: 2rem; }
}
@media print {
  :root { color-scheme: light; }
  body { background: white; color: black; font-size: 10pt; }
  .topbar, .skip-link, .cta, .section-links { display: none; }
  .wrap { width: 100%; }
  .hero { padding: 0 0 1rem; background: none; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 9pt; }
  tr { break-inside: avoid; }
  .card, .table-wrap, caption, pre, .callout, .resource-list li { background: white; }
  a, .lede, .hero-note, .note, .eyebrow, caption, thead th, .status, .resource-list span, .site-footer, :not(pre) > code { color: black; }
}
