/* Vu Digital tokens. Mirrored from design/Rebranding/vu-brand.html (colour, type, layout).
   Purple, warmed up. No black, no grey. Paper first. */

:root{
  /* palette */
  --magenta:#e44ce3;       /* logo only; never body copy on light (3.0:1) */
  --magenta-soft:#d457dd;  /* working magenta: tiles, blocks */
  --purple:#5f0f86;        /* brand ground */
  --violet:#6822d6;        /* action on light grounds */
  --purple-700:#571781;    /* muted text, eyebrows, captions */
  --purple-500:#9f35a6;
  --aubergine:#2c0b40;     /* ink and the dark ground */
  --orange:#ec5a29;
  --olive:#a2be3b;
  --lime:#d8fe51;          /* signal, once per screen */
  --tint-pink:#f5dcf8;     /* panels, quotes, hairlines */
  --tint-lilac:#f8f5fa;    /* paper */
  --tint-blush:#fdf2f1;    /* bands */
  --white:#ffffff;         /* cards on lilac only */

  /* roles: light theme */
  --surface:var(--tint-lilac);
  --surface-raised:var(--white);
  --surface-tint:var(--tint-pink);
  --ink:var(--aubergine);
  --ink-muted:var(--purple-700);
  --accent:var(--violet);
  --on-accent:var(--white);
  --border:var(--tint-pink);
  --mark:var(--magenta);
  --highlight:var(--lime);
  --focus:var(--magenta);

  /* the four tiles: ground and ink */
  --t1:var(--magenta-soft); --t1-ink:var(--aubergine);   /* 01 Position */
  --t2:var(--purple);       --t2-ink:var(--white);       /* 02 Build */
  --t3:var(--olive);        --t3-ink:var(--aubergine);   /* 03 Grow */
  --t4:var(--aubergine);    --t4-ink:var(--white);       /* 04 Run */
  --t4-border:transparent;

  /* type */
  --f-display:"Plus Jakarta Sans",system-ui,sans-serif;
  --f-body:"Inclusive Sans",system-ui,sans-serif;
  --f-mono:"DM Mono",ui-monospace,SFMono-Regular,monospace;

  /* scale: brand sizes at 1440, fluid down to 320 */
  --fs-display-xl:clamp(48px,4.6vw + 30px,96px);  /* 96 / .95 / 800 */
  --fs-display:clamp(40px,3vw + 30px,64px);       /* 64 / 1.0 / 700 */
  --fs-h1:clamp(34px,1.6vw + 27px,48px);          /* 48 / 1.05 / 700 */
  --fs-h2:clamp(28px,.9vw + 25px,36px);           /* 36 / 1.1 / 700 */
  --fs-h3:clamp(20px,.45vw + 18.5px,24px);        /* 24 / 1.25 / 600 */
  --fs-lead:clamp(18px,.25vw + 17px,20px);        /* 20 / 1.5 */
  --fs-body:17px;                                 /* 17 / 1.6 */
  --fs-small:15px;
  --fs-eyebrow:13px;                              /* 13 / 1.2 / 500 / +.12em */

  /* layout: 12 columns, 24px gutters, 1280 max, 4px rhythm */
  --max:1280px;
  --gutter:clamp(16px,4vw,48px);
  --col-gap:24px;
  --u:24px;                                 /* working unit */
  --space-section:clamp(48px,6vw,96px);     /* between sections */
  --space-title:clamp(40px,4.5vw,64px);     /* above a title */
  --radius-ui:8px;
  --radius-pill:999px;

  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --ease-in-out:cubic-bezier(0.77,0,0.175,1);

  color-scheme:light;
}

/* dark theme: follows the system unless the page pins data-theme */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --surface:var(--aubergine); --surface-raised:var(--purple); --surface-tint:var(--purple-700);
    --ink:var(--tint-lilac); --ink-muted:var(--tint-pink);
    --accent:var(--lime); --on-accent:var(--aubergine);
    --border:var(--purple-700);
    --t4:#1c0629; --t4-border:var(--purple-700);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --surface:var(--aubergine); --surface-raised:var(--purple); --surface-tint:var(--purple-700);
  --ink:var(--tint-lilac); --ink-muted:var(--tint-pink);
  --accent:var(--lime); --on-accent:var(--aubergine);
  --border:var(--purple-700);
  --t4:#1c0629; --t4-border:var(--purple-700);
  color-scheme:dark;
}

