/*
 * assets/css/global.css
 * Estilos globais do sistema.
 */

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

body {
  font-family: var(--fonte-base);
  font-size: var(--texto-base);
  line-height: 1.5;
  color: var(--cor-texto);
  background: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--cor-azul-escuro);
}

a {
  color: var(--cor-azul-secundario);
}

:focus-visible {
  outline: 2px solid var(--cor-azul-secundario);
  outline-offset: 2px;
}

::selection {
  background: rgba(36, 59, 85, 0.18);
}

.icone {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.aviso-noscript {
  padding: var(--esp-6);
  text-align: center;
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sair {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
