/*
  base.css
  Reset global + tipografia base + body.
  Regra critica (ver Font_Inherit_em_Form): a linha "font-family: inherit" fica
  AQUI, logo depois do reset e do body, nunca em components.css.
*/

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* CRITICO: sem isso, form vai para Arial (Windows) ou -apple-system (Mac) */
button, input, select, textarea { font-family: inherit; }

/* Titulos: fonte de destaque Sora, sempre com o aperto -.02em */
h1, h2, h3, h4, h5 {
  font-family: var(--font-titulo);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--texto);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--cor-primaria-suave);
  color: var(--texto);
}
