/* ==========================================================================
   SEZAR Gallery — Approved Design Tokens
   --------------------------------------------------------------------------
   Extracted verbatim from the approved Claude Design system project
   "SEZAR Gallery Design System" (04814573-c93e-4451-b9d5-3be8afd6890a)
   on 2026-07-27, files tokens/{colors,typography,spacing,radius,shadows,motion}.css

   THIS FILE IS THE FROZEN VISUAL CONTRACT.
   Values here must not be altered except by a role holding the explicit
   "design-system.manage" permission. See docs/DECISIONS.md (D-004).
   ========================================================================== */

/* ---------------------------------------------------------------- COLOR -- */
:root {
  --color-white: #FFFFFF;
  --color-cream-50: #FBF7EF;
  --color-cream-100: #F5EEE0;
  --color-cream-200: #EFE3CE;
  --color-sand-300: #E4D3B6;
  --color-sand-400: #D6BE95;
  --color-gold-300: #DDC489;
  --color-gold-400: #C9A15A;
  --color-gold-500: #B08A48;
  --color-gold-600: #9C7A3E;
  --color-gold-700: #7C5F30;
  --color-blush-200: #F1DAD5;
  --color-blush-300: #E8C9C4;
  --color-blush-500: #D9A9A6;
  --color-olive-300: #AEB48C;
  --color-olive-400: #8B9169;
  --color-olive-600: #6B7050;
  --color-espresso-500: #7A6248;
  --color-espresso-700: #4A3826;
  --color-espresso-900: #2E2115;
  --color-terracotta-500: #B3543F;

  --surface-page: var(--color-cream-50);
  --surface-page-alt: var(--color-cream-100);
  --surface-card: var(--color-white);
  --surface-elevated: var(--color-white);
  --surface-sunken: var(--color-cream-200);
  --surface-inverse: var(--color-espresso-900);
  --surface-gold: var(--color-gold-400);

  --text-primary: var(--color-espresso-900);
  --text-secondary: var(--color-espresso-500);
  --text-muted: #75664F;
  --text-on-inverse: var(--color-cream-50);
  --text-on-gold: var(--color-espresso-900);
  --text-link: var(--color-gold-700);
  --text-link-hover: var(--color-espresso-900);

  --accent-gold: var(--color-gold-400);
  --accent-gold-hover: var(--color-gold-600);
  --accent-gold-active: var(--color-gold-700);
  --accent-olive: var(--color-olive-400);
  --accent-blush: var(--color-blush-500);

  --border-subtle: #E7DAC2;
  --border-strong: var(--color-gold-400);
  --border-focus: var(--color-gold-600);

  --badge-sale-bg: var(--color-terracotta-500);
  --badge-sale-text: var(--color-cream-50);
  --badge-new-bg: var(--color-olive-400);
  --badge-new-text: var(--color-cream-50);
  --badge-best-bg: var(--color-gold-400);
  --badge-best-text: var(--color-espresso-900);

  --state-success: var(--color-olive-600);
  --state-error: var(--color-terracotta-500);
  --state-out-of-stock: #B7A98C;
  --focus-ring: 0 0 0 3px rgba(201, 161, 90, 0.45);
}

/* ----------------------------------------------------------- TYPOGRAPHY -- */
/* Fonts are self-hosted in production — see docs/DECISIONS.md (D-005).
   Do not ship the fonts.gstatic.com URLs from the design export: they add a
   third-party request on every page load and fail in offline/local testing. */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, sans-serif;
  --font-arabic: 'Tajawal', 'Jost', sans-serif;

  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-4xl: 3.75rem;
  --text-5xl: 4.75rem;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.55;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.14em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
}

/* -------------------------------------------------------------- SPACING -- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --container-max: 1360px;
  --container-pad: 24px;
  --container-pad-lg: 64px;
}

/* --------------------------------------------------------------- RADIUS -- */
:root {
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;
}

/* -------------------------------------------------------------- SHADOWS -- */
:root {
  --shadow-xs: 0 1px 2px rgba(46, 33, 21, 0.06);
  --shadow-sm: 0 2px 8px rgba(46, 33, 21, 0.08);
  --shadow-md: 0 8px 24px rgba(46, 33, 21, 0.10);
  --shadow-lg: 0 16px 48px rgba(46, 33, 21, 0.14);
  --shadow-gold-glow: 0 0 0 4px rgba(201, 161, 90, 0.18);
  --shadow-inset-subtle: inset 0 1px 3px rgba(46, 33, 21, 0.08);
}

/* --------------------------------------------------------------- MOTION -- */
:root {
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.2, .64, 1);
  --duration-fast: 120ms;
  --duration-base: 220ms;
  --duration-slow: 380ms;
  --duration-page: 500ms;
}

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