/*
 * Barril Comunicação — Self-hosted Web Fonts
 * Todos os arquivos .woff2 estão na mesma pasta /fonts/
 * Cache: max-age=31536000, immutable (configurado no vercel.json)
 */

/* ── Bebas Neue (display, headlines, LCP) ──
   font-display: swap → aceitamos o swap visual porque é a fonte da marca.
   Fallback calibrado 'Bebas Neue Fallback' reduz o CLS durante o swap.
*/
@font-face {
  font-family: 'Bebas Neue';
  src: url('bebas-neue-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Syne (labels, CTAs, botões) ──
   font-display: optional → sem FOUT, sem CLS.
   Se não carregar no primeiro frame, usa fallback para sempre nesse load.
   Em visitas subsequentes (cache) aparece imediatamente.
*/
@font-face {
  font-family: 'Syne';
  src: url('syne-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Syne';
  src: url('syne-v24-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Syne';
  src: url('syne-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Syne';
  src: url('syne-v24-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: optional;
}

/* ── DM Sans (corpo, subtítulos, textos longos) ──
   font-display: optional → mesma lógica do Syne.
*/
@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-v17-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-v17-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-v17-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-v17-latin-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: optional;
}
