/* ==========================================================================
 * SAMA MATCHA — sm-tokens.css
 * PHASE 1.5: tylko :root + @font-face. Enqueue PIERWSZE (bez zależności).
 * Fonty: assets/fonts/*.woff2 (latin + latin-ext). Zero Google CDN.
 * ========================================================================== */

/* ---------- unicode-range (fontsource) ---------- */
/* latin-ext: ą ć ę ł ń ś ź ż (+ inne Środkowa/Wschodnia Europa) */
/* latin:     podstawowy + ó (U+00F3) */

/* Inter 400 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 500 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 600 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond 500 — jedyna waga display (preload w functions.php) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metryczny fallback CLS (działa zanim woff2 się doładuje) */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 88%;
  ascent-override: 92%;
}

:root {
  /* ---------- COLOR ---------- */
  --c-ink:    #16281D;
  --c-forest: #1E3A2B;
  --c-moss:   #3E6B4E;
  --c-sage:   #A9BFA1;
  --c-mist:   #EAF1E8;
  --c-cream:  #F5F2EA;
  --c-paper:  #FFFFFF;
  --c-text:   #20261F;
  --c-muted:  #667066;
  --c-line:   #E7E4DC;
  /* Błąd — umbra, nie Woo-czerwień. #6B2C24 na --c-paper = 10,5:1 (WCAG AAA). */
  --c-error:  #6B2C24;

  /* ---------- TYPOGRAPHY ---------- */
  --font-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --fs-hero:     clamp(2.75rem, 5.5vw, 4.25rem);
  --fs-h1:       clamp(2.25rem, 4vw, 3rem);
  --fs-h2:       clamp(1.75rem, 3vw, 2.375rem);
  --fs-h3:       1.25rem;
  --fs-body:     1.0625rem;
  --fs-small:    0.9375rem;
  --fs-caption:  0.8125rem;
  --fs-overline: 0.75rem;

  --lh-tight: 1.1;
  --lh-snug:  1.3;
  --lh-body:  1.65;
  --ls-caps:  0.08em;

  /* ---------- SPACING ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 32px;
  --sp-5: 64px;
  --sp-6: 128px;
  --section-y: clamp(var(--sp-5), 9vw, var(--sp-6));
  --container: 1200px;

  /* ---------- SHAPE & ELEVATION ---------- */
  /* Kafelek produktu w koszyku / kasie, kadr 4:5.
     Rozmiar pliku `sm_cart` = 3× --sm-cart-thumb-lg (88×110 przy DPR 3). */
  --sm-cart-thumb: 56px;
  --sm-cart-thumb-lg: 88px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-full: 999px;
  --line: 1px solid var(--c-line);
  --shadow-lift: 0 12px 32px -8px rgb(20 35 26 / 0.12);

  /* ---------- MOTION ---------- */
  --ease:       cubic-bezier(0.25, 1, 0.5, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 560ms;

  /* ---------- LEGACY ALIASES — kasowane koniec PHASE 2 (patrz docs/alias-inventory.md) ---------- */
  --sm-ink:        var(--c-text);
  --sm-ink-60:     var(--c-muted);
  --sm-forest:     var(--c-forest);
  --sm-moss:       var(--c-moss);
  --sm-sage:       var(--c-sage);
  --sm-matcha:     var(--c-moss);
  --sm-cream:      var(--c-cream);
  --sm-cream-deep: var(--c-mist);
  --sm-white:      var(--c-paper);
  --sm-hairline:   var(--c-line);
  --font-body:     var(--font-sans);
  --fw-light:      500; /* display = Cormorant 500 (jedyna hostowana waga) */
  --fw-regular:    400;
  --fw-semibold:   600;
  --text-h1:       var(--fs-h1);
  --text-h2:       var(--fs-h2);
  --text-h3:       var(--fs-h3);
  --text-body:     var(--fs-body);
  --text-small:    var(--fs-small);
  --text-eyebrow:  var(--fs-overline);
  --ls-eyebrow:    var(--ls-caps);
  --ls-btn:        var(--ls-caps);
  --space-1:       var(--sp-2);
  --space-2:       var(--sp-3);
  --space-3:       calc(var(--sp-3) + var(--sp-2));
  --space-4:       var(--sp-4);
  --space-6:       calc(var(--sp-4) + var(--sp-3));
  --space-8:       var(--sp-5);
  --space-10:      calc(var(--sp-5) + var(--sp-3));
  --space-12:      calc(var(--sp-5) + var(--sp-4));
  --space-16:      var(--sp-6);
  --gutter:        var(--sp-3);
  --grid-gap:      var(--sp-3);
  --radius-s:      var(--r-sm);
  --radius-m:      var(--r-md);
  --header-h:      72px;
  --ease-premium:  var(--ease);
  --dur-1:         var(--t-fast);
  --dur-2:         var(--t-base);
  --dur-3:         var(--t-slow);
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
}
