/* ==========================================================================
   Reset / normalização
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* compensa o header fixo nos links âncora */
  -webkit-text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-body, 1.6);
  letter-spacing: var(--tracking-body, 0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: 1.1;
  text-wrap: balance; /* quebras de linha equilibradas nos títulos */
}

p {
  text-wrap: pretty; /* evita palavras órfãs em parágrafos */
}

/* Evita que palavras/URLs longas estourem a largura em telas pequenas */
h1, h2, h3, h4, h5, h6, p, a, li, summary {
  overflow-wrap: break-word;
}

::selection {
  background: var(--color-orange);
  color: #fff;
}

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