/* ===================================
   INTER VARIABLE FONT - LOCAL HOSTING
   Served from Cloudflare Pages
   =================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/inter-variable.woff2') format('woff2');
  font-weight: 100 900; /* Suporta todos os pesos de 100 a 900 */
  font-display: swap;   /* Mostra fallback enquanto carrega */
  font-style: normal;
  /* Otimizações: */
  font-stretch: normal;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================================
   FALLBACK: Pesos separados
   (Descomente se preferir arquivos individuais)
   =================================== */

/*
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
*/

/* ===================================
   PROPRIEDADES DA FONTE
   =================================== */

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02' 1, 'cv03' 1, 'cv04' 1, 'cv07' 1, 'cv08' 1, 'cv09' 1, 'cv10' 1, 'cv11' 1;
  /* Inter tem várias alternativas OpenType - essas features melhoram aparência */
  -webkit-text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2937;
}

/* Fallback para navegadores que não suportam variable fonts */
@supports not (font-weight: 100 900) {
  html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
}
