:root {
  --bg: #faf6ee;
  --ink: #0d0d0d;
  --muted: #6b6660;
  --rule: #e8e1d3;
  --accent: #ff5a36;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Push footer pro fim mesmo quando conteúdo é curto (FAQ). */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
a { color: inherit; }
a.link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.link:hover { color: var(--accent); }

.site-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand__logo { width: 28px; height: 28px; display: block; object-fit: contain; }
.header-back {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.header-back:hover { color: var(--ink); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
h2 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 8px;
  letter-spacing: -0.005em;
}
p { margin-bottom: 12px; color: var(--ink); }
p:last-child { margin-bottom: 0; }

.doc {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}
h2[id] { scroll-margin-top: 80px; }

.doc-nav {
  font-size: 13px;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.doc-nav a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-nav a:hover { color: var(--accent); }

footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: rgba(250,246,238,0.5);
}
footer a { color: rgba(250,246,238,0.75); text-decoration: none; }
footer a:hover { color: rgba(250,246,238,1); }
footer .footer__sep { margin: 0 10px; opacity: 0.4; }
