/* Self-hosted type system — ClinIQ product UI.
   Licensed faces from the paid library (/Users/gurbakshchahal/fonts):
   Whitney (UI), Minion Pro (reading serif), DIN Pro (metric figures),
   Monument Grotesk Mono (machine strings). Weight discipline: Regular
   body, Medium emphasis, Semibold on the page title only; no Bold ships
   in the product UI. Weights are declared here, not read from the files
   (the Whitney web builds report one step low). Metric-matched
   fallbacks keep the swap from reflowing; every override below was
   measured with fontTools from the exact shipped files. */

/* ---------- Whitney: UI and body ---------- */
@font-face {
  font-family: "Whitney";
  src: url("/fonts/whitney-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Whitney";
  src: url("/fonts/whitney-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Whitney";
  src: url("/fonts/whitney-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Whitney italics (for em in prose) ---------- */
@font-face {
  font-family: "Whitney";
  src: url("/fonts/whitney-book-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Whitney";
  src: url("/fonts/whitney-semibold-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- Whitney Fallback: metric-matched local face ----------
   Same measured values as the shared AuraOne dense stack (Operator /
   CRM.me): size-adjust = Whitney xAvgCharWidth / Arial's (book 413/1000
   vs Arial 904/2048; semibold 422/1000 vs Arial Bold 983/2048);
   ascent/descent = usWinAscent/usWinDescent ratios / size-adjust. */
@font-face {
  font-family: "Whitney Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  font-weight: 400 500;
  font-style: normal;
  size-adjust: 93.6%;
  ascent-override: 100.3%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Whitney Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold");
  font-weight: 600;
  font-style: normal;
  size-adjust: 87.9%;
  ascent-override: 108.4%;
  descent-override: 22.8%;
  line-gap-override: 0%;
}

/* ---------- Minion Pro: reading serif (transcript, notes prose) ---------- */
@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/minion-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/minion-pro-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Minion Pro Fallback: measured 2026-10-14 from the shipped
   MinionPro-Regular.woff2 (usWin 917/360, xAvgCharWidth 542, UPM 1000)
   against macOS Georgia.ttf (1878/449, 901, 2048):
   size-adjust = (542/1000) / (901/2048) = 123.2%;
   ascent = 0.917 / (0.917 * 1.232) = 81.17%;
   descent = 0.360 / (0.2192 * 1.232) = 133.29%. */
@font-face {
  font-family: "Minion Pro Fallback";
  src: local("Georgia"), local("Times New Roman");
  font-weight: 400 500;
  font-style: normal;
  size-adjust: 123.2%;
  ascent-override: 81.17%;
  descent-override: 133.29%;
  line-gap-override: 0%;
}

/* ---------- DIN Pro: metric figures only (stats, counts, scores) ----------
   Subset to digits and metric punctuation; any glyph it cannot draw
   falls through to Whitney. Never use it for dates, durations, or
   words. DIN Fallback measured from the shipped dinpro-regular.woff2
   (usWin 1041/237, xAvgCharWidth 554, UPM 1000) against macOS
   Arial.ttf (1854/434, 904, 2048): size-adjust 125.51%, ascent 91.62%,
   descent 89.11%. */
@font-face {
  font-family: "DIN Pro";
  src: url("/fonts/dinpro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0020, U+0024-0025, U+0028-0029, U+002B-003A, U+0041-005A, U+0061-007A, U+00A3, U+00A5, U+00B7,
    U+2013, U+20AC, U+2192;
}

@font-face {
  font-family: "DIN Pro";
  src: url("/fonts/dinpro-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0020, U+0024-0025, U+0028-0029, U+002B-003A, U+0041-005A, U+0061-007A, U+00A3, U+00A5, U+00B7,
    U+2013, U+20AC, U+2192;
}

@font-face {
  font-family: "DIN Pro Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 500;
  font-style: normal;
  size-adjust: 125.51%;
  ascent-override: 91.62%;
  descent-override: 89.11%;
  line-gap-override: 0%;
}

/* ---------- Monument Grotesk Mono: code and identifiers ----------
   Fallback measured from the library MonumentGrotesk-Mono.ttf (usWin
   2195/592, xAvgCharWidth 1320, UPM 2048) against macOS Menlo-Regular
   (1901/483, 1233, 2048): size-adjust 107.06%, ascent 107.86%,
   descent 114.49%. */
@font-face {
  font-family: "Monument Grotesk Mono";
  src: url("/fonts/monument-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Mono Fallback";
  src: local("Menlo"), local("Courier New");
  font-weight: 400;
  font-style: normal;
  size-adjust: 107.06%;
  ascent-override: 107.86%;
  descent-override: 114.49%;
  line-gap-override: 0%;
}
