*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0e14;
  --surface: #151a23;
  --surface-2: #21252f;
  --border: #2c313f;
  --border-strong: #383f50;
  --text: #c3cddc;
  --text-strong: #f7f9fc;
  --muted: #7e8a9e;
  --primary: #4465db;
  --primary-soft: rgba(68, 101, 219, 0.15);
  --accent: #f08a59;
  --accent-soft: rgba(240, 138, 89, 0.15);
  --sans:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans',
    'Noto Sans JP', sans-serif;
  --mono:
    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono',
    monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #334155;
    --text-strong: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.1);
    --accent: #ea580c;
    --accent-soft: rgba(234, 88, 12, 0.1);
    color-scheme: light;
  }
}

iconify-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
}

section {
  scroll-margin-top: 24px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  padding: 0 16px;
}
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

/* Hero */
.hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-strong);
}
.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 14px;
}
h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
h1 iconify-icon {
  color: var(--primary);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}
.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: var(--mono);
}

/* Sections */
section {
  margin-top: 48px;
}
h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
h2 iconify-icon {
  color: var(--primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 24px 0 8px;
}
h3 iconify-icon {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
p {
  margin-bottom: 12px;
}
p strong {
  color: var(--text);
}
.section-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* Inline code & blocks */
code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--text);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.77rem;
  line-height: 1.7;
  color: var(--text);
  margin: 14px 0;
}
pre .c {
  color: var(--muted);
}

/* Blockquote */
blockquote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 2px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}
blockquote a {
  color: var(--primary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}
.table-wrap a {
  color: var(--primary);
  text-decoration: none;
}
.table-wrap a:hover {
  text-decoration: underline;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  background: var(--surface);
}
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  background: var(--surface);
}
tr:last-child td {
  border-bottom: none;
}

/* Callout */
.callout {
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.84rem;
  margin: 16px 0;
  line-height: 1.65;
}
.callout iconify-icon {
  font-size: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  color: var(--primary);
}

/* Footer */
footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.8rem;
}
footer strong {
  color: var(--text);
}
footer ul {
  list-style: none;
}
footer li {
  padding: 2px 0;
}
footer li iconify-icon {
  color: var(--muted);
  font-size: 14px;
  vertical-align: -2px;
  margin-right: 6px;
}
footer a {
  color: var(--primary);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.f-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}
.f-title iconify-icon {
  color: var(--primary);
}
.colophon {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
