:root {
  --bg: #fff;
  --fg: #000;
  --muted: #666;
  --code-bg: #f2f2f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --fg: #fff;
    --muted: #999;
    --code-bg: #1a1a1a;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

.title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.tag {
  color: var(--muted);
  margin: 0 0 3rem;
}

section { margin-bottom: 3rem; }

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

p { margin: 0 0 0.5rem; }

.note {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

pre {
  background: var(--code-bg);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.55;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.backends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.backend-card {
  border: 1px solid var(--code-bg);
  border-radius: 6px;
  padding: 1rem 1.1rem 0.75rem;
}

.backend-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.backend-card .backend-meta {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0 0 0.65rem;
}

.backend-card p {
  font-size: 0.9375rem;
  margin: 0 0 0.65rem;
}

.backend-card pre {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 0.05em 0.45em;
  margin-left: 0.3em;
  border: 1px solid var(--muted);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  vertical-align: middle;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .backends { grid-template-columns: 1fr; }
}

footer {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 3rem;
}
