:root {
  --bg: #f7f6f2;
  --panel: #ffffff;
  --text: #1a1a2e;
  --muted: #5b5b6b;
  --gold: #b8911f;
  --gold-soft: #f4ecd2;
  --border: #e6e3da;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121218;
    --panel: #1c1c26;
    --text: #ededf2;
    --muted: #a5a5b5;
    --gold: #d6b448;
    --gold-soft: #2a2616;
    --border: #30303f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--gold); }
header {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.bar {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo {
  width: 34px; height: 34px; border-radius: 8px; background: #c9a227; color: #14141c;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 14px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
main { max-width: 880px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 20px 0 6px; }
.meta { color: var(--muted); font-size: 14px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}
.callout { background: var(--gold-soft); border-color: transparent; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
code { font-size: 13px; background: var(--gold-soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
footer .bar { justify-content: space-between; }
@media (max-width: 560px) {
  h1 { font-size: 24px; }
  nav a { margin-left: 0; margin-right: 14px; }
}
