/* =====================================================================
   CARTOGRAFIA · base.css — reset, tipografia global, animações
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection { background: rgba(42,114,102,0.18); }
:focus-visible { outline: 2px solid var(--consensus); outline-offset: 2px; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.hidden { display: none !important; }
.mono { font-family: var(--f-mono); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

@keyframes pulse   { 0%,100% {opacity:1; transform:scale(1)} 50% {opacity:.35; transform:scale(.75)} }
@keyframes fadeIn  { from {opacity:0} to {opacity:1} }
@keyframes slideUp { from {opacity:0; transform:translateY(16px)} to {opacity:1; transform:translateY(0)} }
@keyframes slideDown { from {opacity:0; transform:translateY(-8px)} to {opacity:1; transform:translateY(0)} }
@keyframes scaleIn { from {opacity:0; transform:scale(.95)} to {opacity:1; transform:scale(1)} }

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