:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5b6672;
  --accent: #0f766e;
  --border: #e1e5ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1317;
    --surface: #171c22;
    --text: #e8ebee;
    --muted: #9aa5b1;
    --accent: #2dd4bf;
    --border: #2a323b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: 0.95rem; }
.langs { display: flex; gap: 8px; }
.langs button {
  display: inline-flex;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { border-color: var(--accent); }
.langs img { width: 28px; height: 20px; display: block; border-radius: 2px; }
main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 24px 32px;
}
h1 { margin-top: 0; font-size: 1.8rem; line-height: 1.25; }
h2 { margin-top: 2rem; font-size: 1.15rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
footer { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; }
html[data-lang="pt"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="pt-BR"] { display: none; }
