/* =============================================================================
   design-system.css — Radiant Light Studios
   Design tokens only. No layout rules. No component styles.
   Import this file into global.css — never reference it directly from HTML.
   ============================================================================= */

:root {
  /* ---------------------------------------------------------------------------
     COLOR PALETTE — Violet Hour (default)
     Whisper lavender white, soft lilac surfaces, deep plum-slate text,
     muted amethyst accent, warm gold thread.
     --------------------------------------------------------------------------- */

  --color-bg:        oklch(97.5% 0.008 280);  /* whisper lavender white */
  --color-surface:   oklch(94%   0.012 275);  /* soft lilac */
  --color-text:      oklch(22%   0.035 280);  /* deep plum-slate */
  --color-text-muted:oklch(42%   0.025 280);  /* muted plum */
  --color-accent:    oklch(55%   0.12  290);  /* muted amethyst */
  --color-warm:      oklch(70%   0.09   50);  /* warm gold thread */
  --color-subtle:    oklch(90%   0.015 278);  /* very faint lilac dividers */
  --color-luminous:  oklch(99%   0.004 285);  /* near-white luminous glow */
  --color-text-soft: oklch(50%   0.03  280);
  --color-accent-ink:oklch(52%   0.12  290);

  /* Raw oklch channel values for use inside color-mix() or further calculations.
     Usage: color-mix(in oklch, oklch(var(--color-bg-raw)), white 10%)            */
  --color-bg-raw:      97.5% 0.008 280;
  --color-accent-raw:  55%   0.12  290;

  /* ---------------------------------------------------------------------------
     TYPOGRAPHY — Font stacks
     --------------------------------------------------------------------------- */

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* ---------------------------------------------------------------------------
     TYPE SCALE — Fluid via clamp()
     --------------------------------------------------------------------------- */

  --type-hero:    clamp(3.5rem,  6vw,   7.5rem);
  --type-display: clamp(2.5rem,  4vw,   5rem);
  --type-headline:clamp(1.75rem, 2.5vw, 2.75rem);
  --type-subhead: clamp(1.25rem, 1.8vw, 1.75rem);
  --type-body:    1rem;
  --type-small:   0.875rem;
  --type-label:   0.65rem;

  /* ---------------------------------------------------------------------------
     SPACING SCALE — 8px base unit
     --space-1  =  8px
     --space-2  = 16px
     --space-3  = 24px
     --space-4  = 32px
     --space-5  = 40px
     --space-6  = 48px
     --space-7  = 56px
     --space-8  = 64px
     --space-10 = 80px
     --space-12 = 96px
     --space-14 = 112px
     --space-16 = 128px
     --space-20 = 160px
     --------------------------------------------------------------------------- */

  --space-1:   0.5rem;    /*  8px */
  --space-2:   1rem;      /* 16px */
  --space-3:   1.5rem;    /* 24px */
  --space-4:   2rem;      /* 32px */
  --space-5:   2.5rem;    /* 40px */
  --space-6:   3rem;      /* 48px */
  --space-7:   3.5rem;    /* 56px */
  --space-8:   4rem;      /* 64px */
  --space-10:  5rem;      /* 80px */
  --space-12:  6rem;      /* 96px */
  --space-14:  7rem;      /* 112px */
  --space-16:  8rem;      /* 128px */
  --space-20: 10rem;      /* 160px */

  /* ---------------------------------------------------------------------------
     MOTION — Easing + Duration
     Motion philosophy: glacial, intentional. Everything slow and deliberate.
     --------------------------------------------------------------------------- */

  /* Easing curves */
  --ease-reveal:   cubic-bezier(0.25, 0, 0, 1);       /* glacial deceleration */
  --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);     /* spring settle */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);      /* material standard */

  /* Duration tokens */
  --dur-fast:    0.2s;
  --dur-medium:  0.5s;
  --dur-slow:    1s;
  --dur-glacial: 1.8s;

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

  --z-base:    1;
  --z-overlay: 10;
  --z-nav:     100;
  --z-cursor:  9998;
  --z-grain:   9999;
  --z-picker:  10001;

  /* ---------------------------------------------------------------------------
     BREAKPOINTS (reference values — use in @media rules directly)
     mobile:  480px
     tablet:  768px
     desktop: 1024px
     wide:    1440px
     --------------------------------------------------------------------------- */
}

/* =============================================================================
   PALETTE VARIANT — Terracotta Sun
   Warm cream, warm sand surfaces, deep warm brown text,
   terracotta accent, warm amber.
   Applied by adding data-palette="terracotta" to <html> or <body>.
   Scroll-driven palette transitions set this attribute via JS.
   ============================================================================= */

[data-palette="terracotta"] {
  --color-bg:         oklch(98%  0.01   60);  /* warm cream */
  --color-surface:    oklch(92%  0.025  50);  /* warm sand */
  --color-text:       oklch(22%  0.04   45);  /* deep warm brown */
  --color-text-muted: oklch(42%  0.03   48);  /* muted warm brown */
  --color-accent:     oklch(55%  0.12   42);  /* terracotta */
  --color-warm:       oklch(68%  0.11   58);  /* warm amber */
  --color-subtle:     oklch(89%  0.02   52);  /* warm divider */
  --color-luminous:   oklch(99%  0.006  62);  /* near-white warm glow */
  --color-text-soft:  oklch(49%  0.035  48);
  --color-accent-ink: oklch(52%  0.12   42);

  --color-bg-raw:     98%  0.01  60;
  --color-accent-raw: 55%  0.12  42;

  /* Smooth transition across all color tokens when palette switches */
  transition:
    --color-bg         0.8s ease,
    --color-surface    0.8s ease,
    --color-text       0.8s ease,
    --color-text-muted 0.8s ease,
    --color-accent     0.8s ease,
    --color-warm       0.8s ease,
    --color-subtle     0.8s ease,
    --color-luminous   0.8s ease;
}
