/* Site palettes, tokens copied from the app (ios/CerefoxApp/Views/Theme.swift, ThemePalette.warm / .calm).
   Warm (cream + fox orange) is the default; <html data-palette="calm"> switches to the teal. Dark follows the OS,
   as before, unless <html data-theme="light"> is set. The app has both dark variants; the site uses them as is.
   --acc is the TEXT accent (AA on bg/card/acc-soft); --ring is graphic-only (never text). */
:root {
  --bg: #fff8ef; --card: #fbeedd; --ink: #2e2420; --mute: #6b5a4e; --line: #ebdcc8;
  --acc: #a4501a; --acc-ink: #ffffff; --acc-soft: #f6dcc2; --ring: #c8651e; --mark: #7a4e6e;
  --acc-on-soft: #8f4415; /* site-only: text on --acc-soft (the app's #a4501a is 4.3:1 there) */
  --fur: #e8925a; --fur-shade: #b9643a; --face: #fff4ea; --inner: #f8c9aa; --nose: #3b2b26; --eye: #2e2421; --cheek: #f4a595; --mouth: #5a2e2a;
}
:root[data-palette="calm"] {
  --bg: #fbfcfc; --card: #f0f4f4; --ink: #1c2526; --mute: #5f6f71; --line: #dde5e6;
  --acc: #1f7470; --acc-ink: #ffffff; --acc-soft: #d9efee; --ring: #2b9a96; --mark: #1c2526; --acc-on-soft: #1f7470;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1814; --card: #2a211b; --ink: #f3e9df; --mute: #bca899; --line: #3a2e26;
    --acc: #f0a060; --acc-ink: #1e1814; --acc-soft: #3a2a1f; --ring: #e8894a; --mark: #c9a0be; --acc-on-soft: #f0a060;
    --fur: #d8844f; --fur-shade: #9e5631; --face: #efe2d5; --inner: #e4b092; --nose: #2a1e1a; --eye: #1f1714; --cheek: #db8e80; --mouth: #4a2421;
  }
  :root[data-palette="calm"]:not([data-theme="light"]) {
    --bg: #121617; --card: #1b2122; --ink: #e9f0f0; --mute: #93a2a4; --line: #2a3335;
    --acc: #5cc8c2; --acc-ink: #07201f; --acc-soft: #1d3a39; --ring: #5cc8c2; --mark: #e9f0f0; --acc-on-soft: #5cc8c2;
  }
}
/* Warm / Calm switch (built by palette.js) */
.palette-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.palette-switch .pw-group { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.palette-switch button { font: inherit; font-size: 14px; font-weight: 600; color: var(--mute); background: transparent; border: 0; padding: 8px 14px; min-height: 36px; cursor: pointer; }
.palette-switch button[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); }
.palette-switch button:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
