:root {
  --bg: #fafaf9; --fg: #1c1917; --muted: #57534e; --line: #e7e5e4;
  --card: #ffffff; --accent: #0f766e; --accent2: #6d28d9;
  --glow: rgba(15, 118, 110, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0908; --fg: #f5f5f4; --muted: #a8a29e; --line: #292524;
    --card: #15130f; --accent: #5eead4; --accent2: #c4b5fd;
    --glow: rgba(94, 234, 212, .12);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0908; --fg: #f5f5f4; --muted: #a8a29e; --line: #292524;
  --card: #15130f; --accent: #5eead4; --accent2: #c4b5fd;
  --glow: rgba(94, 234, 212, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(60rem 28rem at 50% -8rem, var(--glow), transparent);
  background-repeat: no-repeat;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.brand { color: var(--fg); font-weight: 700; letter-spacing: -.01em; }
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--fg); text-decoration: none; }
button {
  font: inherit; font-size: 14px; color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer;
}
button:hover { color: var(--fg); border-color: var(--muted); }
.intro { padding: 72px 0 40px; }
h1 {
  font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 18px; font-weight: 800;
}
h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.15rem, 3vw, 1.4rem); color: var(--muted); margin: 0; max-width: 34ch; }
section { padding: 32px 0; }
h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.01em; }
.card p { margin: 0 0 8px; }
.links { display: flex; gap: 18px; flex-wrap: wrap; }
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; display: block; overflow-x: auto; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.foot { padding-top: 40px; padding-bottom: 56px; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .intro, section { animation: rise .6s ease both; }
  section:nth-of-type(2) { animation-delay: .08s; }
  section:nth-of-type(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 7px; display: block; }
