/* ============================================================
   MYKIN · SPACING, RADII, SHADOWS, LAYOUT
   Editorial restraint: thin rules over heavy shadows, small radii,
   generous vertical rhythm. 4px base unit.
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --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 */

  /* ---- Section rhythm ---- */
  --section-y:        var(--space-20);
  --section-y-mobile: var(--space-12);

  /* ---- Radii (sharp, editorial) ---- */
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   16px;
  --radius-pill: 999px;
  --radius-card: var(--radius-sm);   /* default card corner */

  /* ---- Borders ---- */
  --border-width:   1px;
  --border-width-2: 1.5px;
  --hairline:       1px solid var(--border-subtle);
  --rule:           1px solid var(--border-default);

  /* ---- Shadows (used sparingly; borders preferred) ---- */
  --shadow-none: none;
  --shadow-xs:   0 1px 2px rgba(28, 26, 22, 0.05);
  --shadow-sm:   0 1px 3px rgba(28, 26, 22, 0.07), 0 1px 2px rgba(28, 26, 22, 0.04);
  --shadow-md:   0 4px 16px rgba(28, 26, 22, 0.08);
  --shadow-lg:   0 12px 40px rgba(28, 26, 22, 0.12);
  --shadow-image: 0 18px 48px rgba(28, 26, 22, 0.14);  /* lifted photography */

  /* ---- Layout ---- */
  --container-sm:   640px;
  --container-md:   860px;   /* editorial reading measure host */
  --container-lg:   1120px;
  --container-xl:   1320px;
  --measure:        68ch;    /* long-form line length */
  --gutter:         var(--space-6);
  --gutter-mobile:  var(--space-4);

  /* ---- Focus ring ---- */
  --focus-ring: 0 0 0 2px var(--surface-page), 0 0 0 4px var(--accent);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);  /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);      /* @kind other */
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);     /* @kind other */
  --dur-fast:   120ms;  /* @kind other */
  --dur-base:   220ms;  /* @kind other */
  --dur-slow:   420ms;  /* @kind other */
}
