/* ==========================================================================
   MAGNETIQ V2 : LOCAL FONTS
   All faces are self hosted woff2 in this folder. Nothing is fetched from a
   CDN, so the whole site renders identically offline.

   Families exposed:
     'Instrument Serif'    static 400 normal + 400 italic   (editorial cut)
     'Bricolage Grotesque' variable wght 200..800, opsz 12..96 (display)
     'Geist'               variable wght 100..900           (body)
     'Geist Mono'          variable wght 100..900           (labels, counters)

   Subsets: each family ships a "latin" and a "latin-ext" file. The
   unicode-range on each face lets the browser skip the ext file entirely for
   plain English pages, which keeps first paint cheap.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. INSTRUMENT SERIF : static, 400 only, roman + italic
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Instrument Serif';
  src: url('./InstrumentSerif-normal-latin.woff2') format('woff2');
  font-weight: 400;
  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: 'Instrument Serif';
  src: url('./InstrumentSerif-normal-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'Instrument Serif';
  src: url('./InstrumentSerif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  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: 'Instrument Serif';
  src: url('./InstrumentSerif-italic-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}

/* --------------------------------------------------------------------------
   2. BRICOLAGE GROTESQUE : variable display face
   Axes: wght 200..800, opsz 12..96.
   The woff2-variations hint comes first so engines that understand it pick the
   variable path, and the plain woff2 format keeps older engines working.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('./Bricolage-normal-latin.woff2') format('woff2-variations'),
       url('./Bricolage-normal-latin.woff2') format('woff2');
  font-weight: 200 800;
  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: 'Bricolage Grotesque';
  src: url('./Bricolage-normal-latin-ext.woff2') format('woff2-variations'),
       url('./Bricolage-normal-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}

/* --------------------------------------------------------------------------
   3. GEIST : variable body face, wght 100..900
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Geist';
  src: url('./Geist-normal-latin.woff2') format('woff2-variations'),
       url('./Geist-normal-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: 'Geist';
  src: url('./Geist-normal-latin-ext.woff2') format('woff2-variations'),
       url('./Geist-normal-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* --------------------------------------------------------------------------
   4. GEIST MONO : variable technical face, wght 100..900
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Geist Mono';
  src: url('./GeistMono-normal-latin.woff2') format('woff2-variations'),
       url('./GeistMono-normal-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: 'Geist Mono';
  src: url('./GeistMono-normal-latin-ext.woff2') format('woff2-variations'),
       url('./GeistMono-normal-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* --------------------------------------------------------------------------
   5. VARIABLE FONT DEFAULTS
   Optical sizing is on globally so Bricolage picks a sane opsz at body sizes.
   Headline rules in core.css override it with an explicit
   font-variation-settings:'opsz' 96,'wght' 500.
   -------------------------------------------------------------------------- */

html {
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

/* Progressive enhancement hook: only elements that opt in get axis control. */
@supports (font-variation-settings: 'wght' 400) {
  .vf-display { font-variation-settings: 'opsz' 96, 'wght' 500; }
  .vf-title   { font-variation-settings: 'opsz' 48, 'wght' 500; }
  .vf-ui      { font-variation-settings: 'opsz' 14, 'wght' 500; }
}
