/*
 * Design Tokens — First Temple Design System v2
 */

:root {
  /* ============================================
     Brand Colors
     ============================================ */
  --temple-ink: #1a1a2e;
  --temple-stone: #f5f0eb;
  --temple-stone-dark: #e8e0d8;
  --temple-vermillion: #d94f3d;
  --temple-vermillion-dark: #c14434;
  --temple-blue: #2563eb;
  --temple-blue-light: #3b82f6;

  /* Semantic aliases */
  --color-text: var(--temple-ink);
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-bg: var(--temple-stone);
  --color-bg-alt: var(--temple-stone-dark);
  --color-bg-dark: var(--temple-ink);
  --color-bg-white: #ffffff;
  --color-accent: var(--temple-vermillion);
  --color-accent-hover: var(--temple-vermillion-dark);
  --color-link: var(--temple-blue);
  --color-link-hover: var(--temple-blue-light);
  --color-border: rgba(26, 26, 46, 0.1);
  --color-border-strong: rgba(26, 26, 46, 0.2);

  /* Functional */
  --color-success: #16a34a;
  --color-error: var(--temple-vermillion);
  --color-warning: #d97706;

  /* ============================================
     Typography
     ============================================ */

  /* Font Stack — IBM Plex Sans JP unified */
  --font-display: 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);  /* 11-13px */
  --text-sm: clamp(0.8125rem, 0.775rem + 0.2vw, 0.9375rem);  /* 13-15px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);  /* 15-17px */
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);          /* 18-24px */
  --text-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);       /* 24-36px */
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);           /* 32-56px */
  --text-3xl: clamp(2.5rem, 1.75rem + 3.75vw, 4.5rem);       /* 40-72px */
  --text-hero: clamp(3rem, 2rem + 5vw, 6rem);                 /* 48-96px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* ============================================
     Spacing
     ============================================ */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-8: 3rem;      /* 48px */
  --space-10: 4rem;     /* 64px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */
  --space-20: 10rem;    /* 160px */

  /* Section spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);

  /* ============================================
     Layout
     ============================================ */
  --container-max: 1280px;
  --container-narrow: 720px;
  --container-padding: clamp(1.25rem, 5vw, 2.5rem);

  /* ============================================
     Borders & Radius — sharp = premium
     ============================================ */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-full: 9999px;

  /* ============================================
     Shadows — subtle, no heavy drop shadows
     ============================================ */
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 26, 46, 0.12);

  /* ============================================
     Transitions
     ============================================ */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;

  /* ============================================
     Z-Index Scale
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
}
