:root {
  --bg: #f8f4ea;
  --card: #fffdf8;
  --text: #1e2426;
  --muted: #5f6865;
  --line: #e4dccb;
  --primary: #1f6f5c;
  --primary-soft: #e3efe9;
  --gold: #b98a2e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --card: #111b2c;
    --text: #f4efe4;
    --muted: #a8b2bf;
    --line: #22304a;
    --primary: #7fd1b5;
    --primary-soft: #16302a;
    --gold: #d8b46a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--primary); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 22px; color: var(--primary); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a[aria-current='page'] { color: var(--text); font-weight: 600; }
main { padding: 32px 0 56px; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.25; }
h1 { font-size: 32px; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 32px 0 8px; color: var(--primary); }
h3 { font-size: 17px; margin: 20px 0 6px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 16px 0; }
.note { background: var(--primary-soft); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.badge { display: inline-block; font-size: 13px; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 10px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 18px; padding-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
