/* =====================================================================
 * Yarra Systems — Spacing, Radii, Shadow, Motion
 * =================================================================== */

:root {
  /* Spacing — 4px base, doubled at larger end */
  --space-0:   0;
  --space-1:   0.25rem;   /* 4  */
  --space-2:   0.5rem;    /* 8  */
  --space-3:   0.75rem;   /* 12 */
  --space-4:   1rem;      /* 16 */
  --space-5:   1.25rem;   /* 20 */
  --space-6:   1.5rem;    /* 24 */
  --space-8:   2rem;      /* 32 */
  --space-10:  2.5rem;    /* 40 */
  --space-12:  3rem;      /* 48 */
  --space-16:  4rem;      /* 64 */
  --space-20:  5rem;      /* 80 */
  --space-24:  6rem;      /* 96 */
  --space-32:  8rem;      /* 128 */

  /* Radii — gentle. The brand has flow, but UI elements are not pills
   * by default. Pills used sparingly for tags + pagination only. */
  --radius-sm:   4px;
  --radius-md:   8px;     /* default for inputs, buttons */
  --radius-lg:   12px;    /* cards */
  --radius-xl:   18px;    /* large cards, modals */
  --radius-2xl:  28px;    /* feature panels */
  --radius-full: 999px;

  /* Borders */
  --border-width-1: 1px;
  --border-width-2: 2px;

  /* Shadows — soft, warm. Tinted with river-900 alpha not pure black. */
  --shadow-xs:   0 1px 2px 0 rgba(7, 22, 31, 0.04);
  --shadow-sm:   0 1px 3px 0 rgba(7, 22, 31, 0.06),
                 0 1px 2px -1px rgba(7, 22, 31, 0.04);
  --shadow-md:   0 4px 8px -2px rgba(7, 22, 31, 0.08),
                 0 2px 4px -2px rgba(7, 22, 31, 0.05);
  --shadow-lg:   0 12px 24px -6px rgba(7, 22, 31, 0.10),
                 0 4px 8px -4px rgba(7, 22, 31, 0.06);
  --shadow-xl:   0 24px 48px -12px rgba(7, 22, 31, 0.16),
                 0 8px 16px -8px rgba(7, 22, 31, 0.08);

  /* Inset — for sunken panels, code blocks */
  --shadow-inset: inset 0 1px 2px 0 rgba(7, 22, 31, 0.06);

  /* Ring — focus + selection */
  --ring-focus: 0 0 0 3px rgba(194, 130, 54, 0.30);     /* ochre */
  --ring-river: 0 0 0 3px rgba(33, 78, 98, 0.25);

  /* Motion — slow + smooth, like water */
  --ease-out:        cubic-bezier(0.2, 0.7, 0.2, 1);     /* default UI */
  --ease-in-out:     cubic-bezier(0.5, 0, 0.2, 1);
  --ease-flow:       cubic-bezier(0.65, 0, 0.35, 1);     /* signature curve */
  --ease-spring:     cubic-bezier(0.34, 1.3, 0.64, 1);   /* gentle overshoot */

  --duration-instant: 80ms;
  --duration-fast:    160ms;
  --duration-base:    220ms;
  --duration-slow:    420ms;
  --duration-flow:    680ms;     /* large transitions, hero motion */

  /* Layout */
  --layout-max:    1240px;
  --layout-narrow: 720px;
  --layout-wide:   1440px;
  --layout-gutter: clamp(1.25rem, 4vw, 3rem);
}
