/* ==========================================================================
   Mitkos design tokens: THEME C, "Dusk glass" (the bold take)
   Saturated apricot, coral and lilac shapes, thicker glass, bigger radii and type.
   Text colours are darker than A so they keep 4.5:1 on the strongest shapes.
   ========================================================================== */
:root {
  color-scheme: light;

  /* ---- Page backdrop: a warm cream with soft shapes behind the glass ------- */
  --c-bg:           #f3e4d3;                 /* cream, the page itself                     */
  --bg-shape-1:     #f7b58c;                 /* peach                                      */
  --bg-shape-2:     #f2cf8c;                 /* sand                                       */
  --bg-shape-3:     #c8c1f2;                 /* soft blue                                  */
  --bg-shape-4:     #f1a3a0;                 /* rose                                       */
  --bg-shape-alpha: 0.9;                    /* strength of each shape at its centre       */
  --bg-lightest:    #f6eadc;                 /* for the contrast check: brightest point    */
  --bg-darkest:     #f1a3a0;                 /* and the darkest point behind any text      */

  /* ---- Text ---------------------------------------------------------------- */
  --c-text:         #140f0b;                 /* near-black, warm                           */
  --c-text-muted:   #3d362f;
  --c-text-faint:   #463e36;                 /* captions; still 4.5:1 on the darkest shape */
  --c-text-invert:  #fffaf3;                 /* on the black pill                          */

  /* ---- Lines ---------------------------------------------------------------- */
  --c-line:         rgba(23, 20, 15, 0.10);
  --c-line-strong:  rgba(23, 20, 15, 0.16);

  /* ---- Accent: Mitkos blue on light, used sparingly ------------------------ */
  --accent:         #2f4fd6;                 /* marks, lit icons, focus ring               */
  --accent-text:    #1f36a3;                 /* blue text, a shade darker for 4.5:1        */
  --accent-rgb:     47, 79, 214;
  --accent-soft:    #e4e9fb;                 /* the Soon tag                               */
  --logo-ink:       #140f0b;
  --logo-accent:    #2f4fd6;
  --logo-eye:       #fbf6ef;

  /* ---- Glass ---------------------------------------------------------------- */
  --glass-bg:       rgba(255, 250, 244, 0.62);
  --glass-bg-strong: rgba(255, 250, 244, 0.82);
  --glass-solid:    #fff8f0;                 /* fallback: no backdrop blur, reduced transparency */
  --glass-border:   rgba(255, 255, 255, 0.85);
  --glass-edge:     inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  --glass-blur:     blur(22px) saturate(150%);
  --glass-shadow:   0 1px 2px rgba(90, 40, 20, 0.08), 0 30px 70px -30px rgba(90, 40, 20, 0.38);
  --glass-shadow-hover: 0 2px 4px rgba(90, 40, 20, 0.1), 0 40px 80px -30px rgba(90, 40, 20, 0.46);
  --window-shadow:  0 40px 100px -40px rgba(74, 48, 24, 0.45);
  --ci-shadow:      0 10px 24px -12px rgba(74, 48, 24, 0.45);
  --logo-tile-bg:   #ffffff;                 /* official logos sit on plain white            */
  --field-bg:       #fffdfa;
  --town-bg:        #0e1222;                 /* behind the Town still before it loads       */
  --hero-tilt:      -3deg;                 /* the Town window leans a little              */

  /* ---- Dark app windows on the light page ------------------------------------ */
  --shot-bg:        #0b0b0d;
  --shot-frame:     rgba(255, 255, 255, 0.60);  /* the light rim around a dark screenshot */
  --shot-shadow:    0 2px 6px rgba(60, 24, 10, 0.14), 0 50px 100px -36px rgba(60, 24, 10, 0.6);

  /* ---- Buttons --------------------------------------------------------------- */
  --btn-bg:         #2f4fd6;
  --btn-bg-hover:   #2340b8;
  --btn-fg:         #fffaf3;
  --btn-shadow:     0 12px 28px -12px rgba(47, 79, 214, 0.7);

  /* ---- Status and data colours (inside data only) ---------------------------- */
  --c-good:         #1d6b40;  --c-good-soft: #e2f1e6;
  --c-bad:          #b42318;
  --topic-1: #3aa9bd; --topic-2: #ee8a4e; --topic-3: #6fb85d; --topic-4: #de6a9d; --topic-5: #9479dc; --topic-6: #e0b23a;

  /* ---- The hero brain (canvas, normal blending) ------------------------------ */
  --brain-ink-rgb:  20, 15, 11;
  --brain-accent-rgb: 47, 79, 214;

  /* ---- Chaos scene items ----------------------------------------------------- */
  --ci-tab-bg:      rgba(255, 255, 255, 0.86);
  --ci-tab-text:    #2b2620;
  --ci-tab-meta:    #5c544b;
  --ci-note-bg:     #f7e7a6;
  --ci-note-text:   #3b3418;
  --ci-icon-l:      76%;                     /* lightness of the pastel app-icon tiles     */
  --ci-icon-fg:     #2b2620;
  --ci-badge-bg:    #c4313a;
  --ci-flash:       rgba(255, 252, 246, 0.95);

  /* ---- Type ------------------------------------------------------------------ */
  --font-head: "Sora", "Sora Fallback", "Segoe UI Variable Display", "SF Pro Display", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-sans: "Inter", "Inter Fallback", "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1:    clamp(3rem, 1.4rem + 6.4vw, 7.25rem);
  --fs-hero:  clamp(2.8rem, 1.2rem + 4.3vw, 5.6rem);
  --fs-h2-big: clamp(2.6rem, 1.2rem + 5vw, 6rem);
  --fs-h2:    clamp(2.3rem, 1.3rem + 3.8vw, 4.75rem);
  --fs-h3:    1.1875rem;
  --fs-lead:  clamp(1.075rem, 1rem + 0.35vw, 1.3rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;
  --fs-nano:  0.6875rem;
  --lh-h1: 0.98; --lh-h2: 1.04; --lh-body: 1.6;
  --tracking-h1: -0.06em; --tracking-h2: -0.045em;

  /* ---- Space ----------------------------------------------------------------- */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem; --s-32: 8rem;
  --section-y: clamp(5.5rem, 3.5rem + 8vw, 10rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --container: 1200px;

  /* ---- Radius ---------------------------------------------------------------- */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 30px; --r-xl: 40px; --r-pill: 999px;

  /* ---- Motion ---------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms; --dur-base: 250ms;

  --z-base: 1; --z-nav: 50;
}
