/* Psyopia brand fonts (licensed from Fontiran):
   Abar Low  -> body text      Ravagh -> headings
   Loaded by the layouts only when the font files exist (see fonts/README-psyopia-fonts.txt). */
@font-face { font-family: 'Abar'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/default/fonts/abar/AbarLow-Light.woff2') format('woff2'); }
@font-face { font-family: 'Abar'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/default/fonts/abar/AbarLow-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Abar'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/default/fonts/abar/AbarLow-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Abar'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/default/fonts/abar/AbarLow-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Abar'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/default/fonts/abar/AbarLow-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Abar'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/default/fonts/abar/AbarLow-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Abar'; font-weight: 900; font-style: normal; font-display: swap; src: url('/assets/default/fonts/abar/AbarLow-Black.woff2') format('woff2'); }

@font-face { font-family: 'Ravagh'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/default/fonts/ravagh/Ravagh-Light.woff2') format('woff2'); }
@font-face { font-family: 'Ravagh'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/default/fonts/ravagh/Ravagh-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Ravagh'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/default/fonts/ravagh/Ravagh-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Ravagh'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/default/fonts/ravagh/Ravagh-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Ravagh'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/default/fonts/ravagh/Ravagh-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Ravagh'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/default/fonts/ravagh/Ravagh-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Ravagh'; font-weight: 900; font-style: normal; font-display: swap; src: url('/assets/default/fonts/ravagh/Ravagh-Black.woff2') format('woff2'); }

:root {
    --psy-font-text: 'Abar', 'Vazirmatn', Tahoma, Arial, sans-serif;
    --psy-font-heading: 'Ravagh', 'Abar', 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* Body text everywhere. Many views set "font-family: Vazirmatn/Inter" inline, hence !important.
   Icon fonts (<i>, fa-*, summernote/feather icons) and code keep their own font. */
/* :where() keeps this rule at the lowest specificity so the heading rule below always wins */
:where(body, body *:not(i):not([class*="fa-"]):not([class^="fa"]):not([class*=" fa"]):not([class*="note-icon"]):not([class*="icon-"]):not(code):not(pre):not(kbd):not(samp)) {
    font-family: var(--psy-font-text) !important;
}

/* Headings (and everything inside them) */
:is(h1, h2, h3, h4, h5, h6, .font-heading, .section-title, .mm-pane-title),
:is(h1, h2, h3, h4, h5, h6, .font-heading, .section-title, .mm-pane-title) *:not(i):not([class*="fa-"]) {
    font-family: var(--psy-font-heading) !important;
}
