/* ==========================================================================
   Esgomil Design System — Base
   Reset leve, tipografia padrão e utilitários de layout.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: calc(var(--z-nav) + 1);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---- Tipografia --------------------------------------------------------- */
.t-display, .t-h1, .t-h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
.t-display { font-size: var(--fs-display); font-weight: 900; line-height: var(--lh-tight); }
.t-h1 { font-size: var(--fs-h1); font-weight: 900; line-height: var(--lh-tight); }
.t-h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-snug); margin: 0; }
.t-lead { font-size: var(--fs-body-lg); line-height: var(--lh-body); color: var(--fg-muted); max-width: 46ch; margin: 0; }
.t-body { font-size: var(--fs-body); margin: 0; }
.t-small { font-size: var(--fs-small); }
.t-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.t-num { font-variant-numeric: tabular-nums; }
