/* Engage design tokens. The only file with raw colours and font declarations (a test enforces it). BRK's brand,
   following https://brk.tech/: white and warm cream grounds, ink text, gold accents, a serif display face over a quiet
   sans. brk.tech's gold (#a8832a) is under 4.5:1 on white, so it draws lines and marks only; text and buttons use a
   deeper gold of the same hue to keep WCAG AA. Light and dark. */
:root {
  color-scheme: light dark;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --size-xs: 0.78rem;
  --size-sm: 0.875rem;
  --size-md: 1rem;
  --size-lg: 1.35rem;
  --size-xl: 2.1rem;
  --size-xxl: 3rem;
  --size-display: clamp(2.6rem, 5vw, 4.2rem);
  --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;
  --radius: 12px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --shadow-raised: 0 8px 28px rgb(26 18 8 / 0.12);
  --width-page: 75rem;
  --width-narrow: 30rem;
  --header-height: 4.25rem;
  --tracking-caps: 0.2em;
  --tracking-button: 0.06em;

  --color-bg: #ffffff;
  --color-surface: #faf8f4;
  --color-surface-2: #f4f1eb;
  --color-surface-hover: #f0ede6;
  --color-header: rgb(255 255 255 / 0.88);
  --color-text: #1a1208;
  --color-muted: #6b6459;
  --color-border: rgb(0 0 0 / 0.08);
  --color-border-strong: rgb(0 0 0 / 0.14);
  --color-accent: #8a6a1c;
  --color-accent-hover: #6f5515;
  --color-accent-text: #ffffff;
  --color-accent-wash: rgb(168 131 42 / 0.08);
  --color-gold: #a8832a;
  --color-gold-line: rgb(168 131 42 / 0.35);
  --color-eyebrow: #7d6018;
  --color-link: #7d6018;
  --color-focus: #a8832a;
  --color-logo-mark: #1a1208;
  --color-logo-ink: #f5f0e8;
  --gradient-hero: radial-gradient(ellipse 70% 60% at 75% 40%, rgb(168 131 42 / 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 15% 90%, rgb(168 131 42 / 0.05) 0%, transparent 55%),
    linear-gradient(170deg, #f4f1eb 0%, #ffffff 100%);

  /* severity */
  --color-high: #b42318;
  --color-high-bg: #fde8e7;
  --color-medium: #8f5600;
  --color-medium-bg: #fbf0d9;
  --color-low: #2f5d8a;
  --color-low-bg: #e8eef5;
  --color-info: #4f4a42;
  --color-info-bg: #efece6;
  /* status */
  --color-gap: #b42318;
  --color-partial: #8f5600;
  --color-strength: #1f7a3f;
  --color-strength-bg: #e5f4ea;
  --color-unknown: #4f4a42;
  --color-excluded: #6b6459;
  /* advisory and confidence */
  --color-advisory: #6a3fb5;
  --color-advisory-bg: #efe9fa;
  --color-confidence-high: #1f7a3f;
  --color-confidence-medium: #8f5600;
  --color-confidence-low: #b42318;
  --color-quote-bar: #c9a84c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow-raised: 0 8px 28px rgb(0 0 0 / 0.5);
    --color-bg: #0d0d0d;
    --color-surface: #15130f;
    --color-surface-2: #1c1914;
    --color-surface-hover: #231f18;
    --color-header: rgb(13 13 13 / 0.85);
    --color-text: #f5f0e8;
    --color-muted: #aaa294;
    --color-border: rgb(255 255 255 / 0.08);
    --color-border-strong: rgb(255 255 255 / 0.16);
    --color-accent: #c9a84c;
    --color-accent-hover: #d9bc68;
    --color-accent-text: #0d0d0d;
    --color-accent-wash: rgb(201 168 76 / 0.1);
    --color-gold: #c9a84c;
    --color-gold-line: rgb(201 168 76 / 0.4);
    --color-eyebrow: #c9a84c;
    --color-link: #d9bc68;
    --color-focus: #d9bc68;
    --color-logo-mark: #f5f0e8;
    --color-logo-ink: #0d0d0d;
    --gradient-hero: radial-gradient(ellipse 70% 60% at 75% 40%, rgb(201 168 76 / 0.1) 0%, transparent 65%),
      radial-gradient(ellipse 50% 80% at 15% 90%, rgb(201 168 76 / 0.05) 0%, transparent 55%),
      linear-gradient(170deg, #15130f 0%, #0d0d0d 100%);
    --color-high: #f2867d;
    --color-high-bg: #3b1d1b;
    --color-medium: #f0b75e;
    --color-medium-bg: #36290f;
    --color-low: #8cb7e3;
    --color-low-bg: #1b2a3a;
    --color-info: #c4bcae;
    --color-info-bg: #26221b;
    --color-gap: #f2867d;
    --color-partial: #f0b75e;
    --color-strength: #7fd29b;
    --color-strength-bg: #183324;
    --color-unknown: #c4bcae;
    --color-excluded: #9d9586;
    --color-advisory: #c3a6f2;
    --color-advisory-bg: #2a2140;
    --color-confidence-high: #7fd29b;
    --color-confidence-medium: #f0b75e;
    --color-confidence-low: #f2867d;
    --color-quote-bar: #8a6a1c;
  }
}

/* Shared reference-guide typography and comparison tones, matching the source briefings. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/dm-sans-400.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/dm-sans-500.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/dm-sans-600.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/dm-sans-700.ttf') format('truetype'); }
:root { --font-guide: 'DM Sans', Arial, sans-serif; --font-guide-display: Georgia, 'Times New Roman', serif;
  --gradient-guide: linear-gradient(120deg, #f4f1e8, #fff); --color-guide-line: #dcd7cb; --color-guide-selected: #f4eedc;
  --color-guide-detail: #fcfbf8; --color-guide-sink: #faf7ef; --color-variant-0: #506c80; --color-variant-0-wash: #edf2f7;
  --color-variant-1: #4d735d; --color-variant-1-wash: #edf4ef; --color-variant-2: #765d83; --color-variant-2-wash: #f2edf5;
  --color-variant-text: #fff; }
@media (prefers-color-scheme: dark) { :root { --gradient-guide: linear-gradient(120deg, #211d13, #0d0d0d);
  --color-guide-line: #494337; --color-guide-selected: #30291a; --color-guide-detail: #191711; --color-guide-sink: #221e15;
  --color-variant-0: #45637a; --color-variant-0-wash: #17232e; --color-variant-1: #41664d; --color-variant-1-wash: #17251c;
  --color-variant-2: #694f79; --color-variant-2-wash: #261d2b; } }
.ref-tone-0 { --variant: var(--color-variant-0); --variant-wash: var(--color-variant-0-wash); }
.ref-tone-1 { --variant: var(--color-variant-1); --variant-wash: var(--color-variant-1-wash); }
.ref-tone-2 { --variant: var(--color-variant-2); --variant-wash: var(--color-variant-2-wash); }
