/* =========================================================================
   Saddler's Ridge — Spacing, radii, borders, shadows, layout
   4px base grid. Restrained radii and soft, warm-tinted shadows keep the
   estate feel — nothing bouncy or glossy.
   ========================================================================= */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;
  --space-14: 160px;

  /* Semantic spacing */
  --gap-inline:   var(--space-2);
  --gap-stack:    var(--space-4);
  --pad-card:     var(--space-6);
  --pad-section:  var(--space-12);
  --container-max: 1200px;
  --container-wide: 1320px;
  --measure:      66ch;   /* ideal reading width */

  /* ---- Radii — restrained, refined ---- */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   16px;
  --radius-pill: 999px;
  --radius-card: var(--radius-md);

  /* ---- Border widths ---- */
  --border-hair:   1px;
  --border-thin:   1.5px;
  --border-thick:  2px;

  /* ---- Shadows — soft, warm, low-spread ---- */
  --shadow-xs:  0 1px 2px rgba(34, 26, 14, 0.06);
  --shadow-sm:  0 1px 3px rgba(34, 26, 14, 0.08), 0 1px 2px rgba(34, 26, 14, 0.04);
  --shadow-md:  0 4px 12px rgba(34, 26, 14, 0.08), 0 2px 4px rgba(34, 26, 14, 0.05);
  --shadow-lg:  0 12px 28px rgba(34, 26, 14, 0.12), 0 6px 10px rgba(34, 26, 14, 0.06);
  --shadow-xl:  0 24px 56px rgba(34, 26, 14, 0.18), 0 10px 18px rgba(34, 26, 14, 0.08);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --shadow-ring:  0 0 0 3px var(--focus-ring);

  /* ---- Motion — calm, no bounce ---- */
  --ease-standard: cubic-bezier(0.32, 0.08, 0.24, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 0.84, 0.44, 1); /* @kind other */
  --ease-in:       cubic-bezier(0.5, 0, 0.84, 0); /* @kind other */
  --dur-fast:   140ms; /* @kind other */
  --dur-base:   220ms; /* @kind other */
  --dur-slow:   420ms; /* @kind other */
  --dur-slower: 720ms; /* @kind other */

  /* ---- Z-index ---- */
  --z-base:    1; /* @kind other */
  --z-raised:  10; /* @kind other */
  --z-sticky:  100; /* @kind other */
  --z-overlay: 1000; /* @kind other */
  --z-modal:   1100; /* @kind other */
  --z-toast:   1200; /* @kind other */
}
