/* Reset brutalista */

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

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  color: var(--preto);
  background-color: var(--cinza-fundo);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  padding-top: var(--altura-topo);
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }

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

:focus-visible { outline: 3px solid var(--preto); outline-offset: 2px; }

/* SPA: só a .ativa aparece */
.pagina { display: none; }

.pagina.ativa {
  display: block;
  animation: surgir-pagina 0.25s ease both;
}

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

.conteudo-pagina {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 1.5rem 1rem 3rem;
}

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

.revelar { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.revelar.visivel { opacity: 1; transform: none; }

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