:root {
  --bg: #fff; --fg: #1d1d1f; --muted: #6e6e73; --line: #e2e2e5; --code: #f5f5f7;
  --link: #0b57d0; --accent: #ff8700;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214; --fg: #e4e4e7; --muted: #a1a1aa; --line: #2e2e33; --code: #1c1c20;
    --link: #8ab4f8;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto; max-width: 56rem; padding: 0 1rem; background: var(--bg);
  color: var(--fg); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
header b { color: var(--accent); }
footer {
  margin: 3rem 0 1rem; padding-top: .75rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .875rem;
}
a { color: var(--link); }
h1, h2, h3 { line-height: 1.25; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; }
code { font-size: .9em; }
pre {
  background: var(--code); border: 1px solid var(--line); border-radius: 6px;
  padding: .75rem; overflow-x: auto; line-height: 1.4;
}
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
td, th {
  border-bottom: 1px solid var(--line); padding: .3rem .6rem; text-align: left;
  vertical-align: top;
}
img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
section { margin-top: 2.5rem; }
.note { color: var(--muted); font-style: italic; }
.gallery {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.gallery article {
  border: 1px solid var(--line); border-radius: 8px; padding: 0 1rem; min-width: 0;
}
.gallery h2 { font-size: 1.15rem; }
