:root {
  --bg: #f6f2ec;
  --paper: #fffdf9;
  --text: #1e1913;
  --text-2: #5a5146;
  --muted: #8b8276;
  --line: rgba(40, 28, 10, .1);
  --accent: #a86f25;
  --warn-bg: #fff4dd;
  --warn-line: #f0d49a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b;
    --paper: #171512;
    --text: #f1ebe1;
    --text-2: #c4bbad;
    --muted: #8e8679;
    --line: rgba(255, 241, 220, .1);
    --accent: #e0a95e;
    --warn-bg: #2a2010;
    --warn-line: #5b4520;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 14px; }
.top a { color: var(--accent); text-decoration: none; font-weight: 600; }
.brand { font-weight: 800; letter-spacing: .14em; }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 5vw, 48px); }
h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
h2 { font-size: 19px; margin: 32px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
h2:first-of-type { border-top: 0; }
p, li { color: var(--text-2); }
p { margin: 0 0 10px; }
ol, ul { padding-left: 22px; margin: 0 0 12px; }
li { margin-bottom: 6px; }
b, strong { color: var(--text); }
a { color: var(--accent); }
.toc { background: var(--bg); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; font-size: 14px; }
.toc ol { margin: 0; columns: 2 260px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
th { color: var(--text); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; color: var(--text); }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
@media print {
  body { background: #fff; }
  .top, .note, .foot { display: none; }
  .doc { border: 0; padding: 0; }
}
