/* Estilos globais de base: reset, tipografia e estados de interação. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--fonte);
  font-size: var(--texto-base);
  font-weight: var(--peso-normal);
  line-height: var(--altura-linha);
  color: var(--cor-texto);
  background: var(--cor-fundo);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: var(--peso-titulo);
  line-height: var(--altura-linha-titulo);
  text-wrap: balance;
}

h1 {
  font-size: var(--texto-titulo-1);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--texto-titulo-2);
}

h3 {
  font-size: var(--texto-titulo-3);
}

p {
  margin: 0;
  max-width: 65ch;
  text-wrap: pretty;
}

a {
  color: var(--cor-azul);
  text-underline-offset: 0.2em;
}

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

/* Foco visível em bronze, padrão em toda a interface */
:focus-visible {
  outline: var(--anel-foco);
  outline-offset: var(--afastamento-foco);
}

[hidden] {
  display: none !important;
}

/* Texto disponível apenas para leitores de tela */
.somente-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
