/* ============================================================
   base.css — Reset leve e estilos de elementos básicos
   Consome apenas variáveis definidas em tokens.css.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-md);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  line-height: 1.18;
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--font-size-xxl); font-weight: 800; }
h2 { font-size: var(--font-size-xl); font-weight: 700; }
h3 { font-size: var(--font-size-lg); font-weight: 650; letter-spacing: -0.01em; }

p {
  margin-bottom: var(--space-4);
}

strong { font-weight: 670; }

/* Face de assinatura: monoespaçada para rótulos, números e metadados */
.mono { font-family: var(--font-family-mono); }
.eyebrow {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

ul, ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

code, pre {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  background-color: var(--color-code-bg);
  border-radius: var(--radius-sm);
}

code {
  padding: 0.15em 0.4em;
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Utilidade para conteúdo visível apenas a leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
