/**
 * base.css — Reset suave e tipografia base.
 *
 * Sem reset agressivo (Eric Meyer-style). Escolhemos só o que importa.
 */

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--fg-base);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* JUSTIFY GLOBAL — texto corrido em parágrafos */
p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

/* Override universal: alinhamento à esquerda em elementos curtos */
.no-justify, .no-justify p,
.footer-block p, .footer-bottom,
.menu-toggle, .breadcrumb p,
.brand p, .hero-meta, .article-byline,
.article-eyebrow, .channel-fields p {
  text-align: left;
  hyphens: none;
}

/* Container universal */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Skip link para acessibilidade (WCAG) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  outline: 2px solid var(--tan);
  outline-offset: 2px;
}

/* Foco visível para teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile baseline */
@media (max-width: 600px) {
  body { font-size: 16px; }
}

/* ========== RESET DE BLOCOS WP COMUNS ========== */

/* WP injeta margins padrão em alguns blocos; corrige */
.wp-block-image figure { margin: 0; }
.wp-block-quote { margin: 0; padding: 0; border: 0; }
.wp-block-pullquote { margin: 0; padding: 0; }

/* Imagens dentro do conteúdo */
.entry-content img,
.article-body img,
.manifesto-body img {
  height: auto;
}
