:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #0a0a0a;
  --muted: #525252;
  --border: #e5e5e5;
  --accent: #0891b2;
  --accent-soft: #ecfeff;
  --code-bg: #f4f4f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #141414;
    --text: #fafafa;
    --muted: #a3a3a3;
    --border: #262626;
    --accent: #22d3ee;
    --accent-soft: #0e2a30;
    --code-bg: #1c1c1c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
nav.site a { color: var(--muted); }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 40px 0 64px; }

h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 16px; margin: 24px 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
.lead { color: var(--muted); font-size: 18px; margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 16px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.callout {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.callout ul { margin: 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
code { background: var(--code-bg); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
pre {
  background: var(--code-bg);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 14px;
}
pre code { background: none; padding: 0; }

.hero { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.hero img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.links a.card { color: var(--text); display: block; }
.links a.card:hover { border-color: var(--accent); text-decoration: none; }
.links strong { display: block; margin-bottom: 4px; }
.links span { color: var(--muted); font-size: 14px; }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; }
details > *:not(summary) { margin-top: 10px; }

footer.site { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }
.features .card { margin: 0; }
.features strong { display: block; margin-bottom: 4px; }
.features p { color: var(--muted); font-size: 14px; margin: 0; }
