:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --warning-bg: #fef3c7;
  --warning-fg: #92400e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #f1f5f9;
    --muted: #94a3b8;
    --border: #1e293b;
    --accent: #60a5fa;
    --warning-bg: #78350f;
    --warning-fg: #fef3c7;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  color: var(--muted);
  margin: 4px 0 0 0;
  font-size: 14px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.lang-switch a.active {
  background: var(--accent);
  color: white;
}

article h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px 0;
}

article section {
  margin-bottom: 24px;
}

article p,
article li {
  font-size: 15px;
}

article a {
  color: var(--accent);
  word-break: break-word;
}

article .warning {
  background: var(--warning-bg);
  color: var(--warning-fg);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
