/* Self-hosted storefront theme fonts — latin subsets, served from app/assets/fonts.
 * All five are SIL Open Font Licence; no external requests at runtime. Browsers
 * only download the faces the active theme's font pairing actually uses.
 * Weight ranges are declared even for single-master faces (Archivo Black) so the
 * browser never applies synthetic bold on top. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces-latin-2b4cdb3a.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk-latin-dfda626c.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-c2796eef.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Nunito is both a storefront theme face and the Pekkish brand's own text face
   (brand package v1), so it carries the full 200–1000 variable range and both
   Latin subsets. The unicode-ranges mean a page only pulls the ext subset when
   it actually renders an ext codepoint. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito-latin-a6de09cc.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The fallback Nunito swaps in over, shaped to Nunito's metrics so the swap
   moves nothing. Measured in Chrome against the real face (2026-09-18):
   Nunito's line box is 1.01em ascent / 0.35em descent to Arial's 0.91 / 0.21,
   and its regular runs 1.3% wider than Arial's while its bold runs 1.9%
   narrower — so one face per weight range. Without this, /post's copy
   re-wrapped by a line when Nunito arrived and the centred card jumped
   (Lighthouse CLS 0.20, the card growing 24px ~260ms in). Only Arial and
   Helvetica are shaped; Android's Roboto falls through unadjusted, as
   before. The brand stack names it after "Nunito". */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  font-weight: 100 500;
  size-adjust: 101.3%;
  ascent-override: 101%;
  descent-override: 35%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  font-weight: 501 1000;
  size-adjust: 98.1%;
  ascent-override: 101%;
  descent-override: 35%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito-latin-ext-6e74a3a2.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/archivo-black-latin-e6dca12e.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
