/* [DAN] BRAND PACK v1 — fonts, self-hosted. NO EXTERNAL FETCH.
 *
 * Replaces the @import from fonts.googleapis.com that every one of our 43 surfaces used to
 * carry. That import made the local console phone out on launch and put a third-party
 * beacon on a sandbox landing page whose pitch is "watch what we send".
 *
 * Three variable fonts, latin subset, 85 KB total. Each file covers EVERY weight we use —
 * variable fonts are why this is 85 KB and not 700 KB of static cuts.
 *
 * 🔴 SF Pro Display is NEVER bundled. It is Apple's, licensed system-only, and shipping it
 * would be a licence breach. It is referenced through the system stack below, which is
 * free and correct — the OS provides it. Do not "helpfully" add it to this folder.
 *
 * Licences: JetBrains Mono, Doto, Inter are all SIL OFL 1.1 — redistribution permitted.
 * See LICENSES.md in this folder.
 */

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  font-weight: 100 800;            /* variable — one file, all weights */
  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;
}

@font-face {
  font-family: "Doto";
  src: url("fonts/Doto-latin.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

/* ── THE STACKS — cross-platform, and they degrade to something correct ─────────────────
 *
 * SKYBIZ: "you see user as windows and linux also" … "or any other operating system".
 * So the UI stack names a real system font per platform rather than assuming a Mac and
 * falling through by luck — which is what the old Mac-first stack did on Windows.
 *
 * If this pack never loads ([DAN] Sentry absent, verification failed, first run), every var below
 * still resolves to a system font and the product looks right. THE FALLBACK IS THE POINT:
 * a product must never render unstyled or blank because a style host was unavailable.
 */
:root {
  /* UI text — always the platform's own font. Never bundled, never fetched. */
  --dan-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Text",
              "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", system-ui, sans-serif;

  /* Monospace — bundled, falls back to each platform's mono */
  --dan-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono",
              Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  /* Dot face — bundled. Falls back to mono so numerals stay aligned if Doto is missing. */
  --dan-dot:  "Doto", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas,
              "DejaVu Sans Mono", monospace;

  /* Prose (portal) — bundled, falls back to the UI stack */
  --dan-prose: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
               Cantarell, "Noto Sans", system-ui, sans-serif;

  /* console aliases — same faces under the short names lab.css already uses */
  --ui: var(--dan-font);
  --mono: var(--dan-mono);
  --dot: var(--dan-dot);
}
