/* ==========================================================================
   Dazos CRM Design System — typography foundation (CRM-3748)
   Self-hosted faces: Nunito (titles) + Open Sans (body). Variable woff2, one
   file per unicode subset, so every weight the design system uses renders from
   a real file (no synthesized bold) and the CRM makes no outbound font request.
   Licenses: skins/fonts/Nunito/OFL.txt, skins/fonts/OpenSans/variable/OFL.txt.

   Tokens follow colors_and_type.css from the design-system export. The tenant's
   selected body font (Theme Options) is injected by ThemeStyle.tpl / themeStyle.ctp
   as --font-body / --font-title on :root AFTER this file, so the defaults below
   only apply when nothing is selected.
   ========================================================================== */

/* ---- Nunito · titles ---- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/Nunito/Nunito-wght-latin-ext.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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/Nunito/Nunito-wght-latin.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;
}

/* ---- Open Sans · body ---- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/OpenSans/variable/OpenSans-wght-latin-ext.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;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/OpenSans/variable/OpenSans-wght-latin.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;
}

/* ---- Tokens (design system colors_and_type.css) ---- */
:root {
  --font-title: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:  'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:  'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --font-size-display: 4rem;      /* 64px */
  --font-size-h1:      2.5rem;    /* 40px */
  --font-size-h2:      2rem;      /* 32px */
  --font-size-h3:      1.5rem;    /* 24px */
  --font-size-h4:      1.25rem;   /* 20px */
  --font-size-h5:      1rem;      /* 16px */
  --font-size-body-lg: 1rem;      /* 16px */
  --font-size-body:    0.875rem;  /* 14px */
  --font-size-body-sm: 0.75rem;   /* 12px */

  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --line-height-tight:   1.2;
  --line-height-snug:    1.3;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.6;
}

/* ---- Roles ----
   Titles take the title face; the size scale is NOT forced onto bare h1-h5 (that
   would reflow every legacy screen) — redesigned screens opt in with dz-* classes. */
h1, h2, h3, h4, h5, .font-title { font-family: var(--font-title); }
.font-body { font-family: var(--font-body); }

.dz-display { font-family: var(--font-title); font-size: var(--font-size-display); font-weight: var(--font-weight-extrabold); line-height: 1.1; }
.dz-h1 { font-family: var(--font-title); font-size: var(--font-size-h1); font-weight: var(--font-weight-bold);     line-height: var(--line-height-tight); }
.dz-h2 { font-family: var(--font-title); font-size: var(--font-size-h2); font-weight: var(--font-weight-bold);     line-height: 1.25; }
.dz-h3 { font-family: var(--font-title); font-size: var(--font-size-h3); font-weight: var(--font-weight-semibold); line-height: var(--line-height-snug); }
.dz-h4 { font-family: var(--font-title); font-size: var(--font-size-h4); font-weight: var(--font-weight-semibold); line-height: 1.4; }
.dz-h5 { font-family: var(--font-title); font-size: var(--font-size-h5); font-weight: var(--font-weight-semibold); line-height: 1.4; }
.dz-page-title { font-family: var(--font-title); font-size: 1.3125rem; font-weight: var(--font-weight-extrabold); line-height: var(--line-height-tight); white-space: nowrap; } /* nav chrome page title, 21px/800 */
.dz-body-lg { font-family: var(--font-body); font-size: var(--font-size-body-lg); line-height: var(--line-height-relaxed); }
.dz-body    { font-family: var(--font-body); font-size: var(--font-size-body);    line-height: var(--line-height-relaxed); }
.dz-body-sm { font-family: var(--font-body); font-size: var(--font-size-body-sm); line-height: var(--line-height-normal); }
.dz-label    { font-family: var(--font-body); font-size: var(--font-size-body);    font-weight: var(--font-weight-semibold); line-height: 1.4; }
.dz-label-sm { font-family: var(--font-body); font-size: var(--font-size-body-sm); font-weight: var(--font-weight-semibold); line-height: 1.3; }
.dz-mono { font-family: var(--font-mono); }
