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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  line-height: 1.45;
}

/* A tela antiga se cruza com a nova em vez de piscar em branco. Só onde o navegador suporta. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.16s;
}

/* navegacao.js: até a página trocar, o toque fica marcado e os seguintes não valem. */
.navegando body {
  pointer-events: none;
}

.tocado {
  opacity: 0.7;
}

/* A barra só aparece se a troca demorar; página rápida não mostra nada. */
.navegando::after {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  background: var(--laranja-marca);
  transform-origin: left;
  animation: barra-carregando 2.5s cubic-bezier(0.1, 0.6, 0.3, 1) 0.3s both;
}

@keyframes barra-carregando {
  from {
    opacity: 0;
    transform: scaleX(0.05);
  }

  8% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: scaleX(0.9);
  }
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.15;
}

p,
figure,
fieldset {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

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

button {
  cursor: pointer;
}

a {
  color: var(--azul-600);
  text-underline-offset: 0.15em;
}

:focus-visible,
.visualmente-oculto:focus-visible + label,
.amostra__foco {
  outline: 3px solid var(--laranja-600);
  outline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.icone {
  display: inline-block;
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marca {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.marca img {
  width: auto;
  height: 3em;
  object-fit: contain;
}

.marca__texto {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pular-conteudo {
  position: absolute;
  top: var(--espaco-2);
  left: var(--espaco-2);
  z-index: 10;
  padding: var(--espaco-3) var(--espaco-4);
  border-radius: var(--raio-sm);
  background: var(--superficie);
  color: var(--texto);
  font-weight: 600;
  transform: translateY(-200%);
}

.pular-conteudo:focus {
  transform: none;
}

.vazio {
  display: grid;
  justify-items: center;
  gap: var(--espaco-3);
  padding: var(--espaco-8) var(--espaco-4);
  text-align: center;
}

.vazio__icone {
  display: grid;
  place-items: center;
  width: 2.75em;
  height: 2.75em;
  border-radius: 50%;
  background: var(--grafite-200);
  color: var(--grafite-600);
}

.vazio__icone .icone {
  width: 1.5em;
  height: 1.5em;
}

.vazio__titulo {
  color: var(--texto);
  font-family: var(--fonte-titulo);
  font-weight: 700;
}

.vazio__texto {
  max-width: 32em;
  color: var(--texto-suave);
}

.carregando {
  display: inline-flex;
  align-items: center;
  gap: var(--espaco-2);
  color: var(--texto-suave);
  font-weight: 600;
}

.carregando .icone,
.esta-enviando .icone,
.esta-carregando .icone {
  animation: girar 0.9s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carregando .icone,
  .esta-enviando .icone,
  .esta-carregando .icone {
    animation-duration: 3s;
  }

  @view-transition {
    navigation: none;
  }

  .navegando::after {
    animation: none;
  }
}
