/* Design tokens. A theme switch changes tokens only.
   Source: 02 Design > Recovery Assistant - VISUAL DESIGN (16 Nov 2026).
   Default theme: Sage & Oat. Peach & Clay and Evening come later as
   personal choices in "Your choices"; never inferred. */
:root,
:root[data-theme="sage-oat"] {
  --bg: #F4EFE6;            /* oat */
  --card: #FFFCF7;          /* warm white */
  --surface: #DDE5D7;       /* soft sage */
  --surface-2: #E6DCCF;     /* artwork sand */
  --action: #354C3F;        /* deep olive */
  --action-text: #FFFCF7;
  --text: #2B3A31;
  --text-muted: #566056;
  --border: #D9D3C7;
  --accent: #B77D67;        /* clay: accents only, never text */
  --accent-text: #A23B3B;   /* warm rose for text; replaces the dark brown */
  --urgent: #BF4646;        /* soft coral-rose: clearly urgent, still calm, not brown */
  --urgent-text: #FFFCF7;
  --urgent-surface: #FBE8E3;
  --urgent-border: #F0C9C0;
  --frame: #26332B;
  --notice: #F1E3C8;
  --notice-text: #5C4310;
  --focus: #1F3A5F;

  --font-display: Georgia, "Times New Roman", serif;
  /* Avenir Next ships only on Apple devices. A licensed webfont or a
     self-hosted Nunito Sans is still to be decided; no third-party font host. */
  --font-ui: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-size: 1rem;        /* 16px */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(43, 58, 49, 0.05), 0 8px 24px rgba(43, 58, 49, 0.07);
  --glow: #E9EFE3;          /* light sage for artwork and page wash */
  --radius-lg: 22px;
  --target: 44px;           /* minimum touch target */
}

/* Peach & Clay: a personal choice in "Your choices". Never inferred. */
:root[data-theme="peach-clay"] {
  --bg: #F8EDE5; --card: #FFF9F5; --surface: #F3DCCF; --surface-2: #EBCBBF; --glow: #FBE6DA;
  --action: #8A3D4B; --action-text: #FFF9F5;
  --text: #3B2B2B; --text-muted: #6A5450; --border: #E7D3C7;
  --accent: #C98B73; --accent-text: #9A3434;
  --urgent: #BF4646; --urgent-text: #FFF9F5; --urgent-surface: #FBE3DD; --urgent-border: #EFC2B8;
  --notice: #F3E2C3; --notice-text: #5C4310; --focus: #1F3A5F; --frame: #4A2F33;
}
/* Evening: a darker screen. A personal choice, not a measure of wellbeing. */
:root[data-theme="evening"] {
  --bg: #252F2A; --card: #2F3A34; --surface: #3A4740; --surface-2: #4B4B40; --glow: #2E3933;
  --action: #DDE5D7; --action-text: #1F2823;
  --text: #F2EFE7; --text-muted: #BCC5B9; --border: #4A574F;
  --accent: #D9A08B; --accent-text: #F4B9A8;
  --urgent: #F3A59B; --urgent-text: #2A1412; --urgent-surface: #46302D; --urgent-border: #6A433E;
  --notice: #4C4431; --notice-text: #F3E2B4; --focus: #A9C7FF; --frame: #101613;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.25);
}
/* More contrast: stronger secondary text and borders in any theme. */
:root[data-contrast="more"] { --text-muted: var(--text); --border: var(--text-muted); }
:root[data-theme="evening"][data-contrast="more"] { --border: #9AA79C; }
:root[data-theme="sage-oat"][data-contrast="more"], :root[data-theme="peach-clay"][data-contrast="more"] { --border: #6F6A60; }
