/* Design tokens — canonical vocabulary from the approved design (colours, type, spacing, radius, shadow, motion).
   --color-primary / --color-secondary / --color-accent are overridden from Site Options (see inc/setup.php). */
:root{
  --color-primary:#54218A;
  --color-secondary:#167B64;
  --color-accent:#E8B84C;
  --color-text-dark:#241433;
  --color-text-medium:#52426A;
  --color-text-light:#6E6080;
  --color-text-inverse:#FFF9EE;
  --color-bg-white:#FFF9EE;
  --color-bg-light:#F1E8FA;
  --color-bg-dark:#241433;
  --color-bg-navy:#3A1568;
  --color-border:#E2D4EF;
  --color-success:#167B64;
  --color-error:#B3261E;
  --color-warning:#9A6B00;
  --proj-coral:#EA7562;

  --font-heading:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-display:clamp(2.75rem, 5.6vw, 5.25rem);
  --text-h1:clamp(2.75rem, 5.6vw, 5.25rem);
  --text-h2:clamp(2.25rem, 4.4vw, 4rem);
  --text-h3:clamp(1.375rem, 2.2vw, 1.75rem);
  --text-h4:clamp(1.125rem, 1.6vw, 1.375rem);
  --text-body-lg:clamp(1.0625rem, 1.5vw, 1.25rem);
  --text-body:1rem;
  --text-small:.875rem;
  --text-label:.8125rem;

  --container-wide:1920px;
  --container-max:1280px;
  --container-narrow:800px;
  --space-section:clamp(56px, 8vw, 112px);
  --space-container-x:clamp(20px, 4vw, 40px);
  --space-card:clamp(24px, 3vw, 40px);
  --space-gap:clamp(16px, 2.4vw, 32px);
  --space-stack:16px;

  --radius-sm:6px;
  --radius-md:8px;
  --radius-lg:16px;
  --radius-full:9999px;
  --shadow-sm:0 2px 10px rgba(36,20,51,.08);
  --shadow-md:0 2px 16px rgba(36,20,51,.10);
  --shadow-lg:0 22px 56px rgba(36,20,51,.22);
  --transition-fast:200ms cubic-bezier(.4,0,.2,1);
  --transition-base:300ms cubic-bezier(.4,0,.2,1);
  --transition-slow:600ms cubic-bezier(.4,0,.2,1);
  --transition-luxury:700ms cubic-bezier(.25,.1,.25,1);

  --button-radius:var(--radius-sm);
  --button-padding-y:.85rem;
  --button-padding-x:1.75rem;
  --button-transition:var(--transition-fast);
  --card-radius:var(--radius-md);
  --card-padding:var(--space-card);
  --card-shadow:var(--shadow-md);
  --card-bg:var(--color-bg-white);
  --card-border-color:var(--color-border);
  --header-bg:var(--color-bg-white);
  --header-height:76px;
  --nav-link-color:var(--color-text-dark);
  --nav-link-color-active:var(--color-primary);
  --footer-bg:var(--color-bg-dark);
  --footer-text-color:var(--color-text-inverse);
  --footer-padding-top:80px;
  --footer-padding-bottom:40px;
  --media-radius:var(--radius-lg);
  --media-aspect-default:16/9;
  --section-bg-primary:var(--color-bg-white);
  --section-bg-alt:var(--color-bg-light);
  --section-bg-dark:var(--color-bg-dark);
  --section-padding-y:var(--space-section);

  --bar-h:76px;
}
/* runtime values the scripts write while animating (safe neutral defaults) */
:root{--p:0;--dim:0;--pvp:0;}

/* Runtime / per-component custom properties — declared here with neutral defaults equal to the
   fallbacks used in main.css. --mx/--my/--rx/--ry are updated by assets/js/main.js (pointer tilt/shine);
   --aud-c is overridden per audience card (.aud--1 … .aud--4). */
:root{
  --mx:30%;
  --my:18%;
  --rx:0deg;
  --ry:0deg;
  --aud-c:var(--color-primary);
  /* Gallery pointer glow (--gx/--gy) and 3D book rotation (--sx/--sy) are updated by assets/js/main.js;
     --sbw (book width) is overridden per wrapper (.stagebox__book, .buy__book-wrap). Defaults = main.css fallbacks. */
  --gx:50%;
  --gy:30%;
  --sx:6deg;
  --sy:-28deg;
  --sbw:420px;
}
