/* © 2026 Aureum Consulting LLC. Confidential and proprietary.
   AUREUM DESIGN SYSTEM · tokens.css (v1, Oct 26 2026)
   Charcoal + gold, matching the Aureum Consulting card. Built for restaurant clients (owner, manager, store tablet, customer ordering). Load order: tokens.css -> components.css (-> bridge.css only while legacy app.css is in use).
   Themes:  <html>               = Aureum dark (default, agency + owner apps)
            <html data-theme=light> = light surfaces (customer-facing pages, printing)
            <html data-text=large>  = large text   <html data-contrast=high> = high contrast   (same attrs as js/display-prefs.js)
   Client brand: the app already sets --brand, --brand-ink, --brand-accent, --brand-bg, --brand-font (js/engine/brand-kit.js
   brandCss()). Everything client-colored reads --ax-accent*, which falls back to Aureum gold when no brand is set. */

@font-face{font-family:'Cormorant Garamond';src:url(../fonts/cormorant-v40h.woff2) format('woff2');font-weight:300 700;font-display:swap}
@font-face{font-family:'Cormorant Garamond';src:url(../fonts/cormorant-italic-v40h.woff2) format('woff2');font-weight:300 700;font-style:italic;font-display:swap}
@font-face{font-family:'Manrope';src:url(../fonts/manrope-v40h.woff2) format('woff2');font-weight:200 800;font-display:swap}

