/* ============================================================
   JAZ-V HOSPITALITY BUSINESS OPERATING SYSTEM
   Design tokens — carried from the Chairman proposal print system
   so the prototype and the document he has read are one language.
   ============================================================ */

:root {
  /* ---- palette (identical to the proposal) ---- */
  --ink:          #0E0E11;
  --ink-soft:     #1A1A1F;
  --charcoal:     #2A2A31;
  --slate:        #33333B;
  --ivory:        #FBF8F2;
  --cream:        #F4EFE4;
  --gold:         #B8912F;
  --gold-lt:      #D9B85C;
  --gold-pale:    #EFE3C4;
  --green:        #4F7A5B;
  --amber:        #C07A22;
  --red:          #9E4438;
  --grey:         #6E6A62;
  --grey-lt:      #A8A296;
  --rule:         #DED6C6;

  /* ---- tinted status surfaces ---- */
  --green-wash:   #F1F6F1;
  --amber-wash:   #FBF6EC;
  --red-wash:     #FBF1EF;
  --gold-wash:    #FCF7EA;

  /* ---- semantic surfaces (light shell) ---- */
  --bg:           #F7F3EA;
  --surface:      #FFFFFF;
  --surface-2:    var(--ivory);
  --surface-3:    var(--cream);
  --text:         var(--ink);
  --text-2:       var(--charcoal);
  --text-3:       var(--grey);
  --border:       var(--rule);
  --border-soft:  #EAE3D4;

  /* ---- dark surfaces (executive panels, topbar, login) ---- */
  --dk-bg:        var(--ink);
  --dk-surface:   #17171C;
  --dk-surface-2: #1F1F26;
  --dk-border:    #2E2E36;
  --dk-text:      var(--ivory);
  --dk-text-2:    #CFC9BC;
  --dk-text-3:    var(--grey-lt);

  /* ---- type ---- */
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", "P052",
           Georgia, "Times New Roman", serif;
  --sans:  Carlito, Calibri, "Segoe UI", Inter, system-ui, -apple-system,
           "Helvetica Neue", Arial, sans-serif;
  --mono:  "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --t-hero:   clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --t-h1:     clamp(1.5rem, 1.1rem + 1.3vw, 2.05rem);
  --t-h2:     clamp(1.22rem, 1rem + 0.7vw, 1.5rem);
  --t-h3:     clamp(1.02rem, 0.95rem + 0.28vw, 1.14rem);
  --t-body:   0.9375rem;   /* 15px — readable at arm's length */
  --t-sm:     0.8125rem;
  --t-xs:     0.6875rem;
  --t-micro:  0.625rem;

  /* money needs its own scale — it is the point of the whole system */
  --t-money-hero: clamp(2.35rem, 1.4rem + 3.4vw, 4rem);
  --t-money-lg:   clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
  --t-money-md:   1.15rem;

  --lead-tight:  1.18;
  --lead-snug:   1.34;
  --lead-body:   1.55;

  --track-eyebrow: 0.2em;
  --track-label:   0.11em;

  /* ---- spacing ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.375rem;
  --s-6: 1.75rem;
  --s-7: 2.25rem;
  --s-8: 3rem;
  --s-9: 4rem;

  --gutter:  clamp(1rem, 0.6rem + 1.4vw, 2.25rem);
  --sidebar: 250px;
  --topbar:  62px;
  --maxw:    1680px;

  /* ---- radii, lines, shadow ---- */
  --r-sm: 3px;
  --r:    5px;
  --r-lg: 9px;
  --r-xl: 14px;

  --hair: 1px solid var(--border);
  --hair-soft: 1px solid var(--border-soft);
  --accent-edge: 3px;

  --sh-1: 0 1px 2px rgba(14, 14, 17, 0.05);
  --sh-2: 0 2px 6px rgba(14, 14, 17, 0.06), 0 1px 2px rgba(14, 14, 17, 0.04);
  --sh-3: 0 8px 24px rgba(14, 14, 17, 0.09), 0 2px 6px rgba(14, 14, 17, 0.05);
  --sh-4: 0 20px 52px rgba(14, 14, 17, 0.17), 0 4px 12px rgba(14, 14, 17, 0.08);
  --sh-gold: 0 2px 14px rgba(184, 145, 47, 0.22);

  /* ---- motion — restrained ---- */
  --dur-fast:   130ms;
  --dur:        220ms;
  --dur-slow:   380ms;
  --ease:       cubic-bezier(0.32, 0.72, 0.28, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- z ---- */
  --z-nav: 60;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-present: 500;
}

/* Status colour mapped once, used everywhere. */
:root {
  --st-available:   var(--green);
  --st-occupied:    var(--gold);
  --st-reserved:    #3E6C8D;
  --st-cleaning:    var(--amber);
  --st-maintenance: var(--red);
  --st-checkout:    #8A5CA8;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur: 1ms; --dur-slow: 1ms; }
}
