/* Barmajiyat (برمجيات) design tokens. Generated from tokens.json. Light is the default; dark via [data-theme="dark"] or the OS setting. */

@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root, [data-theme="light"] {
  color-scheme: light;
  --surface: #f4f6f5;
  --surface-raised: #ffffff;
  --surface-sunken: #e8edec;
  --line: #d3dbda;
  --line-strong: #7d8f92;
  --ink: #0b2a30;
  --ink-muted: #4f6467;
  --petrol: #0e3b43;
  --petrol-strong: #082a30;
  --petrol-soft: #ddeaea;
  --on-petrol: #ffffff;
  --coral: #c2410c;
  --coral-strong: #a3360a;
  --coral-soft: #fce9df;
  --on-coral: #ffffff;
  --success: #1f6b45;
  --warning: #8a5300;
  --danger: #a3123a;
  --info: #0e5a66;
  --focus: #c2410c;
  --shadow-sm: 0 1px 2px rgba(11,42,48,0.08);
  --shadow-md: 0 8px 24px rgba(11,42,48,0.12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --surface: #081a1e;
  --surface-raised: #0f252a;
  --surface-sunken: #051316;
  --line: #1f3a3f;
  --line-strong: #5e787c;
  --ink: #e6efee;
  --ink-muted: #9db3b5;
  --petrol: #7cc4ce;
  --petrol-strong: #a6dbe2;
  --petrol-soft: #12363d;
  --on-petrol: #04181c;
  --coral: #f47c4b;
  --coral-strong: #ff9d74;
  --coral-soft: #3a1a0e;
  --on-coral: #1a0904;
  --success: #6ccb98;
  --warning: #e6b04a;
  --danger: #f2708f;
  --info: #6fc0cc;
  --focus: #f47c4b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
      --surface: #081a1e;
      --surface-raised: #0f252a;
      --surface-sunken: #051316;
      --line: #1f3a3f;
      --line-strong: #5e787c;
      --ink: #e6efee;
      --ink-muted: #9db3b5;
      --petrol: #7cc4ce;
      --petrol-strong: #a6dbe2;
      --petrol-soft: #12363d;
      --on-petrol: #04181c;
      --coral: #f47c4b;
      --coral-strong: #ff9d74;
      --coral-soft: #3a1a0e;
      --on-coral: #1a0904;
      --success: #6ccb98;
      --warning: #e6b04a;
      --danger: #f2708f;
      --info: #6fc0cc;
      --focus: #f47c4b;
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
      --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
  }
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Type styles */
.display-xl { font-family: var(--font-sans); font-size: 56px; line-height: 72px; font-weight: 600; }
.display { font-family: var(--font-sans); font-size: 40px; line-height: 56px; font-weight: 600; }
.heading-1 { font-family: var(--font-sans); font-size: 32px; line-height: 48px; font-weight: 600; }
.heading-2 { font-family: var(--font-sans); font-size: 24px; line-height: 36px; font-weight: 600; }
.heading-3 { font-family: var(--font-sans); font-size: 20px; line-height: 32px; font-weight: 600; }
.body-lg { font-family: var(--font-sans); font-size: 18px; line-height: 32px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 28px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; }
.small { font-family: var(--font-sans); font-size: 14px; line-height: 24px; font-weight: 400; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 20px; font-weight: 500; }
.mono { font-family: var(--font-mono); font-size: 14px; line-height: 22px; font-weight: 400; }

/* Sensible base */
html { background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.75; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono, code, kbd { direction: ltr; unicode-bidi: isolate; }
