/* ============================================================
   Reset + base — Teacher Gustavo Belo
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  /* `clip` em vez de `hidden`: clipa horizontal SEM criar novo scroll container
     (preserva position:sticky do header). Suporte: Chrome 90+, Firefox 81+, Safari 16+ */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--secondary-dark);
  background: var(--bg-page);
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

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

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

/* Container padrão */
.container {
  width: 100%;
  max-width: calc(var(--content-w) + var(--section-px) * 2);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

/* Section base */
.section {
  width: 100%;
}
