/* ==========================================================================
   Design Tokens (CSS Custom Properties)
   Central place for colors, typography, spacing and breakpoints.
   Edit here to re-theme the whole site (e.g. lab branding later).
   ========================================================================== */

:root {
  /* --- Color palette: Light theme (academic navy/neutral) --- */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #1b2430;
  --color-text-muted: #5c6670;
  --color-border: #e2e6ea;

  --color-primary: #1f4e79;      /* academic navy */
  --color-primary-hover: #17395c;
  --color-primary-soft: rgba(31, 78, 121, 0.08);
  --color-accent: #2f6f6f;       /* muted teal accent */
  --color-success: #2f7d4f;
  --color-danger: #b0342e;

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

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* --- Spacing scale --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;

  /* --- Radii --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);

  /* --- Layout --- */
  --container-max: 1160px;
  --header-height: 64px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 150ms var(--ease);
}

/* ==========================================================================
   Dark theme — activated by [data-theme="dark"] on <html>.
   ========================================================================== */
html[data-theme="dark"] {
  --color-bg: #0d1117;
  --color-bg-alt: #161b22;
  --color-surface: #161b22;
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-border: #30363d;

  --color-primary: #79b8ff;
  --color-primary-hover: #9cc9ff;
  --color-primary-soft: rgba(121, 184, 255, 0.12);
  --color-accent: #56d4dd;
  --color-success: #56d364;
  --color-danger: #f85149;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Breakpoints (consumed by components via @media)
   ========================================================================== */
/* --sm: 640px, --md: 768px, --lg: 1024px, --xl: 1280px */
