/* ==========================================================================
   Imberdata — Base
   Documento, fundo institucional e acessibilidade.
   Requer: tokens.css
   --------------------------------------------------------------------------
   Deliberadamente enxuto. O site é quase todo estilizado por classes Tailwind,
   então redefinir h1–h6, links, inputs e tabelas aqui só criaria conflito.
   Este arquivo cuida do que TODA página repetia igual.
   ========================================================================== */

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

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

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-alt);
}

body {
  background: var(--gradient-body);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { max-width: 100%; }

/* ---- Acessibilidade ----------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-primary-hover);
  outline-offset: 2px;
}

.skip-link { position: absolute; left: -9999px; z-index: var(--z-modal); }
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: var(--color-surface);
  color: var(--color-text-strong);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

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

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

/* ---- Container ---------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--container-md);
  margin-inline: auto;
  padding: var(--space-6) var(--space-4) var(--space-12);
}
.shell--narrow { max-width: var(--container-sm); }
.shell--wide   { max-width: var(--container-lg); }
