/* Base: fonte, reset, foco visível e utilidades. Cores e medidas vêm de tokens.css. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../assets/fontes/manrope-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../assets/fontes/manrope-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

/* "hidden" sempre esconde, mesmo quando o componente define display: grid/flex. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--cor-fundo);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte);
  font-weight: var(--peso-normal);
  font-size: var(--texto-md);
  line-height: var(--altura-linha);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* Foco visível em tudo que se usa pelo teclado */
:focus-visible {
  outline: 3px solid var(--cor-foco);
  outline-offset: 2px;
  border-radius: 6px;
}
main:focus { outline: none; }

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

/* Mostra só no tema certo (ex.: logo claro × negativo) */
.so-claro { display: var(--mostrar-claro); }
.so-escuro { display: var(--mostrar-escuro); }

.icone {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: var(--icone-traco);
  stroke-linecap: round; stroke-linejoin: round;
}

.valor { font-variant-numeric: tabular-nums; }
.quebra { overflow-wrap: anywhere; }

.sem-js { padding: var(--esp-6); text-align: center; }

/* Carregando o app */
.carregando-app {
  min-height: 100dvh;
  display: grid; place-items: center;
}
.carregando-simbolo { animation: respirar 1.4s ease-in-out infinite; }
@keyframes respirar { 50% { opacity: .45; transform: scale(.96); } }

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