/* ==========================================================================
   Design tokens — the single source of truth for the TruthSA Hair look.
   Nothing else in the project declares a raw colour, font family or size.
   Values are the design's own (TruthSA Hair storefront MVP canvas).
   ========================================================================== */

:root {
  /* -- surface ------------------------------------------------------------ */
  --cw-bg: #faf6fb;             /* page background */
  --cw-band: #f0e6f3;           /* alternating band, footer, summary panels */
  --cw-ink: #22102b;            /* dark band, announcement bar, primary text */
  --cw-white: #ffffff;          /* form fields */

  /* -- line --------------------------------------------------------------- */
  --cw-line: #e3d5e8;           /* hairlines and dividers */
  --cw-line-strong: #c2aacb;    /* inputs, outlined controls */
  --cw-line-panel: #d3c0da;     /* rules inside a band-coloured panel */
  --cw-line-on-dark: #4a2f58;   /* rules on the ink band */

  /* -- text --------------------------------------------------------------- */
  --cw-text: #22102b;
  --cw-text-muted: #62506b;     /* secondary copy, 7.0:1 on --cw-bg */
  --cw-text-on-dark: #faf6fb;
  --cw-tag-text: #3a1d49;       /* photo placeholder captions */

  /* -- accent ------------------------------------------------------------- */
  --cw-accent: #a3156f;         /* buttons, eyebrows, selection: 6.6:1 on --cw-bg */
  --cw-accent-hover: #86105b;
  --cw-ink-hover: #3a1d49;
  --cw-error: #a3152d;
  --cw-ring: 0 0 0 3px var(--cw-bg), 0 0 0 5px var(--cw-accent);

  /* -- placeholder photos (used until real imagery is uploaded) ------------ */
  --cw-hatch: repeating-linear-gradient(100deg, rgba(34, 16, 43, 0.07) 0 2px, transparent 2px 11px);
  --cw-tone-lilac: #e8d5ee;
  --cw-tone-orchid: #dcc3e6;
  --cw-tone-mauve: #cfb0dd;
  --cw-tone-mist: #ebddf0;

  /* -- type --------------------------------------------------------------- */
  --cw-font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --cw-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --cw-size-hero: clamp(40px, 5.6vw, 76px);
  --cw-size-page-title: clamp(36px, 4.5vw, 56px);
  --cw-size-product-title: clamp(34px, 4vw, 48px);
  --cw-size-h2: clamp(32px, 3.4vw, 44px);
  --cw-size-h2-dark: clamp(30px, 3vw, 40px);
  --cw-size-h3: 28px;
  --cw-size-logo: 28px;
  --cw-size-price-lg: 26px;
  --cw-size-panel-title: 24px;
  --cw-size-section: 20px;
  --cw-size-lead: 19px;
  --cw-size-intro: 18px;
  --cw-size-card-title: 17px;
  --cw-size-body: 16px;
  --cw-size-small: 15px;
  --cw-size-meta: 14px;
  --cw-size-label: 13px;
  --cw-size-tag: 12px;
  --cw-size-tag-sm: 11px;

  --cw-tracking-display: -0.02em;
  --cw-tracking-h2: -0.015em;
  --cw-tracking-eyebrow: 0.14em;
  --cw-tracking-label: 0.1em;

  /* -- layout ------------------------------------------------------------- */
  --cw-max-width: 1280px;
  --cw-max-width-narrow: 1200px;
  --cw-gutter: 40px;
  --cw-radius-sm: 3px;
  --cw-radius: 4px;
  --cw-radius-md: 6px;
  --cw-radius-lg: 8px;
  --cw-touch: 44px;
  --cw-field-height: 48px;
  --cw-transition: 160ms ease;
}

@media (max-width: 640px) {
  :root { --cw-gutter: 20px; }
}
