/* Compiled from tokens-1-color.md, tokens-2-typography.md, tokens-3-spacing-shape.md.
   Edit the token .md files first if a value needs to change, then re-sync here —
   this file is the paste target, not the source of truth. */

:root {
  /* brand */
  --color-primary: #00583B;
  --color-primary-hover: #003D28;
  --color-primary-subtle-bg: #E3F0EA;
  --color-primary-text: #00583B;     /* brand green used as TEXT on page/card surfaces */

  /* direction — cool family, never reused for state or brand */
  --color-direction-motijheel: #0E6E86;
  --color-direction-motijheel-bg: #E4F1F3;
  --color-direction-uttara: #3D5A80;
  --color-direction-uttara-bg: #E8EDF2;

  /* state — the 3-tier countdown cue. Color is paired with an icon; never
     the only signal. */
  --color-state-good: #1F7A4D;
  --color-state-good-bg: #E5F3EB;
  --color-state-warn: #A66A00;
  --color-state-warn-bg: #FBF0DC;
  --color-state-urgent: #B3362B;
  --color-state-urgent-bg: #FBEAE7;

  --color-error: var(--color-state-urgent);
  --color-error-bg: var(--color-state-urgent-bg);

  /* neutrals */
  --color-background: #FAF8F3;
  --color-surface: #FFFFFF;
  --color-surface-sunken: #F1EEE5;
  --color-border: #E3DFD3;
  --color-border-strong: #CBC6B6;
  --color-text-primary: #1C1B17;
  --color-text-secondary: #56534A;
  --color-text-muted: #6E6A5C;
  --color-text-on-brand: #FFFFFF;

  /* typography */
  --font-bangla: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --font-display: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;
  --font-size-3xl: 36px;
  --font-size-hero: 56px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.15;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;

  --spacing-tight: var(--spacing-8);
  --spacing-comfortable: var(--spacing-16);
  --spacing-spacious: var(--spacing-32);

  /* radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* shadow */
  --shadow-flat: none;
  --shadow-subtle: 0 1px 2px rgba(28, 27, 23, 0.05);
  --shadow-medium: 0 4px 10px rgba(28, 27, 23, 0.08);
  --shadow-high: 0 10px 24px rgba(28, 27, 23, 0.12);

  /* sizing */
  --size-tap-min: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #17160F;
    --color-surface: #201F18;
    --color-surface-sunken: #2A2820;
    --color-border: #35331F;
    --color-border-strong: #4A4735;
    --color-text-primary: #F3F1E9;
    --color-text-secondary: #B4B0A0;
    --color-text-muted: #938F80;
    --color-primary-text: #5FC79A;   /* #00583B is ~1.9:1 on dark card; this is ~8:1 */

    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.35);
    --shadow-high: 0 10px 24px rgba(0, 0, 0, 0.45);
  }
}
