/* ==========================================================================
   Inspire Pakistan — Design Tokens
   Institutional Humanitarian & Human Rights Design System
   WCAG 2.2 Level AA compliant color pairings & CSS logical sizing
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand Palette */
  --color-primary: #0d4a42;
  --color-primary-hover: #093630;
  --color-primary-soft: #e6f1ee;
  --color-primary-border: #9bc2b9;

  --color-secondary: #0f2936;
  --color-secondary-soft: #eaf0f4;

  --color-accent: #f3b73f;
  --color-accent-dark: #7a4b00;
  --color-accent-soft: #fdf6e4;

  /* Semantic Status Colors (always paired with text/icons, never color alone) */
  --color-success: #166534;
  --color-success-soft: #dcfce7;
  --color-warning: #854d0e;
  --color-warning-soft: #fef3c7;
  --color-danger: #9b1c1c;
  --color-danger-soft: #fee2e2;
  --color-info: #174578;
  --color-info-soft: #e6eff9;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-surface: #f6f8f9;
  --color-surface-alt: #edf2f4;
  --color-text: #16262e;
  --color-text-muted: #425863;
  --color-border: #cbd5db;
  --color-border-strong: #677b86; /* >= 3:1 contrast on white for form controls */

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Naskh Arabic", sans-serif;
  --font-urdu: "Noto Naskh Arabic", "Jameel Noori Nastaleeq", "Urdu Typesetting", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);

  /* Layout & Spacing */
  --container-max: 76rem;
  --container-narrow: 54rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* Radii & Shadows */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgb(15 41 54 / 0.08);
  --shadow-md: 0 8px 24px rgb(15 41 54 / 0.1);
  --shadow-lg: 0 18px 40px rgb(15 41 54 / 0.16);

  /* Focus Ring */
  --focus-color: #0b57d0;
  --focus-width: 3px;
  --focus-offset: 2px;

  /* Transitions */
  --transition-fast: 160ms ease;
}

:root[dir="rtl"] {
  --font-sans: "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
