
:root {
  --bg: #fbf8f4; --surface: #ffffff; --text: #231f1c; --muted: #6b635c; --border: #e7e0d8;
  --accent: #b4532a; --accent-text: #ffffff; --code: #f3eee8; --warn-bg: #fff4d6; --warn-text: #6b4e00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181513; --surface: #221e1b; --text: #f1ebe5; --muted: #a99f96; --border: #3a332e;
    --accent: #f08c5a; --accent-text: #1a0f08; --code: #2c2622; --warn-bg: #3a2f10; --warn-text: #f4dc94;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 1; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav.top { display: flex; gap: 16px; font-size: .95rem; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--text); }
main { padding: 24px 0 40px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
p.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: .9rem; }
form.search { display: flex; gap: 8px; margin: 16px 0 8px; }
form.search input {
  flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
form.search button {
  font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 0;
  background: var(--accent); color: var(--accent-text); cursor: pointer;
}
ul.articles { list-style: none; padding: 0; margin: 0; }
ul.articles li { padding: 12px 0; border-bottom: 1px solid var(--border); }
ul.articles li:last-child { border-bottom: 0; }
ul.articles a { font-weight: 600; text-decoration: none; }
ul.articles p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; margin: 8px 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.draft { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0 0 20px; }
article.body img { max-width: 100%; height: auto; border-radius: 8px; }
article.body pre, article.body code { background: var(--code); border-radius: 6px; font-size: .9em; }
article.body code { padding: 1px 4px; }
article.body pre { padding: 12px; overflow-x: auto; }
article.body pre code { padding: 0; }
article.body blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--border); color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--border); }
footer.site { border-top: 1px solid var(--border); padding: 20px 0 32px; color: var(--muted); font-size: .85rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
footer.site a { color: var(--muted); }
@media (min-width: 40rem) { h1 { font-size: 2.1rem; } main { padding-top: 36px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
