/* Charte « Papier », commune au dashboard et à l'admin : couleurs, polices, thème
   sombre automatique (réglage de l'appareil) ou forcé par Réglages (data-theme sur
   <html>, posé par utils/theme.js). Contrastes AA vérifiés texte / fond, deux thèmes. */

:root {
  --paper: #f5f1ea;
  --card: #fffdf9;
  --line: #e6ded2;
  --line-strong: #d6ccbe;
  --track: #ebe4d9;
  --ink: #1f1a17;
  --ink-2: #4a423b;
  --muted: #5f564e;
  --accent: #0f5f58;
  --accent-ink: #ffffff;
  --danger: #a3392b;
  --accent-soft: #e2efec;
  --danger-soft: #f6e4e0;
  --ok: #2f6b3a;
  --ok-soft: #e3efe2;
  --warn: #8a5a00;
  --warn-soft: #f6ecd6;
  --shadow: 0 1px 2px rgba(31, 26, 23, 0.06), 0 8px 24px rgba(31, 26, 23, 0.08);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 16px;
  --gutter: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #1a1714;
    --card: #24201c;
    --line: #3a332c;
    --line-strong: #4a4239;
    --track: #2e2924;
    --ink: #f1ebe1;
    --ink-2: #d6cdbf;
    --muted: #b9ae9f;
    --accent: #7cc4b6;
    --accent-ink: #1a1714;
    --danger: #f0a597;
    --accent-soft: #24403b;
    --danger-soft: #45261f;
    --ok: #9fd3a6;
    --ok-soft: #233a27;
    --warn: #e8c37a;
    --warn-soft: #3d3220;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #1a1714;
  --card: #24201c;
  --line: #3a332c;
  --line-strong: #4a4239;
  --track: #2e2924;
  --ink: #f1ebe1;
  --ink-2: #d6cdbf;
  --muted: #b9ae9f;
  --accent: #7cc4b6;
  --accent-ink: #1a1714;
  --danger: #f0a597;
  --accent-soft: #24403b;
  --danger-soft: #45261f;
  --ok: #9fd3a6;
  --ok-soft: #233a27;
  --warn: #e8c37a;
  --warn-soft: #3d3220;
  --shadow: none;
  color-scheme: dark;
}

/* Taille du texte (Réglages) : tout est en rem, la page entière suit. */
:root[data-text='grand'] {
  font-size: 112.5%;
}
