/*
 * Crafts Software Market UAE - design tokens.
 * Light theme only. Solid colours only (no gradients). Every text/background pair used by the components is
 * verified by `php tools/contrast.php` (WCAG 2.2 AA); do not change a colour without re-running it.
 * Accent rule: use --<name> for fills and large graphics, --<name>-ink for TEXT and icons on white or soft tints,
 * --<name>-soft for tinted backgrounds. White text goes on --<name>-ink or --blue/--violet only.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-var.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-var.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; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-var.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; }

:root {
  color-scheme: light;

  /* Base surfaces and text */
  --white: #FFFFFF;
  --ivory: #FAFAF7;
  --gray-50: #F3F5F9;
  --gray-100: #E8ECF3;
  --line: #DCE2EB;            /* decorative dividers only */
  --line-strong: #8190A5;     /* borders of controls (3:1 on white) */
  --text: #243247;
  --text-muted: #64748B;      /* white and ivory surfaces only */
  --text-subtle: #55657B;     /* use on --gray-50 / tinted surfaces */

  /* Accents (spec palette) with text-safe ink and tint variants */
  --blue: #2563EB;   --blue-ink: #1E4FC0;   --blue-soft: #E5ECFD;
  --violet: #7C3AED; --violet-ink: #6D28D9; --violet-soft: #EFE7FD;
  --teal: #0D9488;   --teal-ink: #0A736A;   --teal-soft: #E2F2F1;
  --coral: #F97360;  --coral-ink: #A94E41;  --coral-soft: #FEEEEC;
  --amber: #F59E0B;  --amber-ink: #935F07;  --amber-soft: #FEF3E2;
  --pink: #EC4899;   --pink-ink: #B33774;   --pink-soft: #FDE9F3;
  --emerald: #16A34A; --emerald-ink: #107937; --emerald-soft: #E3F4E9;
  --sky: #0EA5E9;    --sky-ink: #0A709E;    --sky-soft: #E2F4FC;

  /* Semantic */
  --success-ink: var(--emerald-ink); --success-soft: var(--emerald-soft);
  --warning-ink: var(--amber-ink);   --warning-soft: var(--amber-soft);
  --danger: #B42318; --danger-ink: #B42318; --danger-soft: #FEF3F2;
  --info-ink: var(--sky-ink);        --info-soft: var(--sky-soft);
  --focus: #1D4ED8;

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-product: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-caption: .8125rem;
  --fs-button: .9375rem;
  --fs-label: .875rem;
  --fs-nav: .9375rem;
  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.6;

  /* Spacing (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  /* Shape and elevation */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(36, 50, 71, .06), 0 1px 1px rgba(36, 50, 71, .04);
  --shadow-2: 0 4px 12px rgba(36, 50, 71, .08), 0 1px 3px rgba(36, 50, 71, .06);
  --shadow-3: 0 16px 40px rgba(36, 50, 71, .12), 0 4px 10px rgba(36, 50, 71, .06);
  --overlay: rgba(36, 50, 71, .45);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 68px;
  --tap: 44px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;

  /* Layers */
  --z-header: 40; --z-sheet: 60; --z-modal: 70; --z-toast: 80;
}
