/* Reset e base tipográfica */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }

/* Foco visível para acessibilidade via teclado */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* Skip link acessível */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--green);
  color: white;
  padding: 12px 20px;
  font-weight: 700;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Utilidades */
.container { max-width: var(--maxw); margin: 0 auto; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); letter-spacing: -1px; font-weight: 700; }
.italic-thin { font-style: italic; font-weight: 400; }
.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;
}

/* Respeita preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
