/* Hair Brained: Beauty & Blade — design tokens (checklist B5 / E1)
   Five brand colours: coral, gold, black, bone from the brand sheet, plus violet (added 30 Nov 2026 with the purple-hair mark).
   Violet is an accent. Coral stays the only action colour.
   RULE: components use the role variables only. Never hard-code a hex outside this file.
   Contrast figures are WCAG ratios against the ground of that mode. */

:root{
  /* Brand primitives (sampled from the brand sheet) */
  --hb-coral:#DE7039;
  --hb-gold:#C39A52;
  --hb-black:#0C0B0A;
  --hb-bone:#F7F1E3;
  --hb-violet:#6F4E8C;          /* fifth brand colour, from the woman's hair. On bone: 5.93:1 as text or as a fill with a bone label. NOT for text on black (2.94:1) */
  --hb-violet-deep:#4B2F66;     /* shadow side of violet, for depth on the Kids ground. Bone on it: 9.83:1 */
  --hb-violet-mist:#E6DCF3;     /* quiet text on violet: 5.06:1 */
  --hb-lilac:#B79BE0;           /* violet for dark grounds: 8.22:1 on black. Never on bone (2.12:1) */

  /* Derived primitives */
  --hb-surface-dark:#14120F;
  --hb-muted-on-dark:#B7AC9D;   /* 8.80:1 on black */
  --hb-muted-on-bone:#5F574C;   /* 6.31:1 on bone  */
  --hb-coral-deep:#B8481C;      /* 4.68:1 on bone — link colour on light ground */
  --hb-surface-bone:#FFFAEE;

  /* Type */
  --font-wordmark:"Rye", "Bodoni Moda", Georgia, serif;          /* wordmark ONLY */
  --font-head:"Bodoni Moda", "Didot", "Times New Roman", serif;   /* headings */
  --font-body:"Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion (one set of numbers for the whole site) */
  --dur-fast:150ms; --dur-base:250ms; --dur-slow:400ms; --dur-slower:800ms; --dur-scene:1100ms;
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in-out:cubic-bezier(.65,0,.35,1);
  --ease-stamp:linear(0,.6 20%,1.1 45%,.97 65%,1.01 82%,1);
  --stagger:90ms; --move-sm:10px; --move-md:40px; --move-lg:96px;

  /* Shape & rhythm */
  --radius:4px;
  --wrap:1120px;
  --gut:clamp(18px,4vw,40px);
  --sect:clamp(56px,9vw,112px);
}

/* Light ground: reading sections (book, hours, team, giving, reviews, rent, FAQ, legal) */
:root, .on-bone{
  --bg:var(--hb-bone);
  --surface:var(--hb-surface-bone);
  --text:var(--hb-black);            /* 17.46:1 */
  --muted:var(--hb-muted-on-bone);   /* 6.31:1  */
  --link:var(--hb-coral-deep);       /* 4.68:1  */
  --rule:rgba(12,11,10,.18);
  --accent-fill:var(--hb-gold);      /* rules and fills only — never text on bone (2.31:1) */
  --accent-text:var(--hb-black);     /* so "accent" text on bone falls back to ink */
  --action:var(--hb-coral);          /* fill only on bone, label is black (6.07:1) */
  --action-label:var(--hb-black);
  --ghost-border:var(--hb-black);
  --violet-text:var(--hb-violet);    /* 5.93:1 on bone */
  --focus:var(--hb-black);
}

/* Dark ground: hero, two sides, menu, family, head spa, gallery, visit, footer */
.on-dark{
  --bg:var(--hb-black);
  --surface:var(--hb-surface-dark);
  --text:var(--hb-bone);             /* 17.46:1 */
  --muted:var(--hb-muted-on-dark);   /* 8.80:1  */
  --link:var(--hb-coral);            /* 6.07:1  */
  --rule:rgba(195,154,82,.32);
  --accent-fill:var(--hb-gold);
  --accent-text:var(--hb-gold);      /* 7.55:1 on black */
  --action:var(--hb-coral);
  --action-label:var(--hb-black);    /* 6.07:1 */
  --ghost-border:var(--hb-gold);
  --violet-text:var(--hb-lilac);     /* 8.22:1 on black */
  --focus:var(--hb-bone);
  background:var(--bg); color:var(--text);
}

@media (prefers-reduced-motion:reduce){
  :root{--dur-fast:1ms;--dur-base:1ms;--dur-slow:1ms;--dur-slower:1ms;--dur-scene:1ms;--move-sm:0px;--move-md:0px;--move-lg:0px}
}

/* ============ COLOUR LAW (audit of 3 Dec 2026) ============
   Hues: coral 20 deg, gold 38 deg (warm neighbours), violet 272 deg (the cool opposite). Warm leads, violet answers.
   Problem found: gold and coral have almost the same lightness (1.24:1 against each other), so side by side they
   only separate by hue, and every accent was competing. Each colour now has ONE job:

     BLACK + BONE  the two sides. Blade is black, Beauty is bone. They carry about 60% of every screen.
     GOLD          the frame: rules, arches, eyebrows, numerals, borders. About 30%.
     CORAL         "tap here", and nothing else: filled buttons and the marigold. About 10%.
     VIOLET        Kids, vivid colour, and the light in the air (glows). Never a button on dark.

   Rules that follow:
   - Coral text never sits next to gold text. Coral is a fill with a black label (6.07:1).
   - Gold is never text on bone (2.31:1) or on violet (2.56:1). On violet, type is bone (5.93:1).
   - A coral button never sits on violet: the two vibrate (2.06:1 at the edge). On violet the button is bone.
   - Side coding is the same everywhere: Beauty = bone, Blade = black, Kids = violet (menu cards, tabs, tags).    PACKAGES follow their side: Father & Son = Blade (black + gold), Mommy & Me = Beauty (bone), Family = Kids (violet).
*/

/* Violet ground: the Kids menu and Kids band */
.on-violet{
  --bg:var(--hb-violet);
  --surface:var(--hb-violet-deep);
  --text:var(--hb-bone);             /* 5.93:1 */
  --muted:var(--hb-violet-mist);     /* 5.06:1 */
  --link:var(--hb-bone);
  --rule:rgba(247,241,227,.38);
  --accent-fill:var(--hb-bone);
  --accent-text:var(--hb-bone);
  --violet-text:var(--hb-bone);
  --action:var(--hb-bone);           /* bone button, black label: 17.46:1 */
  --action-label:var(--hb-black);
  --ghost-border:var(--hb-bone);
  --focus:var(--hb-bone);
  background:var(--bg); color:var(--text);
}
