/* Parametric Properties — The Substrate
   Every visual attribute is a CSS custom property.
   Worlds override these values; CSS never changes. */

:root {
  /* ═══ TYPOGRAPHY ═══ */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --font-size-hero: clamp(48px, 6vw, 80px);
  --font-size-h1: clamp(36px, 4vw, 56px);
  --font-size-h2: 28px;
  --font-size-h3: 20px;
  --font-size-body: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-label: 11px;

  --font-weight-heading: 700;
  --font-weight-body: 400;
  --font-weight-light: 300;

  --letter-spacing-heading: -0.02em;
  --letter-spacing-body: 0em;
  --letter-spacing-label: 0.04em;

  --line-height-heading: 1.15;
  --line-height-body: 1.7;

  --text-transform-heading: none;
  --text-transform-label: uppercase;

  /* ═══ COLORS ═══ */
  --color-bg: #131316;
  --color-bg-elevated: #1A1A1E;
  --color-surface: #1F1F24;
  --color-surface-hover: #26262C;
  --color-surface-active: #2C2C33;

  --color-text-primary: #EDEDEF;
  --color-text-secondary: #A1A1AA;
  --color-text-tertiary: #6B6B76;

  --color-accent: #E8C872;
  --color-accent-rgb: 232, 200, 114;
  --color-accent-dim: rgba(232, 200, 114, 0.12);
  --color-accent-glow: rgba(232, 200, 114, 0.06);
  --color-accent-secondary: #C9A84C;

  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-border-accent: rgba(232, 200, 114, 0.2);

  --color-link: var(--color-accent);
  --color-link-hover: #F0D68A;

  /* ═══ SPACING ═══ */
  --space-unit: 8px;
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: 120px;

  --content-width: 720px;
  --content-width-wide: 1080px;
  --page-padding: 24px;

  /* ═══ BORDERS & RADII ═══ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --border-width: 1px;

  /* ═══ SHADOWS ═══ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(var(--color-accent-rgb), 0.15);

  /* ═══ GLASS ═══ */
  --glass-bg: rgba(22, 22, 26, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* ═══ MOTION ═══ */
  --ease-primary: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);

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

  --motion-distance: 8px;
  --motion-scale-hover: 1.02;
  --motion-stagger: 60ms;
  --motion-intensity: 1;

  /* ═══ GRAVITY & LIGHT ═══ */
  --gravity-x: 0px;
  --gravity-y: -8px;
  --light-x: 25;
  --light-y: 20;
  --light-active: 0;
  --light-wash-x: 25%;
  --light-wash-y: 20%;
  --light-wash-opacity: 0;
  --light-color-r: 255;
  --light-color-g: 255;
  --light-color-b: 255;

  /* ═══ LAYOUT ═══ */
  --nav-height: 64px;
  --grid-columns: 2;
  --grid-gap: 24px;
  --card-padding: 32px;
  --hero-padding-top: 160px;
  --hero-text-align: left;

  /* ═══ DECORATIVE ═══ */
  --grain-opacity: 0.03;
  --decoration-opacity: 1;
  --scanline-opacity: 0;
  --glow-multiplier: 1;
  --grid-line-opacity: 1;
  --cursor-size: 32px;

  /* ═══ Z-INDEX ═══ */
  --z-base: 0;
  --z-elevated: 10;
  --z-nav: 50;
  --z-overlay: 100;
  --z-modal: 200;
  --z-atelier: 300;
  --z-cursor: 400;
}
