/* ══════════════════════════════════════════════════════
   base.css — Reset e estilos base
   ══════════════════════════════════════════════════════ */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--c-dark);
}
h1, h2, h3 { font-family: var(--font-heading); }
h4, h5, h6 { font-family: var(--font-body); }

h1 { font-size: var(--text-4xl); font-weight: var(--fw-black); }
h2 { font-size: var(--text-3xl); font-weight: var(--fw-black); }
h3 { font-size: var(--text-xl);  font-weight: var(--fw-bold); }
h4 { font-size: var(--text-lg);  font-weight: var(--fw-bold); }
h5 { font-size: var(--text-base);font-weight: var(--fw-bold); }
h6 { font-size: var(--text-sm);  font-weight: var(--fw-medium); }

/* Parágrafo e listas */
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin-bottom: .3em; }

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

/* Links */
a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--c-primary-dark); text-decoration: underline; }

/* Inline text */
strong, b { font-weight: var(--fw-bold); }
em, i     { font-style: italic; }
small     { font-size: var(--text-xs); }

/* Separador */
hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-8) 0;
}

/* Código */
code, pre {
  font-family: 'Courier New', monospace;
  font-size: .875em;
  background: var(--c-bg-light);
  border-radius: var(--radius-sm);
}
code { padding: 2px 6px; }
pre  { padding: var(--sp-4); overflow-x: auto; }
