/*
 * tokens.css — shared design tokens for all website sections.
 * Link this from any section file:  <link rel="stylesheet" href="/tokens.css">
 * Override any token at the section level by redeclaring it inside that section.
 */
:root {
  /* ---- Color palette ---- */
  --color-bg: #ffffff;
  --color-surface: #f6f7f9;
  --color-surface-alt: #eef1f5;
  --color-text: #0f172a;
  --color-text-muted: #5b6472;
  --color-border: #e2e8f0;

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-contrast: #ffffff;

  --color-accent: #0ea5e9;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;

  /* Dark surfaces (useful for dark hero / footer variants) */
  --color-dark: #0b1220;
  --color-dark-surface: #131c2e;
  --color-dark-text: #e6ebf2;
  --color-dark-text-muted: #9aa6b8;

  /* ---- Type scale (1.250 — major third) ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;

  --leading-tight: 1.15;
  --leading-normal: 1.55;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ---- Spacing scale (4px base) ---- */
  --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;

  /* ---- Radius ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

  /* ---- Layout ---- */
  --container-max: 1200px;
}
