/* ==========================================================================
   refresh-tokens.css - "Morning Light" (Oct 30, 2026). Token overrides on top of tokens.css + components.css.
   Load order: tokens.css, components.css, refresh-tokens.css, refresh-components.css (shine CSS is inside refresh-components.css).
   An evolution of Stone & Plum: same logo, same plum, same fonts. Lighter, warmer, airier.
   SAFE TO CHANGE: values (re-check contrast). DON'T CHANGE: the --names.
   ========================================================================== */
:root{
  /* ---- Grounds: warm paper white, barely-there plum at the bottom of the page (2-3% tint shift) ---- */
  --ml-page-top:#faf8f4;          /* top of the page: warm morning white */
  --ml-page-mid:#f7f5f1;          /* middle: Stone & Plum stone, lifted 1 step */
  --ml-page-end:#f5f2f6;          /* bottom: the same stone with a 2% plum hint */
  --ml-page-gradient:linear-gradient(180deg,var(--ml-page-top) 0,var(--ml-page-mid) 900px,var(--ml-page-mid) 55%,var(--ml-page-end) 100%);
  --ml-hero-light:radial-gradient(60rem 36rem at 88% -8%,rgba(255,247,232,.95),rgba(255,247,232,0) 70%),radial-gradient(44rem 30rem at 8% 0,rgba(113,65,215,.045),rgba(113,65,215,0) 70%);

  --surface-page:#f7f5f1;
  --surface-section:#ffffff;      /* cards and panels: pure white on the warm ground */
  --surface-raised:#f3f0eb;       /* inputs on cards, quiet chips */
  --surface-hover:#ece8e1;
  --surface-inset:#ffffff;
  --ml-plum-wash:#f6f2fd;         /* pale plum tint: price + estimate card base, NEW badge ground, CTA wash */
  --ml-plum-wash-2:#efe8fb;       /* the deeper end of the wash (card bottom) */
  --ml-plum-hair:#e6ddf7;         /* plum hairline on light cards */
  --color-bg:var(--surface-page);

  /* ---- Lines: lighter than Stone & Plum ---- */
  --color-line:#ebe6de;           /* decorative only */
  --color-line-strong:#d9d2c6;
  --color-control:#8f8898;        /* input edges: 3.4:1 on white, 3.1:1 on raised (WCAG 1.4.11) */
  --color-ghost-border:#d6cfc4;
  --color-header:rgba(250,248,244,.82);

  /* ---- Text (measured contrast on #ffffff / #f7f5f1 / #f3f0eb / #f6f2fd, Oct 30) ---- */
  --color-text:#1d1a22;           /* 17.2 / 15.8 / 15.1 / 15.6 */
  --color-text-muted:#56515c;     /* 7.6 / 7.1 / 6.8 / 7.0 */
  --color-text-faint:#8e8893;     /* decorative only */

  /* ---- Plum: unchanged hex, one accent ---- */
  --color-accent-text:var(--purple-700);   /* #5d32b3: 8.2 on white, 7.5 on page, 7.4 on plum wash, 6.8 on wash-2 */
  --color-link:var(--purple-700); --color-link-hover:var(--purple-800); --color-link-visited:var(--purple-800);
  --color-accent-tint:rgba(113,65,215,.08);
  --color-focus:var(--purple-600);         /* #7141d7: 6.1 on white, 5.6 on page, 5.1 on wash-2 (ring needs 3:1) */

  /* ---- Type: same families; calmer top end of the scale ---- */
  --text-3xl:clamp(2.625rem,1.6rem + 3.4vw,4.5rem);   /* h1 42-72px (was 44-100): calmer, still bold */
  --text-2xl:clamp(2rem,1.45rem + 2.4vw,3.25rem);      /* h2 32-52px */
  --weight-heading:640; --weight-display:660;
  --ml-h2-size:clamp(2rem,1.45rem + 2.4vw,3.25rem);

  /* ---- Radius: softer ---- */
  --radius:12px;               /* inputs, chips */
  --radius-card:20px;          /* cards, photos, panels */
  --ml-radius-photo:24px;      /* large photos */
  --ml-radius-btn:999px;       /* buttons: pill */

  /* ---- Elevation: soft, warm, low ---- */
  --ml-shadow-1:0 1px 2px rgba(29,26,34,.04),0 4px 12px -6px rgba(29,26,34,.06);
  --ml-shadow-2:0 1px 2px rgba(29,26,34,.04),0 12px 32px -16px rgba(29,26,34,.14);
  --ml-shadow-3:0 1px 2px rgba(29,26,34,.05),0 24px 56px -24px rgba(61,35,120,.22);   /* price + estimate cards only */
  --elevation-section:var(--ml-shadow-1);
  --elevation-raised:var(--ml-shadow-2);
  --elevation-signature:var(--ml-shadow-3);

  /* ---- Effects ---- */
  --grain-opacity:.022;         /* keeps the page gradient band-free; was .035 */
  --glow-hint:none;             /* the purple glow behind the hero card is retired */

  /* ---- Motion ---- */
  --dur-slow:400ms;
  --ml-ease-out:cubic-bezier(.16,1,.3,1);
  --ml-ease-sweep:cubic-bezier(.45,.05,.3,1);   /* glint: eases in, glides out */
  --ml-shine-dur:1400ms;        /* one sweep across the price/estimate card */
  --ml-sparkle-dur:900ms;       /* sparkle settles after the sweep */
}
