/* ==========================================================================
   Infinite Lifestyle Supply — Design tokens
   The single source of truth for color, type, spacing, radius, elevation
   and motion. Components (site.css) use ONLY the semantic tokens below;
   never a raw hex or px value. See /styleguide.html for the live reference.

   Layer 1  Primitives   raw palette — never used directly by components
   Layer 2  Semantic     what a value is FOR (surface, text, border, accent…)
   Layer 3  Tier themes  everyday vs. limited-release product treatments
   ========================================================================== */

:root {
  /* ---------- Layer 1 · Primitives ---------- */
  --espresso-950: #1E140D;
  --espresso-900: #2B1D14;
  --espresso-700: #4A3628;
  --clay-600:     #8A5A3B;

  --sand-50:  #FFFDF8;
  --sand-100: #F7F2EA;
  --sand-200: #EDE5D8;
  --sand-300: #E3D8C6;
  --sand-400: #DDD3C4;
  --sand-500: #C9BBA6;
  --sand-600: #D9CDBB;
  --sand-800: #5A4A3D;

  --sage-50:  #EEF1E8;
  --sage-100: #E9EDE2;
  --sage-200: #DCE5CC;
  --sage-600: #4F5D3F;

  --gold-50:  #FFF8EA;
  --gold-300: #E9D3A1;
  --gold-500: #C9A76A;
  --gold-700: #A8833F;

  --red-700:  #9B2C1F;
  --white:    #FFFFFF;

  /* ---------- Layer 2 · Semantic color ---------- */
  --color-bg:                 var(--sand-100);
  --color-surface:            var(--sand-50);
  --color-surface-sunken:     var(--sand-200);
  --color-surface-input:      var(--white);
  --color-placeholder:        var(--sand-300);

  --color-text:               var(--espresso-900);
  --color-text-muted:         var(--sand-800);
  --color-text-inverse:       var(--sand-100);
  --color-text-inverse-muted: var(--sand-600);

  --color-border:             var(--sand-400);
  --color-border-strong:      var(--sand-500);
  --color-border-inverse:     var(--espresso-700);

  --color-accent:             var(--sage-600);   /* actions, links, everyday tier */
  --color-accent-soft:        var(--sage-50);
  --color-on-accent:          var(--sand-50);
  --color-on-accent-muted:    var(--sage-100);
  --color-on-accent-eyebrow:  var(--sage-200);

  --color-highlight:          var(--gold-500);   /* offers, codes, limited tier */
  --color-highlight-soft:     var(--gold-50);
  --color-notify:             var(--clay-600);   /* cart count, scarcity */
  --color-danger:             var(--red-700);
  --color-focus:              var(--gold-500);
  --color-overlay:            rgb(43 29 20 / .45);
  --color-header-glass:       rgb(247 242 234 / .94);
  --color-focus-ring-input:   rgb(79 93 63 / .25);
  --color-on-notify:          var(--white);
  --color-glass-1:            rgb(255 255 255 / .06);   /* tint on dark surfaces */
  --color-glass-2:            rgb(255 255 255 / .12);

  /* Inverse (dark) surfaces */
  --color-surface-inverse:    var(--espresso-900);
  --color-surface-accent:     var(--sage-600);

  /* ---------- Layer 3 · Tier themes ---------- */
  /* Everyday coffees: calm, light, sage */
  --tier-everyday-surface:    var(--sand-50);
  --tier-everyday-border:     var(--sand-400);
  --tier-everyday-mark:       var(--sage-600);
  --tier-everyday-mark-soft:  var(--sage-50);

  /* Limited monthly release: dark, gold foil, numbered */
  --tier-limited-surface:     var(--espresso-950);
  --tier-limited-surface-2:   var(--espresso-900);
  --tier-limited-text:        var(--sand-100);
  --tier-limited-muted:       var(--sand-600);
  --tier-limited-accent:      var(--gold-500);
  --tier-limited-accent-hi:   var(--gold-300);
  --tier-limited-foil:        linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 38%, var(--gold-700) 68%, var(--gold-300) 100%);
  --tier-limited-glow:        radial-gradient(120% 80% at 100% 0%, rgb(201 167 106 / .18) 0%, transparent 60%);

  /* ---------- Typography ---------- */
  --font-serif: Fraunces, Georgia, serif;
  --font-sans:  Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --text-2xs:  .72rem;
  --text-xs:   .8rem;
  --text-sm:   .9rem;
  --text-md:   1rem;
  --text-body: 1.0625rem;   /* 17px */
  --text-lg:   1.15rem;
  --text-xl:   1.3rem;
  --text-2xl:  1.6rem;
  --text-3xl:  2rem;
  --text-4xl:  2.6rem;
  --text-h3:   1.35rem;
  --text-h2:   clamp(1.8rem, 3.6vw, 2.6rem);
  --text-page: clamp(2.1rem, 4.6vw, 3.3rem);
  --text-h1:   clamp(2.3rem, 5.5vw, 4rem);

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-heavy:    800;

  --leading-tight: 1.12;
  --leading-snug:  1.3;
  --leading-body:  1.6;
  --leading-prose: 1.75;

  --tracking-tight:   -.01em;
  --tracking-eyebrow: .16em;
  --tracking-logo:    .3em;

  /* ---------- Spacing (4px base) ---------- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 56px;
  --space-11: 64px;
  --space-12: 80px;

  --section-y:       var(--space-11);
  --section-y-tight: var(--space-9);
  --section-y-sm:    var(--space-9);   /* mobile */
  --gutter:          var(--space-5);
  --card-pad:        var(--space-6);
  --card-pad-lg:     var(--space-8);

  /* ---------- Radius ---------- */
  --radius-xs:    4px;    /* meters, progress */
  --radius-sm:    8px;    /* thumbnails */
  --radius-md:    12px;   /* inputs, small media */
  --radius-lg:    16px;   /* cards, notes */
  --radius-xl:    24px;   /* hero media, panels */
  --radius-pill:  999px;  /* buttons, chips, tags */
  --radius-round: 50%;    /* avatars, icon buttons */

  /* ---------- Borders ---------- */
  --border-thin:  1px;
  --border-base:  1.5px;
  --border-thick: 2px;
  --border-rule:  4px;
  --border-accent: 6px;
  --focus-ring:   3px;
  --meter-h:      8px;
  --pill-h:       46px;

  /* ---------- Elevation ---------- */
  --shadow-sm:      0 2px 8px rgb(43 29 20 / .06);
  --shadow-lg:      0 20px 50px rgb(43 29 20 / .18);
  --shadow-limited: 0 24px 60px rgb(30 20 13 / .45);

  /* ---------- Motion ---------- */
  --duration-fast: .15s;
  --duration-base: .25s;
  --duration-slow: 1.2s;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* ---------- Layout ---------- */
  --wrap:        1180px;
  --wrap-text:   740px;
  --wrap-faq:    820px;
  --header-h:    70px;
  --control-h:   48px;
  --control-h-sm: 40px;
  --icon-btn:    44px;

  --z-header: 40;
  --z-scrim:  60;
  --z-drawer: 61;
  --z-skip:   99;
}
