/*!
 * Meadow palette: handoff/palettes/meadow.css, with measured changes
 * (README, "Meadow"):
 *   --muted (light)       #75675B -> #6E6054. The handoff value is 4.34:1 on
 *                         --line and 4.79:1 on --blue-lt; #6E6054 is the same
 *                         hue walked darker (contrast.py --fix) and clears
 *                         4.8:1 on every light ground (mist 5.68, paper 6.06,
 *                         blue-lt 5.32, line 4.82).
 *   --on-primary (dark)   #FFFFFF -> #1A1205. White on the dark look's
 *                         --orange is 2.78:1 (1.93 on its hover shade) and on
 *                         --blue-dk 1.72; the dark ink is 6.66 / 9.60 / 10.81,
 *                         the way --on-sun already carries the dark look.
 *   dark ground scale     The handoff's dark grounds sat almost on top of each
 *                         other (page #0A0502, cards #120C07, sage tint #011C06:
 *                         1.04-1.08:1 apart), so cards, the planner bar, icon
 *                         circles and blobs vanished into the page. Lifted to a
 *                         warm charcoal scale, same hues: mist #191512, paper
 *                         #26211C, line #463C33, blue-lt #233529, blue-md
 *                         #2B3F30, deep #0E0B09; dark --muted #A49588 -> #B8AA9C
 *                         so it still clears 4.7:1 on every dark ground (mist
 *                         8.01, paper 7.04, blue-lt 5.75, blue-md 4.99, line 4.74).
 * Tokens only. theme.css never names a colour; it reads these, which is what
 * lets dark mode and the season engine recolour the whole theme.
 */

:root{
  --ink:#332B25;
  --blue:#86A789;
  --blue-dk:#56755B;
  --blue-lt:#EBF2EC;
  --blue-md:#DBE6DC;
  --orange:#A95E3E;
  --orange-dk:#AC6244;
  --sun:#F0CE9B;
  --mist:#FBF7F2;
  --line:#EDE4D9;
  --muted:#6E6054;
  --tint:.30;
  --disp:'Outfit',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --wrap:1140px;
  --r-sm:14px;
  --r-md:22px;
  --r-lg:32px;
  --r-pill:999px;
  --sh-1:0 2px 4px rgba(51,43,37,.04), 0 8px 24px rgba(51,43,37,.05);
  --sh-2:0 14px 44px rgba(51,43,37,.10);
  --head-h:74px;
  --paper:#FFFFFF;
  --header-bg:rgba(255,255,255,.95);
  --deep:#332B25;
  --on-deep:#FBF7F2;
  --on-deep-dim:rgba(255,255,255,.74);
  --rule-on-deep:rgba(255,255,255,.18);
  /* Inks for BookFlow's windows (date window, cart, checkout), which stay white in both looks:
     the light look's values, fixed, so they read on white in dark too. */
  --on-card-bg:#FFFFFF;
  --on-card-ink:#332B25;
  --on-card-muted:#6E6054;
  --on-card-link:#56755B;
  --on-card-line:#EDE4D9;
  --on-card-tint:#EBF2EC;
  --on-card-cream:#FBF7F2;
  --on-card-error:#C8102E;
  --scrim:rgba(51,43,37,.5);
  --on-primary:#FFFFFF;
  --on-sun:#332B25;
  --on-sun-dim:rgba(0,0,0,.76);
}

/* Dark mode. Derived from the light palette and then measured —
   every pair below clears 4.8:1, not 4.5, so rounding cannot push
   it under. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --mist:#191512;
    --paper:#26211C;
    --deep:#0E0B09;
    --line:#463C33;
    --header-bg:rgba(25,21,18,.95);
    --ink:#EBE7E2;
    --muted:#B8AA9C;
    --blue:#8EAF91;
    --blue-dk:#ADCEB1;
    --orange:#D78766;
    --orange-dk:#F8A787;
    --blue-lt:#233529;
    --blue-md:#2B3F30;
    --sun:#F0CE9B;
    --on-deep:#EBE7E2;
    --on-deep-dim:rgba(235,231,226,.74);
    --rule-on-deep:rgba(235,231,226,.18);
    --on-primary:#1A1205;
    --on-sun:#1A1205;
    --on-sun-dim:rgba(26,18,5,.78);
    --scrim:rgba(8,6,5,.7);
    /* BookFlow's windows stay white: the same fixed inks as the light look. */
    --on-card-bg:#FFFFFF;
    --on-card-ink:#332B25;
    --on-card-muted:#6E6054;
    --on-card-link:#56755B;
    --on-card-line:#EDE4D9;
    --on-card-tint:#EBF2EC;
    --on-card-cream:#FBF7F2;
    --on-card-error:#C8102E;
  }
}

:root[data-theme="dark"]{
  --mist:#191512;
  --paper:#26211C;
  --deep:#0E0B09;
  --line:#463C33;
  --header-bg:rgba(25,21,18,.95);
  --ink:#EBE7E2;
  --muted:#B8AA9C;
  --blue:#8EAF91;
  --blue-dk:#ADCEB1;
  --orange:#D78766;
  --orange-dk:#F8A787;
  --blue-lt:#233529;
  --blue-md:#2B3F30;
  --sun:#F0CE9B;
  --on-deep:#EBE7E2;
  --on-deep-dim:rgba(235,231,226,.74);
  --rule-on-deep:rgba(235,231,226,.18);
  --on-primary:#1A1205;
  --on-sun:#1A1205;
  --on-sun-dim:rgba(26,18,5,.78);
  --scrim:rgba(8,6,5,.7);
  /* BookFlow's windows stay white: the same fixed inks as the light look. */
  --on-card-bg:#FFFFFF;
  --on-card-ink:#332B25;
  --on-card-muted:#6E6054;
  --on-card-link:#56755B;
  --on-card-line:#EDE4D9;
  --on-card-tint:#EBF2EC;
  --on-card-cream:#FBF7F2;
  --on-card-error:#C8102E;
}
