/* ============================================================
   LUCID BROKERS: THEME TOKENS (the only file with brand values)

   Every color, font, radius and spacing value the site uses is a custom
   property here. public/site.css uses only var(--...) for them, and
   test/theme.test.mjs fails the gate if site.css contains a literal color,
   font family, radius or spacing value, or a var() not defined here.

   BRAND THEME (owner decisions 2026-10-21): the round mountain logo.
   Navy #3b5585 is the primary (buttons, links, eyebrows); cyan #21c3ee is a
   sparing accent (thin rules, badges, the hero mark) and is NEVER text on a
   light background and never carries white text (2.08:1); cyan surfaces take
   near-black text. Ink is near-black. The header uses the navy-lettering
   logo on white; the footer uses the original white logo on deep navy-black.
   Contrast (WCAG 2.2 AA, 4.5:1 for text, 3:1 for UI boundaries and focus)
   is enforced for every pair listed in test/theme.test.mjs.
   ============================================================ */

:root {
  color-scheme: light;

  /* ---- Brand palette (from the logo) ---- */
  --color-navy: #3b5585;           /* logo sky; 7.44:1 on paper, 6.41:1 on mist */
  --color-navy-deep: #2a3d61;      /* hover/pressed navy; 10.83:1 on paper */
  --color-cyan: #21c3ee;           /* logo peaks; accent only (2.08:1 on paper: never text) */
  --color-mist: #eaeff0;           /* logo arc; light grey for hover fills */
  --color-night: #141c2e;          /* footer background (deep navy-black) */

  /* ---- Colors ---- */
  --color-ink: #111827;            /* body text; 17.74:1 on paper, 16.33:1 on surface */
  --color-ink-soft: #374151;       /* secondary body text; 10.31:1 on paper, 9.49:1 on surface */
  --color-muted: #4b5563;          /* captions; 7.56:1 on paper, 6.96:1 on surface */
  --color-paper: #ffffff;          /* page background */
  --color-surface: #f3f6f7;        /* alternate sections (a lighter tint of mist) */
  --color-line: #d5dde0;           /* decorative dividers only (never the only boundary of a control) */
  --color-line-strong: #6b7280;    /* control borders; 4.83:1 on paper */
  --color-accent: var(--color-navy);           /* links, eyebrows */
  --color-accent-hover: var(--color-navy-deep);
  --color-primary: var(--color-navy);          /* primary buttons */
  --color-primary-hover: var(--color-navy-deep);
  --color-on-primary: #ffffff;     /* 7.44:1 on navy, 10.83:1 on navy-deep */
  --color-on-ink: #ffffff;         /* skip link text on ink */
  --color-on-cyan: var(--color-ink);           /* 8.54:1 on cyan */
  --color-band: var(--color-navy);             /* call-to-action band */
  --color-on-band: #ffffff;        /* 7.44:1 on navy */
  --color-on-band-muted: #e4e9f2;  /* 6.10:1 on navy */
  --color-on-night: #ffffff;       /* 17.00:1 on night */
  --color-on-night-muted: #c5ccd9; /* footer body text; 10.53:1 on night */
  --color-night-accent: var(--color-cyan);     /* footer link hover; 8.18:1 on night */
  --color-night-line: #33405c;     /* decorative divider on night */
  --color-focus: var(--color-navy);            /* focus ring on light backgrounds */
  --color-focus-on-dark: #ffffff;  /* focus ring on navy and night */

  /* ---- Typography (system stack; no web fonts) ---- */
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-heavy: 800;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  --text-display: clamp(2rem, 1.5rem + 2.6vw, 3.125rem);
  --leading-body: 1.6;
  --leading-tight: 1.2;
  --tracking-tight: -0.015em;
  --tracking-wide: 0.08em;

  /* ---- Radii ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---- Spacing ---- */
  --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;
  --gutter: 1rem;                  /* page side padding (16px on phones) */
  --section-space: var(--space-8);

  /* ---- Logo and brand shapes ---- */
  --logo-height: 2.25rem;          /* 36px header logo on phones (image is 615x96) */
  --logo-height-footer: 2.25rem;
  --accent-rule: 4px;              /* thin cyan rules (header top, cards) */
  --accent-rule-length: 3.5rem;    /* the short cyan rule above the hero heading */
  --hero-mark-size: 15rem;         /* decorative logo mark beside the hero (wide screens) */

  /* ---- Layout and controls ---- */
  --content-max: 70rem;
  --prose-max: 44rem;
  /* Target sizes. Where touch is the main input, --target-min also sizes footer and list
     links (site.css, TOUCH TARGETS), so --target-min-inline applies only where a mouse or
     trackpad is the main pointer. */
  --target-min: 44px;              /* buttons and nav links (WCAG 2.2 target size, with margin) */
  --target-min-inline: 24px;       /* footer links (WCAG 2.2 AA minimum) */
  --border-width: 1px;
  --border-width-strong: 2px;
  --focus-width: 3px;
  --focus-offset: 2px;
}

/* Below 360px (down to the 320px reflow width) a smaller logo keeps the Menu
   button on the same row: 28px high is about 179px wide (logo + gap + button
   is about 276px of the 288px available at 320px). */
@media (max-width: 22.49rem) {
  :root {
    --logo-height: 1.75rem;
  }
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
    --section-space: var(--space-9);
    --logo-height: 2.5rem;         /* 40px header logo (96px-high image for 2x, 144px for 3x);
                                      the nav collapses below 69rem so it stays on one row */
    --logo-height-footer: 2.5rem;
  }
}
