/* ==========================================================================
   Reset — normalização mínima
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Quem pediu menos movimento não deve receber scroll animado. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.2;
}

p,
li {
  text-wrap: pretty;
}

/* Impede que palavra longa estoure o container em telas estreitas. */
p,
h1,
h2,
h3,
h4,
li,
a {
  overflow-wrap: break-word;
}

:target {
  scroll-margin-top: var(--altura-header, 5rem);
}

/* O `display: none` que o UA aplica a [hidden] tem especificidade de seletor de
   tipo e perde para qualquer classe. Sem esta regra, um `.form__aviso` com
   `display: flex` aparece na tela mesmo marcado como hidden pelo HTML. */
[hidden] {
  display: none !important;
}
