/* WageGulf design tokens. The ONLY place raw colours and scale values live.
   app.css uses these through var(). Dark mode overrides semantic tokens only. */

/* fonts:start (written by npm run fonts) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght.woff2') format('woff2-variations'), url('../fonts/inter-latin-wght.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: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 100 500;
  src: url('../fonts/ibm-plex-sans-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 501 900;
  src: url('../fonts/ibm-plex-sans-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Inter Fallback";
  font-weight: 100 450;
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.51%;
  ascent-override: 90.96%;
  descent-override: 22.65%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter Fallback";
  font-weight: 451 550;
  src: local("Arial"), local("ArialMT");
  size-adjust: 107.54%;
  ascent-override: 90.08%;
  descent-override: 22.43%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter Fallback";
  font-weight: 551 650;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 100.97%;
  ascent-override: 95.95%;
  descent-override: 23.89%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter Fallback";
  font-weight: 651 750;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 101.91%;
  ascent-override: 95.06%;
  descent-override: 23.67%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter Fallback";
  font-weight: 751 900;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 103.08%;
  ascent-override: 93.98%;
  descent-override: 23.40%;
  line-gap-override: 0%;
}

/* fonts:end */

:root {
  /* ---- brand palette ---- */
  --teal: #0B6E5F;
  --teal-dark: #08594D;
  --ink-green: #0F1F1C;
  --sand: #E3B35A;
  --white: #FFFFFF;

  /* ---- semantic colours: light ---- */
  --bg: var(--white);
  --surface: var(--white);
  --surface-2: #F4F8F7;
  --surface-3: #E6EFEC;
  --text: var(--ink-green);
  --text-2: #3B4A46;
  --text-3: #55645F;
  --border: #D5E0DC;
  --border-strong: #7A8F88;
  --brand-ink: var(--ink-green);
  --brand-accent: var(--teal);
  --accent: var(--teal);
  --accent-hover: var(--teal-dark);
  --accent-soft: #E3F2EE;
  --accent-ring: rgba(11, 110, 95, .2);
  --on-accent: var(--white);
  --sand-soft: #FBF3E2;
  --on-sand-soft: #6B4A0B;
  --success: #1F7A4D;
  --success-soft: #E5F4EC;
  --danger: #B42332;
  --danger-soft: #FDEBEC;
  --warn: #8A5A0B;
  --warn-soft: #FFF5DF;
  --info: #2F5FB8;
  --info-soft: #EAF0FF;
  --overlay: rgba(15, 31, 28, .45);

  /* ---- typography ---- */
  --font: 'Inter', 'IBM Plex Sans Arabic', 'Inter Fallback', Arial, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;
  --fs-4xl: 38px;
  --fs-lead: clamp(17px, 1.8vw, 20px);
  --fs-display-3: clamp(26px, 3vw, 36px);
  --fs-display-2: clamp(30px, 3.8vw, 44px);
  --fs-display-1: clamp(34px, 5vw, 58px);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --ls-tight: -.03em;
  --ls-snug: -.015em;
  --ls-wide: .04em;

  /* ---- spacing (4px grid, with 2/6/10 half-steps) ---- */
  --sp-0-5: 2px;
  --sp-1: 4px;
  --sp-1-5: 6px;
  --sp-2: 8px;
  --sp-2-5: 10px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-22: 88px;

  /* ---- radius ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* ---- elevation ---- */
  --shadow-sm: 0 1px 2px rgba(15, 31, 28, .06), 0 1px 1px rgba(15, 31, 28, .04);
  --shadow: 0 10px 28px -18px rgba(15, 31, 28, .3);
  --shadow-lg: 0 24px 60px -24px rgba(15, 31, 28, .35);

  /* ---- motion ---- */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 120ms;
  --dur: 200ms;

  /* ---- layout ---- */
  --container: 1160px;
  --measure: 72ch;
  --header-h: 64px;

  /* ---- breakpoints (reference only; media queries cannot read variables) ----
     lg: max-width 1100px · md: max-width 860px · sm: max-width 560px · xs: max-width 360px */
  color-scheme: light;
}

[data-theme=dark] {
  --bg: #0E1513;
  --surface: #16201D;
  --surface-2: #121B18;
  --surface-3: #22302C;
  --text: #E8F0ED;
  --text-2: #C2CFCA;
  --text-3: #9DADA7;
  --border: #2C3B37;
  --border-strong: #6A807A;
  --brand-ink: #E8F0ED;
  --brand-accent: #5CC8B0;
  --accent: #5CC8B0;
  --accent-hover: #7FD8C4;
  --accent-soft: #173A33;
  --accent-ring: rgba(92, 200, 176, .25);
  --on-accent: #0E1513;
  --sand-soft: #35301F;
  --on-sand-soft: #F0D08F;
  --success: #7FD4A6;
  --success-soft: #1D3A2B;
  --danger: #FF9BA6;
  --danger-soft: #40282C;
  --warn: #F7C46C;
  --warn-soft: #3B3222;
  --info: #A2BBFF;
  --info-soft: #26344D;
  --overlay: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
