/* Phoenix type rules (owner, 6 Nov 2026). Candidate replacement for site/assets/css/michelangelus.css.
   NOT handed to the website yet: waits on the owner's ft-preview-ok and ft-numbers on the questions page.

   The rule, in his words and answers:
   - Logo always Michelangelus ("Phoenix logo is always going to be under Michelangelo's font"). Italic, as today.
   - Headings always Michelangelus; "big feature cards too" (ft-heading-line = plus-cards),
     but "no ui ux elements should have it icons nav bar etc".
   - Everything else in Instrument Sans (ft-text-font = a): menu, buttons, links, small lines under headings,
     small card and row titles, labels inside app screens, testimonials.
   - Digits and the rupee sign stay Michelangelus everywhere ("love the rs font", "dont change number fonts").
   - Tight: big headings line-height 1.04 (ft-compact = tight).
   - App names: logo font in their own page header, plain in sentences (ft-app-names = split).
   - Client names in italic (blue, like).
   This file chooses by ROLE (which part of the page), not by measured size: small 28-35px card and row titles
   such as "A page that never goes quiet", "Replies that do not wait" and "Your data first" were red in his marks,
   so they are plain here even though they are large.

   Font files: Michelangelus stays in the git-ignored folder (licence: no distribution). Instrument Sans is an open
   font (SIL Open Font Licence); it is loaded from Google Fonts here and can be self-hosted later if preferred. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url("/assets/fonts/instrument-sans/InstrumentSans.ttf") format("truetype"); }
@font-face { font-family: "Michelangelus"; font-weight: 100 900; font-style: normal; font-display: block; size-adjust: 106%; src: url("/assets/fonts/michelangelus/Michelangelus-Regular.ttf") format("truetype"); }
@font-face { font-family: "Michelangelus"; font-weight: 100 900; font-style: italic; font-display: block; size-adjust: 106%; src: url("/assets/fonts/michelangelus/Michelangelus-Italic.ttf") format("truetype"); }
/* Numbers slot: the same files, only for digits 0-9 and the rupee sign. Put first in the plain stack, so every
   number keeps the shape he loves while the letters around it are plain. */
@font-face { font-family: "Phoenix Numbers"; font-weight: 100 900; font-style: normal; font-display: block; size-adjust: 106%; unicode-range: U+0030-0039, U+20B9; src: url("/assets/fonts/michelangelus/Michelangelus-Regular.ttf") format("truetype"); }
@font-face { font-family: "Phoenix Numbers"; font-weight: 100 900; font-style: italic; font-display: block; size-adjust: 106%; unicode-range: U+0030-0039, U+20B9; src: url("/assets/fonts/michelangelus/Michelangelus-Italic.ttf") format("truetype"); }

:root {
  --michelangelus: "Michelangelus", "Noto Sans Devanagari", "Noto Sans Gujarati", "Noto Sans Tamil", "Noto Sans Kannada", "Nirmala UI", Georgia, "Segoe UI Symbol", serif;
  --phx-plain: "Phoenix Numbers", "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  --font-display: var(--michelangelus) !important;
  --font-text: var(--phx-plain) !important;
  --font-mono: var(--phx-plain) !important;
  --mono: var(--phx-plain) !important;
}

/* 1. Plain by default: everything. */
/* Every selector below is wrapped in :where(), so all have zero specificity and the ORDER of the blocks decides:
   plain, then Michelangelus, then small-heading exceptions, then UI elements, then logo and client italics. */
:where(html, body, body *, body *::before, body *::after) {
  font-family: var(--phx-plain) !important;
  letter-spacing: -0.005em !important;
  font-synthesis: weight !important;
}
:where(b, strong) { font-style: normal; }

/* 2. Michelangelus: headings and big display lines. Their children (animated word spans) follow. */
:where(
  h1, h2, .h1, .h2, .display, .kit-h1, .kit-h2,
  .cat2-hero h1 + .lead,                                  /* "Find customers and talk to them." (green) */
  .cat2-quote blockquote, .cat2-quote .cat2-mark,         /* the big quote on a tool page (green) */
  .proof-quote blockquote, .proof-quote-text,
  .work-detail h3,                                        /* "Keep every conversation together." (green) */
  .lfp-panel-in h3, .category-read-next-copy .h3,         /* "Tagging leads for our own ad work" (green) */
  .hl-caption-box h3, .reach-hl-caption-box h3,           /* Reachly "Get the highlights" captions ("looking fine") */
  .scr-word, .post-scr-word,                              /* the very large scrolling words */
  svg text:is(.lc-t-big, .aw-end, .aw-q, .t-display)      /* big labels inside the hand-drawn drawings */
), :where(:is(h1, h2, .h1, .h2, .display, .kit-h1, .kit-h2, .work-detail h3, .lfp-panel-in h3, .cat2-quote blockquote, .proof-quote blockquote) *) {
  font-family: var(--michelangelus) !important;
  letter-spacing: -0.01em !important;
}
:where(h1, h2, .h1, .h2, .display, .kit-h1, .kit-h2, .work-detail h3, .lfp-panel-in h3) { line-height: 1.04 !important; }

/* 3. Small heading styles stay plain, even on an h2 (eyebrows, screen-reader titles, small section labels). */
:where(:is(h1, h2):is(.eyebrow, .h3, .h4, .kit-h3, .sr-only, .bf-sr, .ix-sr, .st-sr),
       :is(h1, h2):is(.eyebrow, .h3, .h4, .kit-h3) *) {
  font-family: var(--phx-plain) !important;
  letter-spacing: -0.005em !important;
}

/* 4. UI elements are always plain, headings inside them too: menu, buttons, fields, chips, app screens,
   icon cards, the cross-sell box ("Struggling to get leads in the first place"). */
:where(:is(nav, button, .button, .btn, [role=button], input, select, textarea, label,
    [class*=pill], [class*=chip], [class*=badge], [class*=mock], [class*=device], [class*=app-ui],
    [class*=browser], [class*=frame], [class*=xsell], [class*=icon-tile], .apps-menu, .client-strip)
  :is(h1, h2, h3, .h1, .h2, .display, .kit-h1, .kit-h2, p, span, b, strong, blockquote)) {
  font-family: var(--phx-plain) !important;
  letter-spacing: -0.005em !important;
}

/* 5. Italic Michelangelus: the logo word, an app's name in its own page header, client names. */
:where(.phx-lockup, .phx-lockup *, .brand .app-word, .wordmark .app-word, .horizon-word .app-word, .f-word .app-word) {
  font-family: var(--michelangelus) !important;
  font-style: italic !important;
}
:where(.client-strip strong, .work-brand strong) {  /* client row and the Our Work slide name: the same Italic */
  font-family: var(--michelangelus) !important;
  font-style: italic !important;
  letter-spacing: 0 !important;
}
