/* ==========================================================================
   base/reset.css — Reset moderno e mínimo
   Só normaliza o que atrapalha. Não impõe estilo visual.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compensa o header sticky ao pular para uma âncora. */
  scroll-padding-top: calc(var(--header-h) + var(--space-md));
}

body {
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mídia é bloco e nunca estoura o container. */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* Controles herdam a tipografia do documento. */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* Evita palavras longas quebrando o layout. */
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
dd,
dt {
  overflow-wrap: break-word;
}

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

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

/* Só o desenho de foco padrão é removido — base/accessibility.css devolve
   um :focus-visible visível em tudo que é focável. */
:focus {
  outline: none;
}
