/* 01-theme.css: colours and sizes
   Part 2 of the app's styles. Nitya's colours, so the two apps look like one family: light (the default), sepia and
   dark, dark following the phone unless a theme is chosen (data-theme from Settings), and high contrast where the
   phone asks for more. Guru is Nitya's accent (peach in dark), You is its chorus blue (docs/SCREENS.md).
   Sections:
   - Colours
   - Sizes
*/

/* ==== Colours ==== */
:root {
  --bg: #fcf9f4;
  --surface: #f4ecd8;
  --ink: #391a0e;
  --muted: #6d5a4c;
  --accent: #7b1113;
  --guru: #7b1113;
  --you: #1f4e66;
  --clean: #2e6b3d;
  --rule: #d9c9b4;
  --bar: #fcf9f4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #17110e;
    --surface: #241a15;
    --ink: #efe3d4;
    --muted: #b4a08f;
    --accent: #e8a98c;
    --guru: #e8a98c;
    --you: #8fc3dc;
    --clean: #a9d9b5;
    --rule: #3a2d25;
    --bar: #17110e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110e;
  --surface: #241a15;
  --ink: #efe3d4;
  --muted: #b4a08f;
  --accent: #e8a98c;
  --guru: #e8a98c;
  --you: #8fc3dc;
  --clean: #a9d9b5;
  --rule: #3a2d25;
  --bar: #17110e;
  color-scheme: dark;
}
:root[data-theme="sepia"] {
  --bg: #efe0c3;
  --surface: #e4d1ab;
  --ink: #3b2a17;
  --muted: #6a5436;
  --accent: #7a2418;
  --guru: #7a2418;
  --you: #1d4a5e;
  --clean: #2c5f34;
  --rule: #cdb78d;
  --bar: #efe0c3;
  color-scheme: light;
}
@media (prefers-contrast: more) {
  :root {
    --muted: var(--ink);
    --rule: var(--ink);
  }
}

/* ==== Sizes ==== */
/* The six label sizes (as Nitya's --fz-*), times the person's own text size (--ts); the chanted text has its own,
   by viewing distance: 22px on a phone (20px under 360px), 28px on a tablet, 24px on a computer */
:root {
  --ts: 1;
  --fz-xs: calc(12px * var(--ts));
  --fz-s: calc(13px * var(--ts));
  --fz-m: calc(15px * var(--ts));
  --fz-l: calc(17px * var(--ts));
  --fz-xl: calc(20px * var(--ts));
  --fz-xxl: calc(24px * var(--ts));
  --fs: 22px;
  --ui: "AB UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "AB Text", "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;
  --tap: 44px;
  --radius: 14px;
}
@media (max-width: 359px) {
  :root {
    --fs: 20px;
  }
}
@media (min-width: 600px) and (pointer: coarse) {
  :root {
    --fs: 28px;
  }
}
@media (pointer: fine) {
  :root {
    --fs: 24px;
  }
}
@media (pointer: fine) and (min-width: 1600px) {
  :root {
    --fs: 26px;
  }
}
