:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --text: #22170d;
  --muted: #6b5d50;
  --border: #eadfd2;
  --accent: #b86a17;
  --brand: #2b1b0e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17100a;
    --surface: #211710;
    --text: #f3ebe2;
    --muted: #b3a595;
    --border: #3a2b1e;
    --accent: #e59a3c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17100a;
  --surface: #211710;
  --text: #f3ebe2;
  --muted: #b3a595;
  --border: #3a2b1e;
  --accent: #e59a3c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 32px 16px 64px;
}
.wrap { max-width: 720px; margin: 0 auto; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
header img { width: 56px; height: 56px; border-radius: 14px; }
header a { color: inherit; text-decoration: none; font-weight: 700; font-size: 22px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 19px; margin: 32px 0 8px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
a { color: var(--accent); }
ul { padding-left: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-scroll { overflow-x: auto; }
footer { margin-top: 48px; font-size: 14px; color: var(--muted); }