:root{
  color-scheme:dark;
  /* --- brand palette (from the card: border gold #D6BC7C, cream #F0E8D4, charcoal #08080A–#141416) --- */
  --ax-gold-50:#FBF5E6; --ax-gold-100:#F3E6C4; --ax-gold-200:#EBD49A; --ax-gold-300:#D6BC7C; --ax-gold-400:#C9A54C;
  --ax-gold-500:#B08A35; --ax-gold-600:#8A6A1F; --ax-gold-700:#5E4813;
  --ax-char-950:#08080A; --ax-char-900:#0E0E11; --ax-char-850:#141417; --ax-char-800:#1B1B1F; --ax-char-700:#25252A;
  --ax-char-600:#34343A; --ax-char-500:#4A4A52;
  --ax-cream:#F3ECDC;

  /* --- semantic surfaces & text (dark) --- */
  --ax-bg:var(--ax-char-950);
  --ax-bg-grad:radial-gradient(120% 60% at 80% -10%,rgba(214,188,124,.09),transparent 60%),linear-gradient(180deg,#111114 0,var(--ax-char-950) 520px);
  --ax-surface:var(--ax-char-850); --ax-surface-2:var(--ax-char-800); --ax-surface-3:var(--ax-char-700);
  --ax-overlay:rgba(8,8,10,.72); --ax-glass:rgba(14,14,17,.86);
  --ax-text:var(--ax-cream);       /* 15.6:1 on surface */
  --ax-text-2:#C9C1B0;             /* 10.3:1 */
  --ax-text-3:#9A9384;             /* 6.0:1  (AA body) */
  --ax-line:rgba(214,188,124,.26); --ax-line-soft:rgba(255,255,255,.07); --ax-line-strong:rgba(214,188,124,.55);
  --ax-gold:var(--ax-gold-300); --ax-gold-hi:var(--ax-gold-200); --ax-gold-ink:#1A1408;
  --ax-gold-grad:linear-gradient(180deg,#EBD49A 0%,#D6BC7C 45%,#C9A54C 100%);

  /* --- status (always paired with a word/icon, never color alone) --- */
  --ax-critical:#FF7A6B; --ax-critical-bg:rgba(255,92,77,.14); --ax-critical-line:rgba(255,122,107,.55);
  --ax-high:#F5A863;     --ax-high-bg:rgba(245,168,99,.14);     --ax-high-line:rgba(245,168,99,.5);
  --ax-medium:#E9CF63;   --ax-medium-bg:rgba(233,207,99,.13);   --ax-medium-line:rgba(233,207,99,.45);
  --ax-low:#93BDEB;      --ax-low-bg:rgba(147,189,235,.13);     --ax-low-line:rgba(147,189,235,.45);
  --ax-ok:#86D6A6;       --ax-ok-bg:rgba(134,214,166,.13);      --ax-ok-line:rgba(134,214,166,.45);
  --ax-info:var(--ax-low);

  /* --- client accent (falls back to Aureum gold) --- */
  /* Dark shells use --brand-on-dark (set by theme.js: the client color that reads on charcoal, else unset -> gold),
     so a dark client color (e.g. espresso) never disappears on the charcoal app. Light pages use --brand directly. */
  --ax-accent:var(--brand-on-dark,var(--ax-gold));
  --ax-accent-ink:var(--brand-on-dark-ink,var(--ax-gold-ink));
  --ax-accent-2:var(--brand-accent,var(--ax-gold-hi));
  --ax-accent-soft:color-mix(in srgb,var(--ax-accent) 16%,transparent);
  --ax-accent-line:color-mix(in srgb,var(--ax-accent) 45%,transparent);

  /* --- type: refined serif display + clean sans body (self-hosted, free OFL fonts) --- */
  --ax-serif:'Cormorant Garamond','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --ax-sans:Manrope,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --ax-mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  --ax-font-brand:var(--brand-font,var(--ax-sans));
  --ax-fs-xs:11.5px; --ax-fs-sm:13px; --ax-fs-md:15px; --ax-fs-lg:17px; --ax-fs-xl:20px;
  --ax-fs-h3:22px; --ax-fs-h2:28px; --ax-fs-h1:34px; --ax-fs-display:48px; --ax-fs-money:56px;
  --ax-lh:1.5; --ax-lh-tight:1.12;
  --ax-track-caps:.18em;

  /* --- space (4/8 grid, generous) --- */
  --ax-s1:4px; --ax-s2:8px; --ax-s3:12px; --ax-s4:16px; --ax-s5:20px; --ax-s6:24px; --ax-s8:32px; --ax-s10:40px; --ax-s12:48px; --ax-s16:64px;
  --ax-gutter:20px; --ax-maxw:1180px;

  /* --- shape & depth --- */
  --ax-r-sm:10px; --ax-r-md:14px; --ax-r-lg:20px; --ax-r-xl:26px; --ax-r-pill:999px;
  --ax-sh-1:0 1px 2px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.035);
  --ax-sh-2:0 12px 28px -16px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.04);
  --ax-sh-3:0 28px 60px -24px rgba(0,0,0,.85);
  --ax-sh-gold:0 14px 34px -14px rgba(214,188,124,.45);
  --ax-ring:0 0 0 3px color-mix(in srgb,var(--ax-accent) 45%,transparent);

  /* --- motion (calm; disabled for reduced motion) --- */
  --ax-dur-1:120ms; --ax-dur-2:220ms; --ax-dur-3:380ms; --ax-ease:cubic-bezier(.2,.7,.2,1); --ax-ease-out:cubic-bezier(.16,1,.3,1);

  /* --- touch --- */
  --ax-tap:44px; --ax-tap-store:60px; --ax-nav-h:66px;
  --ax-safe-t:env(safe-area-inset-top,0px); --ax-safe-b:env(safe-area-inset-bottom,0px);
  --ax-safe-l:env(safe-area-inset-left,0px); --ax-safe-r:env(safe-area-inset-right,0px);

}

