/* Shared design tokens -- the app (reverie.html) and the marketing
   homepage (home.html) both load this file so the two can't drift apart
   by accident. Everything else theme-related (the minimal theme's
   blanket font/radius/shadow resets, per-component overrides) is
   app-specific presentation and stays inline in reverie.html; only the
   actual color variables live here. */
:root {
  --cream: #F0E9BF;
  --cream-2: #EAE2AE;
  --ink: #141414;
  --red: #982323;
  --white: #FFFDF3;
  --line: rgba(20, 20, 20, 0.85);
  --line-soft: rgba(20, 20, 20, 0.25);
  /* Fixed, never overridden by the minimal theme below -- the logo's
     red is the one explicit exception to "no accent color anywhere." */
  --logo-red: #982323;
  /* Real bug: secondary/subtitle/helper text throughout reverie.html was
     hardcoded to literal grays (#444/#555/#666/#777/#888/#999/#aaa,
     picked ad hoc at ~130 different call sites over many sessions) instead
     of a themed variable -- invisible under the light theme (dark gray on
     a light background reads fine), but under dark mode the SAME literal
     dark grays sat on a near-black background, reading as "black font on
     a blacker background." Two tiers, not one, to keep the existing
     light-theme visual hierarchy (a few spots genuinely want more
     contrast than others) instead of flattening every gray to one value. */
  --muted: #777;
  --muted-strong: #555;
  --success: #2d6a2d;
}

:root[data-theme="minimal"] {
  --ink: #121212;
  --cream: #f5f5f5;
  --cream-2: #f5f5f5;
  --white: #f5f5f5;
  --red: #121212; /* no accent color anywhere except the logo (--logo-red, untouched above) */
  --line: rgba(18, 18, 18, 0.85);
  --line-soft: rgba(18, 18, 18, 0.25);
}

/* Real request ("add dark mode for all"). --ink/--cream/--white keep their
   same MEANING (ink = foreground/text, cream/white = backgrounds) just with
   the actual values inverted -- everything in reverie.html/home.html that
   already reads color through these variables (the vast majority of the
   app) re-themes for free. --red is brightened slightly over the light
   theme's value since the default #982323 reads too dark/muted against a
   near-black background; --logo-red is untouched, same fixed-brand-color
   exception minimal theme already makes above. */
:root[data-theme="dark"] {
  --ink: #F0EAE0;
  --cream: #181818;
  --cream-2: #222222;
  --white: #121212;
  --red: #D6504A;
  --line: rgba(240, 234, 224, 0.85);
  --line-soft: rgba(240, 234, 224, 0.25);
  /* Lighter grays, not darker -- these need to read AGAINST a near-black
     background now, the opposite direction from the light theme's values. */
  --muted: #999;
  --muted-strong: #bbb;
  /* Brightened the same way --red was, same reason -- the light theme's
     dark green reads fine on cream, but low-contrast against near-black. */
  --success: #4caf50;
}
