/* nh-tokens 1.0.0. NorthHead design tokens, synced from NHPlatform packages/tokens; do not edit a copy, change it there.

   Source of truth for the palette: NHWebsite src/css/styles.css section 1 ("Harbor & Spruce"). The dark set comes from
   NHCrm's dark mode (web/app/globals.css) and NHMonitor (web/app.css), and the status scale from NHMonitor. Every text
   pairing named in packages/tokens/test is checked for WCAG AA (4.5:1) in both themes.

   Light is the default. Dark is opt-in, so a light-only site never turns dark by accident:
     <html data-theme="auto">   follows the device setting
     <html data-theme="dark">   always dark (NHMonitor)
   Fonts are named here, not loaded: each app keeps its own @font-face rules and font files.

   Components use the role tokens (--nh-bg, --nh-text, --nh-accent, ...), which the dark set redefines. The palette
   tokens (--nh-paper, --nh-spruce, ...) are fixed hues for brand moments that look the same in both themes. */
:root {
  /* Palette: fixed hues. */
  --nh-paper: #f6f1e3; /* Page ground: warm paper */
  --nh-fog: #efe8d6; /* Alternate light band */
  --nh-fog-200: #e2d9c3; /* Hairlines on light grounds */
  --nh-sand-fog: #faedc6; /* Warm alternate band */
  --nh-ink: #13261f; /* Deep ink: text, footer, darkest bands */
  --nh-spruce-deep: #1f4f40; /* Primary dark band (the website's --navy) */
  --nh-spruce-700: #2a6150; /* Lighter deep spruce for hovers (the website's --navy-700) */
  --nh-spruce: #2f6b57; /* Links, eyebrows, accents (the website's --green) */
  --nh-spruce-600: #357a63;
  --nh-spruce-light: #a8d5c2; /* Spruce on dark grounds */
  --nh-mint: #d9ecdf; /* Soft spruce tint */
  --nh-sunflower: #f2c14e; /* The conversion colour (the website's --sand) */
  --nh-sunflower-soft: #f7d47f; /* Sunflower hover */
  --nh-butter: #fbe7b3; /* Soft sunflower tint */
  --nh-harbor: #3f8597; /* Harbor blue: accents and icon strokes, never small text */
  --nh-harbor-600: #357386;
  --nh-harbor-700: #2c6576; /* White on it is 6.6:1 */
  --nh-harbor-800: #235464;
  --nh-white: #ffffff;
  --nh-ink-rgb: 19, 38, 31;
  --nh-spruce-rgb: 47, 107, 87;
  --nh-sunflower-rgb: 242, 193, 78;
  --nh-harbor-rgb: 63, 133, 151;

  /* Roles, light. */
  --nh-bg: #f6f1e3;
  --nh-surface: #ffffff;
  --nh-surface-2: #efe8d6;
  --nh-surface-3: #fffdf8;
  --nh-line: #e2d9c3;
  --nh-line-soft: #efe8d6;
  --nh-line-strong: #d3c8ad;
  --nh-text: #13261f;
  --nh-muted: #4b5a54;
  --nh-faint: #5d6b64;
  --nh-link: #2f6b57;
  --nh-accent: #2f6b57;
  --nh-accent-soft: #d9ecdf;
  --nh-on-accent: #ffffff;
  --nh-signal: #f2c14e;
  --nh-signal-soft: #fbe7b3;
  --nh-on-signal: #13261f;
  --nh-focus: #2c6576;
  --nh-error: #a8322c;
  --nh-error-soft: #fbe9e9;

  /* Status, light: always shown with a word or a shape as well as the colour. Text on the matching -soft fill passes. */
  --nh-good: #22753a;
  --nh-good-soft: #e3f1e6;
  --nh-warn: #7f5600;
  --nh-warn-soft: #fbe7b3;
  --nh-serious: #9c4519;
  --nh-serious-soft: #f9e2d6;
  --nh-crit: #a8322c;
  --nh-crit-soft: #fbe9e9;
  --nh-info: #2b6390;
  --nh-info-soft: #e1edf5;

  /* Spacing: a 4 px scale. */
  --nh-space-1: 4px;
  --nh-space-2: 8px;
  --nh-space-3: 12px;
  --nh-space-4: 16px;
  --nh-space-5: 20px;
  --nh-space-6: 24px;
  --nh-space-7: 32px;
  --nh-space-8: 40px;
  --nh-space-9: 48px;
  --nh-space-10: 64px;

  /* Radius. */
  --nh-radius-xs: 4px;
  --nh-radius-sm: 8px; /* Small controls (the website's --radius-sm) */
  --nh-radius-md: 10px; /* Buttons */
  --nh-radius-lg: 14px; /* Cards and panels (the website's --radius) */
  --nh-radius-xl: 18px; /* Icon tiles */
  --nh-radius-pill: 999px;

  /* Type. */
  --nh-font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nh-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --nh-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Elevation: ink-tinted, as on the website. */
  --nh-shadow-sm: 0 1px 2px rgba(19, 38, 31, 0.06), 0 2px 6px rgba(19, 38, 31, 0.05);
  --nh-shadow: 0 1px 2px rgba(19, 38, 31, 0.05), 0 8px 18px -6px rgba(19, 38, 31, 0.1),
    0 24px 48px -18px rgba(19, 38, 31, 0.14);
  --nh-shadow-lg: 0 2px 4px rgba(19, 38, 31, 0.06), 0 16px 32px -10px rgba(19, 38, 31, 0.16),
    0 48px 80px -24px rgba(19, 38, 31, 0.18);

  /* Motion. */
  --nh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nh-dur-fast: 0.16s;
  --nh-dur: 0.24s;
  --nh-dur-med: 0.5s;
  --nh-dur-slow: 0.8s;

  color-scheme: light;
}

