/*
 * Cerebri Sans.
 *
 * Kaynak dosyada her kalınlık ayrı bir aile adı taşıyordu
 * (`CerebriSans-Bold`, `CerebriSans-Medium`…). Öyle olunca temanın
 * `fw-600` gibi kalınlık sınıfları çalışmıyor: tarayıcı aynı ailede
 * daha kalın bir kesim bulamayınca yazıyı kendisi kalınlaştırıyor ve
 * harfler bozuluyor. Burada hepsi tek aile altında, kendi
 * `font-weight` değerleriyle tanımlı.
 */

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-Light.woff2") format("woff2"),
        url("../fonts/CerebriSans-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-LightItalic.woff2") format("woff2"),
        url("../fonts/CerebriSans-LightItalic.woff") format("woff");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Gövde yazısı: ailenin kendi düz kesimi `Book`. */
@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-Book.woff2") format("woff2"),
        url("../fonts/CerebriSans-Book.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-BookItalic.woff2") format("woff2"),
        url("../fonts/CerebriSans-BookItalic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-Medium.woff2") format("woff2"),
        url("../fonts/CerebriSans-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-MediumItalic.woff2") format("woff2"),
        url("../fonts/CerebriSans-MediumItalic.woff") format("woff");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-SemiBold.woff2") format("woff2"),
        url("../fonts/CerebriSans-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-SemiBoldItalic.woff2") format("woff2"),
        url("../fonts/CerebriSans-SemiBoldItalic.woff") format("woff");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-Bold.woff2") format("woff2"),
        url("../fonts/CerebriSans-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-BoldItalic.woff2") format("woff2"),
        url("../fonts/CerebriSans-BoldItalic.woff") format("woff");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-ExtraBold.woff2") format("woff2"),
        url("../fonts/CerebriSans-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cerebri Sans";
    src:
        url("../fonts/CerebriSans-Heavy.woff2") format("woff2"),
        url("../fonts/CerebriSans-Heavy.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/*
 * Temanın yazı tipi tek bir değişkenden geliyor; başlıklar, gövde ve
 * düğmeler hepsi onu okuyor. Değişkeni değiştirmek yeterli, tema
 * dosyasına dokunmak gerekmiyor.
 */
:root {
    --font-primary: "Cerebri Sans", sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-primary);
}
