/* ============================================================================
   COFFEEBOX WEBSHOP — typsnitten
   Speglar coffeebox.se:s @font-face-regler (synkade 2026-11-02). Enda skillnaden
   är sökvägen: sajten serverar från /assets/fonts/, butiken från ../fonts/.
   Filerna är länkade, inte inbakade som base64: CSS:en blir ~3 KB i stället för
   ~590 KB, och Gotham och Gotham Text delar samma cachade fil.

   ⚠️ FILERNA ÄR LICENSIERADE. Familjen Grotesk och JetBrains Mono är SIL Open
   Font License. Gotham och Noe Display är KÖPTA licenser som Coffeebox äger —
   de får serveras från Coffeebox egna domäner och ingen annan. Flyttas butiken
   till en tredjepartsplattform måste licensen kontrolleras om.

   VIKTER SOM FAKTISKT ANVÄNDS I BUTIKEN
     Gotham Text 400/500/600/700 — bröd och UI (--font-sans), som på sajten
     Gotham 500/700/800 · JetBrains 400/500
     Noe Display 500 — EN plats i hela butiken: startsidans hjälte (skal.css §30).
     Familjen Grotesk laddas som fallback-familj för Noe (metrikmatchad).
   ========================================================================== */

@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/familjen-500.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/familjen-600.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/familjen-700.woff2") format("woff2"); }

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

/* Gotham — rubrik- och eyebrow-rösten (Roberts beslut 2026-07-15, sitewide).
   600 pekar medvetet på 500-filen; så gör sajten också. */
@font-face { font-family: "Gotham"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gotham-400.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/gotham-500.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/gotham-500.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/gotham-700.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/gotham-800.woff2") format("woff2"); }

/* Gotham Text — brödrösten. Samma filer som Gotham, nedskalade med size-adjust
   så att en 16 px-brödtext har samma visuella grad som sajtens. Värdena är
   sajtens egna; ändra dem där, inte här. */
@font-face { font-family: "Gotham Text"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 91.2%;  src: url("../fonts/gotham-400.woff2") format("woff2"); }
@font-face { font-family: "Gotham Text"; font-style: normal; font-weight: 500; font-display: swap; size-adjust: 91.55%; src: url("../fonts/gotham-500.woff2") format("woff2"); }
@font-face { font-family: "Gotham Text"; font-style: normal; font-weight: 600; font-display: swap; size-adjust: 92.8%;  src: url("../fonts/gotham-500.woff2") format("woff2"); }
@font-face { font-family: "Gotham Text"; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 91.55%; src: url("../fonts/gotham-700.woff2") format("woff2"); }

@font-face { font-family: "Noe Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/noe-display-500.woff2") format("woff2"); }

/* Metrikmatchad fallback för Noe — familjen-700 omskuren med size-adjust så att
   den fyller Noe Display 500:s exakta box. Bytet flyttar därmed ingenting (0 CLS). */
@font-face {
  font-family: "Noe Fallback";
  src: url("../fonts/familjen-700.woff2") format("woff2");
  font-display: swap;
  size-adjust: 96.54%;
  ascent-override: 104.31%;
  descent-override: 27.86%;
  line-gap-override: 0%;
}
