/* ===========================================================================
   You & Me — self-hosted brand fonts (NO CDN).
   Roboto (UI/body) + Roboto Condensed (display/titles), used app-wide.
   Space Grotesk: the intro only. Jost ExtraBold: the group name under the logo
   in a large group's header only (design brief "01/ Polices", 2026-09-13).
   Faces cost nothing until a rule uses them -- the browser fetches a file only
   when text actually needs that family and weight.
   Subset: latin + latin-ext (covers French accents and œ).
   Files live in app/assets/fonts/ and are resolved/fingerprinted by Propshaft,
   mirroring the lineicons.css pattern already used in this app.
   =========================================================================== */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/roboto-regular-81065af6.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/roboto-italic-3a60566a.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/roboto-500-e26029b8.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/roboto-700-6b898fa4.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/roboto-condensed-regular-ac9899f6.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/roboto-condensed-500-fc5ebaef.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/roboto-condensed-600-ab9101fe.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/roboto-condensed-700-78ff4d98.woff2") format("woff2");
}

/* Space Grotesk and Jost ship as the .ttf files the design team supplied, not
   woff2: no converter is installed here, and fetching one was not agreed. They
   are ~2-3x the size of an equivalent woff2, but load only on the intro and a
   group header. Convert them if either screen turns out to be heavy. */
/* One glyph, borrowed from Roboto.
   Space Grotesk draws its ampersand as an open, almost calligraphic loop that
   several readers did not recognise as "&" on the intro screens (recette
   2026-10-10). Rather than change the typeface of the whole screen, this family
   carries Roboto restricted to U+0026: placed before "Space Grotesk" in a font
   stack, the browser takes the ampersand here and every other character from
   the family behind it. The files are the ones already loaded elsewhere in the
   app, so this costs no extra download on a page that shows text.
   `block`, not `swap`: the face is fetched only when an ampersand first shows,
   so `swap` painted Space Grotesk's glyph for the length of that download and
   then replaced it -- the very "&" this exists to avoid, plus a jump. Hidden
   for those few milliseconds is better than wrong (recette 2026-10-13). */
@font-face {
  font-family: "YM Ampersand";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/roboto-regular-81065af6.woff2") format("woff2");
  unicode-range: U+0026;
}
@font-face {
  font-family: "YM Ampersand";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("/assets/roboto-500-e26029b8.woff2") format("woff2");
  unicode-range: U+0026;
}
@font-face {
  font-family: "YM Ampersand";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("/assets/roboto-700-6b898fa4.woff2") format("woff2");
  unicode-range: U+0026;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/space-grotesk-regular-5d631ebc.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/space-grotesk-700-08442edd.ttf") format("truetype");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/jost-800-407e52bc.ttf") format("truetype");
}
