/**
 * design-tokens.css
 * Sandigan Colleges — Design System Tokens
 * All visual design variables are defined here.
 * Import this file first in any CSS bundle.
 */

:root {
  /* ─── Brand Colors (Dark Green Theme based on Official Emblem) ─── */
  --color-primary:         #006837;  /* Institutional Forest Green */
  --color-primary-dark:    #004824;  /* Deep Dark Green */
  --color-primary-light:   #00874a;  /* Emblem Emerald Green */
  --color-primary-subtle:  #e6f3eb;  /* Soft Institutional Green Tint */
  --color-secondary:       #c9a227;  /* Academic Gold */
  --color-secondary-light: #e8c84a;  /* Light Gold */
  --color-secondary-dark:  #806b12;  /* Dark Gold */
  --color-secondary-subtle:#fbf6e5;  /* Soft Academic Gold Tint */
  --color-accent:          #e63946;  /* Flame Red (from torch) */

  /* ─── Neutrals ─────────────────────────────────── */
  --color-white:           #ffffff;
  --color-black:           #000000;
  --color-bg:              #ffffff;
  --color-surface:         #f5f9f6;
  --color-surface-alt:     #e9f2eb;
  --color-border:          #d2e0d7;
  --color-border-light:    #e9f2eb;

  /* ─── Text Colors ───────────────────────────────── */
  --color-text:            #102217;
  --color-text-secondary:  #364d40;
  --color-text-muted:      #617568;
  --color-text-inverse:    #ffffff;
  --color-link:            #006837;
  --color-link-hover:      var(--color-secondary-dark);

  /* ─── Typography ────────────────────────────────── */
  --font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono:     'Fira Mono', 'Courier New', Courier, monospace;

  /* Fluid type scale using clamp() */
  --text-xs:   clamp(0.688rem, 0.6rem + 0.4vw, 0.75rem);
  --text-sm:   clamp(0.813rem, 0.73rem + 0.4vw, 0.875rem);
  --text-base: clamp(0.938rem, 0.85rem + 0.4vw, 1rem);
  --text-md:   clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  --text-3xl:  clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --text-5xl:  clamp(2.75rem, 2rem + 3vw, 4.5rem);

  --font-weight-normal:    400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --line-height-tight:     1.2;
  --line-height-snug:      1.375;
  --line-height-normal:    1.5;
  --line-height-relaxed:   1.7;

  --letter-spacing-tight:  -0.025em;
  --letter-spacing-normal:  0em;
  --letter-spacing-wide:    0.025em;
  --letter-spacing-wider:   0.05em;
  --letter-spacing-widest:  0.1em;

  /* ─── Spacing Scale ─────────────────────────────── */
  --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-sm:    640px;
  --container-md:    768px;
  --container-lg:    1024px;
  --container-xl:    1280px;
  --container-2xl:   1440px;
  --container-prose: 72ch;

  /* ─── Border Radius ─────────────────────────────── */
  --radius-sm:   0.25rem;   /* 4px */
  --radius-md:   0.5rem;    /* 8px */
  --radius-lg:   0.75rem;   /* 12px */
  --radius-xl:   1rem;      /* 16px */
  --radius-2xl:  1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* ─── 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.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* ─── Transitions ───────────────────────────────── */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-slower:  600ms ease;

  /* ─── Header ────────────────────────────────────── */
  --header-utility-height: 2.5rem;
  --header-main-height:    4.5rem;
  --header-total-height:   7rem;

  /* ─── Z-index Layers ────────────────────────────── */
  --z-below:      -1;
  --z-base:        0;
  --z-raised:     10;
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-overlay:    300;
  --z-modal:      400;
  --z-toast:      500;
  --z-tooltip:    600;
}

/* ─── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast:   0ms;
    --transition-base:   0ms;
    --transition-slow:   0ms;
    --transition-slower: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
