/* ==========================================================================
   Quantex design tokens — source of truth: qhub-specs/design-tokens.md v1.0
   Palette is deliberately narrow: one enterprise navy for interaction, the
   semantic status colours, one neutral ink scale, a warm off-white canvas.
   Interaction tokens: docs/INTERACTION-TOKENS.md (R1.2 polish).
   ========================================================================== */

/* Manrope, self-hosted. Files are byte-identical to googlefonts/manrope at
   commit 6f81ebecdf65e4463b798cc07b16a4f8d5216917 (fonts/webfonts/), under the
   SIL Open Font License 1.1 (/assets/fonts/manrope/OFL.txt). font-display:swap
   keeps text visible while a weight loads; unused weights are never fetched. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:300;font-display:swap;src:url('/assets/fonts/manrope/Manrope-Light.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/manrope/Manrope-Regular.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/manrope/Manrope-Medium.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/manrope/Manrope-SemiBold.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/manrope/Manrope-Bold.woff2') format('woff2')}

:root {
  /* Ink scale */
  --ink: #101216;        /* text primary; dark surface (ledger) */
  --ink-2: #42464F;      /* text secondary */
  --ink-3: #696E78;      /* text muted; eyebrows, metadata — ≥4.5:1 on canvas/surface/band/wash */

  /* Surfaces */
  --canvas: #FAFAF8;     /* page background — warm white */
  --surface: #FFFFFF;    /* cards and components */
  --band: #F3F4F1;       /* alternating section band */
  --line: #E8E8E4;       /* card borders, dividers, inputs */
  --line-soft: #F0F0EC;  /* intra-card row dividers */

  /* Interaction: enterprise navy (status colours are separate and unchanged) */
  --primary: #173B67;
  --primary-hover: #102E52;
  --primary-active: #0B2442;
  --primary-tint: #EAF0F7;
  --focus: #2E6BD6;      /* focus ring: lighter blue, distinct from navy */
  --accent: var(--primary);
  --accent-ink: var(--primary-hover);
  --accent-wash: var(--primary-tint);

  /* Status */
  --verify: #12A36B;     /* success on light */
  --verify-dark: #3DD68C;/* success on dark (ledger) */
  --danger: #D93B3B;     /* error — defined per token spec */
  --hash: #93A7FF;       /* hash values on dark */

  /* Type */
  /* R1.1: Manrope is self-hosted (see @font-face below and docs/FONT-PROVENANCE.md);
     the fallback stack is the platform UI face. Monospace uses the system stack
     — no third-party font request remains. */
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Rhythm */
  --wrap: 1140px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --shadow-pbox: 0 12px 48px rgba(16,18,22,.09), 0 2px 6px rgba(16,18,22,.04);
  --shadow-pbox-focus: 0 14px 52px rgba(23,59,103,.14), 0 2px 6px rgba(16,18,22,.04);
}
