/*
==============================================================
FONTS . TurnerLee . TLC 5.1
==============================================================
Self-hosted @font-face declarations. The Brand Fonts CM holds
the family + fallback values (so Liquid renders the right
shorthand into --font1..--font6); this file makes the actual
font binaries available to the browser.

Fonts referenced from the Brand Fonts CM:
  - HypatiaSans  -> /brand-fonts/hypatia-sans (--fontPrimary)
  - Handwriting  -> /brand-fonts/handwriting  (--fontAccent)
  - Open Sans    -> /brand-fonts/open-sans    (--fontBody, loaded via Google CDN)
==============================================================
*/

/* ── Hypatia Sans — Light (300) ── */
@font-face {
  font-family: 'HypatiaSans';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF;
  src: local('Hypatia Sans Light'),
       url('/fonts/HypatiaLight.woff2') format('woff2'),
       url('/fonts/HypatiaLight.woff')  format('woff');
}

/* ── Hypatia Sans — Regular (400) — also synthesises italic for Font4 ── */
@font-face {
  font-family: 'HypatiaSans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF;
  src: local('Hypatia Sans Regular'),
       url('/fonts/hypatia.woff') format('woff'),
       url('/fonts/hypatia.ttf')  format('truetype');
}

/* ── Hypatia Sans — Black (900) — also serves any 600+ weight request ── */
@font-face {
  font-family: 'HypatiaSans';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF;
  src: local('Hypatia Sans Black'),
       url('/fonts/HypatiaBlack.woff2') format('woff2'),
       url('/fonts/HypatiaBlack.woff')  format('woff');
}

/* ── Handwriting (script accent) — single weight ── */
@font-face {
  font-family: 'Handwriting';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF;
  src: local('Handwriting'),
       url('/fonts/handkw.woff') format('woff'),
       url('/fonts/handkw.ttf')  format('truetype'),
       url('/fonts/handkw.eot');
}

/* ── Font utility classes (driven by --font1..--font6 set in All-ApplyVariables) ── */
.fontPrimary, .font0a {
  font: var(--fontPrimary) !important;
}
.fontSecondary, .font0b {
  font: var(--fontSecondary) !important;
}
.font1, .fontRegular {
  font: var(--font1) !important;
}
.font2, .fontThin {
  font: var(--font2) !important;
}
.font3, .fontBold {
  font: var(--font3) !important;
}
.font4, .fontItalic {
  font: var(--font4) !important;
}
.font5, .fontXBold {
  font: var(--font5) !important;
}
.font6, .fontStyled {
  font: var(--font6) !important;
}

@media (max-width: 768px) {
  .font4 {
    word-spacing: -0.25rem;
  }
}

.Arial { font-family: Arial, Verdana, sans-serif; }
.Times { font-family: Times, "Times New Roman", serif; }
