/* ===========================================================================
   Awre · Spacing, radii, shadows, layout
   ---------------------------------------------------------------------------
   4px base grid. Editorial generosity — lean on whitespace, not borders.
   Shadows are warm, low, and soft; paper prefers hairlines over heavy lift.
   =========================================================================== */

:root {
  /* ---- Space 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-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;
  --space-48: 192px;

  /* ---- Radii ------------------------------------------------------------- */
  --radius-xs:   4px;
  --radius-sm:   7px;
  --radius-md:   10px;   /* buttons, inputs                */
  --radius-lg:   14px;   /* cards                          */
  --radius-xl:   20px;   /* panels, large surfaces         */
  --radius-2xl:  28px;
  --radius-pill: 999px;

  /* ---- Borders ----------------------------------------------------------- */
  --border-width: 1px;
  --border-hair:  1px solid var(--paper-edge);
  --border-ink:   1px solid var(--ink-line);

  /* ---- Shadows · warm, soft, low ---------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(40,34,22,0.06);
  --shadow-sm: 0 1px 2px rgba(40,34,22,0.05), 0 2px 6px rgba(40,34,22,0.05);
  --shadow-md: 0 2px 4px rgba(40,34,22,0.05), 0 8px 20px rgba(40,34,22,0.07);
  --shadow-lg: 0 4px 10px rgba(40,34,22,0.06), 0 18px 44px rgba(40,34,22,0.10);
  --shadow-xl: 0 8px 22px rgba(40,34,22,0.08), 0 36px 80px rgba(40,34,22,0.14);
  /* Glow accents — used sparingly on dark / for "live" elements */
  --glow-verdant: 0 0 0 1px rgba(47,160,111,0.30), 0 6px 28px rgba(31,122,84,0.28);
  --glow-ember:   0 0 0 1px rgba(236,124,70,0.30), 0 6px 28px rgba(207,106,57,0.28);

  /* ---- Layout ------------------------------------------------------------ */
  --container:   1240px;   /* max content width            */
  --container-narrow: 760px;   /* reading measure          */
  --gutter:      24px;
  --header-h:    68px;

  /* ---- Motion · the brand is alive. Smooth, organic, never snappy. ------ */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);     /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);     /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* @kind other */
  --ease-breath: cubic-bezier(0.37, 0, 0.63, 1);     /* @kind other */

  --dur-fast:   140ms;   /* @kind other */
  --dur-base:   240ms;   /* @kind other */
  --dur-slow:   480ms;   /* @kind other */
  --dur-slower: 800ms;   /* @kind other */
  --dur-cinema: 1200ms;  /* @kind other */

  /* ---- Z layers ---------------------------------------------------------- */
  --z-base:    0;     /* @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 */
}
