/* Combined AVFontimer Font Bundle - Optimized for single request */

/* Preload all font variants to avoid multiple requests */
/* The AVFontimer files have their ascent/descent set to 860/-160 (from 760/-260) so the line box is
   centred on the capital letters; with the old numbers text sat about 0.1em high in buttons and pills.
   Bump ?v= here and on the bundle.css link in app/layout.tsx whenever the files change (cached as immutable). */
@font-face {
  font-family: 'AVFontimer';
  src: url('./AVFontimer-Regular.ttf?v=2') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AVFontimer';
  src: url('./AVFontimer-Medium.ttf?v=2') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AVFontimer';
  src: url('./AVFontimer-Bold.ttf?v=2') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* AV Fontimer has no accented Latin letters (ä, ö, å, é...), and browsers then build them from a
   plain letter plus a loose dot mark that lands beside it. Figtree (SIL Open Font License, see
   Figtree-OFL.txt) draws just those letters and the middle dot, at the same weights. Browsers only
   fetch it for pages that contain them. */
@font-face {
  font-family: 'AVFontimer';
  src: url('./Figtree-Latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00B7, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF;
}

@font-face {
  font-family: 'AVFontimer';
  src: url('./Figtree-Latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00B7, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF;
}

@font-face {
  font-family: 'AVFontimer';
  src: url('./Figtree-Latin.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00B7, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF;
}

/* Font loading optimization classes */
.font-avfontimer {
  font-family: 'AVFontimer', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-avfontimer-regular {
  font-family: 'AVFontimer', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 400;
}

.font-avfontimer-medium {
  font-family: 'AVFontimer', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 600;
}

.font-avfontimer-bold {
  font-family: 'AVFontimer', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 800;
}