:root {
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #3a5bdc;
  --bg: #ffffff;
  --rule: #e5e5e5;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

header.site a.brand {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.01em;
}

header.site a.brand:hover { color: var(--accent); }

h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
}

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

p { margin: 0 0 16px; }

ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 4px 0; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: #f3f3f5;
  padding: 1px 5px;
  border-radius: 4px;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.meta p { margin: 4px 0; }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 56px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
footer.site a { color: var(--muted); }

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ececec;
    --muted: #a0a0a0;
    --accent: #8aa6ff;
    --bg: #131316;
    --rule: #2a2a2e;
  }
  code { background: #24242a; }
}
