/* =============================================================================================
   fonts.css — the IncMarketry type scheme, SELF-HOSTED (rebrand stage C, 2026-10-03).

   Two families, nothing from Google Fonts:
     - Bricolage Grotesque — the whole platform, every weight the pages already use (200–800).
       Replaced Inter. One variable file per script range; the browser fetches only the ranges a
       page's text actually needs, and only once per visit (cached across pages).
     - Newsreader — UPRIGHT, on exactly three lines: the dashboard summary line, the Blog & Press
       introduction and the homepage's "Stewardship over speculation." Never italic: the italic
       file is deliberately not shipped, so an accidental `font-style: italic` cannot synthesise
       the real one — it would show as an obvious faux slant, which the font audit then reports.
       Each of the three keeps its own existing colour and weight; only the family changes.

   Files: assets/fonts/ (Fontsource 5.3.0 builds, SIL Open Font License 1.1 — the licence texts
   sit beside them). Figures: both fonts carry a real `tnum` table, so `tabular-nums` genuinely
   aligns digits; verify-no-monospace measures that by real advance width, not by the property.
   ============================================================================================= */

/* bricolage-grotesque — latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* bricolage-grotesque — latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2');
  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;
}
/* newsreader — latin-ext, upright only */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/newsreader-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* newsreader — latin, upright only */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/newsreader-latin-wght-normal.woff2) format('woff2');
  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;
}

/* The editorial line. Applied by class to exactly three elements (see the header); the suite
   verify-type-scheme counts them, so a fourth is a failure, not a style choice. Colour and
   weight are inherited from each line's own existing rule. */
.mw-editorial {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-style: normal;
}

/* ★ EVERY FIGURE IS TABULAR, AND IT IS SET ONCE, HERE. `font-variant-numeric` inherits, so one
   root declaration reaches every number on every page — a table cell, a card figure, an inline
   amount in a sentence, an SVG chart label — with nothing for a new component to remember.
   Bricolage Grotesque's default figures are PROPORTIONAL (a "1" is narrower than a "0"), so
   without this a money column staggers. No rule on the platform opts out (checked by grep:
   every other declaration is `tabular-nums` too). Form controls do not inherit it — the
   user-agent's `font` shorthand on inputs resets it — so they are named explicitly.
   verify-type-scheme proves it on real rendered elements and carries its own forced-failure
   control. Canvas text (Chart.js tick labels) cannot take a CSS numeric variant; see that suite. */
html { font-variant-numeric: tabular-nums; }
/* STATUS AREA (lane 2, 7 Nov): the canvas behind every client, public and sign-in page is cream, so nothing grey or white
   shows above the header (status bar, rubber-band overscroll). The manager tool keeps its own ground. */
html:has(> body:is(.ps-portal, .ip-page, .ih-page, .au-page, .login-page)) { background-color: var(--brand-cream); }
button, input, select, textarea, optgroup { font-variant-numeric: inherit; }

/* NEXT BLOCK (status area, 7 Nov): every header on the platform is cream (the brand cream: public, auth, portal and the manager tool,
   in the browser and in the installed app). The browser bars and the area above the header take the html background
   (iOS Safari 26 ignores theme-color), so <html> carries the header colour on every page; a page's own ground stays on its
   body (the manager's grey) and never shows above the header. */
html { background-color: var(--brand-cream); }

/* NOTCH / HOME INDICATOR (lane 2, 7 Nov): every client, public and sign-in page is viewport-fit=cover, so content keeps clear
   of a landscape notch on the sides; the top inset is taken by each header (portal-shell.css .ps-top, im-header.css .im-hdr,
   im-auth.css .au-top, reset-password's .login-topbar), the bottom by the fixed controls. env() is 0 where there is no
   inset, so a desktop or a portrait browser tab is unchanged. */
body:is(.ip-page, .ih-page, .au-page, .login-page) { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
body:is(.au-page, .login-page) .login-topbar { padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
@media (max-width: 640px) { body:is(.au-page, .login-page) .login-topbar { padding-top: calc(16px + env(safe-area-inset-top, 0px)); } }
