/* ============================================================================
   BOOKING APP TOKENS — Shiva Temple Manchester
   ----------------------------------------------------------------------------
   This file no longer holds a palette. It maps the booking app's token names
   onto the site's, which are defined once in assets/css/design-tokens.css and
   loaded by every page including this one.

   The booking app was built as a standalone product with its own vocabulary —
   --bg, --surface, --accent, --step-3 — while the temple site speaks of
   --paper, --ink, --saffron, --t-h2. Renaming one to the other would mean
   touching 271 places where the booking JavaScript writes class names and
   styles, including the checkout. So the vocabularies stay, and this file is
   the dictionary between them.

   The point is that a colour cannot drift. --accent and --gold-deep are not
   two values that somebody keeps in step; they are one value with two names.

   Two names are deliberately absent. --ease and --brand-red are defined in
   design-tokens.css already, and redefining them here as var(--ease) and
   var(--brand-red) would be a cycle that resolves to nothing. They simply
   cascade through.
   ========================================================================== */

:root {
  /* --- Ground ------------------------------------------------------------
     The site is warm paper with hairline rules, not white cards with
     shadows, so a "surface" is the same paper with a rule around it. */
  --bg:            var(--paper);
  --bg-alt:        var(--paper-2);
  --surface:       var(--paper);
  --surface-sunk:  var(--paper-2);
  --surface-inv:   var(--ink);
  --line:          var(--hair);
  --line-strong:   rgba(42, 31, 18, .32);   /* between --hair and --ink */

  /* --- Text --------------------------------------------------------------- */
  --text:         var(--ink);
  --text-muted:   var(--ink-soft);
  --text-faint:   var(--muted);
  --text-inv:     var(--on-photo);
  --text-onbrand: var(--on-photo);

  /* --- Interactive ---------------------------------------------------------
     On the temple site the structural action colour is the deep brass — 64
     uses in main.css, on borders, buttons and headings — and the red is what
     things turn when you point at them. The booking app is given the same
     habit rather than the red-led one it grew up with. */
  --accent:       var(--gold-deep);
  --accent-hover: var(--brand-red);
  --accent-soft:  rgba(246, 183, 38, .20);  /* as .submenu a:hover */
  --accent-ring:  rgba(122, 87, 9, .32);
  --focus:        var(--gold-deep);

  /* --- Ornament, drawn from the site's sand and stone --------------------- */
  /* --brand-grey is dark text on a sunken panel; --brand-grey-soft is the
     accent word in the hero, which sits on a dark photograph and therefore
     has to be light. They were a matched pair of greys in the old palette and
     it would be easy to map them as a pair here — but one is foreground on
     light and the other is foreground on dark, so they part company. */
  --brand-grey:          var(--muted);
  --brand-grey-soft:     var(--sand);
  --brand-ornament:      var(--sand-deep);
  --brand-ornament-soft: var(--sand);
  --brand-red-dark:      var(--brand-red-2);
  --brand-red-light:     var(--brand-red);

  /* --- The calendar's band ---------------------------------------------------
     The deep red the organiser already declares as its browser theme colour
     (book/organiser.html, theme-color). Named once here so the calendar band
     and the browser chrome cannot drift apart. */
  --maroon:       #75121A;
  --maroon-deep:  #5A0D13;

  /* --- Status ------------------------------------------------------------
     Left as they were. These say "this booking failed" or "this is paid",
     and that meaning is carried by green, amber and red everywhere on the
     web. Bending them towards the palette would cost more in clarity than
     it gained in harmony. */
  --ok:      #17795E;  --ok-bg:   #E4F4EE;
  --warn:    #A96A00;  --warn-bg: #FDF0D9;
  /* Amber for WORDS. --warn on --warn-bg is 3.9:1, under the 4.5:1 that small text needs;
     this is 5.1:1 there and on the page ground. --warn stays for bars and borders. */
  --warn-ink: #8F5A00;
  --err:     #B3261E;  --err-bg:  #FBE9E7;
  --info:    #17557A;  --info-bg: #E3F0F7;

  /* --- Typography --------------------------------------------------------- */
  --font-display: var(--display);           /* Cormorant Garamond, not Marcellus */
  --font-body:    var(--body);
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* The two scales are mapped by the job each size does, not by its number. */
  --step--1: var(--t-small);    /* captions, small print */
  --step-0:  var(--t-body);     /* body */
  --step-1:  var(--t-lead);     /* lead paragraphs, large labels */
  --step-2:  var(--t-h3);       /* card titles */
  --step-3:  var(--t-h2);       /* section headings */
  --step-4:  var(--t-h1);       /* page titles */
  --step-5:  var(--t-hero);     /* the hero */

  /* --- Space: the two scales were already identical, step for step -------- */
  --sp-1: var(--s1);  --sp-2: var(--s2);  --sp-3: var(--s3);
  --sp-4: var(--s4);  --sp-5: var(--s5);  --sp-6: var(--s6);
  --sp-7: var(--s7);  --sp-8: var(--s8);  --sp-9: var(--s9);

  /* --- Shape --------------------------------------------------------------
     The site is square: 2px, 4px where something needs to feel lifted. The
     pill stays a pill — the site uses 999px in seven places, so a rounded
     badge is part of the language rather than a leftover. */
  --r-sm:   var(--radius);
  --r-md:   var(--radius);
  --r-lg:   var(--radius-lg);
  --r-xl:   var(--radius-lg);
  --r-pill: 999px;

  /* --- Depth: the site lifts with one long soft shadow, not three ---------- */
  --shadow-1: 0 1px 2px rgba(42, 31, 18, .06), 0 1px 3px rgba(42, 31, 18, .08);
  --shadow-2: var(--shadow-lift);
  --shadow-3: 0 24px 60px -28px rgba(42, 31, 18, .45);

  --container: var(--maxw);
}
