/* ============================================================
   Base — reset + tipografia global
   ============================================================ */

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

html, body {
  height: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-loose);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  line-height: var(--lh-loose);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--brand-hover); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--brand);
  color: var(--text-on-brand);
}

.label-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  font-size: var(--text-label);
  color: var(--text-secondary);
  font-weight: var(--fw-regular);
}

.text-secondary { color: var(--text-secondary); }
.text-success   { color: var(--success); }
.text-error     { color: var(--error); }
.text-brand     { color: var(--brand); }

.metric {
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-metric);
  font-variant-numeric: tabular-nums;
}
