/* ============================================
   DESIGN TOKENS
   carbotrace.in | css/tokens.css
   ============================================ */

:root {

  /* ------------------------------------------------------------------ */
  /*  Colors                                                             */
  /* ------------------------------------------------------------------ */

  /* Brand greens */
  --color-primary:        #0A5C36;   /* deep forest green */
  --color-primary-light:  #0D7342;
  --color-primary-dark:   #073D24;

  /* Brand navy */
  --color-secondary:      #0D1B2A;   /* dark navy */
  --color-secondary-light:#1A3A5C;

  /* Brand gold */
  --color-accent:         #C8A84B;
  --color-accent-light:   #D4BA6E;
  --color-accent-dark:    #A88A30;

  /* Surfaces */
  --color-bg:             #F9FAFB;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #F1F5F9;

  /* Borders */
  --color-border:         #E2E8F0;
  --color-border-subtle:  #F1F5F9;

  /* Text */
  --color-text:           #111827;
  --color-text-muted:     #6B7280;
  --color-text-inverse:   #FFFFFF;
  --color-text-accent:    #C8A84B;

  /* Status */
  --color-success:        #16A34A;
  --color-error:          #DC2626;
  --color-warning:        #D97706;
  --color-info:           #2563EB;

  /* ------------------------------------------------------------------ */
  /*  Typography                                                         */
  /* ------------------------------------------------------------------ */

  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale (rem, 16px base) */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Line heights */
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* Font weights */
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* ------------------------------------------------------------------ */
  /*  Spacing  (4px base unit)                                           */
  /* ------------------------------------------------------------------ */

  --space-0:  0;
  --space-1:  0.25rem;  /*  4px */
  --space-2:  0.5rem;   /*  8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ------------------------------------------------------------------ */
  /*  Layout                                                             */
  /* ------------------------------------------------------------------ */

  --container-max:     1280px;
  --container-narrow:  768px;
  --container-padding: var(--space-6);

  /* ------------------------------------------------------------------ */
  /*  Borders & Radius                                                   */
  /* ------------------------------------------------------------------ */

  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  --border-width:   1px;
  --border-width-2: 2px;

  /* ------------------------------------------------------------------ */
  /*  Shadows                                                            */
  /* ------------------------------------------------------------------ */

  --shadow-xs:    0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm:    0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:    0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.06);

  /* ------------------------------------------------------------------ */
  /*  Transitions                                                        */
  /* ------------------------------------------------------------------ */

  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* ------------------------------------------------------------------ */
  /*  Z-index stack                                                      */
  /* ------------------------------------------------------------------ */

  --z-below:    -1;
  --z-base:      0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-nav:      300;
  --z-overlay:  400;
  --z-modal:    500;
}
