/* HCH Investors — design tokens (Phase 2 seed; refined in Phase 3)
   Legacy site defined no palette (browser defaults). These are the agreed
   starting tokens for the modern build; contrast pairs must clear WCAG AA. */
:root {
  /* Brand & neutrals — 2026 brand palette (navy/orange/terracotta extracted
     from the HCH badge artwork; backgrounds per ColorScheme.md options) */
  --color-primary: #183b5c;        /* brand navy — chrome, links, buttons     */
  --color-primary-dark: #10293f;   /* hover/pressed                           */
  --color-accent: #8c4b27;         /* terracotta — status & focus accents     */
  --color-brand-orange: #e86c23;   /* brand orange — decorative/large art use;
                                      NOT for body text (3.2:1 on white); dark
                                      CTA shade for white text: #c24d08 (4.8:1) */
  --color-brand-orange-aa: #c24d08;   /* AA-safe orange: ONLY orange allowed to carry white text */
  --color-brand-orange-aa-dark: #a84007; /* pressed/hover (white on it: 6.2:1) */
  --color-bg: #f4f6f8;             /* cool grey page bed (option A)           */
  --color-surface: #ffffff;        /* white cards float on the grey bed       */
  --color-text: #1c1c1c;           /* 15.4:1 on --color-bg (AA/AAA)           */
  --color-text-muted: #5b5b5b;     /* 5.9:1 on --color-bg (AA)                */
  --color-border: #d5dae0;

  /* Status vocabulary (mirrors properties.json statusVocabulary) */
  --status-available: #1a7f37;     /* Available Now        */
  --status-coming-soon: #9a6700;   /* Coming Soon          */
  --status-lease-pending: #6639ba; /* Lease Pending        */
  --status-rented: #6e7781;        /* Rented               */
  --status-historic: #8b949e;      /* Historic / confirm   */

  /* Type scale (mobile-first; rem-based) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;

  /* Spacing & shape */
  --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;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-pill: 999px;

  /* Breakpoints (min-width) — document convention for Phase 3 */
  --bp-sm: 480px; --bp-md: 768px; --bp-lg: 1024px; --bp-xl: 1280px;

  /* Elevation */
  --shadow-card: 0 1px 3px rgb(0 0 0 / 0.12), 0 4px 12px rgb(0 0 0 / 0.06);

  /* Status badges — fg/bg pairs verified ≥ 4.5:1 (WCAG AA) by scripts/render_test.mjs */
  --badge-available-bg: #ddf3e4; --badge-available-fg: #0f5c33;
  --badge-soon-bg: #fdeec9;      --badge-soon-fg: #6d4d00;
  --badge-pending-bg: #ece5fb;   --badge-pending-fg: #5b32a3;
  --badge-rented-bg: #e9ecef;    --badge-rented-fg: #495157;
  --badge-historic-bg: #eef1f4;  --badge-historic-fg: #525c66;

  /* Payer chips (Amenities & features): landlord = brand-orange tint, terracotta ink */
  --chip-landlord-bg: #fbe4d3;
  --chip-landlord-fg: #8c4b27;

  /* Warm callout panels (trash-day note etc.) — same orange family */
  --callout-accent-bg: #fbe4d3;

  /* Payment-instruction panel (.payment-card, data-gated): warm stone body
     under a navy header strip — every text pair AA-audited in npm test */
  --payment-bg: #efece9;         /* warm stone (footer family)              */
  --payment-fg: #1c1c1c;         /* 14.5:1 on --payment-bg                  */
  --payment-head-bg: #183b5c;    /* brand navy header strip                 */
  --payment-head-fg: #ffffff;    /* 11.6:1 on --payment-head-bg              */

  /* Banner tints (dark text on light tint; AA verified) */  --banner-available-bg: #e7f4ea;
  --banner-soon-bg: #fdf3d7;
  --banner-none-bg: var(--color-surface);

  /* Header band — solid navy; lockup renders HCH in white artwork (owner 2026-11) */
  --header-bg: #183b5c;
  --header-fg: #ffffff;            /* 11.6:1 on --header-bg                     */
  --header-muted: #c3d3e2;         /* tagline — 7.6:1 on --header-bg            */
  --header-hover: #ffab70;         /* link hover ink — 6.2:1 on --header-bg     */
  --header-active-bg: #c24d08;     /* current-page pill; white on it 4.8:1      */

  /* Footer — warm stone (option B): full-color badge centered, contact CTAs
     left, quick links right */
  --footer-bg: #efece9;
  --footer-fg: #1c1c1c;   /* 13.9:1 on --footer-bg */
  --footer-link: #183b5c; /* 10.4:1 on --footer-bg */
}
