/* =========================================================================
   ARLoanSource design tokens.
   Single source of truth. Every color/spacing/type value in the codebase
   must reference one of these tokens — never a raw hex or pixel value in
   components.css. Audit is enforced in CI via a regex check against
   assets/css/components.css and layout.css.
   ========================================================================= */

:root {
  /* --- Color: brand ---------------------------------------------------- */
  --color-brand-900: #0b2545;   /* primary navy — used for H1, hero bg */
  --color-brand-700: #13315c;
  --color-brand-500: #1e5ea8;   /* link, primary CTA */
  --color-brand-300: #8da9c4;
  --color-brand-100: #eef4fa;   /* surface tint */

  /* --- Color: accent (use sparingly — trust/money signal) -------------- */
  --color-accent-600: #b0793a;  /* warm gold, used on "verified" badges */
  --color-accent-400: #d8a56b;

  /* --- Color: neutrals (text, borders, surfaces) ----------------------- */
  --color-ink-900: #0f1419;     /* body text */
  --color-ink-700: #3a4550;     /* secondary text */
  --color-ink-500: #6b7684;     /* tertiary / meta */
  --color-ink-300: #c2c9d1;     /* borders */
  --color-ink-100: #f4f6f8;     /* section bg */
  --color-ink-000: #ffffff;

  /* --- Color: semantic ------------------------------------------------- */
  --color-success-600: #1d7a4c;
  --color-warn-600:    #a66a00;
  --color-danger-600:  #a61e1e;

  /* --- Typography ------------------------------------------------------ */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-300: 0.875rem;   /* 14px - meta */
  --fs-400: 1rem;       /* 16px - body */
  --fs-500: 1.125rem;   /* 18px - lead */
  --fs-600: 1.375rem;   /* 22px - h4 */
  --fs-700: 1.75rem;    /* 28px - h3 */
  --fs-800: 2.25rem;    /* 36px - h2 */
  --fs-900: 3rem;       /* 48px - h1 */

  --lh-tight: 1.15;
  --lh-body: 1.6;
  --lh-heading: 1.25;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* --- Spacing (4px scale) -------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* --- Layout ---------------------------------------------------------- */
  --content-max: 72ch;        /* ideal measure for long-form guides */
  --container-max: 1200px;    /* page gutters */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* --- Elevation ------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 20, 25, 0.12);

  /* --- Motion (respect reduced-motion globally) ----------------------- */
  --dur-fast: 120ms;
  --dur-med:  220ms;
  --ease:     cubic-bezier(.2, .6, .2, 1);

  /* --- Focus ring (WCAG 2.1 AA: 3:1 contrast minimum) ----------------- */
  --focus-ring: 0 0 0 3px rgba(30, 94, 168, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-med:  0ms;
  }
}

@media (prefers-color-scheme: dark) {
  /* Dark-mode support is a Phase-3 deliverable; tokens here let us flip
     without refactoring components. Placeholder values, do not ship. */
}
