/* LoopON brand tokens (Brand Guidelines v1.0, developer appendix).
   Load this first on every page; components read these tokens instead of hard-coded values. */
:root{
  --color-cocoa:#3E312C;
  --color-coral:#EA9772;
  --color-sage:#95A691;
  --color-mustard:#F7C372;
  --color-cream:#FBF7EF;
  --color-paper:#FFFDF8;
  --color-clay:#EBCDBA;
  --color-mist:#DCE5DB;

  /* Nunito has no Arabic glyphs, so Tajawal (self-hosted) carries Arabic text in the same rounded weight. */
  --font-display:"Nunito","Tajawal","Arial Rounded MT Bold",ui-rounded,sans-serif;
  --font-body:"Nunito","Tajawal",system-ui,sans-serif;

  --space-unit:8px;
  --radius-card:24px;
  --radius-control:16px;
  --radius-pill:999px;

  --border-soft:1px solid rgb(62 49 44 / 14%);
  --shadow-soft:0 12px 32px rgb(62 49 44 / 8%);

  --motion-fast:180ms;
  --motion-base:240ms;
  --ease-warm:cubic-bezier(.2,.8,.2,1);

  /* Derived from the palette (not new colours): readable secondary text, hairlines, tints. */
  --color-ink-soft:#625249;            /* cocoa lightened for secondary text, 4.5:1 or better on every brand surface */
  --line-soft:rgb(62 49 44 / 14%);
  --line-strong:rgb(62 49 44 / 32%);
  --tint-coral:color-mix(in srgb,var(--color-coral) 22%,var(--color-paper));
  --tint-mustard:color-mix(in srgb,var(--color-mustard) 26%,var(--color-paper));
  --tint-sage:var(--color-mist);
  --focus-ring:0 0 0 2px var(--color-cream),0 0 0 4px var(--color-cocoa);
  --section-space:clamp(64px,9vw,112px);   /* major sections 88–120 px on desktop */
  --gutter:max(24px,5vw);                    /* never under 24 px side margins */

  /* Legacy names used by older rules, now mapped onto the brand palette. */
  --navy:var(--color-cocoa);
  --mint:var(--color-mist);
  --coral:var(--color-coral);
  --yellow:var(--color-mustard);
  --cream:var(--color-cream);
  --white:var(--color-paper);
  --line:var(--line-soft);
  --muted:var(--color-ink-soft);
  --radius:var(--radius-card);

  color:var(--color-cocoa);
  font-family:var(--font-body);
  font-size:16px;
  background:var(--color-cream);
}
