/* ==========================================================================
   Self-hosted fonts — drop-in replacement for the Google Fonts <link>.

   WHY: loading fonts from fonts.googleapis.com costs two extra DNS lookups
   and connections before any text can render, and the stylesheet is
   render-blocking. Self-hosting removes that from the critical path.
   It also stops visitor IPs being sent to Google on every page load.

   TO ACTIVATE (files are not included — see README-fonts.txt):
     1. Put the .woff2 files in  static/fonts/
     2. In layout.py, delete the three Google Fonts <link> lines
        and replace with:  <link rel="stylesheet" href="static/css/fonts.css">
        (keep it BEFORE main.css)
     3. Rebuild.

   font-display: swap  -> text shows immediately in a fallback face and
   swaps when the webfont arrives, so text is never invisible.
   ========================================================================== */

/* ---- Poppins (body / sans) ---- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

/* ---- Playfair Display (headings / serif) ---- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/playfair-900.woff2') format('woff2');
}
