/* ==========================================================================
   INSTITUTO VERDEJAR - Reset + Base
   ========================================================================== */

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

* { margin: 0; }

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

body {
  font-family: var(--font-corpo);
  font-size: var(--fs-corpo);
  font-weight: var(--peso-corpo);
  line-height: var(--lh-corpo);
  color: var(--texto-corpo);
  background-color: var(--fundo-pagina);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* Oswald Bold nos títulos maiores, Oswald Medium nos menores.
   O manual é explícito: Oswald é título e chamada, nunca texto corrido. */
h1, h2 {
  font-family: var(--font-titulo);
  font-weight: var(--peso-titulo);
  letter-spacing: var(--ls-titulo);
  line-height: var(--lh-titulo);
  color: var(--texto-titulo);
  text-wrap: balance;
}

h3, h4 {
  font-family: var(--font-titulo);
  font-weight: var(--peso-subtitulo);
  letter-spacing: var(--ls-titulo);
  line-height: var(--lh-titulo);
  color: var(--texto-titulo);
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong, b { font-weight: var(--peso-destaque); }

a { color: inherit; text-decoration: none; }

/* Links dentro de texto corrido: Oliva sublinhado, Laranja no hover. */
.secao__texto a,
.pagina-livro__texto a,
.prosa a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-rapida) var(--ease-suave);
}
.secao__texto a:hover,
.pagina-livro__texto a:hover,
.prosa a:hover { color: var(--link-hover); }

ul, ol { list-style: none; padding: 0; }

/* ---------- Foco acessível ---------- */
:focus-visible {
  outline: 3px solid var(--verdejar-laranja);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--largura-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.pular-para-conteudo {
  position: absolute;
  top: -100%;
  left: var(--sp-sm);
  z-index: var(--z-loader);
  padding: var(--sp-xs) var(--sp-md);
  background: var(--fundo-escuro);
  color: var(--texto-sobre-escuro);
  border-radius: 0 0 var(--raio-sm) var(--raio-sm);
  transition: top var(--dur-rapida) var(--ease-suave);
}
.pular-para-conteudo:focus { top: 0; }

/* ---------- Elementos de marca reaproveitáveis ---------- */

/* "PROGRAMA DE EDUCAÇÃO AMBIENTAL" - sobrelinha em caixa alta espaçada.
   Oswald Medium: é subtítulo/categoria de seção, uso previsto no manual. */
.eyebrow {
  font-family: var(--font-titulo);
  font-size: var(--fs-pequeno);
  font-weight: var(--peso-subtitulo);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--link);
}

/* Frase de propósito - "Conectar pessoas, regenerar a natureza e
   transformar vidas." Era manuscrita em Caveat; a identidade oficial
   trabalha com duas famílias só, então vira chamada em Oswald. */
.manuscrito {
  font-family: var(--font-titulo);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.22;
  font-weight: var(--peso-subtitulo);
  letter-spacing: 0.01em;
}

/* Ornamento: traço - folhinha - traço (separador das artes) */
.ornamento {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  color: var(--link);
}
.ornamento::before,
.ornamento::after {
  content: "";
  height: 1px;
  width: clamp(28px, 6vw, 64px);
  background: currentColor;
  opacity: 0.5;
}
.ornamento svg { width: 18px; height: 18px; }

.ornamento--claro { color: var(--realce); }

/* Painel de papel texturizado */
.papel {
  background-color: var(--fundo-painel);
  background-image: var(--textura-papel);
}

/* ---------- Movimento reduzido ----------
   Requisito de acessibilidade: quem pediu menos animação recebe o site
   inteiro estático, sem quebrar o layout. */
@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;
    scroll-behavior: auto !important;
  }
}
