/* ==========================================================================
   AgriFarm — design tokens
   Palette and type extracted from the reference design at
   demotesting.link/agrifarm: deep farm green, harvest gold, warm cream.
   ========================================================================== */

:root {
  /* ---- Brand green ---- */
  --green-900: #16422A;  /* dark bands, footer accents */
  --green-800: #1D5233;
  --green-700: #38663F;  /* primary — nav bar, buttons */
  --green-600: #2F5C3A;
  --green-500: #4B7C54;
  --green-200: #C7DACB;
  --green-100: #E4EDE5;
  --green-50:  #F1F5F1;

  /* ---- Harvest gold ---- */
  --gold-600: #D2B04A;
  --gold-500: #E2C05F;   /* accent — eyebrows, prices, highlights */
  --gold-300: #EFDCA0;
  --gold-100: #F8F0D8;

  /* ---- Ink ---- */
  --ink-900: #1F1E17;    /* body text, headings */
  --ink-800: #24231D;    /* footer background */
  --ink-700: #3A3932;
  --ink-600: #878680;    /* muted copy */
  --ink-400: #A5A49A;
  --ink-200: #D5D5D5;

  /* ---- Surfaces ---- */
  --cream:      #F8F7F0;
  --surface:    #FFFFFF;
  --surface-2:  #FDFDFD;
  --surface-3:  #F5F5F0;
  --line:       #E8E7DF;
  --line-strong:#D8D7CC;

  /* ---- Status ---- */
  --success:    #2E7D46;
  --success-bg: #E8F3EB;
  --warning:    #B7791F;
  --warning-bg: #FDF5E3;
  --danger:     #B3261E;
  --danger-bg:  #FBEAE9;
  --info:       #2A6F97;
  --info-bg:    #E7F1F7;

  /* ---- Typography ---- */
  --font-sans:   'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-script: 'Covered By Your Grace', var(--font-sans);

  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.875rem;   /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-lg:   1.125rem;   /* 18 */
  --text-xl:   1.375rem;   /* 22 */
  --text-2xl:  1.75rem;    /* 28 */
  --text-3xl:  2.25rem;    /* 36 */
  --text-4xl:  3rem;       /* 48 */
  --text-5xl:  3.75rem;    /* 60 */

  --leading-tight: 1.15;
  --leading-snug:  1.35;
  --leading-normal:1.6;
  --leading-loose: 1.8;

  /* ---- Spacing (4px base) ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ---- Layout ---- */
  --container:     1280px;
  --container-wide:1480px;
  --container-pad: 1.25rem;
  --gutter:        1.5rem;

  /* ---- Radius ---- */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-xs: 0 1px 2px rgba(31, 30, 23, 0.06);
  --shadow-sm: 0 2px 8px rgba(31, 30, 23, 0.07);
  --shadow:    0 6px 20px rgba(31, 30, 23, 0.09);
  --shadow-lg: 0 14px 40px rgba(31, 30, 23, 0.13);
  --shadow-gold: 0 8px 24px rgba(210, 176, 74, 0.28);

  /* ---- Motion ---- */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --duration:    260ms;
  --duration-sm: 160ms;
  --duration-lg: 520ms;

  /* ---- Z-index ---- */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-drawer:   300;
  --z-overlay:  290;
  --z-modal:    400;
  --z-toast:    500;
}

/* Larger type once there is room for it. */
@media (min-width: 992px) {
  :root {
    --text-3xl: 2.75rem;
    --text-4xl: 3.5rem;
    --text-5xl: 4.5rem;
    --container-pad: 2rem;
  }
}

/* Respect the OS setting: animation becomes instant, nothing is hidden. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration:    1ms;
    --duration-sm: 1ms;
    --duration-lg: 1ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
