/* ============================================================================
   GOTOTHERAPY — SELF-HOSTED WEBFONTS

   The mockup loaded both families from fonts.googleapis.com. Three reasons that
   does not survive into production:

   1. Performance. It costs a DNS lookup, a TLS handshake and a render-blocking
      stylesheet on a third-party origin before a single glyph is requested.
      Self-hosted woff2 with a preload removes the whole chain, and is typically
      worth 300–600ms on the LCP of a first visit on 4G.
   2. Data protection. Requesting a font from Google transmits the visitor's IP
      address to a third country. On a site where the visit itself reveals a
      mental health concern — special category data under UK GDPR, as the plan's
      own compliance section notes — that is an avoidable transfer.
   3. Stability. The brand depends on exactly two families. A third-party outage
      should not change what the brand looks like.

   Both families are open source: Instrument Serif and Schibsted Grotesk are
   published under the SIL Open Font License 1.1, which permits self-hosting.

   HOW TO POPULATE assets/fonts/
   -----------------------------
     1. Download the families from fonts.google.com (Get font > Download all).
     2. Convert the .ttf files to woff2 — either with the Google woff2 tools
        (woff2_compress Instrument-Serif-Regular.ttf) or through any offline
        converter.
     3. Subset to Latin + Latin Extended if you can; the copy is British English
        and the full Unicode range is roughly 3x the bytes for no benefit.
     4. Name them exactly as below and drop them in assets/fonts/.

   Until the files exist the @font-face rules simply fail and the declared
   fallbacks — Georgia for display, Helvetica Neue for UI — take over. Those are
   the fallbacks the brand document specifies, so nothing breaks visually.
   ========================================================================== */

/* Instrument Serif — display only. Regular and Italic. Never below 18px, never
   bolded: the family has no bold and synthetic bold is prohibited. */
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-400.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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-400-italic.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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* Schibsted Grotesk — interface and body. Variable file covers 400/500/600/700
   in one request. If you only have static files, replace this block with four
   @font-face rules and update the filenames. */
@font-face {
	font-family: "Schibsted Grotesk";
	src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2-variations");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
