:root {
  color-scheme: light dark;
  --fg: #111;
  --muted: #666;
  --bg: #fff;
  --link: #0b57d0;
  --rule: #e5e5e5;
  --surface: #f7f7f8;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  background: var(--bg);
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

.site-header,
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

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

.tagline,
.muted,
.meta,
.lede {
  color: var(--muted);
}

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

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

img {
  max-width: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6edf3;
    --muted: #9aa4b2;
    --bg: #0b1220;
    --link: #7cc0ff;
    --rule: #243244;
    --surface: #111827;
  }
}
