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

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--altura-cabecalho) + 1rem);
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  body {
    margin: 0;
    background: var(--fundo);
    color: var(--texto);
    font-family: var(--fonte-texto);
    font-size: var(--t-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1,
  h2,
  h3,
  h4 {
    margin: 0;
    color: var(--tinta);
    font-family: var(--fonte-titulo);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  p,
  ul,
  ol,
  dl,
  dd,
  figure {
    margin: 0;
  }

  p {
    text-wrap: pretty;
  }

  ul,
  ol {
    padding: 0;
    list-style: none;
  }

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

  img {
    height: auto;
  }

  button {
    font: inherit;
    color: inherit;
  }

  a {
    color: var(--azul-profundo);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color var(--duracao);
  }

  a:hover {
    color: var(--azul-profundo-escuro);
  }

  :focus-visible {
    outline: 3px solid var(--azul-profundo);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* WCAG 2.4.11: elementos focados param abaixo do cabeçalho fixo. */
  a,
  button {
    scroll-margin-block: calc(var(--altura-cabecalho) + 1rem) 1rem;
  }

  ::selection {
    background: var(--azul-easy-claro);
    color: var(--tinta);
  }

  .icone {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .icone--p {
    width: 1rem;
    height: 1rem;
  }

  .icone--g {
    width: 1.75rem;
    height: 1.75rem;
  }

  .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .sem-quebra {
    white-space: nowrap;
  }

  .pular {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--tinta);
    color: #fff;
    font-weight: 700;
    border-radius: var(--raio-pilula);
    transform: translateY(-200%);
  }

  .pular:focus {
    transform: none;
    color: #fff;
  }
}
