/*
 * Sahihi design tokens (Foxhound brand guide v1.1).
 *
 * The only file that defines colours, type and spacing. Everything else uses
 * these custom properties. No build step: this file is served as is.
 *
 * Three groups:
 *   1. Brand  - the Foxhound oranges. A white-label theme replaces this group
 *               only, by loading its own copy after this file.
 *   2. Status - fixed meanings (valid, error, warning). Never re-themed.
 *   3. Neutrals, type and spacing - fixed.
 *
 * Contrast (WCAG 2.2 AA, checked in tests/test_brand.py):
 *   --brand-accent is 2.87:1 on white and 2.71:1 on Paper, below even the 3:1
 *   large-text minimum, so it is never used for text or for anything a user must
 *   see to operate the page. Logo, rules and decorative accents only.
 */

:root {
  /* 1. Brand (replaceable) ------------------------------------------------ */
  --brand-accent: #F37335;        /* Foxhound Orange: logo, rules, decorative accents */
  --brand-primary: #B84A14;       /* Burnt Orange: primary buttons (white text), links, body-size orange text, focus ring */
  --brand-primary-strong: #8A3A0A;/* Fox Brown: hover/pressed on primary, muted tags */
  --brand-deep: #8F1306;          /* Deep Maroon: footer and dense headers */
  --brand-on-primary: #FFFFFF;    /* text on --brand-primary and --brand-deep */
  --brand-tint: #FBEDE5;          /* faint Burnt Orange wash for selected or highlighted areas */

  /* 2. Status (fixed) ----------------------------------------------------- */
  --status-valid: #2F6B3A;        /* valid / verified; 6.39:1 on white */
  --status-valid-bg: #EEF6EF;
  --status-valid-border: #BFD9C3;
  --status-error: #D91404;        /* Crimson: errors, destructive actions, alerts only */
  --status-error-strong: #A30F03; /* hover on destructive buttons */
  --status-error-bg: #FCEDEB;
  --status-error-border: #F0C2BC;
  --status-warning: #FE9901;      /* Amber Gold: warning markers only, never text on light */
  --status-warning-bg: #FFF5E5;
  --status-warning-border: #FFD699;
  --status-info-bg: #F3EFEB;
  --status-info-border: #DDD3CA;

  /* 3. Neutrals (fixed) --------------------------------------------------- */
  --neutral-text: #231F1E;        /* Charcoal */
  --neutral-text-muted: #5B534E;  /* Slate: secondary text */
  --neutral-page: #FBF8F5;        /* Paper: page background */
  --neutral-surface: #FFFFFF;     /* cards */
  --neutral-border: #E7DFD8;      /* card borders, dividers */
  --neutral-border-strong: #8C817A; /* form control borders; 3.6:1 on white */
  --neutral-subtle: #F3EFEB;      /* table stripes, code backgrounds */
  --neutral-on-deep: #F3E6E2;     /* body text on --brand-deep; 7.6:1 */

  /* Type ------------------------------------------------------------------- */
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */
  --leading-tight: 1.2;
  --leading-normal: 1.6;

  /* Spacing: an 8px scale (--space-half is the one 4px step) ---------------- */
  --space-half: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;

  /* Shape and layout ------------------------------------------------------- */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 2px rgba(35, 31, 30, 0.04);
  --shadow-menu: 0 8px 24px rgba(35, 31, 30, 0.12);
  --focus-ring: 3px solid var(--brand-primary);
  --width-page: 1120px;
  --width-entrance: 448px;
  --width-manage: 720px;
}
