/*
 * James E Ventures shared design tokens.
 * Section themes preserve each experience's existing character while sharing
 * the global identity, interaction, layout, type and motion primitives.
 */
:root,
:root[data-jev-theme="studio"] {
  color-scheme: dark;

  /* Global palette */
  --jev-black: #070604;
  --jev-charcoal: #12100c;
  --jev-panel: #17120d;
  --jev-velvet: #5d1b1b;
  --jev-velvet-dark: #190808;
  --jev-ivory: #f7eedb;
  --jev-muted: #cfc1a5;
  --jev-gold: #e0b45c;
  --jev-gold-soft: #f0d48a;
  --jev-gold-deep: #7e5519;
  --jev-bronze: #8f6d3a;
  --jev-rose: #e8b4c8;
  --jev-rose-deep: #9a4f72;
  --jev-lavender: #c4b5e0;
  --jev-champagne: #f5e6c8;

  /* Typography and responsive scale */
  --jev-font-display: "Bodoni 72", "Bodoni MT", Didot, "Times New Roman", serif;
  --jev-font-body: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --jev-font-label: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --jev-text-xs: 0.75rem;
  --jev-text-sm: 0.875rem;
  --jev-text-base: 1rem;
  --jev-text-lg: 1.25rem;
  --jev-heading: clamp(2.25rem, 7vw, 5rem);

  /* Spacing, layout and shape */
  --jev-space-1: 0.5rem;
  --jev-space-2: 0.75rem;
  --jev-space-3: 1rem;
  --jev-space-4: 1.5rem;
  --jev-space-5: 2rem;
  --jev-space-6: 3rem;
  --jev-space-7: 5rem;
  --jev-content-width: 80rem;
  --jev-reading-width: 72ch;
  --jev-control-height: 3rem;
  --jev-radius-sm: 4px;
  --jev-radius-md: 10px;
  --jev-radius-lg: 16px;

  /* Borders, focus, surfaces, elevation and motion */
  --jev-border: rgba(224, 180, 92, 0.42);
  --jev-border-rose: rgba(232, 180, 200, 0.28);
  --jev-glass: rgba(247, 238, 219, 0.07);
  --jev-focus: #ffe6a2;
  --jev-line: rgba(214, 168, 77, 0.28);
  --jev-shadow-gold: 0 18px 80px rgba(224, 180, 92, 0.28), 0 0 40px rgba(232, 180, 200, 0.08);
  --jev-shadow-panel: 0 24px 80px rgba(0, 0, 0, 0.42);
  --jev-shadow-glitter: 0 0 24px rgba(240, 212, 138, 0.35), 0 0 48px rgba(232, 180, 200, 0.12);
  --jev-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --jev-motion-fast: 160ms;
  --jev-motion-standard: 280ms;

  /* Studio compatibility aliases */
  --font-display: var(--jev-font-display);
  --font-body: var(--jev-font-body);
  --space-1: var(--jev-space-1);
  --space-2: var(--jev-space-2);
  --space-3: var(--jev-space-3);
  --space-4: var(--jev-space-4);
  --space-5: var(--jev-space-5);
  --space-6: var(--jev-space-6);
  --space-7: var(--jev-space-7);
  --radius-sm: var(--jev-radius-sm);
  --radius-md: var(--jev-radius-md);
  --shadow-gold: var(--jev-shadow-gold);
  --shadow-panel: var(--jev-shadow-panel);
  --shadow-glitter: var(--jev-shadow-glitter);
  --ease-studio: var(--jev-ease);
}

/* National Archive of the Duck Universe: original archive palette. */
:root {
  --jev-duck-black: #080806;
  --jev-duck-ink: #11100d;
  --jev-duck-oak: #24160d;
  --jev-duck-oak-light: #432918;
  --jev-duck-stone: #79756b;
  --jev-duck-stone-dark: #2b2a25;
  --jev-duck-paper: #e8dcc2;
  --jev-duck-paper-bright: #f5ead3;
  --jev-duck-muted: #b9ad94;
  --jev-duck-brass: #c7a15b;
  --jev-duck-brass-pale: #ead394;
  --jev-duck-brass-dark: #755527;
  --jev-duck-oxblood: #641b20;
  --jev-duck-green: #243b34;
  --jev-duck-blue: #182d3a;
  --jev-duck-line: rgba(199, 161, 91, 0.34);
  --jev-duck-line-soft: rgba(232, 220, 194, 0.13);
  --jev-duck-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --jev-duck-font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --jev-duck-font-label: "Arial Narrow", "Avenir Next Condensed", "Segoe UI", sans-serif;
  --jev-duck-page: min(1280px, calc(100% - 2rem));
  --jev-duck-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Timeline N: restrained documentary palette. */
  --jev-timeline-bg: #080907;
  --jev-timeline-bg-raised: #11130f;
  --jev-timeline-paper: #d9cfb4;
  --jev-timeline-paper-bright: #eee6d2;
  --jev-timeline-ink: #191814;
  --jev-timeline-muted: #8f8979;
  --jev-timeline-red: #6f211c;
  --jev-timeline-gold: #b69862;
  --jev-timeline-line: rgba(230, 221, 198, 0.18);
  --jev-timeline-focus: #f0d48a;
  --jev-timeline-font-display: "IM Fell English", Georgia, serif;
  --jev-timeline-font-body: Inter, system-ui, sans-serif;
}
