/*
 * Yazı tipleri — self-hosted.
 *
 * !!! DEĞİŞKEN YAZI TİPİ (variable font) !!!
 *
 * Archivo ve JetBrains Mono, Google Fonts'ta TEK dosya olarak sunulan
 * değişken yazı tiplerdir: dosyanın içinde `wght` ekseni vardır ve tarayıcı
 * istenen ağırlığı aynı dosyadan başlatır. Bu yüzden `archivo-400…800`
 * dosyalının İÇERİĞİ birebir aynıdır (md5 doğrulandı).
 *
 * `fonts.css` önceden her ağırlık için ayrı bir `@font-face` yazıyordu:
 *
 *   @font-face { font-weight: 400; src: url('archivo-400-latin.woff2') }
 *   @font-face { font-weight: 500; src: url('archivo-500-latin.woff2') }
 *   …5 ayrı kural, 5 ayrı URL…
 *
 * Tarayıcı bunları FARKLI adres sanıp 5 kez indiriyordu. Ölçüldü:
 * ana sayfa 14 font dosyası, 421 KB — bunun ~307 KB'ı aynı baytların
 * tekrarıydı.
 *
 * ÇÖZÜM: `font-weight` TEK kuralda ARALIK olarak verilir (100 900). Artık
 * bir dosya indirilir, tüm ağırlıklar ondan üretilir.
 *
 * `font-display: swap` korunuyor: yazı tipi gelene kadar geçici metin
 * gösterilir, FCP gecikmez.
 *
 * unicode-range: Google Fonts'ın bölümlemesi birebir alındı (latin /
 * latin-ext). Türkçe karakterler iki aralığa dağılmış durumda —
 * `ı` (U+0131) ve `ç` latin'de, `ş` (U+015F) `ğ` (U+011F) `İ` (U+0130)
 * latin-ext'te. İki aralık da gerekli.
 */

/* ---- Anton: statik, tek ağırlık ---- */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-400-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;
}

/*
 * ---- Archivo: değişken, wght 100–900 ----
 *
 * `archivo-400-*.woff2` dosyaları kullanılıyor; 500/600/700/800 kopyaları
 * bayt düzeyinde aynı olduğu için indirilmelerine gerek yok.
 */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-latin-ext.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-latin.woff2') format('woff2-variations');
  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;
}

/*
 * ---- JetBrains Mono: değişken, wght 400–800 ----
 *
 * `jetbrains-mono-500-*.woff2` kullanılıyor; 700 kopyası bayt düzeyinde aynı.
 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-latin.woff2') format('woff2-variations');
  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;
}