:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --panel-soft: #fbfcfe;
  --text: #1f2328;
  --muted: #57606a;
  --border: #d0d7de;
  --border-strong: #afb8c1;
  --accent: #0969da;
  --accent-strong: #0550ae;
  --green: #1a7f37;
  --shadow: 0 10px 32px rgba(31, 35, 40, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #f8fafc 0%, #f6f8fa 40%, #eef2f6 100%);
  font: 15px/1.6 "SF Pro Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(208, 215, 222, 0.72);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #eef2f6);
  font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent-strong);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.topnav a {
  color: var(--muted);
}

.hero {
  padding: 32px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero h1,
.panel h2,
.wide-note h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.lede {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.02);
}

.button:hover {
  text-decoration: none;
  border-color: var(--border-strong);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.stats li {
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.stats span,
.callout span,
.timeline span {
  display: block;
  color: var(--muted);
  font: 600 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stats strong,
.callout strong,
.timeline strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.hero-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d8dee4;
}

.hero-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.band {
  padding: 18px 0 8px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature,
.panel,
.wide-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.03);
}

.feature {
  padding: 18px;
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p,
.panel p,
.install-notes p,
.stack-row p,
.wide-note p {
  margin: 0;
  color: var(--muted);
}

.content {
  display: grid;
  gap: 18px;
  padding: 18px 0 56px;
}

.panel,
.wide-note {
  padding: 20px;
}

.panel-head {
  max-width: 72ch;
  margin-bottom: 18px;
}

.panel-head h2,
.wide-note h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: start;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1020;
  color: #dbe5f3;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  font: inherit;
}

.callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.callout {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.timeline > div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.install-notes {
  display: grid;
  gap: 12px;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.stack-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.stack-row a {
  white-space: nowrap;
  font-weight: 600;
}

.site-footer {
  margin-top: 24px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.66);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer-inner a {
  color: var(--muted);
}

.wide-note {
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .panel-grid,
  .grid-4,
  .callouts,
  .timeline {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding-top: 22px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stack-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
