/* Rookery Ventures design tokens (Claude system).
   Shared by the holding-company site and the orphan-domain placeholder.
   Change colors here; per-site words live in each mode's site.json
   and assets/config.js. */

:root {
  /* Palette */
  --ink: #121A23;
  --ice: #F3F5F3;
  --ocean: #14395E;
  --emperor: #F2A33A;
  --glacier: #A9BCC9;
  --slate: #4D5B68;

  /* Semantic (light) */
  --bg: var(--ice);
  --text: var(--ink);
  --text-muted: var(--slate);
  --border: color-mix(in srgb, var(--glacier) 55%, var(--ice));
  --link: var(--ocean);
  --link-hover: var(--ink);
  --mark-bar: var(--ocean);
  --mark-center: var(--emperor);
  --header-fg: var(--ink);
  --footer-fg: var(--slate);
  --stub-flag-bg: color-mix(in srgb, var(--emperor) 18%, var(--ice));
  --stub-flag-fg: var(--ink);

  /* Fonts */
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  /* Type scale (from the artifact: display 64, h1 40/44, h2 28/32, body 16/24, small 14/20, label 12/16) */
  --fs-display: clamp(2.75rem, 8vw, 5.4rem);
  --lh-display: 1.02;
  --ls-display: -0.03em;
  --fs-h1: clamp(1.75rem, 3vw, 2.5rem);
  --lh-h1: 1.1;
  --fs-h2: 1.75rem;
  --lh-h2: 1.15;
  --fs-body: 1.125rem;
  --lh-body: 1.55;
  --fs-small: 0.875rem;
  --lh-small: 1.45;
  --fs-label: 0.75rem;
  --lh-label: 1.35;
  --ls-label: 0.08em;

  /* Spacing */
  --page-pad: clamp(1.5rem, 6.2vw, 4.5rem);
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --header-h: 3.5rem;
  --footer-gap: 1.75rem;
  --content-max: 40rem;
  --huddle-w: clamp(8.5rem, 22vw, 15.25rem);

  --focus: 0 0 0 3px color-mix(in srgb, var(--emperor) 70%, white);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode swaps ice and ink (from the color system).
       Side bars use ice, not ocean: ocean on ink is only 1.5:1. */
    --bg: var(--ink);
    --text: var(--ice);
    --text-muted: var(--glacier);
    --border: color-mix(in srgb, var(--glacier) 28%, var(--ink));
    --link: var(--glacier);
    --link-hover: var(--ice);
    --mark-bar: var(--ice);
    --mark-center: var(--emperor);
    --header-fg: var(--ice);
    --footer-fg: var(--glacier);
    --stub-flag-bg: color-mix(in srgb, var(--emperor) 22%, var(--ink));
    --stub-flag-fg: var(--ice);
    --focus: 0 0 0 3px color-mix(in srgb, var(--emperor) 80%, black);
  }
}
