/* ------------------------- base: cores, temas, reset e elementos comuns -- */
:root {
  --fundo: #FAF7F2;
  --superficie: #FFFFFF;
  --superficie-2: #F2EDE5;
  --texto: #2A2622;
  --texto-2: #5E574F;
  --linha: #E3DCD2;
  --linha-forte: #CFC6BA;
  --destaque: #C2185B;
  --destaque-texto: #FFFFFF;
  --destaque-suave: #F9E3EC;
  --silhueta: #BDB6AC;
  --silhueta-clara: #E4DED5;
  --esmaecido-3d: #D9D3CA;
  --sucesso: #2E7D4F;
  --sucesso-suave: #E2F2E8;
  --erro: #B3261E;
  --erro-suave: #FBE4E2;
  --vidro: rgba(250, 247, 242, 0.86);
  --sombra: 0 1px 2px rgba(42, 38, 34, 0.06), 0 10px 30px rgba(42, 38, 34, 0.10);
  --raio: 14px;
  --fonte: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --fundo: #161412; --superficie: #1F1C19; --superficie-2: #29251F; --texto: #EFEAE3; --texto-2: #B5ADA3;
    --linha: #3A342E; --linha-forte: #4E473F; --destaque: #F06292; --destaque-texto: #1A1714; --destaque-suave: #3D2230;
    --silhueta: #5A534B; --silhueta-clara: #3A352F; --esmaecido-3d: #3B3631; --sucesso: #74C796; --sucesso-suave: #1E3326;
    --erro: #F2A19B; --erro-suave: #3B2220; --vidro: rgba(22, 20, 18, 0.84); --sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --fundo: #161412; --superficie: #1F1C19; --superficie-2: #29251F; --texto: #EFEAE3; --texto-2: #B5ADA3;
  --linha: #3A342E; --linha-forte: #4E473F; --destaque: #F06292; --destaque-texto: #1A1714; --destaque-suave: #3D2230;
  --silhueta: #5A534B; --silhueta-clara: #3A352F; --esmaecido-3d: #3B3631; --sucesso: #74C796; --sucesso-suave: #1E3326;
  --erro: #F2A19B; --erro-suave: #3B2220; --vidro: rgba(22, 20, 18, 0.84); --sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
.sem-js { max-width: 34rem; margin: 20vh auto; padding: 0 24px; text-align: center; font-size: 1.1rem; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--fonte); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, strong, b, legend, dt { font-weight: 700; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0 0 0.75em; }
a { color: var(--destaque); text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
svg { flex: none; }
canvas { display: block; }
:focus-visible { outline: 3px solid var(--destaque); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--destaque-suave); }
.apenas-leitor { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
