/* web/fonts.css -- self-hosted brand typefaces for /today (and the dormant
 * account page).
 *
 * Replaces the Google Fonts <link> these pages used to carry, which sent every
 * visitor's IP address to Google (Margin Compendium audit 2026-11-01, MC-21).
 * The binaries in web/fonts/ are byte-identical copies of extension/fonts/
 * (server/tests/test_almanac_today.py pins that), and the faces are EXACTLY the
 * set the old Google URL asked for, so nothing renders differently:
 *
 *   - Crimson Pro    400 / 500 / 600 / 700 + italic 400
 *   - JetBrains Mono 400 / 500
 *   - Caveat         400 / 700
 *
 * (extension/fonts.css also has Crimson Pro italic 500; /today never asked
 * Google for it, so it is left out here: adding it would change how 500-weight
 * italic text renders.)
 *
 * font-display: swap, woff2 only, path-relative -- never a remote URL. The
 * CSP's font-src allows only this host's /today/ path. Every file here is in
 * deploy/Caddyfile's @today list and in the signed bundle
 * (tools/sign_today_bundle.py FILES). OFL 1.1: web/fonts/OFL.txt.
 */

/* ---- Crimson Pro -------------------------------------------------- */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/crimson-pro-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/crimson-pro-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/crimson-pro-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimson-pro-400-italic.woff2') format('woff2');
}

/* ---- JetBrains Mono ----------------------------------------------- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* ---- Caveat ------------------------------------------------------- */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/caveat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/caveat-700.woff2') format('woff2');
}
