/* Fontes servidas pelo próprio site (antes vinham do Google Fonts).
   Os arquivos são os woff2 variáveis do Google Fonts, Geist v5 e Geist Mono v6,
   nos subconjuntos latin e latin-ext; os unicode-range são os do CSS original.
   Carregar de casa permite o preload e tira duas conexões externas. */

/* Geist: latin-ext */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("/fontes/geist-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist: latin */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("/fontes/geist-latin.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;
}

/* Geist Mono: latin-ext */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fontes/geist-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Mono: latin */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fontes/geist-mono-latin.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;
}

/* Fontes reserva: fontes do sistema ajustadas para ocupar o mesmo espaço da
   Geist enquanto ela não chega, para o texto não saltar na troca.

   Cálculo (medido no Edge com um parágrafo do site a 1000px):
   - largura: a Geist ocupa 0,998 da Arial no peso 300 e 1,013 no peso 400,
     os dois pesos do texto corrido e dos títulos; size-adjust fica no meio,
     100,5%. No peso 600 a comparação é com a Arial Bold: 0,991, logo 99%.
   - altura: a Geist tem ascendente 1005 e descendente 295 em 1000 unidades,
     sem entrelinha extra. Os overrides valem sobre o tamanho já ajustado,
     então dividem por size-adjust: 100,5 / 1,005 = 100% e 29,5 / 1,005 = 29,35%
     (no peso 600: 100,5 / 0,99 = 101,5% e 29,5 / 0,99 = 29,8%).
   - Geist Mono e Courier New têm o mesmo avanço de 600 unidades (razão medida
     0,9998), então size-adjust é 100% e só a altura muda. A Consolas é mais
     estreita (pediria 109%), por isso a escolhida foi a Courier New.
   Liberation e Arimo/Cousine têm as mesmas métricas da Arial e da Courier New
   e cobrem Linux e ChromeOS. Onde nenhuma existir, vale o resto da pilha. */
@font-face {
  font-family: "Geist Reserva";
  font-weight: 200 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 100.5%;
  ascent-override: 100%;
  descent-override: 29.35%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Reserva";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
  size-adjust: 99%;
  ascent-override: 101.5%;
  descent-override: 29.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Mono Reserva";
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Cousine");
  size-adjust: 100%;
  ascent-override: 100.5%;
  descent-override: 29.5%;
  line-gap-override: 0%;
}
