/* ============================================================
   TOKENS.CSS — Vonulo Design System Tokens
   Canonical design tokens for colors, typography, spacing,
   shadows, radii, easing, and durations.
   ============================================================ */

:root {
  /* ── Core palette ── */
  --cream:            #F7F2EA;
  --clay:             #C4622D;
  --clay-light:       #E8885A;
  --clay-dark:        #A34E21;
  --clay-pale:        rgba(196, 98, 45, 0.08);
  --ink:              #1A1612;
  --sand:             #E8DDD0;
  --warm-grey:        #706760;
  --warm-grey-light:  #BDB4AC;
  --moss:             #2D4A2D;
  --white:            #FFFFFF;
  --border:           rgba(26, 22, 18, 0.1);

  /* ── Community category colours ── */
  --cat-sublet:       #FEF3C7;
  --cat-sublet-fg:    #92400E;
  --cat-roommate:     #DBEAFE;
  --cat-roommate-fg:  #1E40AF;
  --cat-tips:         #D1FAE5;
  --cat-tips-fg:      #065F46;
  --cat-general:      #EDE9FE;
  --cat-general-fg:   #5B21B6;
  --cat-lost:         #FCE7F3;
  --cat-lost-fg:      #9D174D;

  /* ── Status colours ── */
  --green:            #2D7A3A;
  --green-light:      #F0F7F0;
  --green-bg:         #DCFCE7;
  --red:              #C0392B;
  --red-bg:           #FEF2F2;
  --yellow:           #B7791F;
  --yellow-bg:        #FFFBEB;
  --success:          #22c55e;
  --success-light:    #F0FDF4;

  /* ── Typography ── */
  --serif:            'Playfair Display', Georgia, serif;
  --sans:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Typography scale ── */
  --text-xs:          0.6875rem;   /* 11px */
  --text-sm:          0.8125rem;   /* 13px */
  --text-base:        0.9375rem;   /* 15px */
  --text-lg:          1.0625rem;   /* 17px */
  --text-xl:          1.25rem;     /* 20px */
  --text-2xl:         1.5rem;      /* 24px */
  --text-3xl:         clamp(1.75rem, 3vw, 2.25rem);   /* 28-36px */
  --text-4xl:         clamp(2.25rem, 5vw, 3.5rem);    /* 36-56px */
  --text-5xl:         clamp(3rem, 6vw, 4.5rem);       /* 48-72px — hero headlines */

  /* ── Spacing scale ── */
  --space-xs:         4px;
  --space-sm:         8px;
  --space-md:         16px;
  --space-lg:         24px;
  --space-xl:         32px;
  --space-2xl:        48px;
  --space-3xl:        80px;

  /* ── Shadow scale ── */
  --shadow-xs:        0 1px 4px rgba(26, 22, 18, 0.06);
  --shadow-sm:        0 4px 16px rgba(26, 22, 18, 0.06);
  --shadow-md:        0 4px 32px rgba(26, 22, 18, 0.08);
  --shadow-lg:        0 12px 48px rgba(26, 22, 18, 0.14);
  --shadow-xl:        0 24px 64px rgba(26, 22, 18, 0.18);

  /* ── Easing ── */
  --ease-out:         cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out:      cubic-bezier(0.65, 0, 0.35, 1);

  /* ── Duration ── */
  --duration-fast:    150ms;
  --duration-normal:  250ms;
  --duration-slow:    400ms;

  /* ── Radius ── */
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-2xl:       24px;
  --radius-full:      100px;

  /* ── Gradients & Depth ── */
  --gradient-warm:    linear-gradient(135deg, rgba(196,98,45,0.03) 0%, rgba(232,221,208,0.12) 50%, rgba(196,98,45,0.02) 100%);
  --gradient-mesh:    linear-gradient(135deg, #FFF8F2 0%, #F7F2EA 40%, #FFF0E6 70%, #F7F2EA 100%);
  --gradient-clay:    linear-gradient(135deg, #C4622D 0%, #E8885A 50%, #C4622D 100%);
  --gradient-dark:    linear-gradient(155deg, #191511 0%, #211c17 50%, #1a1612 100%);
  --glass-bg:         rgba(255, 255, 255, 0.55);
  --glass-border:     rgba(255, 255, 255, 0.25);
  --glass-blur:       blur(20px);

  /* ── Layered shadows ── */
  --shadow-layered:   0 1px 2px rgba(26,22,18,0.04), 0 12px 40px rgba(26,22,18,0.06);
  --shadow-glow-clay: 0 0 0 3px rgba(196,98,45,0.1), 0 0 16px rgba(196,98,45,0.06);
}
