/* ===========================================================================
   Bússola 2026 · base
   Reset enxuto, tipografia, foco, utilitários de acessibilidade.
   =========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--ff-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-700); }
h4 { font-size: var(--fs-600); }

p { margin: 0 0 var(--sp-4); max-width: var(--maxw-text); }
p:last-child { margin-bottom: 0; }

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

a { color: var(--c-red-aa); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-red-dark); }

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

strong, b { font-weight: 700; color: var(--text-heading); }

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

/* Foco: sempre visível, nunca removido. */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Só esconde o anel quando o browser já mostra o dele (mouse). */
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--c-amber); color: var(--c-ink); }

/* --- utilitários ---------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.container--narrow { --maxw: 860px; }

.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-4); top: var(--sp-4);
  z-index: 100;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--c-white); }

.eyebrow {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
}

.eyebrow--dark  { background: var(--c-ink);   color: var(--c-white); }
.eyebrow--brand { background: var(--c-amber); color: var(--c-ink); }

.lead {
  font-size: var(--fs-600);
  line-height: 1.55;
  color: var(--text-body);
}

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