/* ==========================================================================
   Base — reset leve, tipografia e elementos globais
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: var(--texto-corpo);
  font-weight: var(--peso-regular);
  line-height: var(--entrelinha-corpo);
  color: var(--grafite);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Títulos (manual: Light para títulos, Regular para título 2) ------- */
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--grafite);
}

h1 {
  font-size: var(--texto-titulo-1);
  font-weight: var(--peso-light);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--texto-titulo-2);
  font-weight: var(--peso-regular);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: var(--peso-medium);
}

p {
  margin: 0 0 1em;
}

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

/* --- Links ------------------------------------------------------------- */
a {
  color: var(--azul-ros);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

/* --- Acessibilidade ---------------------------------------------------- */
.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pular-conteudo {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--azul-ros);
  color: var(--branco);
}

.pular-conteudo:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Margem lateral maior no celular: os 12px padrão do Bootstrap deixam tudo colado na borda */
@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 2.5rem;
  }
}
