/* ============================================================================
   Ascension brand fonts for ascensionadvisory.com (v2)
   ----------------------------------------------------------------------------
   Loaded site-wide from Settings → Content → Pages → Site header HTML. Applies only
   to Infinity-theme pages (they render .in-header; HubSpot Growth pages don't).
   Brand guide (Sam, 2026-10-07):
     Neue Montreal   headlines Light 300 · body Regular 400 · emphasis Medium 500 · Bold 700
     JetBrains Mono  ONLY numbers and stats (400/500). Labels, sub-headers and tags
                     are Neue Montreal (v2, Sam's review 2026-10-07).
     Migra Italic    not used on the site
   Only font-family and headline weight change: no sizes, case, spacing or layout.
   The theme's weight 600 (links, nav, buttons, card titles) renders as Medium via
   the 500–600 range on the Medium face below; no per-element weight rules.
   Untouched: the Sell Your Business scroll hero (.sw-root) and Ascension's custom
   modules (#ascension-*, .agm-globe-module), which declare brand fonts themselves and
   start rendering them once these faces exist; code/pre; icon fonts on ::before.
   Changes ship as a new file (-v3.css) + a one-line header edit: hubfs caches 14 days.
   ========================================================================== */

@font-face { font-family: 'Neue Montreal'; src: url('https://ascensionadvisory.com/hubfs/scroll-world/fonts/NeueMontreal-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('https://ascensionadvisory.com/hubfs/scroll-world/fonts/NeueMontreal-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('https://ascensionadvisory.com/hubfs/scroll-world/fonts/NeueMontreal-Medium.otf') format('opentype'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('https://ascensionadvisory.com/hubfs/scroll-world/fonts/NeueMontreal-Bold.otf') format('opentype'); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('https://ascensionadvisory.com/hubfs/ascension-brand/fonts/JetBrainsMono-latin-var.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html:has(.in-header) {
  /* Fallbacks are system faces, never Inter, so the theme's Inter never downloads. */
  --ah-sans: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ah-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Body, UI, headlines: every element on the page. !important because the theme also
   sets Inter in per-module, per-page rules with ID selectors, and pasted rich text
   carries inline font-family; both would otherwise win. */
html:has(.in-header) body,
html:has(.in-header) body *:not(code, kbd, pre, samp, .sw-root, .sw-root *, [id^="ascension-"], [id^="ascension-"] *, .agm-globe-module, .agm-globe-module *) {
  font-family: var(--ah-sans) !important;
}

/* Headlines: Neue Montreal Light. The green sub-header above a section title
   (.in-tc__mini-title, an h2 in the theme) keeps its emphasis weight: the theme's 600,
   which renders as Medium. */
html:has(.in-header) body :is(h1, h2, h3):not(.in-tc__mini-title, .sw-root *, [id^="ascension-"] *, .agm-globe-module *) {
  font-weight: 300 !important;
}

/* Stats: the counter figures and their units ("300" "+", "$3" "Billion+"). JetBrains
   Mono is used for numbers and stats only. Same-or-higher specificity than the rules
   above and later in the file, so it wins; the counters are h3s, so this also sets
   their weight back from the headline Light. */
html:has(.in-header) body :is(.in-counter__value, .in-counter__unit),
html:has(.in-header) body :is(.in-counter__value, .in-counter__unit) * {
  font-family: var(--ah-mono) !important;
  font-weight: 500 !important;
}

/* Ascension's own modules (calculators) declare brand fonts on their root and their
   figures, but the theme's h1/h3/p rules force Inter onto their headings and copy.
   Give those elements the module's own sans; their weights, mono figures and inputs
   are left as designed. */
html:has(.in-header) body [id^="ascension-"] :is(h1, h2, h3, h4, h5, h6, p) {
  font-family: var(--font-sans, var(--ah-sans)) !important;
}
