/* ==========================================================================
   WALLNUT 360 — DESIGN TOKENS
   Single source of truth for color, type, spacing, radius, shadow, motion.
   ========================================================================== */

:root {
  /* ---- Brand color palette ---- */
  --color-primary: #19483B;      /* Evergreen — headings, header, footer */
  --color-primary-light: #2D6551;
  --color-secondary: #778B78;    /* Mineral sage — supporting elements */
  --color-secondary-dark: #536D5B;
  --color-accent: #C37A48;       /* Copper — small, deliberate emphasis */
  --color-success: #5E8066;      /* Positive states */
  --color-bg: #F4F1E8;           /* Warm ivory page background */
  --color-white: #FFFCF5;

  /* ---- Neutral scale (derived, for text/borders) ---- */
  --color-ink-900: #19483B;
  --color-ink-700: #29372F;
  --color-ink-500: #68736A;
  --color-ink-300: #C8CEC2;
  --color-ink-200: #DFE3D9;
  --color-ink-100: #EBEEE5;

  /* ---- Surfaces / glass / depth ---- */
  --surface-card: #FFFCF5;
  --surface-card-tint: linear-gradient(160deg, #FFFCF5, rgba(119,139,120,0.055) 70%);
  --surface-mesh:
    radial-gradient(900px 420px at 88% -8%, rgba(119,139,120,0.08), transparent 58%),
    radial-gradient(700px 380px at -8% 110%, rgba(119,139,120,0.055), transparent 55%),
    radial-gradient(520px 280px at 50% 0%, rgba(195,122,72,0.035), transparent 60%);
  --surface-dark: #19483B;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-tint: rgba(195, 122, 72, 0.14);
  --glass-blur: 16px;

  /* ---- Semantic text ---- */
  --text-heading: #19483B;
  --text-body: #29372F;
  --text-muted: #68736A;
  --text-inverse: #F4F1E8;

  /* ---- Typography ---- */
  --font-heading: 'Manrope', 'Arial', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.375rem;    /* 22px */
  --fs-xl: 1.75rem;     /* 28px */
  --fs-2xl: 2.25rem;    /* 36px */
  --fs-3xl: 3rem;       /* 48px */
  --fs-4xl: 3.75rem;    /* 60px */

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.65;

  /* ---- Spacing scale (8px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-pad-y: clamp(3.5rem, 6vw, 7rem);
  --container-max: 1240px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* ---- Radius ---- */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 999px;

  /* ---- Shadows (soft, layered + glow) ---- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(25,72,59,.1);
  --shadow-lg: 0 20px 48px rgba(25,72,59,.14);
  --shadow-glow: 0 0 0 1px rgba(119,139,120,.18), 0 18px 42px rgba(25,72,59,.12);
  --shadow-card-hover: 0 12px 30px rgba(25,72,59,.075);

  /* ---- Motion (snappier) ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 360ms;

  /* ---- Z-index scale ---- */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* Reduced motion preference is honored globally — see animations.css */
