/*
 * The theme colors a user can pick in settings, the same eight as the labels; green is tokens.css
 * itself. Layout puts the choice on <html data-accent>. Each value keeps the relative luminance of
 * its green counterpart with only the hue changed, so every contrast rule holds as it does for green
 * (test/unit/design/tokens.test.ts). The page background takes the hue too, at the saturation of
 * green's scaled by how saturated this color's --color-soft is, so gray stays near neutral. Text,
 * borders, and the white light cards stay; Yomochi's body takes the color.
 */
:root[data-accent="blue"] {
  --color-bg: #eff2f7;
  --color-primary: #2b4d74;
  --color-link: #2b4d74;
  --color-notice-bg: #e5edf5;
  --color-notice-text: #1c3756;
  --color-selected-bg: #dee7f2;
  --color-soft: #e8eef6;
  --color-hero: #bed1e7;
  --color-tag-bg: #e8eef6;
  --color-leaf: #8fa9c6;
  --color-leaf-dark: #6d8fb4;
  --color-sprout: #9db9d8;
}

:root[data-accent="yellow"] {
  --color-bg: #f4f2ea;
  --color-primary: #584a21;
  --color-link: #584a21;
  --color-notice-bg: #f1ecdb;
  --color-notice-text: #3f3515;
  --color-selected-bg: #ede6d1;
  --color-soft: #f2eedf;
  --color-hero: #ddcfa4;
  --color-tag-bg: #f2eedf;
  --color-leaf: #b7a571;
  --color-leaf-dark: #9e8b51;
  --color-sprout: #c9b578;
}

:root[data-accent="pink"] {
  --color-bg: #f7f0f2;
  --color-primary: #7f3047;
  --color-link: #7f3047;
  --color-notice-bg: #f6e9ed;
  --color-notice-text: #5f1f33;
  --color-selected-bg: #f3e2e7;
  --color-soft: #f7ebee;
  --color-hero: #e9c6d1;
  --color-tag-bg: #f7ebee;
  --color-leaf: #cb99a8;
  --color-leaf-dark: #bb798d;
  --color-sprout: #dca8b8;
}

:root[data-accent="purple"] {
  --color-bg: #f3f1f7;
  --color-primary: #593894;
  --color-link: #593894;
  --color-notice-bg: #eeeaf7;
  --color-notice-text: #412572;
  --color-selected-bg: #eae4f4;
  --color-soft: #f0ecf7;
  --color-hero: #d6caeb;
  --color-tag-bg: #f0ecf7;
  --color-leaf: #b09ece;
  --color-leaf-dark: #9881be;
  --color-sprout: #c0aede;
}

:root[data-accent="orange"] {
  --color-bg: #f6f1ee;
  --color-primary: #694227;
  --color-link: #694227;
  --color-notice-bg: #f4eae3;
  --color-notice-text: #4c2f19;
  --color-selected-bg: #f0e4da;
  --color-soft: #f5ece5;
  --color-hero: #e4cbb8;
  --color-tag-bg: #f5ece5;
  --color-leaf: #c2a087;
  --color-leaf-dark: #af8363;
  --color-sprout: #d4af94;
}

:root[data-accent="gray"] {
  --color-bg: #f2f2f0;
  --color-primary: #4b4b46;
  --color-link: #4b4b46;
  --color-notice-bg: #ececea;
  --color-notice-text: #363632;
  --color-selected-bg: #e6e6e5;
  --color-soft: #eeeeec;
  --color-hero: #d0d0cc;
  --color-tag-bg: #eeeeec;
  --color-leaf: #a7a7a2;
  --color-leaf-dark: #8d8d86;
  --color-sprout: #b7b7b1;
}

:root[data-accent="brown"] {
  --color-bg: #f4f2ef;
  --color-primary: #5c4737;
  --color-link: #5c4737;
  --color-notice-bg: #f0ebe6;
  --color-notice-text: #423325;
  --color-selected-bg: #ece5df;
  --color-soft: #f1ede9;
  --color-hero: #dacdc1;
  --color-tag-bg: #f1ede9;
  --color-leaf: #b5a394;
  --color-leaf-dark: #9e8875;
  --color-sprout: #c6b3a3;
}
