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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-base);
  font-size: var(--fonte-tamanho-md);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
}

h1, h2, h3, h4 { margin: 0 0 var(--espaco-sm); line-height: 1.25; }
p { margin: 0 0 var(--espaco-md); color: var(--cor-texto-suave); }
a { color: var(--cor-primaria); text-decoration: none; }

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

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--espaco-md);
}

@media (min-width: 900px) {
  .container { max-width: 960px; }
}

.oculto { display: none !important; }

.texto-suave { color: var(--cor-texto-suave); }
.texto-centro { text-align: center; }

.espaco-topo-md { margin-top: var(--espaco-md); }
.espaco-topo-lg { margin-top: var(--espaco-lg); }

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

*:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
}
