/* =========================================================================
   Fin — base: fontes, cores, tipografia
   Paleta "papel-moeda": papel esverdeado, tinta verde-escura, verde-cédula,
   receita/despesa e o roxo das notas para cartões.
   ========================================================================= */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../vendor/manrope-latin-wght-normal.woff2") format("woff2");
  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-weight: 200 800; font-display: swap;
  src: url("../vendor/manrope-latin-ext-wght-normal.woff2") format("woff2");
  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;
}

:root {
  --papel: #F2F4EF;
  --papel-fundo: #E8EDE6;
  --cartao: #FBFCFA;
  --tinta: #17211D;
  --suave: #5A6962;
  --apagado: #8B9891;
  --linha: #D8DFD6;
  --verde: #2C5E4A;
  --verde-forte: #214A3A;
  --verde-luz: #C9E4A6;
  --receita: #2E7D4F;
  --despesa: #B23A30;
  --roxo: #5B4A8B;
  --alerta: #B9740F;

  --fonte: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* escala: 12.5 · 14 · 15.5 · 18 · 23 · 32 · 56 */
  --t-1: 12.5px; --t0: 14px; --t1: 15.5px; --t2: 18px; --t3: 23px; --t4: 32px; --t5: clamp(40px, 6vw, 64px);

  --raio: 12px;
  --sombra: 0 1px 2px rgba(23, 33, 29, .05), 0 8px 24px rgba(23, 33, 29, .07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 450 var(--t1)/1.5 var(--fonte); font-feature-settings: "tnum" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.012em; }
h1 { font-size: var(--t4); font-weight: 750; }
h2 { font-size: var(--t2); font-weight: 700; }
h3 { font-size: var(--t1); font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; }

/* Valores */
.valor { font-variant-numeric: tabular-nums; white-space: nowrap; }
.valor.receita { color: var(--receita); }
.valor.despesa { color: var(--despesa); }
body.privado .valor, body.privado .privado { filter: blur(7px); user-select: none; }
body.privado .valor:hover { filter: none; }

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