/* ==========================================================================
   CONWIZ design tokens  (single source of truth)
   Port note: in Django, keep this file as-is in static/css/ and import first.
   Warm editorial theme: cream + petrol blue + coral; Newsreader display + Figtree UI.
   ========================================================================== */
:root {
  /* ---- Colour: primitives (warm editorial: cream/sand, petrol blue, soft coral) ----
     Variable names are kept from the previous theme so every component keeps working:
     --ink-* = petrol blue scale, --green-* = blue-tint scale, --spark-* = coral scale. */
  --ink-950: #0C2F3F;
  --ink-900: #123F52;      /* petrol: primary dark surface + primary button */
  --ink-800: #1C5670;
  --ink-700: #2B6A85;
  --green-600: #1C5670;    /* links / icons on light */
  --green-500: #2F7A97;
  --green-200: #C3D9DF;
  --green-100: #DCE9EC;
  --blue-wash: #EEF4F4;
  --spark-700: #A9432B;
  --spark-600: #C9573C;    /* deep coral: italic accent words, numerals on light */
  --spark-500: #E26D51;    /* coral: highlight button, accents */
  --spark-400: #F2A28E;    /* coral on dark surfaces */
  --spark-100: #FBE4DA;
  --paper:    #FBF7F1;     /* cream page background */
  --paper-2:  #F4EBDD;     /* sand */
  --paper-3:  #EADCC6;
  --line:     #E6D9C5;
  --hair:     #D9CDB8;     /* editorial hairline */
  --white:    #ffffff;
  --wa:       #1E9E5A;     /* WhatsApp green: only on WhatsApp controls */
  --wa-dark:  #17804a;

  /* ---- Colour: semantic ---- */
  --c-bg: var(--paper);
  --c-bg-alt: var(--paper-2);
  --c-surface: var(--white);
  --c-text: #16313B;
  --c-text-muted: #55696F;
  --c-text-on-dark: #F1F6F7;
  --c-text-on-dark-muted: #BFD3DA;
  --c-border: var(--line);
  --c-border-on-dark: rgba(255, 255, 255, .16);
  --c-action: var(--ink-900);
  --c-action-hover: var(--ink-800);
  --c-action-text: #fff;
  --c-link: var(--green-600);
  --c-focus: #1a73e8;
  --c-del: #C0533A;        /* tracked-change deletion */
  --c-ins: #123F52;        /* tracked-change insertion */

  /* ---- Typography ---- */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--2: clamp(.75rem, .73rem + .1vw, .8rem);
  --step--1: clamp(.82rem, .8rem + .12vw, .875rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.2rem + .75vw, 1.7rem);
  --step-3:  clamp(1.7rem, 1.4rem + 1.5vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.5vw, 3.3rem);
  --step-5:  clamp(2.7rem, 1.7rem + 4.6vw, 5.2rem);
  --step-6:  clamp(2.9rem, 1.7rem + 6vw, 6rem);

  --lh-tight: 1.03;
  --lh-snug: 1.2;
  --lh-body: 1.6;
  --track-display: -.022em;
  --track-eyebrow: .16em;

  /* ---- Spacing (4px base) ---- */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* ---- Shape ---- */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 36px; --r-pill: 999px;

  /* ---- Elevation ---- */
  --sh-1: 0 1px 2px rgba(22, 49, 59, .06), 0 2px 8px rgba(22, 49, 59, .05);
  --sh-2: 0 4px 14px rgba(22, 49, 59, .07), 0 18px 40px -12px rgba(22, 49, 59, .2);
  --sh-3: 0 30px 80px -20px rgba(12, 47, 63, .4);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .18s; --dur-2: .35s; --dur-3: .7s;

  /* ---- Z ---- */
  --z-header: 50; --z-mega: 60; --z-drawer: 80;
}
