/* Sigaram design tokens — the single source of truth for visual decisions. */
:root {
  /* Brand and semantic colour */
  --color-canvas: #090b0c;
  --color-surface: #101315;
  --color-surface-raised: #15191c;
  --color-text: #f5f4ef;
  --color-text-muted: #a9abad;
  --color-border: rgba(255, 255, 255, .13);
  --color-brand: #ed1c2e;
  --color-brand-strong: #b90819;
  --color-accent: #f4b717;
  --color-accent-text: #ffd24a;
  --color-on-brand: #fff;
  --color-on-image: #fff;
  --color-ink: #111214;
  --color-paper: #f5f4ef;
  --color-overlay: rgba(5, 6, 7, .72);
  --color-focus: #ff6573;
  --color-success: #16845b;
  --color-danger: #b90819;

  /* Typography */
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Bradley Hand", "Segoe Print", cursive;
  --font-tamil: "Tamil Sangam MN", "Noto Sans Tamil", Latha, sans-serif;
  --weight-regular: 400;
  --weight-nav: 650;
  --weight-medium: 700;
  --weight-bold: 800;
  --weight-strong: 850;
  --weight-black: 900;
  --weight-display: 950;
  --text-2xs: .58rem;
  --text-xs: .72rem;
  --text-sm: .82rem;
  --text-base: 1rem;
  --text-lead: 1.12rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --leading-tight: .95;
  --leading-body: 1.5;
  --leading-reading: 1.7;

  /* Spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* Shape */
  --radius-sm: .5rem;
  --radius-md: .9rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, .14);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, .22);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .32);
  --shadow-brand: 0 10px 30px rgba(237, 28, 46, .18);
  --shadow-modal: 0 50px 180px rgba(0, 0, 0, .82);

  /* Motion */
  --duration-fast: 200ms;
  --duration-medium: 350ms;
  --duration-slow: 750ms;
  --ease-standard: ease;
  --ease-out: cubic-bezier(.2, .75, .2, 1);

  /* Layout */
  --content-max: 1440px;

  /* Compatibility aliases used by existing components */
  --bg: var(--color-canvas);
  --surface: var(--color-surface);
  --surface-2: var(--color-surface-raised);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --red: var(--color-brand);
  --red-dark: var(--color-brand-strong);
  --yellow: var(--color-accent);
  --yellow-text: var(--color-accent-text);
  --shadow: var(--shadow-lg);
  --max: var(--content-max);
  color-scheme: dark;
}

html[data-theme="light"] {
  --color-canvas: #f5f5f1;
  --color-surface: #fff;
  --color-surface-raised: #ecece7;
  --color-text: #111214;
  --color-text-muted: #5c6064;
  --color-border: rgba(17, 18, 20, .14);
  --color-accent-text: #805900;
  --shadow-sm: 0 14px 36px rgba(17, 18, 20, .06);
  --shadow-md: 0 22px 60px rgba(17, 18, 20, .08);
  --shadow-lg: 0 28px 80px rgba(17, 18, 20, .1);
  color-scheme: light;
}
