@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fonte-corpo);
  font-size: var(--tx-base);
  color: var(--texto);
  background: var(--bg);
  transition: background var(--vel-normal), color var(--vel-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--fonte-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--esp-3);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--tx-4xl); font-weight: 700; }
h2 { font-size: var(--tx-3xl); }
h3 { font-size: var(--tx-xl); }
h4 { font-size: var(--tx-lg); }

p { margin: 0 0 var(--esp-3); color: var(--texto-suave); line-height: 1.6; }

a { color: inherit; text-decoration: none; }

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

button { cursor: pointer; }

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

.mono { font-family: var(--fonte-mono); font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--esp-5);
}

.visualmente-oculto {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

::selection { background: var(--latao); color: #14161a; }

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--borda-forte); border-radius: var(--raio-pill); }

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