:root {
  --bg: #f7f6fc;
  --card: #ffffff;
  --text: #1d1b2c;
  --muted: #5d5a73;
  --accent: #5b4dff;
  --line: #e4e1f3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111a;
    --card: #1c1a28;
    --text: #ece9f8;
    --muted: #a6a2bd;
    --accent: #9d93ff;
    --line: #2d2a3d;
  }
}
* { 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;
}
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.brand { font-weight: 800; font-size: 22px; color: var(--accent); text-decoration: none; letter-spacing: -0.3px; }
nav a { color: var(--muted); text-decoration: none; margin-inline-start: 14px; font-size: 14px; }
nav a:hover, a { color: var(--accent); }
article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -0.4px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
p, li { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.summary { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 12px; padding: 12px 18px; }
.lang-switch { font-size: 14px; color: var(--muted); }
hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: start; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
footer { color: var(--muted); font-size: 13px; text-align: center; margin-top: 28px; }
@media (max-width: 520px) {
  article { padding: 20px 16px; }
  h1 { font-size: 24px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td:first-child { font-weight: 600; }
}
