/* ============================================================
   base.css — reset enxuto, tipografia base, utilidades
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--fonte-ui);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

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

a {
  color: var(--acento);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

::selection {
  background: var(--acento-soft);
  color: var(--text);
}

/* ----- Scrollbar discreta ----- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ----- Utilidades ----- */
.mono   { font-family: var(--fonte-mono); font-feature-settings: "tnum" 1, "zero" 1; }
.muted  { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.hidden { display: none !important; }
.row    { display: flex; align-items: center; gap: 8px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col    { display: flex; flex-direction: column; gap: 8px; }

.tnum { font-variant-numeric: tabular-nums; }

.kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--fonte-mono);
  font-size: 11px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
