/**
 * Bw Stretch (Branding with Type, web licence held by OUI) for headings on every OUI site.
 * Self-hosted WOFF2; the browser only downloads the weights a page actually uses.
 */
@font-face { font-family: "Bw Stretch"; src: url("../fonts/BwStretch-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bw Stretch"; src: url("../fonts/BwStretch-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bw Stretch"; src: url("../fonts/BwStretch-Bold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bw Stretch"; src: url("../fonts/BwStretch-Black.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bw Stretch"; src: url("../fonts/BwStretch-Heavy.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
    --oui-font-heading: "Bw Stretch", "Inter", -apple-system, "Segoe UI", sans-serif;
    /* Blocks pages (oui.bzh) read their heading fonts from these variables. */
    --h1-font-family: var(--oui-font-heading);
    --h2-font-family: var(--oui-font-heading);
    --h3-font-family: var(--oui-font-heading);
    --h4-font-family: var(--oui-font-heading);
}

:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
    .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .display-hero, .ob-h2):not(#oui-brand-heading) {
    /* :not(#…) adds ID-level weight: landing pages set their own !important heading spacing. */
    /* !important: landing pages ship their own inline heading fonts; the brand font wins everywhere. */
    font-family: var(--oui-font-heading) !important;
    /* The pages tighten headings for Inter (-0.03em); a condensed face needs its natural spacing. */
    letter-spacing: 0 !important;
}

/* Pages tighten the coloured words inside headings too (spans): give them back the natural spacing. */
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .display-hero, .ob-h2):not(#oui-brand-heading) * {
    letter-spacing: 0 !important;
}

/* The site menu (right-hand side on desktop, off-canvas on phones) in the brand face too. */
#sidenav .mod-menu a,
#offcanvasMenu .mod-menu a {
    font-family: var(--oui-font-heading) !important;
    letter-spacing: 0 !important;
    font-size: 1.15em;   /* a condensed face reads smaller at the same size */
}
