/* ============================================================
   S3 Regnskap — Spacing, radius, shadow, motion, layout
   ============================================================ */

:root {
  /* ---- Spacing (4px base grid) ---- */
  --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.5rem;   /* 24 */
  --space-6:   2rem;     /* 32 */
  --space-7:   2.5rem;   /* 40 */
  --space-8:   3rem;     /* 48 */
  --space-9:   4rem;     /* 64 */
  --space-10:  5rem;     /* 80 */
  --space-12:  6rem;     /* 96 */
  --space-16:  8rem;     /* 128 */

  /* ---- Radius (logo box uses a soft ~10px corner) ---- */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;   /* default — matches the logo */
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-pill: 999px;

  /* ---- Shadows — soft, low, cool-tinted ---- */
  --shadow-xs:  0 1px 2px rgba(22, 27, 24, 0.05);
  --shadow-sm:  0 1px 3px rgba(22, 27, 24, 0.07), 0 1px 2px rgba(22, 27, 24, 0.04);
  --shadow-md:  0 4px 12px rgba(22, 27, 24, 0.08), 0 1px 3px rgba(22, 27, 24, 0.05);
  --shadow-lg:  0 12px 28px rgba(22, 27, 24, 0.10), 0 4px 10px rgba(22, 27, 24, 0.05);
  --shadow-xl:  0 24px 56px rgba(22, 27, 24, 0.14), 0 8px 20px rgba(22, 27, 24, 0.07);
  --shadow-brand: 0 8px 24px color-mix(in srgb, var(--green-500) 28%, transparent);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-emphasis: cubic-bezier(0.3, 0.7, 0, 1); /* @kind other */
  --ease-out:      cubic-bezier(0, 0, 0.2, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   320ms; /* @kind other */

  /* ---- Layout ---- */
  --container-sm:  640px;
  --container-md:  840px;
  --container-lg:  1080px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
}
