/* ============================================================
   Gimbooks Capital - Design Tokens
   Brand values sourced from config/gimbooks-capital.json
   ============================================================ */

:root {
  /* --- Brand colors (config/gimbooks-capital.json) --- */
  /* The brand yellow (PRIMARY_COLOR) is too light for text, and for white text
     on top of it, so the text-safe --primary scale is the brand brown and the
     yellow (--secondary) carries CTAs and accents with black --on-cta text. */
  --primary: #8E3417;          /* SECONDARY_COLOR 0xFF8E3417 */
  --primary-600: #7A2C13;
  --primary-700: #5E220F;
  --primary-050: #FBF3DF;
  --secondary: #EFC847;        /* PRIMARY_COLOR   0xFFEFC847 */
  --accent: #D7B343;           /* ACCENT_COLOR    0xFFD7B343 */
  --gradient-2: #B5532A;       /* rust, between the brown and the yellow */
  --on-cta: #000000;           /* text on yellow surfaces */
  --success: #16A34A;          /* SUCCESS_COLOR  0xFF16A34A */
  --warning: #F59E0B;          /* WARNING_COLOR  0xFFF59E0B */
  --danger:  #DC2626;

  --bg: #FFFFFF;
  --bg-start: #FFF4CC;
  --bg-end:   #FBE9DF;
  --bg-tint:  #FFFBF0;
  --tint-cool: linear-gradient(180deg, #FDF3E7 0%, #FFFAF4 60%, var(--bg) 100%);
  --tint-warm: linear-gradient(180deg, #FFF7DC 0%, #FFFBEE 60%, var(--bg) 100%);

  /* --- Neutral grayscale (warm stone, to sit with the yellow/brown brand) --- */
  --ink-900: #1C1917;
  --ink-800: #292524;
  --ink-700: #44403C;
  --ink-600: #57534E;
  --ink-500: #78716C;
  --ink-400: #A8A29E;
  --ink-300: #D6D3D1;
  --ink-200: #E7E0D6;
  --ink-100: #F2ECE3;
  --ink-50:  #FBF8F3;
  --white:   #FFFFFF;

  /* --- Gradients --- */
  --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--gradient-2) 100%);
  --grad-cta:   linear-gradient(135deg, var(--secondary) 0%, #E5B832 100%);
  --grad-warm:  linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --grad-cool:  linear-gradient(135deg, var(--gradient-2) 0%, var(--primary) 100%);
  --grad-text:  linear-gradient(120deg, var(--primary) 0%, var(--gradient-2) 100%);
  --grad-vivid: linear-gradient(120deg, var(--primary-700) 0%, var(--primary) 50%, var(--gradient-2) 100%);
  --grad-sunrise: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 55%, #C98A2E 100%);
  --grad-ocean: linear-gradient(135deg, var(--primary-700) 0%, var(--primary) 45%, var(--gradient-2) 100%);
  --grad-mesh-a: radial-gradient(circle, rgba(239,200,71,0.62), transparent 70%);
  --grad-mesh-b: radial-gradient(circle, rgba(215,179,67,0.50), transparent 70%);
  --grad-mesh-c: radial-gradient(circle, rgba(181,83,42,0.35), transparent 70%);
  --grad-mesh-d: radial-gradient(circle, rgba(142,52,23,0.30), transparent 70%);

  /* --- Typography (content site codenice/gimbooks-capital: Sora headings, Inter body) --- */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --fs-h2:   clamp(1.5rem, 1.15rem + 1.7vw, 2.3rem);
  --fs-h3:   clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* --- Spacing scale --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* --- Radii (config) --- */
  --r-chip: 8px;     /* CHIP_RADIUS */
  --r-btn: 12px;     /* BUTTON_RADIUS / INPUT_RADIUS */
  --r-card: 16px;    /* CARD_RADIUS */
  --r-lg: 20px;      /* DIALOG/BOTTOM_SHEET_RADIUS */
  --r-xl: 28px;
  --r-pill: 999px;

  /* --- Shadows (premium elevation) --- */
  --sh-xs: 0 1px 2px rgba(59, 30, 12, 0.06);
  --sh-sm: 0 2px 10px rgba(59, 30, 12, 0.06);
  --sh-md: 0 12px 30px rgba(59, 30, 12, 0.09);
  --sh-lg: 0 22px 50px rgba(59, 30, 12, 0.13);
  --sh-xl: 0 34px 74px rgba(59, 30, 12, 0.18);
  --sh-primary: 0 14px 32px rgba(142, 52, 23, 0.32);
  --sh-warm: 0 14px 32px rgba(215, 179, 67, 0.30);
  --sh-glow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  --sh-cool-lg: 0 22px 48px rgba(142, 52, 23, 0.22);
  --sh-warm-lg: 0 22px 48px rgba(215, 179, 67, 0.24);

  /* --- Glass --- */
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: 16px;

  /* --- Layout --- */
  --container: 82.5rem;       /* 1320px @16px */
  --container-narrow: 52rem;
  --header-h: 76px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 600ms;
}
