/* sablier's design tokens, served at /tokens.css to the site, docs and web app */

@font-face {
	font-family: "Rubik";
	src: url("/fonts/rubik-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 900;
	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;
}
@font-face {
	font-family: "Rubik";
	src: url("/fonts/rubik-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 300 900;
	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: "IBM Plex Mono";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("/fonts/ibm-plex-mono-var-roman.woff2") format("woff2-variations");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("/fonts/ibm-plex-mono-var-italic.woff2") format("woff2-variations");
}
:root {
	--font-text: "Rubik", system-ui, sans-serif;
	--font-heading: var(--font-text);
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--hue-primary: 355; /* pink, like the personal site */
	--hue-success: 145;
	--hue-danger: 25;
	--hue-warning: 75;
	--hue-info: 240;

	--radius: 0.5rem;
	--radius-small: 2px;
}

:root {
	--color-canvas: oklch(98% 0.01 var(--hue-primary));
	--color-surface: oklch(100% 0 var(--hue-primary));
	--color-ink: oklch(20% 0.02 var(--hue-primary));
	--color-muted: oklch(55% 0.02 var(--hue-primary));
	--color-border: oklch(90% 0.02 var(--hue-primary));

	--color-accent: oklch(55% 0.17 var(--hue-primary));
	--color-success: oklch(52% 0.18 var(--hue-success));
	--color-danger: oklch(52% 0.22 var(--hue-danger));
	--color-warning: oklch(62% 0.18 var(--hue-warning));
	--color-info: oklch(55% 0.18 var(--hue-info));

	--color-surface-hover: color-mix(in oklch, var(--color-surface), var(--color-ink) 5%);

	color-scheme: light;
}
