/*
 * Base: reset enxuto, elementos HTML e acessibilidade.
 */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--f-corpo);
  font-size: var(--fs-base);
  font-weight: var(--fw-corpo);
  line-height: var(--lh-corpo);
  color: var(--c-texto);
  background: var(--c-fundo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

iframe {
  max-width: 100%;
  border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--esp-3);
  font-family: var(--f-titulo);
  font-weight: var(--fw-titulo);
  line-height: var(--lh-titulo);
  color: var(--c-titulo);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-grande); }
h5,
h6 { font-size: var(--fs-base); }

p {
  margin: 0 0 var(--esp-3);
}

a {
  color: var(--c-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--transicao);
}

a:hover {
  color: var(--c-link-hover);
}

strong,
b {
  font-weight: var(--fw-corpo-forte);
}

ul,
ol {
  margin: 0 0 var(--esp-3);
  padding-left: 1.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--c-borda);
  margin: var(--esp-5) 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Foco visível em tudo que o teclado alcança. Não remover. */
:focus-visible {
  outline: 3px solid var(--c-foco);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--c-foco-anel);
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--cor-amarelo);
  color: var(--cor-preto);
}

/* Texto só para leitor de tela. */
.sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atalho para pular direto ao conteúdo. */
.cap-pular {
  position: absolute;
  top: -100px;
  left: var(--esp-3);
  z-index: 1000;
  padding: var(--esp-2) var(--esp-3);
  background: var(--cor-azul-escuro);
  color: var(--cor-branco);
  font-family: var(--f-titulo);
  border-radius: 0 0 var(--raio-p) var(--raio-p);
  text-decoration: none;
  transition: top var(--transicao);
}

.cap-pular:focus {
  top: 0;
  color: var(--cor-branco);
}

.cap-icone {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
