/* ==========================================================================
   GSF Tema — Base & Tipografia
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-0);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: clip;
}

/* Hierarquia tipográfica — Montserrat SemiBold em títulos (manual) */
h1, h2, h3, h4, .display {
  margin: 0;
  font-weight: 600;
  color: var(--fg-forte);
  text-wrap: balance;
  letter-spacing: var(--ls-snug);
}
h1, .display { font-size: var(--fs-5); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-4); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
h3 { font-size: var(--fs-2); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-1); line-height: var(--lh-snug); }

p, ul, ol { margin: 0 0 var(--sp-4); }
p { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
small, .small { font-size: var(--fs--1); }
strong, b { font-weight: 600; }
em { font-style: italic; }

.lead { font-size: var(--fs-1); line-height: var(--lh-relaxed); color: var(--fg-suave); max-width: var(--medida); }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

a { color: var(--acento-forte); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--dur-1) var(--ease-out); }
a:hover { color: var(--c-verde-900); }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: var(--r-sm); }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }

button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--borda); margin: var(--sp-6) 0; }

::selection { background: var(--c-verde-200); color: var(--c-verde-900); }

/* Acessibilidade */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--c-verde-900); color: #fff; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { left: 16px; }
.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; }

/* Conteúdo editorial (Gutenberg / posts) */
.prose { max-width: var(--medida); font-size: var(--fs-0); line-height: var(--lh-relaxed); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--fs-3); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-2); margin-top: var(--sp-6); }
.prose h4 { margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--sp-2); }
.prose li::marker { color: var(--acento-forte); font-weight: 600; }
.prose img, .prose figure { margin: var(--sp-6) 0; border-radius: var(--r-md); }
.prose figcaption { font-size: var(--fs--1); color: var(--fg-suave); margin-top: var(--sp-2); }
.prose blockquote { margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--acento); background: var(--c-verde-100); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: var(--fs-1); color: var(--fg-forte); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs--1); }
.prose th, .prose td { padding: var(--sp-3); border-bottom: 1px solid var(--borda); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--fg-forte); background: var(--bg-suave); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-suave); padding: .1em .4em; border-radius: 4px; }
.prose a { font-weight: 500; }
.prose .wp-block-image img { height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
