/* base.css: reset, tipografia e body.
   Regras: Sistema_de_Estilos, Font_Inherit_em_Form, Responsividade_Sempre. */

*, *::before, *::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Os quatro controles de formulario NAO herdam font-family do body por default
   do navegador. Sem esta linha, o form vira Arial no Windows e o sistema fica
   com cara de quebrado. Vai aqui no reset, nunca em components.css.
   Regra: Font_Inherit_em_Form. */
button, input, select, textarea { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-titulo);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-base); }

a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

strong, b { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-forte);
  border-radius: var(--raio-full);
  border: 2px solid var(--bg);
}
