/* themes/default/core/css/tokens.css - DESIGN TOKEN SYSTEM: THE KINETIC VANGUARD (STITCH FIDELITY) */

:root {
  /* 1. TYPOGRAPHY - EDITORIAL AUTHORITY */
  /* Font chuẩn toàn trang: SVN-Gumley (public/fonts, @font-face tại /css/fonts.css);
     Jakarta/Manrope giữ làm fallback khi font chưa tải */
  --stch-font-heading: 'SVN-Gumley', 'Plus Jakarta Sans', sans-serif;
  --stch-font-body: 'SVN-Gumley', 'Manrope', sans-serif;
  
  --stch-font-display-lg: 3.5rem;
  --stch-font-display-md: 2.5rem;
  --stch-letter-spacing-tight: -0.04em;
  --stch-line-height-tight: 1.1;

  /* 2. COLORS - PULSING ENERGY & TONAL DEPTH */
  --stch-primary: #bc001f;
  --stch-primary-container: #e6192e;
  --stch-on-primary: #ffffff;
  
  /* Background Hierarchy (The Layering Principle) */
  --stch-surface: #f9f9f9;             /* The Studio White (Base) */
  --stch-surface-low: #f3f3f3;         /* Sectioning */
  --stch-surface-lowest: #ffffff;      /* Components/Cards (Pop Forward) */
  
  --stch-on-surface: #1a1c1c;          /* Deep Ink */
  --stch-on-surface-variant: #5d5f5f;
  
  /* Borders & Outlines (No-Line Rule) */
  --stch-outline-ghost: rgba(231, 188, 185, 0.15); /* Ghost Border */

  /* 3. SHAPES & ELEVATION */
  --stch-radius-full: 9999px;
  --stch-radius-lg: 32px;
  --stch-radius-md: 12px;
  
  /* Ambient Shadow (Tinted version of on-surface) */
  --stch-shadow-ambient: 0 24px 48px rgba(26, 28, 28, 0.06);

  /* 4. MOTION - KINETIC FEEL */
  --stch-transition-kinetic: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --stch-hover-scale: scale(1.02);

  /* 5. Z-INDEX SYSTEM */
  --stch-z-header: 1050;
  --stch-z-modal: 1100;

  /* 6. MODULE-COMPATIBLE ALIASES (ĐX-10)
     Các module EJS dùng --color-* thay vì --stch-*
     Bridge này đảm bảo theme color luôn được áp dụng đúng */
  --color-primary: var(--stch-primary);
  --color-primary-hover: color-mix(in srgb, var(--stch-primary) 82%, black);
  --color-primary-light: color-mix(in srgb, var(--stch-primary) 12%, white);
  --color-text-primary: var(--stch-on-surface);
  --color-text-secondary: var(--stch-on-surface-variant);
  --color-surface: var(--stch-surface-lowest);
  --color-surface-alt: var(--stch-surface-low);
  --color-border: var(--stch-outline-ghost);
  --primary: var(--stch-primary);

  /* 7. SPACING SCALE (8px base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  /* 8. TYPOGRAPHY SCALE */
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
  --fs-xl: 1.25rem;    /* 20px */
  --fs-2xl: 1.5rem;    /* 24px */
  --fs-3xl: 2rem;      /* 32px */
  --fs-4xl: 2.5rem;    /* 40px */
  --fs-5xl: 3.5rem;    /* 56px */
}

/* Base Body Refinement */
body.dmdc-theme-default {
  font-family: var(--stch-font-body);
  background-color: var(--stch-surface);
  color: var(--stch-on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--stch-font-heading);
  letter-spacing: var(--stch-letter-spacing-tight);
  line-height: var(--stch-line-height-tight);
}
