/* ==========================================================================
   MAGNETIE — Design Tokens (Function A: Core System)
   Single source of truth for color, type, spacing, and other primitives.
   Other function-chats (B–F) must consume these tokens, not redeclare them.
   ========================================================================== */

:root {
  /* ---------- Color ---------- */
  --color-bg:          #F7F5F1;  /* base warm off-white (page background) */
  --color-bg-cool:     #EDEDF1;  /* hero / cool light lavender-grey panel */
  --color-bg-blush:    #F7E9EC;  /* campaign / blush pink panel */
  --color-surface:     #FFFFFF;  /* cards, header, input surfaces */

  --color-ink:         #111111;  /* primary text, icons */
  --color-ink-soft:    #555555;  /* secondary text */
  --color-ink-muted:   #767676;  /* placeholder text, tertiary labels — darkened
                                     from #8A8A8A by Function F: the lighter
                                     value was ~3.45:1 on white/bg, under the
                                     4.5:1 WCAG AA text minimum at the small
                                     sizes this token is used at (footer
                                     links, prices, availability notes);
                                     #767676 is the standard "just passes"
                                     grey (~4.54:1 on white), same hue/role. */

  --color-line:        #DEDAD3;  /* hairlines, dividers, input borders */
  --color-line-strong: #B9B4AC;  /* hover/focus borders */

  --color-accent:      #E39DAE;  /* blush accent — sale tags, highlights */
  --color-sale:        #C4362B;  /* discount price / limited-offer text */

  --color-focus:       #111111;  /* focus ring color */

  /* ---------- Typography ---------- */
  --font-display: 'Beautique Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Added by Function C: brand accent face (Asset/Fonts/Fonts/Avelia.otf) for
     editorial taglines/subtitles — e.g. hero and campaign subtitles. */
  --font-accent:  'Avelia', 'Beautique Display', Georgia, serif;

  --fs-display-xl: 4.5rem;   /* wordmark / hero headline */
  --fs-display-lg: 2.75rem;  /* section headlines (Search by category, campaign) */
  --fs-display-md: 1.75rem;  /* sub-headlines */
  --fs-display-sm: 1.25rem;  /* added by Function C: category-tile / product-card display labels */
  --fs-eyebrow:    0.75rem;  /* small caps labels (FW / 26, EXPLORE YOUR STYLE) */
  --fs-nav:        0.8125rem;
  --fs-body:       0.9375rem;
  --fs-small:      0.8125rem;
  --fs-price:      1rem;

  --lh-tight:  1.05;
  --lh-snug:   1.25;
  --lh-normal: 1.5;

  --tracking-wide:   0.06em;  /* nav items, eyebrows */
  --tracking-wider:  0.12em;  /* wordmark */

  /* ---------- Spacing scale (4px base) ---------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* ---------- Layout ---------- */
  --container-max:   1760px;
  --container-pad:   2.5rem;
  --header-height:   84px;
  /* Frontend redesign: the header row and the hero copy line up with the
     page .container's content edge (wide screens move both sides inward
     together instead of hugging the viewport edge). */
  --page-inset:      max(var(--container-pad), calc((100% - var(--container-max)) / 2 + var(--container-pad)));
  --header-search-w: clamp(210px, 15vw, 260px); /* permanent desktop search field (>1024px) */

  /* ---------- Radii / borders ---------- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 999px;
  --border-hairline: 1px solid var(--color-line);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;

  /* ---------- Elevation ---------- */
  --shadow-header: 0 2px 12px rgba(17, 17, 17, 0.06);
  --shadow-card:   0 4px 20px rgba(17, 17, 17, 0.06);

  /* ---------- Z-index scale ---------- */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* ---------- Breakpoint reference (documentation only — CSS vars can't hold
   media queries; use these exact values in @media rules across all functions) ----------
   --bp-sm: 480px
   --bp-md: 768px
   --bp-lg: 1024px
   --bp-xl: 1440px
*/
