/* ==========================================================================
   CONWIZ design tokens  (single source of truth)
   Port note: in Django, keep this file as-is in static/css/ and import first.
   Brand carry-over from the current logo: green + orange, nib-as-"i".
   ========================================================================== */
:root {
  /* ---- Colour: primitives ---- */
  --ink-950: #071e19;
  --ink-900: #0b2a24;      /* primary dark surface */
  --ink-800: #123a31;
  --ink-700: #1b4f42;
  --green-600: #1f7a63;
  --green-500: #2e9478;
  --green-200: #b8dccf;
  --green-100: #ddefe8;
  --spark-700: #b24d08;
  --spark-600: #d9600f;    /* orange on light backgrounds (large text / icons) */
  --spark-500: #ee7a2b;    /* the "spark": primary action colour */
  --spark-400: #f59a57;
  --spark-100: #fce8d8;
  --paper:    #fbf8f2;     /* page background, warm "manuscript" white */
  --paper-2:  #f4efe4;
  --paper-3:  #ebe4d4;
  --line:     #e2daca;
  --white:    #ffffff;

  /* ---- Colour: semantic ---- */
  --c-bg: var(--paper);
  --c-bg-alt: var(--paper-2);
  --c-surface: var(--white);
  --c-text: #16221f;
  --c-text-muted: #56655f;
  --c-text-on-dark: #eef4f1;
  --c-text-on-dark-muted: #a9c0b8;
  --c-border: var(--line);
  --c-border-on-dark: rgba(255, 255, 255, .14);
  --c-action: var(--spark-500);
  --c-action-hover: var(--spark-400);
  --c-action-text: var(--ink-950);
  --c-link: var(--green-600);
  --c-focus: #1a73e8;
  --c-del: #c2412d;        /* tracked-change deletion */
  --c-ins: #17795f;        /* tracked-change insertion */

  /* ---- Typography ---- */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", 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.6rem, 1.8rem + 4vw, 4.6rem);
  --step-6:  clamp(2.9rem, 1.7rem + 6vw, 6rem);

  --lh-tight: 1.04;
  --lh-snug: 1.2;
  --lh-body: 1.6;
  --track-display: -.022em;
  --track-eyebrow: .14em;

  /* ---- 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(11, 42, 36, .06), 0 2px 8px rgba(11, 42, 36, .05);
  --sh-2: 0 4px 14px rgba(11, 42, 36, .08), 0 18px 40px -12px rgba(11, 42, 36, .18);
  --sh-3: 0 30px 80px -20px rgba(7, 30, 25, .45);

  /* ---- 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;
}
