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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: var(--track-tight);
  line-height: 1.18;
}

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

p { margin: 0; }

a { color: var(--brand-700); }

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

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

button { cursor: pointer; }

/* Foco sempre visível — nunca remover sem substituir. */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-100); }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--brand-500);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-4);
  font-weight: 700;
}
.skip-link:focus { left: var(--s-4); }

/* Utilitários de texto -------------------------------------------------- */
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1.1;
}

.eyebrow {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--brand-700);
}

.muted { color: var(--ink-500); }
.small { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; }

.stack   { display: grid; gap: var(--s-4); }
.stack-2 { display: grid; gap: var(--s-2); }
.stack-6 { display: grid; gap: var(--s-6); }
.row     { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.spread  { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

.boot {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--ink-400);
  font-size: var(--fs-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
