/* =========================================================
   Self-hosted webfonts — Inter (UI) + JetBrains Mono (code).
   Latin subset only. font-display: swap.
   Files in astra-child/assets/fonts/.
   ========================================================= */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/Inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/Inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/Inter-700.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/JetBrainsMono-400.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/JetBrainsMono-600.woff2') format('woff2');
}

/* Promote the new fonts ahead of system stacks across the site. */
:root {
    --ti-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Fira Code", monospace;
}
html,
body,
.ti-homepage,
.ti-header,
.ti-cat-hero,
.ti-up-next,
.ti-toc,
.ti-card,
.ti-grid-item,
.ti-company-chip,
.ti-latest-item {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
code, pre, kbd, samp, .ti-mono,
.ti-header-wordmark,
.ti-brand-name {
    font-family: var(--ti-mono);
}
