/* ============================================================================
   CRIDA MILANO — Design Tokens
   ----------------------------------------------------------------------------
   Single source of truth for the brand. Every colour, type size, space and
   radius used across the brand book (and, later, the Shopify storefront)
   resolves to a variable defined here. Change a value here → it propagates
   everywhere that references it.

   Derived 2026-11-17 from the LIVE site (cridamilano.it), which declared its
   own brand colours in CSS:
       --crida #a32135   --gold #c49758   --main #000   --second #e5d4d3
   Type on the live site is Montserrat (weights 300–700), headings uppercase.
   Values marked (proposed) are cleaned / extended beyond what the live site
   literally defines — kept faithful to the existing brand, just tidied.

   → SHOPIFY MAPPING (later): the COLOUR ROLES become theme "colour schemes";
     --font-* / weights / type scale become the theme's typography settings;
     everything else lives in a custom :root snippet in theme.liquid. See README.
   ========================================================================== */

:root {
  /* ---- Brand palette — straight from the live site ---------------------- */
  --bordeaux:      #a32135;   /* PRIMARY brand — logo, accents, primary CTA   */
  --bordeaux-deep: #7f1a29;   /* hover / pressed                   (proposed) */
  --bordeaux-tint: #f5e4e6;   /* soft background wash              (proposed) */
  --gold:          #c49758;   /* SECONDARY accent — hairlines, fine details   */
  --gold-deep:     #a87f43;   /*                                   (proposed) */
  --gold-tint:     #f4ecdd;   /*                                   (proposed) */
  --blush:         #e5d4d3;   /* brand neutral — soft surfaces & bands        */
  --blush-soft:    #f3eae9;   /* lighter blush                     (proposed) */

  /* ---- Ink & a warm neutral ramp (proposed, tuned to the blush) --------- */
  --black: #000000;           /* logo, display headings                      */
  --ink:   #141414;           /* primary body text (the site's main text)    */
  --n-900: #1c1a19;
  --n-800: #2b2724;
  --n-700: #4a443f;
  --n-600: #6b635c;           /* muted text                                  */
  --n-500: #8c837b;           /* subtle text                                 */
  --n-400: #b4aaa2;
  --n-300: #d8cfc9;
  --n-200: #e8e1dc;           /* hairline borders                            */
  --n-100: #f3efec;           /* alternate surface                           */
  --n-50:  #faf8f6;
  --white: #ffffff;

  /* ---- Semantic roles — what the UI actually references ----------------- */
  --bg:            var(--white);
  --surface:       var(--white);
  --surface-2:     var(--n-50);
  --surface-blush: var(--blush-soft);
  --band-dark:     var(--ink);        /* footer / editorial dark sections    */
  --text:          var(--ink);
  --text-muted:    var(--n-600);
  --text-subtle:   var(--n-500);
  --text-on-dark:  #efe7e4;
  --text-on-brand: #ffffff;
  --border:        var(--n-200);
  --border-strong: var(--n-300);
  --brand:         var(--bordeaux);
  --brand-hover:   var(--bordeaux-deep);
  --accent:        var(--gold);
  --focus-ring:    0 0 0 2px var(--white), 0 0 0 4px var(--bordeaux);

  /* ---- Typography ------------------------------------------------------- */
  --font-sans:    'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font-sans);   /* same family; optional serif alt — see README */
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;   /* the site's heading weight */
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Modular type scale (rem @ 16px base) */
  --fs-2xs:  0.6875rem;   /* 11 — micro labels            */
  --fs-xs:   0.75rem;     /* 12                           */
  --fs-sm:   0.8125rem;   /* 13                           */
  --fs-base: 1rem;        /* 16 — body                    */
  --fs-md:   1.125rem;    /* 18                           */
  --fs-lg:   1.25rem;     /* 20 — product title           */
  --fs-xl:   1.5rem;      /* 24                           */
  --fs-2xl:  2rem;        /* 32                           */
  --fs-3xl:  2.75rem;     /* 44                           */
  --display: clamp(2.75rem, 6vw, 5rem);   /* hero         */

  --lh-tight: 1.1;
  --lh-snug:  1.3;
  --lh-body:  1.6;

  --tracking-tight:  -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-label:   0.16em;   /* uppercase eyebrows / nav / buttons */

  /* ---- Spacing scale (8pt-based) ---------------------------------------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Layout ----------------------------------------------------------- */
  --container:        1360px;
  --container-narrow: 760px;
  --gutter:           clamp(16px, 4vw, 48px);
  --header-height:    76px;

  /* ---- Shape (editorial = mostly sharp corners) ------------------------- */
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-pill: 999px;

  /* ---- Elevation (luxury = restrained; prefer hairline borders) --------- */
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 20, 20, 0.12);

  /* ---- Motion ----------------------------------------------------------- */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur:      240ms;
  --dur-slow: 450ms;

  /* ---- Z-index ---------------------------------------------------------- */
  --z-header: 50;
  --z-drawer: 70;
  --z-modal:  80;
  --z-toast:  90;
}
