/* ==========================================================================
   SFL Design Tokens
   sundaysforlife.org
   ========================================================================== */

:root {
  /* ── Colors ─────────────────────────────────────────────────────────── */
  --sfl-color-primary: #FF40B4;
  --sfl-color-primary-dark: #D4308F;
  --sfl-color-primary-light: #FF6DC6;
  --sfl-color-primary-subtle: #FBEDF4;
  --sfl-color-primary-bg: #FFF5FA;

  --sfl-color-white: #ffffff;
  --sfl-color-black: #222222;
  --sfl-color-dark: #1F111A;

  --sfl-color-grey-100: #F8F8F8;
  --sfl-color-grey-200: #E8E8E8;
  --sfl-color-grey-300: #D0D0D0;
  --sfl-color-grey-400: #999999;
  --sfl-color-grey-500: #666666;
  --sfl-color-grey-600: #444444;

  --sfl-color-success: #2ECC71;
  --sfl-color-warning: #F39C12;
  --sfl-color-danger: #E74C3C;

  /* ── Typography ─────────────────────────────────────────────────────
   *
   * Type system uses two Barlow variants:
   *
   *   DISPLAY / HEADINGS  → Barlow Semi Condensed
   *     Narrower letterforms give headings a distinctive editorial feel.
   *     Use MEDIUM (500) or SEMIBOLD (600) — never 700/800 which are
   *     too heavy at large sizes with this condensed cut.
   *
   *   BODY / UI           → Barlow (regular width)
   *     Comfortable reading at small sizes. Use 400 for body,
   *     500–600 for emphasis and buttons, 700 only for data/counters.
   *
   * Weight mapping (what's loaded):
   *   Semi Condensed:  300 · 400 · 500 · 600 · 800
   *   Barlow:          300 · 400 · 500 · 600 · 700 · 800
   *
   * Hierarchy is achieved through SIZE + SPACING, not raw weight.
   * Bigger text → lighter weight. Smaller text → heavier weight.
   *
   * ────────────────────────────────────────────────────────────────── */

  --sfl-font-header: 'Barlow Semi Condensed', sans-serif;
  --sfl-font-base: 'Barlow', sans-serif;
  --sfl-font-mono: 'Courier New', Courier, monospace;

  /* Fluid type scale: min 360px → max 1440px (increased range for more impact) */
  --sfl-text-xs: clamp(0.6875rem, 0.625rem + 0.2vw, 0.8125rem);    /* 11-13px */
  --sfl-text-sm: clamp(0.75rem, 0.6847rem + 0.2174vw, 0.9375rem);  /* 12-15px */
  --sfl-text-base: clamp(0.9375rem, 0.85rem + 0.4vw, 1.1875rem);   /* 15-19px */
  --sfl-text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);          /* 18-22px */
  --sfl-text-xl: clamp(1.375rem, 1.15rem + 1vw, 2rem);             /* 22-32px */
  --sfl-text-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);         /* 28-44px */
  --sfl-text-3xl: clamp(2.25rem, 1.7rem + 2.5vw, 4rem);            /* 36-64px */
  --sfl-text-4xl: clamp(3rem, 2rem + 4vw, 5.5rem);                 /* 48-88px */
  --sfl-text-5xl: clamp(4rem, 2.5rem + 6.5vw, 8rem);               /* 64-128px */
  --sfl-text-hero: clamp(5rem, 3rem + 10vw, 12rem);                /* 80-192px */

  /* Line heights */
  --sfl-leading-tight: 1.05;
  --sfl-leading-snug: 1.15;
  --sfl-leading-normal: 1.6;
  --sfl-leading-relaxed: 1.8;

  /*
   * Font weights — semantic names mapped to numeric values.
   *
   * Usage guide:
   *   --sfl-weight-light (300)     → Decorative large text, background text
   *   --sfl-weight-regular (400)   → Body copy, descriptions
   *   --sfl-weight-medium (500)    → Card titles, nav items, small headings
   *   --sfl-weight-semibold (600)  → Section headings, hero headlines, buttons, emphasis
   *   --sfl-weight-bold (700)      → Counters/data figures (Semi Condensed like all headings)
   *
   * Rule of thumb: if the font-size is > 2xl, use semibold (600) max.
   */
  --sfl-weight-light: 300;
  --sfl-weight-regular: 400;
  --sfl-weight-medium: 500;
  --sfl-weight-semibold: 600;
  --sfl-weight-bold: 700;

  /* ── Spacing (4px base) ─────────────────────────────────────────────── */
  --sfl-space-1: 0.25rem;   /* 4px */
  --sfl-space-2: 0.5rem;    /* 8px */
  --sfl-space-3: 0.75rem;   /* 12px */
  --sfl-space-4: 1rem;      /* 16px */
  --sfl-space-5: 1.25rem;   /* 20px */
  --sfl-space-6: 1.5rem;    /* 24px */
  --sfl-space-8: 2rem;      /* 32px */
  --sfl-space-10: 2.5rem;   /* 40px */
  --sfl-space-12: 3rem;     /* 48px */
  --sfl-space-16: 4rem;     /* 64px */
  --sfl-space-20: 5rem;     /* 80px */
  --sfl-space-24: 6rem;     /* 96px */

  /* ── Borders & Radius ───────────────────────────────────────────────── */
  --sfl-radius-sm: 4px;
  --sfl-radius-md: 7px;
  --sfl-radius-lg: 12px;
  --sfl-radius-xl: 20px;
  --sfl-radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────────────────────────── */
  --sfl-shadow-sm: 0 1px 3px rgba(31, 17, 26, 0.08);
  --sfl-shadow-md: 0 4px 12px rgba(31, 17, 26, 0.1);
  --sfl-shadow-lg: 0 8px 30px rgba(31, 17, 26, 0.12);
  --sfl-shadow-xl: 0 16px 50px rgba(31, 17, 26, 0.16);
  --sfl-shadow-glow: 0 0 20px rgba(255, 64, 180, 0.3);

  /* ── Transitions ────────────────────────────────────────────────────── */
  --sfl-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --sfl-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --sfl-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --sfl-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sfl-duration-fast: 150ms;
  --sfl-duration-normal: 300ms;
  --sfl-duration-slow: 500ms;

  /* ── Z-index scale ──────────────────────────────────────────────────── */
  --sfl-z-base: 0;
  --sfl-z-above: 1;
  --sfl-z-dropdown: 10;
  --sfl-z-sticky: 20;
  --sfl-z-overlay: 30;
  --sfl-z-modal: 40;
  --sfl-z-toast: 50;
  --sfl-z-max: 100;

  /* ── Container widths ───────────────────────────────────────────────── */
  --sfl-container-sm: 540px;
  --sfl-container-md: 720px;
  --sfl-container-lg: 960px;
  --sfl-container-xl: 1140px;
}
