/**
 * 2N9HT self-hosted Onest font stack.
 * The theme owns the only public font faces; Elementor and Custom Fonts
 * registrations are removed from the frontend in functions.php.
 */
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/onest/onest-latin-cyrillic-400.woff2") format("woff2");
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../assets/fonts/onest/onest-latin-cyrillic-500.woff2") format("woff2");
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../assets/fonts/onest/onest-latin-cyrillic-600.woff2") format("woff2");
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../assets/fonts/onest/onest-latin-cyrillic-700.woff2") format("woff2");
}

@font-face {
    font-family: "Onest Fallback";
    src: local("Arial"), local("Arial Regular");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    size-adjust: 101.4%;
    ascent-override: 97%;
    descent-override: 30.5%;
    line-gap-override: 0%;
}

:root {
    --n9-font-family: "Onest", "Onest Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-main: var(--n9-font-family);
    --e-global-typography-primary-font-family: var(--n9-font-family);
    --e-global-typography-secondary-font-family: var(--n9-font-family);
    --e-global-typography-text-font-family: var(--n9-font-family);
    --e-global-typography-accent-font-family: var(--n9-font-family);

    /* Shared type calibration for the Onest migration. Components consume
     * these tokens instead of carrying one-off size corrections. */
    --n9-type-article-h1-size: 44px;
    --n9-type-article-h1-line: 51px;
    --n9-type-rpe-widget-heading-size: 19px;
    --n9-type-rpe-widget-heading-line: 23px;
    --n9-type-rpe-widget-excerpt-size: 14px;
    --n9-type-rpe-widget-excerpt-line: 22px;
    --n9-type-rpe-related-title-size: 22px;
    --n9-type-rpe-related-title-line: 29px;
    --n9-type-home-hero-headline-size: 55px;
    --n9-type-home-hero-headline-line: 56px;
    --n9-type-home-section-heading-size: 47px;
    --n9-type-home-section-heading-line: 51px;
    --n9-type-home-cta-title-size: 28px;
    --n9-type-home-cta-title-line: 35px;
    --n9-type-home-cta-description-size: 15px;
    --n9-type-home-cta-description-line: 21px;
    --n9-type-home-cta-description-max-height: 240px;
    --n9-type-fresh-heading-size: 47px;
    --n9-type-fresh-heading-line: 47px;
    --n9-type-fresh-excerpt-size: 15px;
    --n9-type-fresh-excerpt-line: 22px;
    --n9-type-article-body-color: #475467;
    --n9-type-home-product-price-size: 15px;
    --n9-type-home-product-price-line: 20px;
    --n9-type-home-product-old-price-size: 13px;
    --n9-type-home-product-old-price-line: 17px;
}

html,
body {
    font-family: var(--n9-font-family);
    font-synthesis: none;
}
