/* ==========================================================================
   Accobat Design System — Spacing, radius, shadow, layout tokens
   Design-guide cue: "kasser med bløde hjørner samt cirkler er at foretrække,
   frem for firkanter med skarpe hjørner" → soft corners, rounded shapes.
   ========================================================================== */

:root {
  /* ---- Spacing scale (4px base) ----------------------------------------- */
  --space-0:   0;
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.5rem;    /* 24px */
  --space-6:   2rem;      /* 32px */
  --space-7:   2.5rem;    /* 40px */
  --space-8:   3rem;      /* 48px */
  --space-9:   4rem;      /* 64px */
  --space-10:  5rem;      /* 80px */
  --space-12:  6rem;      /* 96px */
  --space-16:  8rem;      /* 128px */

  /* ---- Radii (soft corners are core to the brand) ----------------------- */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-md:    12px;    /* default card / input */
  --radius-lg:    18px;    /* large cards, panels  */
  --radius-xl:    28px;    /* hero panels, big tiles */
  --radius-pill:  999px;   /* buttons, chips, tags */
  --radius-circle:50%;     /* avatars, icon circles */

  /* ---- Shadows (soft, low-contrast — never harsh) ----------------------- */
  --shadow-xs:  0 1px 2px rgba(14, 40, 65, 0.06);
  --shadow-sm:  0 2px 6px rgba(14, 40, 65, 0.08);
  --shadow-md:  0 6px 18px rgba(14, 40, 65, 0.10);
  --shadow-lg:  0 14px 38px rgba(14, 40, 65, 0.14);
  --shadow-xl:  0 26px 60px rgba(14, 40, 65, 0.18);
  --shadow-brand: 0 10px 28px rgba(247, 148, 29, 0.30);  /* orange glow CTA */

  /* ---- Borders ---------------------------------------------------------- */
  --border-width: 1px; /* @kind spacing */
  --border-width-strong: 2px; /* @kind spacing */

  /* ---- Focus ring ------------------------------------------------------- */
  --focus-ring-width: 3px; /* @kind spacing */

  /* ---- Layout ----------------------------------------------------------- */
  --container-sm:  640px;
  --container-md:  860px;
  --container-lg:  1120px;
  --container-xl:  1320px;
  --gutter:        var(--space-5);

  /* ---- Motion (gentle, professional — no bounce) ------------------------ */
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1); /* @kind other */
  --ease-in:       cubic-bezier(0.4, 0.0, 1, 1); /* @kind other */
  --duration-fast:   140ms; /* @kind other */
  --duration-normal: 220ms; /* @kind other */
  --duration-slow:   360ms; /* @kind other */
}
