/* ============================================================
   Bucksy Design Tokens — v2.0
   Brand direction: Soft & Friendly, Warm & Confident
   Palette: Cream surfaces, mint organic accents, forest-green
   typography, warm orange deer mascot & amber highlights.
   ============================================================ */

:root {

  /* ── PALETTE: BRAND & UI ──────────────────────────────── */
  --color-pine:         #0E4B3A;   /* Primary forest green: buttons, headings, dark sections */
  --color-pine-hover:   #0A382B;   /* Hover/pressed state on pine surfaces */
  --color-fern:         #1F7A5A;   /* Secondary green: links, active nav, icons */
  --color-fern-hover:   #176046;   /* Hover state on secondary green */

  /* Surfaces */
  --color-cream:        #FFF8E8;   /* Primary warm cream page background */
  --color-paper:        #FFFFFF;   /* Elevated cards, modals, budget widgets */
  --color-sand:         #FBF8F1;   /* Subtle alternate section / sidebar surface */
  --color-mint:         #D8F0E4;   /* Mint green organic blobs, tags, badges */
  --color-mint-soft:    #EBF7F0;   /* Softest mint: table stripes, hover wells */

  /* Accents */
  --color-yellow:       #FFD36B;   /* Accent yellow: organic blobs, sparkles, badges */
  --color-orange:       #F59E0B;   /* Highlight orange: attention indicators, charts */
  --color-orange-soft:  #FEF3C7;   /* Soft amber background for warning tags */

  /* Text */
  --color-text:         #1F2937;   /* Primary body & UI text */
  --color-text-heading: #0E4B3A;   /* Display & section headings */
  --color-text-muted:   #556E61;   /* Muted green-slate helper & secondary text */
  --color-text-on-dark: #FFF8E8;   /* Cream text on forest-green surfaces */

  /* Borders */
  --color-border:       #E5E7EB;   /* Neutral hairline UI borders & inputs */
  --color-border-warm:  #E3DDD0;   /* Warm cream-matched dividers & card outlines */
  --color-border-soft:  #EBF0EC;   /* Ultra-subtle inner dividers */

  /* Semantic Feedback */
  --color-success:      #1F7A5A;   /* Success foreground */
  --color-success-bg:   #D8F0E4;   /* Success pill / toast surface */
  --color-warning:      #B45309;   /* Accessible dark amber warning text */
  --color-warning-icon: #F59E0B;   /* Warning icon fill/stroke */
  --color-warning-bg:   #FEF3C7;   /* Warning pill / toast surface */
  --color-error:        #B91C1C;   /* Accessible error text */
  --color-error-coral:  #FEE2E2;   /* Error coral surface / badge background */
  --color-error-bg:     #FEE2E2;   /* Alias for error background */
  --color-info:         #0E4B3A;   /* Info foreground */
  --color-info-bg:      #D8F0E4;   /* Info surface */

  /* Mascot & Illustration Tokens (Extracted from Bucksy Mascot Reference) */
  --color-mascot-fur:       #EC8424; /* Primary warm orange deer fur */
  --color-mascot-fur-light: #F7A246; /* Fur highlight */
  --color-mascot-fur-deep:  #CD6915; /* Fur shading & limbs */
  --color-mascot-snout:     #FCE8CD; /* Warm cream snout & belly */
  --color-mascot-ear-inner: #FCE3C1; /* Inner ear cream */
  --color-mascot-blush:     #F28966; /* Soft coral cheek blush */
  --color-mascot-antler:    #743C1B; /* Sculpted cocoa antlers */
  --color-mascot-scarf:     #0E4B3A; /* Forest-green knit scarf */
  --color-mascot-scarf-hi:  #2D7D54; /* Knit scarf highlight */
  --color-mascot-piggy:     #F89F9A; /* Blush pink piggy bank (saving pose) */

  /* ── TYPOGRAPHY ───────────────────────────────────────── */
  /* Load via brand/google-fonts-link.html */
  --font-display:  'Nunito', system-ui, -apple-system, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Sizes */
  --text-xs:    0.75rem;   /* 12px — captions, badges */
  --text-sm:    0.875rem;  /* 14px — secondary UI, form labels */
  --text-base:  1rem;      /* 16px — default body copy */
  --text-lg:    1.125rem;  /* 18px — lead text */
  --text-xl:    1.25rem;   /* 20px — card headings */
  --text-2xl:   1.5rem;    /* 24px — section sub-headings */
  --text-3xl:   1.875rem;  /* 30px — KPI figures, h3 */
  --text-4xl:   2.25rem;   /* 36px — section h2 */
  --text-5xl:   3rem;      /* 48px — page h1 */
  --text-6xl:   3.75rem;   /* 60px — hero display */

  /* Weights */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;
  --weight-black:     900;

  /* Line Heights */
  --leading-tight:   1.12;
  --leading-snug:    1.28;
  --leading-normal:  1.55;
  --leading-relaxed: 1.68;

  /* ── SPACING (4px Base Grid) ──────────────────────────── */
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;

  /* ── BORDER RADII ─────────────────────────────────────── */
  --radius-sm:   8px;      /* small chips, checkboxes */
  --radius-md:   12px;     /* inputs, compact controls */
  --radius-lg:   16px;     /* standard cards, alerts */
  --radius-xl:   22px;     /* dashboard widgets, budget cards */
  --radius-2xl:  28px;     /* hero panels, CTA banners */
  --radius-pill: 9999px;   /* buttons, pill tags, avatars */

  /* ── SHADOWS (Pine-tinted Soft Depth) ─────────────────── */
  --shadow-xs:  0 1px 2px rgba(14, 75, 58, 0.05);
  --shadow-sm:  0 2px 6px rgba(14, 75, 58, 0.07), 0 1px 2px rgba(14, 75, 58, 0.04);
  --shadow-md:  0 6px 20px rgba(14, 75, 58, 0.09), 0 2px 6px rgba(14, 75, 58, 0.05);
  --shadow-lg:  0 14px 36px rgba(14, 75, 58, 0.12), 0 4px 10px rgba(14, 75, 58, 0.06);
  --shadow-xl:  0 24px 56px rgba(14, 75, 58, 0.14), 0 6px 16px rgba(14, 75, 58, 0.07);

  /* ── BREAKPOINTS (Reference for @media Queries) ───────── */
  /* --bp-sm:  640px   (mobile landscape / large phones)     */
  /* --bp-md:  768px   (tablets portrait)                    */
  /* --bp-lg:  1024px  (tablets landscape / small laptops)   */
  /* --bp-xl:  1280px  (desktop)                             */

  /* ── LAYOUT CONTAINERS ────────────────────────────────── */
  --shell:         min(1180px, calc(100% - 48px));
  --shell-narrow:  min(760px, calc(100% - 48px));
  --shell-wide:    min(1400px, calc(100% - 48px));
}
