/* ════════════════════════════════════════════════════════════════════════
   base.css — reset + estilos globais
   ════════════════════════════════════════════════════════════════════════ */

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

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-subtle);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: var(--tracking-tight); font-weight: var(--fw-semibold); }

a { color: inherit; }

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

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

ul { list-style: none; }

/* ícones (SVG inline via icons.js) */
.icon    { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 2; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* foco acessível */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* skip link */
.u-skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--primary); color: var(--primary-text);
  border-radius: var(--radius-md); z-index: var(--z-toast);
}
.u-skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* utilitárias mínimas */
.u-hidden { display: none !important; }
.u-text-center { text-align: center; }
.u-mono { font-family: var(--font-mono); }
.u-muted { color: var(--text-muted); }

#app-root { display: block; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
