/*
 * base.css — reset leve, tipografia, layout do documento e acessibilidade.
 */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte);
  line-height: 1.65;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
}

a {
  color: var(--cor-destaque-forte);
}

button {
  font: inherit;
}

::selection {
  background: var(--cor-destaque);
  color: var(--cor-sobre-destaque);
}

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

/* Link "pular para o conteúdo": invisível até receber foco pelo teclado. */
.pular {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 100;
  translate: 0 -150%;
  background: var(--cor-destaque);
  color: var(--cor-sobre-destaque);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--raio-s) var(--raio-s);
  text-decoration: none;
  transition: translate var(--duracao);
}

.pular:focus {
  translate: 0 0;
}

/* Esconde visualmente mas mantém disponível para leitores de tela. */
.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--largura-conteudo);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4rem;
}

.lide {
  font-size: 1.15rem;
  color: var(--cor-texto-suave);
  max-width: 62ch;
  margin-top: 0.75rem;
}

/* Quem pede menos movimento, recebe menos movimento — em tudo. */
@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;
  }
}
