:root {
  --bg: #f7f6ff;
  --surface: #ffffff;
  --text: #0d0d1e;
  --muted: #5b5b6e;
  --accent: #5b4ae8;
  --border: #e6e4f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d1e;
    --surface: #161625;
    --text: #f2f1fb;
    --muted: #a8a6c0;
    --accent: #7c5ce5;
    --border: #242438;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

header.site .brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}

header.site nav a:hover,
header.site nav a.active {
  color: var(--accent);
}

h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

p, ul, ol, table { margin: 12px 0; }

ul, ol { padding-left: 22px; }

li { margin: 4px 0; }

a { color: var(--accent); }

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--surface);
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
