:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --accent: #3b5bdb;
  --accent-soft: #edf2ff;
  --border: #e6e3dc;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --surface: #1c1c1f;
    --text: #ececef;
    --muted: #a1a1aa;
    --accent: #91a7ff;
    --accent-soft: #1f2540;
    --border: #2c2c31;
  }
}

* { box-sizing: border-box; }

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

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

.site-header, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-header .logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  margin-top: 64px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

h1 { font-size: 2.3rem; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 1.5rem; margin-top: 48px; }
h3 { font-size: 1.15rem; margin-top: 32px; }

.post-meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.lead { font-size: 1.15rem; color: var(--muted); }

.toc, .callout {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 32px 0;
}
.toc ol { margin: 8px 0 0; padding-left: 20px; }

.steps li { margin-bottom: 6px; }

code, kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.post-list a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.post-list p { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 1.8rem; }
  table { display: block; overflow-x: auto; }
}

.site-header .logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { width: 32px; height: 32px; border-radius: 8px; display: block; }
