/* Faces for the calm app theme, linked from src/app.html (and imported by .storybook/preview.ts).

   A plain static stylesheet on purpose: in `vite dev`, CSS imported from Svelte files is first inlined
   by SvelteKit's SSR, then re-injected by Vite's client after hydration. Re-declaring these @font-face
   rules makes the browser treat the faces as not loaded yet, so with font-display: block every line of
   text blanked out a second time. Linked from the HTML, they're declared once, the same in dev and prod.

   Gloock, Source Serif 4 and IBM Plex Mono (Latin and Latin-ext subsets, copied from Fontsource; OFL
   licenses alongside) at fixed URLs, so app.html can also preload them. font-display: block: text waits
   for them (up to 3s) instead of painting in a system font and reflowing when they land. Renamed files
   bust the cache if a face ever changes. */

/* gloock-latin-ext-400-normal */
@font-face {
	font-family: 'Gloock';
	font-style: normal;
	font-display: block;
	font-weight: 400;
	src: url(/fonts/gloock-latin-ext-400-normal.woff2) format('woff2');
	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;
}

/* gloock-latin-400-normal */
@font-face {
	font-family: 'Gloock';
	font-style: normal;
	font-display: block;
	font-weight: 400;
	src: url(/fonts/gloock-latin-400-normal.woff2) format('woff2');
	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;
}

/* source-serif-4-latin-ext-opsz-normal */
@font-face {
	font-family: 'Source Serif 4 Variable';
	font-style: normal;
	font-display: block;
	font-weight: 200 900;
	src: url(/fonts/source-serif-4-latin-ext-opsz-normal.woff2) format('woff2-variations');
	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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-opsz-normal */
@font-face {
	font-family: 'Source Serif 4 Variable';
	font-style: normal;
	font-display: block;
	font-weight: 200 900;
	src: url(/fonts/source-serif-4-latin-opsz-normal.woff2) format('woff2-variations');
	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;
}

/* source-serif-4-latin-ext-opsz-italic */
@font-face {
	font-family: 'Source Serif 4 Variable';
	font-style: italic;
	font-display: block;
	font-weight: 200 900;
	src: url(/fonts/source-serif-4-latin-ext-opsz-italic.woff2) format('woff2-variations');
	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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-opsz-italic */
@font-face {
	font-family: 'Source Serif 4 Variable';
	font-style: italic;
	font-display: block;
	font-weight: 200 900;
	src: url(/fonts/source-serif-4-latin-opsz-italic.woff2) format('woff2-variations');
	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;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: block;
	font-weight: 400;
	src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
	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;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: block;
	font-weight: 400;
	src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
	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;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: block;
	font-weight: 500;
	src: url(/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');
	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;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: block;
	font-weight: 500;
	src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
	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;
}

/* ibm-plex-mono-latin-ext-600-normal */
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: block;
	font-weight: 600;
	src: url(/fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format('woff2');
	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;
}

/* ibm-plex-mono-latin-600-normal */
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: block;
	font-weight: 600;
	src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2');
	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;
}

/* Metric-matched stand-ins, used only if a face above takes longer than the 3s block period. Georgia
   scaled to Gloock's / Source Serif 4's average glyph width and line box, so even that late swap
   barely moves text.
   Numbers from @capsizecss/metrics: size-adjust = xWidthAvg ratio; overrides = metric / size-adjust. */
@font-face {
	font-family: 'Gloock Fallback';
	src: local('Georgia');
	size-adjust: 104.75%;
	ascent-override: 93.08%;
	descent-override: 21.48%;
	line-gap-override: 0%;
}
@font-face {
	font-family: 'Source Serif 4 Fallback';
	src: local('Georgia');
	size-adjust: 107.45%;
	ascent-override: 96.42%;
	descent-override: 31.18%;
	line-gap-override: 0%;
}
