:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1c1a;
  --muted: #5f5b55;
  --border: #e4e0da;
  --accent: #b4452f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #1f1e1c;
    --text: #ece9e4;
    --muted: #a8a39b;
    --border: #34322f;
    --accent: #e58a73;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header.site a.brand { color: var(--text); text-decoration: none; font-weight: 650; }
header.site .lang { font-size: 14px; color: var(--muted); }
header.site .lang a { margin-left: 8px; }

main { padding: 40px 0 56px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; padding-top: 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.lang-block + .lang-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}

table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
