/* ============================================
   AACA Design System — "Ink and Earth"
   Rooted in the materials of Chinese ink painting:
   ink, rice paper, vermillion seal, jade, gold leaf
   ============================================ */

:root {
  /* --- Ink Tones --- */
  --ink-black: #1a1a1a;
  --ink-dark: #2d2d2d;
  --ink-medium: #5c5c5c;
  --ink-light: #8a8a8a;
  --ink-wash: #b8b0a8;
  --ink-faint: #d4cec6;

  /* --- Rice Paper --- */
  --rice-paper: #f5f0e8;
  --rice-paper-warm: #ede4d4;
  --rice-paper-cool: #f0ede6;
  --rice-paper-white: #faf8f4;

  /* --- Accent Colors — True Chinese Red --- */
  --vermillion: #BE1E2D;
  --vermillion-deep: #9B1B2A;
  --vermillion-light: #D43545;
  --gold-accent: #b8860b;
  --gold-light: #d4a843;
  --jade: #2d6a4f;
  --jade-light: #40916c;

  /* --- Functional --- */
  --color-text: var(--ink-black);
  --color-text-secondary: var(--ink-medium);
  --color-text-muted: var(--ink-light);
  --color-text-inverse: var(--rice-paper);
  --color-bg: var(--rice-paper);
  --color-bg-alt: var(--rice-paper-warm);
  --color-bg-card: var(--rice-paper-cool);
  --color-bg-dark: var(--ink-black);
  --color-bg-dark-alt: var(--ink-dark);
  --color-accent: var(--vermillion);
  --color-accent-hover: var(--vermillion-deep);
  --color-border: rgba(45, 45, 45, 0.1);
  --color-border-strong: rgba(45, 45, 45, 0.2);

  /* --- Typography --- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-chinese: 'Zhi Mang Xing', cursive;

  /* Fluid type scale — 1.25 ratio */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.35rem);
  --text-xl: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --text-4xl: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);
  --text-5xl: clamp(3.25rem, 2rem + 5vw, 6rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.06em;
  --tracking-widest: 0.1em;

  /* --- Spacing (8px base) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --container-padding: clamp(1.25rem, 3vw, 3rem);

  /* --- Transitions --- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
  --duration-brush: 1.5s;
  --duration-lotus: 2.5s;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 26, 26, 0.1);
  --shadow-ink: 0 2px 20px rgba(26, 26, 26, 0.15);

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* --- Z-index --- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-nav: 500;
}
