:root {
  --paper: #f4f1ea;
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --accent: #174e86;
  --accent-ink: #ffffff;
  --rule: #d9d4c9;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171a;
    --ink: #ececec;
    --muted: #9a9aa0;
    --accent: #5b9be0;
    --accent-ink: #0b1a2b;
    --rule: #2b2f35;
    --card: #1e2126;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
.site-header { border-bottom: 1px solid var(--rule); background: var(--card); }
.brand { display: block; max-width: 880px; margin: 0 auto; padding: 16px; text-decoration: none; color: inherit; }
.brand-name { display: block; font-weight: 700; font-size: 1.15rem; }
.brand-tag { display: block; color: var(--muted); font-size: 0.9rem; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.85rem; }
.site-footer p { max-width: 880px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.1rem; margin: 1.6em 0 0.5em; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.intro p { max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.folders { list-style: none; padding: 0; margin: 0; }
.folders li { padding: 6px 0; }
.doclist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.docrow { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.doctitle { font-weight: 600; text-decoration: none; }
.doctitle:hover { text-decoration: underline; }
.docmeta { color: var(--muted); font-size: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.btn {
  display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font: inherit; cursor: pointer;
}
.btn-secondary { background: transparent; color: var(--accent); }
.viewer { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--card); }
.viewer iframe { display: block; width: 100%; height: 75vh; border: 0; }
.inline-image { max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; }
.desc { max-width: 70ch; }
