/* =========================================================
   Craft with Magda — Design Tokens
   Brand identity translated into CSS custom properties.
   ========================================================= */

:root {
  /* -----------------------------------------------------
     COLOR — Primary palette (from brand identity)
     ----------------------------------------------------- */
  --color-coral:    #FF6B68;  /* Koralowy  — primary accent */
  --color-mustard:  #FFC857;  /* Musztardowy — warm secondary */
  --color-mint:     #2EC4B6;  /* Miętowy — fresh tertiary */
  --color-violet:   #A78BFA;  /* Fioletowy — playful accent */
  --color-navy:     #1F2937;  /* Granatowy — text/dark UI */
  --color-ink:      #111111;  /* Czarny — pure black */

  /* COLOR — Pastel tints */
  --color-tint-yellow:   #FFE9A8;
  --color-tint-pink:     #FFD6E0;
  --color-tint-mint:     #D8F3EC;
  --color-tint-lavender: #EDE9FE;
  --color-tint-gray:     #F2F2F2;
  --color-cream:         #F7F5F2;  /* page background */

  /* COLOR — Semantic */
  --color-bg:            var(--color-cream);
  --color-surface:       #FFFFFF;
  --color-surface-soft:  #FBF9F6;
  --color-text:          var(--color-navy);
  --color-text-muted:    #6B7280;
  --color-text-soft:     #9CA3AF;
  --color-border:        rgba(31, 41, 55, 0.08);
  --color-border-strong: rgba(31, 41, 55, 0.16);
  --color-primary:       var(--color-coral);
  --color-primary-hover: #FF5450;

  /* -----------------------------------------------------
     TYPOGRAPHY
     ----------------------------------------------------- */
  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Bricolage Grotesque variable axes */
  --display-opsz: 96;       /* large optical size for big headlines */
  --display-wdth: 100;      /* normal width (75-100, lower = condensed) */

  /* Fluid type scale (clamp(min, preferred, max)) */
  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.875rem;    /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl:  clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 1.8rem + 2.2vw, 3.25rem);
  --text-5xl:  clamp(2.75rem, 2.1rem + 3vw, 4rem);
  --text-6xl:  clamp(3.25rem, 2.4rem + 4vw, 5.5rem);

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.12em;
  --tracking-widest:  0.2em;

  /* Font weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  /* -----------------------------------------------------
     SPACING — 4px base scale
     ----------------------------------------------------- */
  --space-0:   0;
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-7:   1.75rem;
  --space-8:   2rem;
  --space-9:   2.25rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
  --space-40:  10rem;

  /* Layout */
  --container-max:   1280px;
  --container-px:    clamp(1.25rem, 4vw, 3rem);
  --section-py:      clamp(4rem, 8vw, 7rem);

  /* -----------------------------------------------------
     RADII
     ----------------------------------------------------- */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-pill: 999px;
  --radius-organic: 38% 62% 51% 49% / 56% 38% 62% 44%;

  /* -----------------------------------------------------
     SHADOWS — Soft, premium feel
     ----------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(31, 41, 55, 0.04);
  --shadow-sm: 0 2px 6px rgba(31, 41, 55, 0.05);
  --shadow-md: 0 8px 20px rgba(31, 41, 55, 0.06);
  --shadow-lg: 0 16px 40px rgba(31, 41, 55, 0.08);
  --shadow-xl: 0 30px 60px rgba(31, 41, 55, 0.10);
  --shadow-coral: 0 12px 28px rgba(255, 107, 104, 0.28);

  /* -----------------------------------------------------
     MOTION
     ----------------------------------------------------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   150ms;
  --duration-base:   280ms;
  --duration-slow:   500ms;
  --duration-slower: 900ms;

  /* -----------------------------------------------------
     Z-INDEX
     ----------------------------------------------------- */
  --z-decor:    0;
  --z-content:  10;
  --z-sticky:   100;
  --z-overlay:  500;
  --z-modal:    1000;
}
