/* ==========================================================================
   Typography — MBA ACT
   Source: figma/09-style-guide.md
   Primary: Frutiger LT Std (client-purchased MyFonts kit, delivered 2026-04-21 — Q7 resolved)
   Fallback: Fira Sans (Google Fonts) retained as safety net if Frutiger fails to load
   ========================================================================== */

/*
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16
 * Client MyFonts license: https://www.myfonts.com/pages/license-agreement?eula_lang=eula_en&id=eula_2267
 * Licensed to Master Builders ACT. Webfont use restricted to mba.org.au domain per MyFonts EULA.
 * All other parties are restricted from using these Licensed Webfonts.
 */

/* --------------------------------------------------------------------------
   @font-face — Frutiger (non-condensed)
   Kit folders: Frutiger45Light, Frutiger46LightItalic, Frutiger55Roman,
   Frutiger56Italic, Frutiger65Bold, Frutiger66BoldItalic, Frutiger75Black,
   Frutiger76BlackItalic, Frutiger95UltraBlack
   Note: kit distributes each weight as a separate font-family; we consolidate
         into one "Frutiger" family with font-weight/font-style differentiators,
         matching CSS idiomatic usage.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger45Light/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger45Light/font.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger46LightItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger46LightItalic/font.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger55Roman/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger55Roman/font.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger56Italic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger56Italic/font.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger65Bold/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger65Bold/font.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger66BoldItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger66BoldItalic/font.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger75Black/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger75Black/font.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger76BlackItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger76BlackItalic/font.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url('../fonts/frutiger/Frutiger95UltraBlack/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger95UltraBlack/font.woff') format('woff');
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   @font-face — Frutiger Condensed
   Kit folders: Frutiger47LightCondensed .. Frutiger88ExtraBlackCondensedItalic
   Use: dense headings, compact navigation labels where horizontal space is tight.
        Reference as `font-family: "Frutiger Condensed"` explicitly — not via the
        default `--font-family` token.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger47LightCondensed/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger47LightCondensed/font.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger48LightCondensedItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger48LightCondensedItalic/font.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger57Condensed/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger57Condensed/font.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger58CondensedItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger58CondensedItalic/font.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger67BoldCondensed/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger67BoldCondensed/font.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger68BoldCondensedItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger68BoldCondensedItalic/font.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger77BlackCondensed/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger77BlackCondensed/font.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger78BlackCondensedItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger78BlackCondensedItalic/font.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger87ExtraBlackCondensed/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger87ExtraBlackCondensed/font.woff') format('woff');
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger Condensed";
  src: url('../fonts/frutiger/Frutiger88ExtraBlackCondensedItalic/font.woff2') format('woff2'),
       url('../fonts/frutiger/Frutiger88ExtraBlackCondensedItalic/font.woff') format('woff');
  font-weight: 950;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   @font-face — Fira Sans (Google Fonts, safety-net fallback if Frutiger fails)
   Weights: 300 (Light), 400 (Normal), 500 (Medium), 600 (Semi Bold),
            700 (Bold), 900 (Black)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,300;1,400;1,500;1,600;1,700;1,900&display=swap');

:root {
  --font-family: "Frutiger", "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --font-family-condensed: "Frutiger Condensed", "Frutiger", "Fira Sans", "Helvetica Neue", Arial, sans-serif;

  /* --------------------------------------------------------------------------
     Font Weights
     Frutiger native weights: 300 (Light 45), 400 (Roman 55), 700 (Bold 65),
     900 (Black 75), 950 (UltraBlack 95). No 500/600 in the Frutiger family;
     --font-weight-medium and --font-weight-semibold are aliased to the nearest
     available weight so existing token consumers (forms.css, cards.css,
     nav.css, mobile-nav.css, typography.css .tagline) render correctly.
     -------------------------------------------------------------------------- */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 400;     /* aliased: Frutiger has no 500 — falls back to Roman */
  --font-weight-semibold: 700;   /* aliased: Frutiger has no 600 — falls back to Bold */
  --font-weight-bold: 700;
  --font-weight-black: 900;
  --font-weight-ultrablack: 950; /* new: Frutiger 95 UltraBlack (non-condensed only) */

  /* --------------------------------------------------------------------------
     Heading Sizes — Desktop
     -------------------------------------------------------------------------- */
  --h1-size: 3.5rem;     /* 56px */
  --h1-lh: 1.1;
  --h2-size: 3rem;       /* 48px */
  --h2-lh: 1.2;
  --h3-size: 2.5rem;     /* 40px */
  --h3-lh: 1.2;
  --h4-size: 2rem;       /* 32px */
  --h4-lh: 1.3;
  --h5-size: 1.5rem;     /* 24px */
  --h5-lh: 1.3;
  --h6-size: 1.25rem;    /* 20px */
  --h6-lh: 1.3;
  --tagline-size: 1rem;  /* 16px */
  --tagline-lh: 1.3;

  /* --------------------------------------------------------------------------
     Body Text Sizes
     -------------------------------------------------------------------------- */
  --text-lg: 1.25rem;    /* 20px */
  --text-lg-lh: 1.5;
  --text-md: 1.125rem;   /* 18px */
  --text-md-lh: 1.5;
  --text-base: 1rem;     /* 16px */
  --text-base-lh: 1.5;
  --text-sm: 0.875rem;   /* 14px */
  --text-sm-lh: 1.4;
  --text-xs: 0.75rem;    /* 12px */
  --text-xs-lh: 1.3;
}

/* --------------------------------------------------------------------------
   Base Typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--text-base-lh);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Headings — Desktop (default)
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--font-weight-bold);
}

h4, .h4 {
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--font-weight-bold);
}

h5, .h5 {
  font-size: var(--h5-size);
  line-height: var(--h5-lh);
  font-weight: var(--font-weight-bold);
}

h6, .h6 {
  font-size: var(--h6-size);
  line-height: var(--h6-lh);
  font-weight: var(--font-weight-bold);
}

.tagline {
  font-size: var(--tagline-size);
  line-height: var(--tagline-lh);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Headings — Mobile (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.5rem;   /* 40px */
  }

  h2, .h2 {
    font-size: 2.25rem;  /* 36px */
  }

  h3, .h3 {
    font-size: 2rem;     /* 32px */
  }

  h4, .h4 {
    font-size: 1.5rem;   /* 24px */
  }

  h5, .h5 {
    font-size: 1.25rem;  /* 20px */
  }

  h6, .h6 {
    font-size: 1.125rem; /* 18px */
  }
}

/* --------------------------------------------------------------------------
   Body Text Utility Classes
   -------------------------------------------------------------------------- */
.text-lg {
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
}

.text-md {
  font-size: var(--text-md);
  line-height: var(--text-md-lh);
}

.text-base {
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--text-xs-lh);
}

/* --------------------------------------------------------------------------
   Font Weight Utility Classes
   -------------------------------------------------------------------------- */
.font-light     { font-weight: var(--font-weight-light); }
.font-normal    { font-weight: var(--font-weight-normal); }
.font-medium    { font-weight: var(--font-weight-medium); }
.font-semibold  { font-weight: var(--font-weight-semibold); }
.font-bold      { font-weight: var(--font-weight-bold); }
.font-black     { font-weight: var(--font-weight-black); }
