:root {
  --bg: #ffffff;
  --fg: #16181c;
  --muted: #5b6470;
  --line: #e3e6ea;
  --accent: #2f6feb;
  --surface: #f7f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e8eaed;
    --muted: #98a2b0;
    --line: #2a2e35;
    --accent: #7aa2f7;
    --surface: #1c1f25;
  }
}

* { box-sizing: border-box; }

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

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-header .brand {
  font-weight: 650;
  text-decoration: none;
  color: var(--fg);
}

.site-header nav a {
  margin-left: 1rem;
  font-size: 0.925rem;
}

.prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.prose h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 0.35rem; }
.prose h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Wide content must scroll inside its own container, never the page body. */
.scroll-x { overflow-x: auto; }
