/* ==========================================================================
   BASE — reset enxuto e padrões do documento

   Só o que vale para o site inteiro. Nada específico de componente.
   Sem line-height nem font-weight globais de propósito: cada componente
   define os seus, e um valor herdado aqui altera a altura de botões e links.
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;   /* iOS não infla a fonte ao girar a tela */
}

body {
    background: var(--offwhite);
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;               /* trava vazamento lateral em qualquer largura */
}

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

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

ul,
ol {
    list-style: none;
}

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

/* Foco visível para navegação por teclado — nunca remover sem substituir */
:focus-visible {
    outline: 2px solid var(--terra);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Conteúdo exclusivo para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
