/* ==========================================================================
   VARIABLES - design tokens (Aurelle)
   1rem = 16px. Every value is rem / em / unitless. No px.
   Change the brand here: every colour, font and size is a CSS variable.
   ========================================================================== */

/* ---------- LESS breakpoints (em, mobile-first) ----------
   sm 576 / md 768 / lg 992 / xl 1200 / xxl 1400 */
@bp-sm:  ~"(min-width: 36em)";
@bp-md:  ~"(min-width: 48em)";
@bp-lg:  ~"(min-width: 62em)";
@bp-xl:  ~"(min-width: 75em)";
@bp-xxl: ~"(min-width: 87.5em)";
@hover:  ~"(hover: hover) and (pointer: fine)";
@reduced-motion: ~"(prefers-reduced-motion: reduce)";

:root {
  /* ---------- Colors ---------- */
  --color-primary: #1f3d36;          /* forest green */
  --color-primary-dark: #142a25;
  --color-primary-rgb: 31, 61, 54;
  --color-secondary: #a85a35;        /* terracotta (AA on white) */
  --color-secondary-dark: #8c4a2b;
  --color-accent-soft: #efe6da;      /* sand */
  --color-text: #1c1c1a;
  --color-text-muted: #5f5e59;
  --color-background: #faf7f2;       /* cream */
  --color-surface: #ffffff;
  --color-border: #e4ded3;
  --color-white: #ffffff;
  --color-footer: #12241f;
  --color-rating: #b7862b;
  --color-sale: #b3261e;
  --color-success: #2e7d4f;
  --color-error: #b3261e;
  --color-overlay: rgba(20, 42, 37, 0.55);
  --color-on-dark-muted: rgba(255, 255, 255, 0.72);
  --color-on-dark-border: rgba(255, 255, 255, 0.16);
  --color-focus: rgba(168, 90, 53, 0.35);
  --color-highlight: #dfe9b8;        /* soft lime accent on dark */
  --color-glass: rgba(255, 255, 255, 0.72);
  --color-glass-border: rgba(255, 255, 255, 0.6);
  --color-header-glass: rgba(250, 247, 242, 0.82);
  --color-section-sand: #f2e9dc;    /* alternate section background (warm) */
  --color-section-sage: #e9eee1;    /* alternate section background (botanical) */

  /* ---------- Typography ---------- */
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md: 1.125rem;    /* 18px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;      /* 24px */
  /* Same sizes as the HTML design's compiled CSS: fixed, not fluid. */
  --font-size-display: 5.5rem;
  --font-size-statement: 3.25rem;
  --font-size-wordmark: clamp(5rem, 21vw, 19rem);
  --font-size-h1: 4rem;
  --font-size-h2: 2.75rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.25rem;     /* 20px */
  --font-size-h5: 1.125rem;    /* 18px */
  --font-size-h6: 1rem;        /* 16px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-snug: 1.4;
  --lh-base: 1.6;

  --ls-tight: -0.01em;
  --ls-wide: 0.12em;

  /* ---------- Spacing (8px system) ---------- */
  --space-0-5: 0.25rem;  /* 4px */
  --space-1: 0.5rem;     /* 8px */
  --space-1-5: 0.75rem;  /* 12px */
  --space-2: 1rem;       /* 16px */
  --space-3: 1.5rem;     /* 24px */
  --space-4: 2rem;       /* 32px */
  --space-5: 2.5rem;     /* 40px */
  --space-6: 3rem;       /* 48px */
  --space-8: 4rem;       /* 64px */
  --space-10: 5rem;      /* 80px */
  --space-12: 6rem;      /* 96px */
  --section-py: 6rem;

  /* ---------- Radius ---------- */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-2xl: 2rem;    /* 32px */
  --radius-pill: 50rem;
  --radius-round: 50%;

  /* ---------- Borders & shadows ---------- */
  --border-width: 0.0625rem; /* 1px */
  --shadow-sm: 0 0.125rem 0.5rem rgba(28, 28, 26, 0.06);
  --shadow-md: 0 0.5rem 1.5rem rgba(28, 28, 26, 0.08);
  --shadow-lg: 0 1rem 3rem rgba(28, 28, 26, 0.12);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s;
  --transition-slower: 1s;

  /* ---------- Layout ---------- */
  --header-height: 3.5rem;     /* 56px pill, 64px from lg */
  --announcement-height: 2.5rem;
  --icon-xs: 0.875rem;
  --icon-sm: 1rem;
  --icon-md: 1.25rem;
  --icon-lg: 1.75rem;
  --tap-size: 2.75rem;         /* 44px min touch target */

  /* ---------- z-index ---------- */
  --z-header: 1030;
  --z-drawer: 1045;
  --z-progress: 1050;

  /* ---------- Bootstrap 5.3 bridge ---------- */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: var(--font-size-base);
  --bs-body-line-height: var(--lh-base);
  --bs-body-color: var(--color-text);
  --bs-body-bg: var(--color-background);
  --bs-border-color: var(--color-border);
  --bs-border-radius: var(--radius-md);
  --bs-link-color-rgb: var(--color-primary-rgb);
  --bs-gutter-x: var(--space-3);
}
