/* -----------------------------------------------------------------------------
 * The Luxe Destination — self-hosted brand typefaces.
 *
 * Replaces the old third-party https://fonts.googleapis.com/css2?... enqueue.
 * That chain cost two extra DNS+TCP+TLS handshakes (googleapis, then gstatic)
 * before a single glyph could be requested, so every cold visit painted in
 * Georgia / Helvetica and then visibly re-flowed into Bodoni / Newsreader / Jost.
 * Served from our own origin these arrive with tld.css, and the three romans are
 * additionally <link rel=preload>-ed in functions.php, so the swap window closes
 * before first paint.
 *
 * Files: assets/fonts/*.woff2 — the latin / latin-ext variable subsets exactly as
 * Google served them, with the wght axis instanced down to the range this site
 * actually uses (see WGHT below). The opsz axis is kept at FULL range: the
 * stylesheets set 'opsz' explicitly from 16 up to 96 via font-variation-settings.
 * All three families are SIL Open Font License, so self-hosting is permitted.
 *
 * To refresh: re-run the download against the same css2 URL, keep the wght ranges.
 * -------------------------------------------------------------------------- */


@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/jost-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;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/jost-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: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodoni-moda-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;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodoni-moda-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: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodoni-moda-italic-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;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodoni-moda-italic-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: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-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;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-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: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-italic-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;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-italic-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;
}

/* -----------------------------------------------------------------------------
 * Metric-matched fallbacks.
 *
 * The romans are preloaded and beat first paint on cable and 4G, but on slow-4G
 * and 3G they cannot — 156 KB will not arrive in time at 200 KB/s, so fallback
 * text still gets painted and then swapped. These faces make that swap stop being
 * VISIBLE: Georgia / Arial are re-scaled to occupy the same box as the real font,
 * so glyph shapes change but nothing reflows, resizes or moves.
 *
 * Values are measured, not guessed — computed from the actual woff2 files with
 * fontTools against capsize's published Georgia/Arial metrics, using fontaine's
 * formula (size-adjust = xWidthAvg ratio; ascent/descent divided by that ratio).
 * The weighted-average implementation was validated against Liberation Sans,
 * which is metrically identical to Arial: it produced 915 vs capsize's 913 (+0.2%).
 * All three families set USE_TYPO_METRICS with hhea == sTypo, so the hhea numbers
 * used here are exactly the ones Chrome reads.
 *
 * line-gap-override is 0% deliberately: all three brand faces have lineGap 0, and
 * without this Arial's own lineGap of 67 would add stray leading.
 *
 * Recompute with tools/font-metrics.py if a font file is ever re-subset.
 * -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Bodoni Fallback';
  src: local('Georgia');
  size-adjust: 104.83%;
  ascent-override: 107.31%;
  descent-override: 38.16%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Newsreader Fallback';
  src: local('Georgia');
  size-adjust: 91.45%;
  ascent-override: 80.37%;
  descent-override: 28.98%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Jost Fallback';
  src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
  size-adjust: 95.91%;
  ascent-override: 111.57%;
  descent-override: 39.10%;
  line-gap-override: 0%;
}
