/*
  Gingham DS brand fonts — self-hosted, zero external requests at runtime.

  Files live in public/fonts/ (latin woff2 subsets; per-font source URLs,
  versions, and SIL OFL 1.1 licenses are recorded in public/fonts/README.md).

  Family names must match the --font-* stacks in burke-tokens.css EXACTLY:
    'Spectral'         — display serif (--font-serif / --font-display)
    'Hanken Grotesk'   — UI sans       (--font-sans  / --font-body)
    'Spline Sans Mono' — machinery     (--font-mono  / --font-data)
  Do not rename here without updating the token stacks.

  local() sources come first so a user-installed copy wins over the bundled
  file. The privacy invariant (no http(s) font sources anywhere) is pinned by
  tests/unit/shared/css/fonts-self-hosted.test.js — keep absolute URLs out of
  this file, comments included.
*/

/* ---- Spectral — display serif ---- */

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Spectral Light'), local('Spectral-Light'),
       url('/fonts/spectral-v15-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Spectral'), local('Spectral-Regular'),
       url('/fonts/spectral-v15-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Spectral Italic'), local('Spectral-Italic'),
       url('/fonts/spectral-v15-latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Spectral Medium'), local('Spectral-Medium'),
       url('/fonts/spectral-v15-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: local('Spectral Medium Italic'), local('Spectral-MediumItalic'),
       url('/fonts/spectral-v15-latin-500italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Spectral SemiBold'), local('Spectral-SemiBold'),
       url('/fonts/spectral-v15-latin-600.woff2') format('woff2');
}

/* ---- Hanken Grotesk — UI sans ---- */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Hanken Grotesk'), local('HankenGrotesk-Regular'),
       url('/fonts/hanken-grotesk-v12-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Hanken Grotesk Medium'), local('HankenGrotesk-Medium'),
       url('/fonts/hanken-grotesk-v12-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Hanken Grotesk SemiBold'), local('HankenGrotesk-SemiBold'),
       url('/fonts/hanken-grotesk-v12-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Hanken Grotesk Bold'), local('HankenGrotesk-Bold'),
       url('/fonts/hanken-grotesk-v12-latin-700.woff2') format('woff2');
}

/* ---- Spline Sans Mono — machinery ---- */

@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Spline Sans Mono'), local('SplineSansMono-Regular'),
       url('/fonts/spline-sans-mono-v13-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Spline Sans Mono Medium'), local('SplineSansMono-Medium'),
       url('/fonts/spline-sans-mono-v13-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Spline Sans Mono SemiBold'), local('SplineSansMono-SemiBold'),
       url('/fonts/spline-sans-mono-v13-latin-600.woff2') format('woff2');
}
