*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-4) transparent; }
body {
  margin: 0; background: var(--ink-0); color: var(--text-1);
  font: 400 var(--fs-14)/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--tally); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 10px; border: 2px solid var(--ink-0); }
::-webkit-scrollbar-track { background: transparent; }
::placeholder { color: var(--text-3); opacity: 1; }
input, textarea { caret-color: var(--tally); }

svg.i { display: inline-block; vertical-align: -0.22em; }
.i { width: 18px; height: 18px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 14px; height: 14px; }
.i-lg { width: 22px; height: 22px; }
.mono, .tc { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.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 { position: absolute; left: 12px; top: -40px; z-index: 100; background: var(--tally); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  /* indicadores de carregamento e progresso continuam: eles informam, não decoram */
  *:not(.spin):not(.prog), *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
