/* Design tokens of the Makia site. Every colour, size, radius and shadow used by the pages comes from here.
   Dark violet paper, one violet for interaction, one pink (the logo's) for the single main action.
   Each product (launcher, client, server) re-tints the interaction colour through body[data-product], see the end of this file. */

@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("/vendor/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("/vendor/fonts/vazirmatn-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 600; font-display: swap; src: url("/vendor/fonts/vazirmatn-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("/vendor/fonts/vazirmatn-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("/vendor/fonts/vazirmatn-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("/vendor/fonts/vazirmatn-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-weight: 600; font-display: swap; src: url("/vendor/fonts/vazirmatn-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("/vendor/fonts/vazirmatn-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Markazi Text"; font-weight: 400; font-display: swap; src: url("/vendor/fonts/markazi-text-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Markazi Text"; font-weight: 400; font-display: swap; src: url("/vendor/fonts/markazi-text-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Markazi Text"; font-weight: 500; font-display: swap; src: url("/vendor/fonts/markazi-text-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Markazi Text"; font-weight: 500; font-display: swap; src: url("/vendor/fonts/markazi-text-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Markazi Text"; font-weight: 600; font-display: swap; src: url("/vendor/fonts/markazi-text-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Markazi Text"; font-weight: 600; font-display: swap; src: url("/vendor/fonts/markazi-text-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Markazi Text"; font-weight: 700; font-display: swap; src: url("/vendor/fonts/markazi-text-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Markazi Text"; font-weight: 700; font-display: swap; src: url("/vendor/fonts/markazi-text-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
	color-scheme: dark;

	/* Surfaces: the near black violet paper and the washes that sit on it, each a step lighter. */
	--paper: #0e0919;
	--mist-1: #171025;
	--mist-2: #20173a;
	--mist-3: #2d2150;
	--lilac: #6f5bb8;
	--card: #1a1230;

	/* Ink: text colours. ink-3 is the quietest that still passes AA on paper and on cards. */
	--ink: #f3edff;
	--ink-2: #cfc4ee;
	--ink-3: #a99dcf;

	/* Violet carries interaction (links, focus, selected). Pink is the logo's colour and marks the one main action. */
	--violet: #b9a2ff;
	--violet-deep: #d6c9ff;
	--violet-soft: #2c2052;
	--pink: #e0157a;
	--pink-deep: #ff7ab4;
	--pink-hover: #f0328f;
	--pink-soft: #3b1233;

	/* Meaning colours, all AA as text on paper and on cards. */
	--ok: #5fd8b4;
	--warn: #ffb65c;
	--bad: #ff8078;
	--ok-soft: #12352c;
	--warn-soft: #3a2a10;
	--bad-soft: #3e1714;

	/* Rarity: the only place the palette leaves violet. Lifted so they read on dark cards. */
	--rarity-common: #aa9dd2;
	--rarity-uncommon: #4fd1a5;
	--rarity-rare: #6ea0ff;
	--rarity-epic: #c56dff;
	--rarity-legendary: #ffb547;

	/* Type. Markazi Text is the display face for headings and the wordmark; Vazirmatn carries body text and controls. */
	--font-text: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
	--font-display: "Markazi Text", "Vazirmatn", serif;
	--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--t-xs: 0.8125rem;
	--t-sm: 0.9375rem;
	--t-base: 1.0625rem;
	--t-md: 1.3125rem;
	--t-lg: 2rem;
	--t-xl: 2.75rem;
	--t-2xl: 3.75rem;
	--t-3xl: 5.25rem;
	--t-hero: clamp(6rem, 15vw, 12.5rem);

	/* Space, in steps that are visibly different. */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 24px;
	--s-6: 32px;
	--s-7: 48px;
	--s-8: 72px;
	--s-9: 112px;
	--gutter: clamp(16px, 4vw, 40px);
	--wrap: 1240px;

	/* Shape: no radius above 22px on a card; the pill is for buttons and chips. */
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-pill: 999px;

	/* Depth on dark is a deep shadow plus a hairline of light on the top edge, never a border and a shadow together. */
	--shadow-1: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px -10px rgba(0, 0, 0, 0.7);
	--shadow-2: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 44px -16px rgba(0, 0, 0, 0.8);
	--shadow-3: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 8px rgba(0, 0, 0, 0.45), 0 34px 70px -22px rgba(0, 0, 0, 0.9);

	/* Motion: ease out only. */
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--d-1: 160ms;
	--d-2: 280ms;
	--d-3: 520ms;

	--head-h: 72px;
}

/* The products. The interaction colour (violet) is the only thing that changes, so every link, chip, focus ring and
   soft button follows the section it is in. The client keeps the brand violet; the launcher leans pink; the server is mint. */
body[data-product="launcher"] { --violet: #ff9ccb; --violet-deep: #ffc2de; --violet-soft: #3b1738; --lilac: #b04a86; }
body[data-product="server"] { --violet: #6fe3c8; --violet-deep: #aaf2e0; --violet-soft: #0f3a33; --lilac: #2f9a85; }