/* Light theme: customer-facing pages (ordering, booking) and print. Gold text darkens for AA on white. */
[data-theme=light]{
  color-scheme:light;
  --ax-bg:#FAF7F0; --ax-bg-grad:linear-gradient(180deg,#FFFDF8,#FAF7F0 420px);
  --ax-surface:#FFFFFF; --ax-surface-2:#F5F1E8; --ax-surface-3:#ECE6D8;
  --ax-overlay:rgba(20,18,14,.45); --ax-glass:rgba(255,253,248,.9);
  --ax-text:#18171A;   /* 17.9:1 */
  --ax-text-2:#46423A; /* 10.0:1 */
  --ax-text-3:#6B6558; /* 5.8:1 */
  --ax-line:rgba(138,106,31,.24); --ax-line-soft:rgba(24,23,26,.08); --ax-line-strong:rgba(138,106,31,.5);
  --ax-gold:var(--ax-gold-600); --ax-gold-hi:var(--ax-gold-500);
  --ax-critical:#B42318; --ax-critical-bg:#FDECEA; --ax-critical-line:#F3B5AE;
  --ax-high:#A6510F;     --ax-high-bg:#FEF1E4;     --ax-high-line:#F2C69B;
  --ax-medium:#7A5A00;   --ax-medium-bg:#FCF5D9;   --ax-medium-line:#E8D58C;
  --ax-low:#1F5A9A;      --ax-low-bg:#E9F1FB;      --ax-low-line:#B6CDEA;
  --ax-ok:#1E7046;       --ax-ok-bg:#E6F4EC;       --ax-ok-line:#A9D8BD;
  --ax-accent:var(--brand,var(--ax-gold-500));
  --ax-accent-ink:var(--brand-ink,#FFFFFF);
  --ax-sh-1:0 1px 2px rgba(24,23,26,.06);
  --ax-sh-2:0 10px 26px -14px rgba(24,23,26,.18);
  --ax-sh-3:0 24px 56px -22px rgba(24,23,26,.28);
}

/* Large text (same attribute as js/display-prefs.js) */
[data-text=large]{
  --ax-fs-xs:14px; --ax-fs-sm:16px; --ax-fs-md:18px; --ax-fs-lg:21px; --ax-fs-xl:24px;
  --ax-fs-h3:26px; --ax-fs-h2:32px; --ax-fs-h1:40px; --ax-fs-display:54px; --ax-fs-money:62px;
  --ax-tap:52px; --ax-tap-store:68px;
}
/* High contrast: pure black/white, saturated yellow accent, solid lines */
[data-contrast=high]{
  --ax-bg:#000; --ax-bg-grad:none; --ax-surface:#000; --ax-surface-2:#000; --ax-surface-3:#111;
  --ax-text:#fff; --ax-text-2:#fff; --ax-text-3:#E8E8E8;
  --ax-line:#fff; --ax-line-soft:#BDBDBD; --ax-line-strong:#fff;
  --ax-gold:#FFD400; --ax-gold-hi:#FFE866; --ax-gold-grad:#FFD400; --ax-gold-ink:#000;
  --ax-accent:#FFD400; --ax-accent-ink:#000; --ax-accent-2:#FFE866; --ax-accent-soft:transparent; --ax-accent-line:#FFD400;
  --ax-critical:#FF8A80; --ax-high:#FFB74D; --ax-medium:#FFE866; --ax-low:#9CCBFF; --ax-ok:#7DFFA8;
  --ax-critical-bg:#000; --ax-high-bg:#000; --ax-medium-bg:#000; --ax-low-bg:#000; --ax-ok-bg:#000;
  --ax-critical-line:#FF8A80; --ax-high-line:#FFB74D; --ax-medium-line:#FFE866; --ax-low-line:#9CCBFF; --ax-ok-line:#7DFFA8;
  --ax-sh-1:none; --ax-sh-2:none; --ax-sh-3:none; --ax-sh-gold:none; --ax-ring:0 0 0 4px #FFD400;
}
[data-theme=light][data-contrast=high]{
  --ax-bg:#fff; --ax-surface:#fff; --ax-surface-2:#fff; --ax-surface-3:#F2F2F2;
  --ax-text:#000; --ax-text-2:#000; --ax-text-3:#1A1A1A; --ax-line:#000; --ax-line-soft:#444; --ax-line-strong:#000;
  --ax-accent:#000; --ax-accent-ink:#fff; --ax-gold:#5E4813; --ax-ring:0 0 0 4px #000;
}
@media (prefers-reduced-motion:reduce){:root{--ax-dur-1:0ms;--ax-dur-2:0ms;--ax-dur-3:0ms}}
