/* ============================================================
   DYNEXA — 02 BASE
   Reset enxuto + tipografia fundamental.
   ============================================================ */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 1.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grao sutil de papel — da textura sem custo de imagem */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(https://dynexa.com.br/site-v2/assets/css/%23n)'/%3E%3C/svg%3E");
}

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--gold-300); color: var(--navy-950); }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ------------------------------------------------------------
   Tipografia
   ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.14; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { text-wrap: pretty; }

strong, b { font-weight: 600; }

em { font-style: italic; }

/* Rotulo tecnico — assinatura visual do sistema */
.label {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
}
.label::before {
  content: '';
  width: 1.9em;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.label--bare::before { display: none; }
.label--invert { color: var(--gold-400); }
.label--mute { color: var(--mist); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
}

.serif-lead {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.52;
  color: var(--graphite);
}

/* Numeral do dossie */
.numeral {
  font-family: var(--font-mono);
  font-size: var(--fs-numeral);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-gold);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Palavra em destaque dourado dentro de titulos */
.accent-word {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.on-dark .accent-word { color: var(--gold-400); }

/* Acessibilidade */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: var(--gutter);
  z-index: 999;
  background: var(--navy-950); color: var(--white);
  padding: .75rem 1.25rem;
  font-size: var(--fs-sm);
  transition: top var(--dur-1) var(--ease);
}
.skip-link:focus { top: .75rem; }
