/* ==========================================================================
   base.css — reset leve, fontes, tipografia geral e acessibilidade
   ========================================================================== */

/* --- Tipografia ---------------------------------------------------------
   O projeto NAO incorpora arquivos de fonte e NAO carrega fontes pela
   internet. Usa a pilha de fontes definida em tokens.css: se Poppins e
   Roboto estiverem instaladas no computador, sao usadas; caso contrario,
   o navegador usa a fonte equivalente do proprio sistema.
   Esta aparencia tipografica e a referencia aprovada da Home.
   ------------------------------------------------------------------------ */

/* --- Reset leve --------------------------------------------------------- */

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

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;         /* impede rolagem horizontal do layout */
  overscroll-behavior-x: none;
}

body {
  position: relative;      /* base para o fundo decorativo cobrir a pagina toda */
  min-height: 100vh;
  background-color: var(--cor-fundo);
  color: var(--texto-forte);
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(241, 158, 34, 0.20);
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(241, 158, 34, 0.20);
}

/* --- Acessibilidade ----------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--cor-laranja);
  outline-offset: 3px;
  border-radius: 6px;
}

.apenas-leitor {
  position: absolute;
  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;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Estrutura ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--largura-max);
  margin-inline: auto;
  padding-inline: var(--respiro-lateral);
}
