/* ==========================================================================
   AB56 Digital — design tokens
   Single source of truth for colour, type, space and motion.
   Change a value here and it flows through every page.
   ========================================================================== */

:root {
  /* Brand palette */
  --c-navy: #0B1120;        /* Midnight navy — primary ground */
  --c-slate: #1E293B;       /* Slate — raised surfaces */
  --c-blue: #38BDF8;        /* Electric blue — accent, actions */
  --c-silver: #CBD5E1;      /* Silver — secondary text, rules */
  --c-white: #F8FAFC;       /* White — primary text on dark, light ground */

  /* Derived tones (keep contrast at WCAG AA or better) */
  --c-navy-raised: #0F172A;
  --c-slate-hover: #263449;
  --c-muted: #94A3B8;       /* 7.4:1 on navy — body copy on dark */
  --c-blue-hover: #7DD3FC;
  --c-blue-deep: #0369A1;   /* accessible blue for text on light grounds */
  --c-ink: #0B1120;
  --c-ink-muted: #475569;   /* 7.6:1 on white */
  --c-line: rgb(203 213 225 / 0.12);
  --c-line-strong: rgb(203 213 225 / 0.22);
  --c-line-light: #E2E8F0;
  --c-glow: rgb(56 189 248 / 0.18);

  /* Typography */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.8125rem;   /* 13px — legal, captions */
  --fs-sm: 0.9375rem;   /* 15px — meta, labels */
  --fs-base: 1.0625rem; /* 17px — body */
  --fs-lg: 1.25rem;     /* 20px — lead paragraphs */
  --fs-h3: 1.375rem;    /* 22px — card titles */
  --fs-h2: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 4.6vw, 5.25rem);

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.65;

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.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(3.5rem, 2.25rem + 4.5vw, 6.5rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  --header-h: 72px;

  /* Shape and depth */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-card: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 20px 40px -24px rgb(0 0 0 / 0.6);
  --shadow-light: 0 1px 2px rgb(11 17 32 / 0.06), 0 12px 32px -16px rgb(11 17 32 / 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;
}