/* Roles, dark. The same block twice: once for "always dark", once for "follow the device". */
:root[data-theme="dark"] {
  --nh-bg: #0f1c17;
  --nh-surface: #16261f;
  --nh-surface-2: #1d3129;
  --nh-surface-3: #13221c;
  --nh-line: #2a3f37;
  --nh-line-soft: #213530;
  --nh-line-strong: #3a5249;
  --nh-text: #efe8d6;
  --nh-muted: #b5c4bb;
  --nh-faint: #93a69b;
  --nh-link: #a8d5c2;
  --nh-accent: #a8d5c2;
  --nh-accent-soft: #1f3a31;
  --nh-on-accent: #0f1c17;
  --nh-signal: #f2c14e;
  --nh-signal-soft: #3a2f14;
  --nh-on-signal: #0f1c17;
  --nh-focus: #f2c14e;
  --nh-error: #f09a88;
  --nh-error-soft: #3a1f1a;
  --nh-good: #2fb344;
  --nh-good-soft: #163323;
  --nh-warn: #fab219;
  --nh-warn-soft: #3a2f14;
  --nh-serious: #ec835a;
  --nh-serious-soft: #3a2318;
  --nh-crit: #ef6b62;
  --nh-crit-soft: #3a1f1a;
  --nh-info: #6aa9d8;
  --nh-info-soft: #16293a;
  --nh-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --nh-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --nh-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --nh-bg: #0f1c17;
    --nh-surface: #16261f;
    --nh-surface-2: #1d3129;
    --nh-surface-3: #13221c;
    --nh-line: #2a3f37;
    --nh-line-soft: #213530;
    --nh-line-strong: #3a5249;
    --nh-text: #efe8d6;
    --nh-muted: #b5c4bb;
    --nh-faint: #93a69b;
    --nh-link: #a8d5c2;
    --nh-accent: #a8d5c2;
    --nh-accent-soft: #1f3a31;
    --nh-on-accent: #0f1c17;
    --nh-signal: #f2c14e;
    --nh-signal-soft: #3a2f14;
    --nh-on-signal: #0f1c17;
    --nh-focus: #f2c14e;
    --nh-error: #f09a88;
    --nh-error-soft: #3a1f1a;
    --nh-good: #2fb344;
    --nh-good-soft: #163323;
    --nh-warn: #fab219;
    --nh-warn-soft: #3a2f14;
    --nh-serious: #ec835a;
    --nh-serious-soft: #3a2318;
    --nh-crit: #ef6b62;
    --nh-crit-soft: #3a1f1a;
    --nh-info: #6aa9d8;
    --nh-info-soft: #16293a;
    --nh-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --nh-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --nh-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
