/* Satinama — folha única para as três páginas. Sem CDN: um revisor que abra a
   página atrás de um proxy restritivo continua a ver o documento formatado. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1a17;
  --muted: #5f5952;
  --line: #e4ded6;
  --accent: #8a5a2b;
  --accent-soft: #f3ece3;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120f;
    --surface: #1c1916;
    --text: #efebe5;
    --muted: #a49c92;
    --line: #2e2823;
    --accent: #d4a373;
    --accent-soft: #241e18;
  }
}
:root[data-theme="dark"] {
  --bg: #14120f;
  --surface: #1c1916;
  --text: #efebe5;
  --muted: #a49c92;
  --line: #2e2823;
  --accent: #d4a373;
  --accent-soft: #241e18;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 ui-serif, Georgia, "Times New Roman", serif;
  overflow-wrap: break-word;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px 6rem; }

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 3rem;
}
header.top .wrap {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font: 600 1.05rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
nav.top-nav {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font: 400 .87rem/1 ui-sans-serif, system-ui, sans-serif;
}
nav.top-nav a { color: var(--muted); text-decoration: none; }
nav.top-nav a:hover, nav.top-nav a[aria-current] { color: var(--accent); }

button.lang {
  font: 500 .8rem/1 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem .8rem;
  cursor: pointer;
}
button.lang:hover { color: var(--accent); }

h1 {
  font: 600 2rem/1.25 ui-sans-serif, system-ui, sans-serif;
  margin: 0 0 .6rem;
  letter-spacing: -.015em;
}
h2 {
  font: 600 1.18rem/1.35 ui-sans-serif, system-ui, sans-serif;
  margin: 2.6rem 0 .7rem;
  letter-spacing: -.01em;
}
h3 {
  font: 600 1rem/1.4 ui-sans-serif, system-ui, sans-serif;
  margin: 1.6rem 0 .4rem;
}
p, li { color: var(--text); }
a { color: var(--accent); }
.meta {
  font: 400 .87rem/1.6 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
  margin: 0 0 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
ul, ol { padding-left: 1.3rem; }
li { margin: .38rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font: 400 .93rem/1.55 ui-sans-serif, system-ui, sans-serif;
}
th, td {
  text-align: left;
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-weight: 600; color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; }
code {
  font: 400 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--accent-soft);
  padding: .1em .35em;
  border-radius: 4px;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

footer.bot {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-top: 1.6rem;
  font: 400 .85rem/1.7 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
}
footer.bot a { color: var(--muted); }

[data-lang] { display: none; }
[data-lang].on { display: block; }
