/* =====================================================================
   THEME  —  colours, fonts and design tokens.
   Switch palette by changing `theme.preset` in js/config.js, or add a
   new [data-theme="yourname"] block below (only 2 colours needed – all
   tints and shades are derived automatically).
   ===================================================================== */

:root {
  /* Brand (overridden by presets / config) */
  --primary: #0b66a3;
  --accent: #ff7a2f;
  --on-accent: #ffffff;           /* set automatically for contrast */

  /* Neutrals */
  --ink: #0e1c2b;
  --muted: #566879;
  --bg: #ffffff;

  /* Derived from the two brand colours */
  --primary-dark: color-mix(in srgb, var(--primary) 60%, #050f1a);
  --primary-light: color-mix(in srgb, var(--primary) 78%, #ffffff);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #ffffff);
  --surface: color-mix(in srgb, var(--primary) 4%, #ffffff);
  --line: color-mix(in srgb, var(--primary) 14%, #ffffff);
  --accent-dark: color-mix(in srgb, var(--accent) 84%, #000000);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #ffffff);

  /* Type */
  --font-heading: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 50, .06), 0 6px 18px rgba(10, 30, 50, .05);
  --shadow-md: 0 14px 34px -10px rgba(10, 40, 70, .2);
  --shadow-lg: 0 34px 70px -24px rgba(10, 40, 70, .32);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Presets ---------- */
[data-theme="ocean"]   { --primary: #0b66a3; --accent: #ff7a2f; }
[data-theme="teal"]    { --primary: #0f766e; --accent: #f97316; }
[data-theme="forest"]  { --primary: #166a4a; --accent: #f4b400; }
[data-theme="navy"]    { --primary: #1e3a8a; --accent: #f59e0b; }
[data-theme="crimson"] { --primary: #a8232f; --accent: #f2a413; }
[data-theme="slate"]   { --primary: #2f4560; --accent: #38bdf8; }
