:root {
  --bg: #ffffff;
  --text: #1d2330;
  --muted: #5b6475;
  --line: #e3e6ec;
  --soft: #f5f7fa;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --note-bg: #fff8e6;
  --note-line: #e8c56a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --text: #e6e9ef;
    --muted: #a3acbb;
    --line: #2c323c;
    --soft: #1b1f26;
    --accent: #7fb0ff;
    --accent-text: #0d1422;
    --note-bg: #2a2416;
    --note-line: #7a6430;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 18px; }
.site-header nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a:first-child { margin-left: 0; }
main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 32px; line-height: 1.25; margin: 8px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
h4 { font-size: 17px; margin: 20px 0 6px; }
p, ul, ol, blockquote, .table-wrap { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { margin: 4px 0; }
blockquote { border-left: 4px solid var(--line); padding: 4px 0 4px 16px; color: var(--muted); }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
pre { background: var(--soft); padding: 12px; overflow-x: auto; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.crumbs a { color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); }
.disclosure { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 6px; padding: 10px 14px; font-size: 15px; margin: 0 0 16px; }
.toc { background: var(--soft); border-radius: 6px; padding: 12px 16px; font-size: 15px; margin-bottom: 24px; }
.toc p { margin: 0 0 4px; font-weight: 600; }
.toc ol { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
th { background: var(--soft); }
.cta { margin: 20px 0 24px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.button:hover { opacity: 0.92; }
.sources { font-size: 15px; }
.sources li { word-break: break-all; }
.method { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 32px; }
.related ul { padding-left: 20px; }
.post-list { list-style: none; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0; }
.post-list h2 { font-size: 20px; margin: 4px 0; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.tag { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lead { font-size: 19px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); padding: 16px 0 32px; }
.site-footer a { color: var(--muted); }
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
}
