/* ============================================================
   reset.css — Reset moderno, inspirado em modern-normalize.
   Nada de reset agressivo (Eric-Meyer-style). Apenas remove
   inconsistências cross-browser e estabelece um piso saudável.
   ============================================================ */

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote { margin: 0; }

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

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

/* Locking scroll quando drawer abre (toggled via JS) */
body.is-locked { overflow: hidden; }

/* ============================================================
   Safeguard contra overflow horizontal
   Rede de segurança defensiva: impede que componentes
   acidentalmente largos (trust-grid antes do fix, imagens,
   tabelas, embeds) provoquem side-scroll do body no mobile.
   Não esconde a causa — apenas previne o sintoma global.
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
