:root {
  --bg: #f6f3fb; --surface: #ffffff; --ink: #2a2440; --muted: #6f6789; --line: #e6e0f2;
  --accent: #7a5ae0; --accent-soft: #ece6fc;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14111f; --surface: #1d1930; --ink: #efeaff; --muted: #a69fc4; --line: #2e2848;
          --accent: #b39cff; --accent-soft: #2a2350; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0 16px;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 28px 0 64px; }
header.top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
header.top img { width: 44px; height: 44px; border-radius: 11px; }
header.top a { color: inherit; text-decoration: none; font-weight: 800; font-size: 22px; }
.langs { margin-left: auto; display: flex; gap: 6px; }
.langs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.langs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
nav.links { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; font-size: 14px; }
nav.links a { color: var(--accent); text-decoration: none; }
h1 { font-size: 28px; line-height: 1.2; margin: 18px 0 4px; }
h2 { font-size: 19px; margin: 28px 0 6px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 16px; }
.highlight { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
a { color: var(--accent); }
ul { padding-left: 20px; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
footer { color: var(--muted); font-size: 13px; margin-top: 32px; text-align: center; }
[data-lang] { display: none; }
html.lang-pt [data-lang="pt"], html.lang-en [data-lang="en"], html.lang-es [data-lang="es"] { display: block; }
