/* Plain text pages written by scripts/prerender.py: one per layer and concept, readable without JavaScript. */
:root {
  color-scheme: light dark;
  --bg: #f7f7fb; --surface: #ffffff; --border: #dcdfe8; --text: #151826; --muted: #545b70; --accent: #4a3cc4;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --l1: #9a7b5b; --l2: #dc4a4a; --l3: #ea7a2a; --l4: #e0b21e; --l5: #3fa55a; --l6: #17a2a2; --l7: #3b82f6; --l8: #7c5ce6; --l9: #d6409f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1020; --surface: #151a2d; --border: #2c3354; --text: #e8eaf4; --muted: #a3aac3; --accent: #b3a6ff;
    --l1: #a8835e; --l2: #e05555; --l3: #ee8a3e; --l4: #d6ab1f; --l5: #45b064; --l6: #22abab; --l7: #4f8ff7; --l8: #8b6cf0; --l9: #e052ac;
  }
}
.c-l1 { --c: var(--l1); } .c-l2 { --c: var(--l2); } .c-l3 { --c: var(--l3); } .c-l4 { --c: var(--l4); } .c-l5 { --c: var(--l5); }
.c-l6 { --c: var(--l6); } .c-l7 { --c: var(--l7); } .c-l8 { --c: var(--l8); } .c-l9 { --c: var(--l9); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); overflow-wrap: break-word; }
a { color: var(--accent); }
header, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand small { display: block; font-weight: 600; font-size: .8rem; color: var(--accent); }
.open { font-weight: 600; }
nav.crumbs { margin: 20px 0 4px; font-size: .9rem; color: var(--muted); }
nav.crumbs a { color: var(--muted); }
h1 { margin: 8px 0 6px; font-size: 2rem; line-height: 1.2; border-left: 6px solid var(--c, var(--accent)); padding-left: 12px; }
h2 { margin: 36px 0 8px; font-size: 1.3rem; line-height: 1.3; }
h2 small { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
h3 { margin: 20px 0 6px; font-size: 1.05rem; }
.lede { font-size: 1.15rem; }
.meta { color: var(--muted); font-size: .9rem; }
.note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c, var(--accent)); border-radius: 8px; padding: 10px 14px; }
code { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
ul.concepts { list-style: none; padding: 0; }
ul.concepts li { margin: 0 0 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c, var(--accent)); border-radius: 8px; }
ul.concepts li a { font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 0; }
footer { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
