/* Silos design tokens (concept 03 "Aerial", light theme; the app ships light only).
   Brand: navy #1B2140 + ONE accent variable. --accent defaults to Grain Amber #B97A20 and is
   replaced at boot by a client tenant's accent (js/brand.js applyBranding). Every accent use that
   carries text goes through a derived shade that is re-measured for the tenant's colour:
   - --accent-ink    text, links, filled buttons with white labels (>= 4.5:1 on white/page/sunken)
   - --accent-ui     focus ring, today line, active icons (>= 3:1, WCAG 1.4.11)
   - --accent-tint / --accent-tint-ink   selected nav and chips (ink >= 4.5:1 on the tint)
   The defaults below are exactly what accentTokens('#B97A20') computes, so there is no flash.
   Status colours (success / warning / danger / info) are semantic and do not follow the tenant. */

@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/newsreader-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/newsreader-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;

  /* Brand (tenant-overridable at runtime) */
  --brand-navy:      #1B2140;
  --accent:          #B97A20;
  --accent-ui:       #B97A20;
  --accent-ink:      #8C5A14;
  --accent-hover:    #734A10;
  --accent-tint:     #F5ECE0;
  --accent-tint-ink: #8C5A14;

  /* Data palette (charts, status families; unchanged by tenant) */
  --swat-terracotta: #C0573C;
  --swat-sienna:     #A8442C;
  --swat-ochre:      #C2853A;
  --swat-rust:       #8F3B2B;
  --swat-adobe:      #D49274;
  --swat-olive:      #7A8450;
  --swat-moss:       #5E6B3A;
  --swat-sage:       #B6BC8E;
  --swat-sandstone:  #EAD4B6;
  --swat-teal:       #3F7E78;
  --swat-deep-teal:  #2C5C57;
  --swat-denim:      #5A6E84;
  --swat-slate-blue: #41526A;
  --swat-ink:        #2F3552;
  --swat-black:      #0E1224;

  /* Semantic */
  --color-bg:             #F6F7FA;
  --color-surface:        #FFFFFF;
  --color-surface-raised: #FAFBFD;
  --color-surface-sunken: #ECEEF4;
  --color-border:         #E1E4EC;
  --color-border-strong:  #C8CEDC;
  --color-text:           #1B2140;
  --color-text-muted:     #565D72;
  --color-text-subtle:    #5E657A;

  --color-primary:        var(--accent-ui);    /* decoration, rules, active icons */
  --color-primary-fill:   var(--accent-ink);   /* filled buttons carrying small text */
  --color-primary-hover:  var(--accent-hover);
  --color-on-primary:     #FFFFFF;
  --color-link:           var(--accent-ink);
  --color-focus:          var(--accent-ui);

  --color-success:    #5E6B3A;  --color-success-bg: #DCE2C4;  --color-success-ink: #4A5530;
  --color-warning:    #C2853A;  --color-warning-bg: #EFE0C2;  --color-warning-ink: #6E4A1B;
  --color-danger:     #8F3B2B;  --color-danger-bg:  #EFD8CF;  --color-danger-ink:  #7A3223;
  --color-info:       #3F7E78;  --color-info-bg:    #CFE3DF;  --color-info-ink:    #2C5C57;
  --color-neutral-bg: #ECEEF4; --color-neutral-ink: #2F3552;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 999px;

  --elevation-1: 0 1px 2px rgba(20,26,50,0.06), 0 1px 3px rgba(20,26,50,0.08);
  --elevation-2: 0 4px 8px rgba(20,26,50,0.07), 0 6px 16px rgba(20,26,50,0.09);
  --elevation-3: 0 10px 20px rgba(20,26,50,0.10), 0 16px 36px rgba(20,26,50,0.12);

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans:  'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --sidebar-w: 248px;
}
