/* Wardly brand tokens. Single source of truth for the website and the Wardly app.
   Colors are sampled from the Wardly logo files in public/brand (navy #16324D, blue #355471, gold #C6A25F).
   All text pairs below were checked for WCAG AA contrast (see Wardly-Brand-Guide.md).
   The Genesis Group portal palette (purple, turquoise, burnt orange, sky) is NOT used here on purpose. */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --w-navy-900: #0F2438;   /* deepest, footer and dark surfaces */
  --w-navy-800: #16324D;   /* primary brand color (logo wordmark and left panel) */
  --w-navy-700: #213B58;   /* logo middle panel */
  --w-blue-600: #355471;   /* logo right panel, secondary buttons and chart color */
  --w-blue-500: #2A5C8A;   /* links and interactive highlights */
  --w-gold-500: #C6A25F;   /* logo diamond: the single accent color */
  --w-gold-700: #7A5F22;   /* gold for text on light backgrounds */
  --w-gold-100: #F7EEDB;   /* gold tint background */

  /* Neutrals (cool, never warm or beige) */
  --w-bg: #F5F7FA;
  --w-surface: #FFFFFF;
  --w-tint: #E8EEF5;       /* soft blue tint panels */
  --w-line: #D9E0E8;
  --w-ink: #14253A;        /* body text */
  --w-muted: #4A5B70;      /* secondary text */

  /* Status */
  --w-ok: #1F6B4A;      --w-ok-bg: #E4F3EC;
  --w-warn: #7A5F22;    --w-warn-bg: #F7EEDB;
  --w-bad: #A33030;     --w-bad-bg: #FBE7E5;
  --w-info: #2A5C8A;    --w-info-bg: #E8EEF5;

  /* Semantic aliases. The app should map its existing variables to these. */
  --brand: var(--w-navy-800);
  --brand-ink: #FFFFFF;
  --accent: var(--w-gold-500);
  --bg: var(--w-bg);
  --surface: var(--w-surface);
  --ink: var(--w-ink);
  --muted: var(--w-muted);
  --line: var(--w-line);
  --link: var(--w-blue-500);
  --ok: var(--w-ok);
  --warn: var(--w-warn);
  --bad: var(--w-bad);

  /* Type */
  --font-head: 'Nunito', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --fs-base: 17px;
  --lh-base: 1.6;

  /* Shape and depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22, 50, 77, .08);
  --shadow: 0 1px 2px rgba(22, 50, 77, .06), 0 8px 24px rgba(22, 50, 77, .08);
  --shadow-lg: 0 2px 4px rgba(22, 50, 77, .06), 0 18px 48px rgba(22, 50, 77, .14);
  --focus: 0 0 0 3px rgba(42, 92, 138, .35);

  /* Spacing scale (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;
}
