/**
 * MASONIC LODGE — Design Tokens
 * =============================
 * Sacred Geometry · Fibonacci Proportions · Three-Layer System
 * 「 VINCERE AUT MORI 」
 */

:root {
  /* ============================================
     COLOR SYSTEM — THE THREE LAYERS
     ============================================ */

  /* Layer 1: Celestial Background */
  --color-celestial: #0A1128;
  --color-celestial-deep: #050914;
  --color-midnight: #1A237E;
  --color-void: #020408;

  /* Layer 2: Lodge Space */
  --color-masonic-blue: #014894;
  --color-royal-blue: #2828C8;
  --color-scottish-purple: #5E2D79;
  --color-deep-violet: #4A148C;

  /* Layer 3: Illumination */
  --color-gold: #F6BA00;
  --color-gold-soft: #EEBC51;
  --color-gold-dark: #D4A000;
  --color-gold-glow: rgba(246, 186, 0, 0.4);

  /* Text Colors */
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-dim: rgba(255, 255, 255, 0.5);
  --color-cream: #F5F5DC;
  --color-charcoal: #1C1C1C;

  /* Interactive */
  --color-link: #00B1E1;
  --color-link-hover: #33C4EB;

  /* Degree Colors */
  --color-kcch-red: #8B0000;
  --color-silver: #C0C0C0;

  /* ============================================
     TYPOGRAPHY
     ============================================ */

  /* Font Stacks */
  --font-ceremonial: "Cinzel", "Trajan Pro", "Georgia", serif;
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", "Georgia", serif;

  /* Fibonacci Type Scale */
  --text-xs: 0.8125rem;    /* 13px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.3125rem;    /* 21px */
  --text-2xl: 2.125rem;    /* 34px */
  --text-3xl: 3.4375rem;   /* 55px */
  --text-4xl: 4.5rem;      /* 72px */
  --text-hero: clamp(2.5rem, 8vw, 5.5rem);

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.4;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;

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

  /* ============================================
     FIBONACCI SPACING SYSTEM
     8, 13, 21, 34, 55, 89, 144
     ============================================ */

  --space-1: 0.5rem;       /* 8px */
  --space-2: 0.8125rem;    /* 13px */
  --space-3: 1.3125rem;    /* 21px */
  --space-4: 2.125rem;     /* 34px */
  --space-5: 3.4375rem;    /* 55px */
  --space-6: 5.5625rem;    /* 89px */
  --space-7: 9rem;         /* 144px */

  /* Semantic spacing aliases */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-3);
  --space-lg: var(--space-4);
  --space-xl: var(--space-5);

  /* ============================================
     SACRED GEOMETRY
     ============================================ */

  /* Golden Ratio */
  --ratio-golden: 1.618;
  --ratio-minor: 38.2%;
  --ratio-major: 61.8%;

  /* Hero Heights */
  --hero-home: 100vh;
  --hero-interior: 34vh;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 800px;
  --prose-width: 65ch;

  /* Grid */
  --grid-columns: 12;
  --grid-gap: var(--space-3);

  /* ============================================
     BORDERS & SHADOWS
     ============================================ */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(246, 186, 0, 0.3);
  --shadow-star:
    0 0 30px rgba(246, 186, 0, 0.5),
    0 0 60px rgba(246, 186, 0, 0.3),
    0 0 100px rgba(246, 186, 0, 0.15);

  /* ============================================
     TRANSITIONS
     ============================================ */

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ============================================
     Z-INDEX SCALE
     ============================================ */

  --z-background: -10;
  --z-base: 0;
  --z-content: 10;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-star: 50;

  /* ============================================
     SYMBOL OPACITY
     ============================================ */

  --opacity-discreet: 0.15;
  --opacity-moderate: 0.4;
  --opacity-prominent: 1;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
