/* tokens.css — design constants used across the rsw web app.
   Colors, typography, geometry. Single source of truth. */

:root {
  /* Page background — muted salmon paper. */
  --paper: #E5A597;

  /* Five Payne's-grey tints, light → dark by volume.
     The 2D-menu state uses a KNOCKED-BACK lighter palette (--pg-N below)
     pitched into a printed-page brightness range so dark body type sits at
     >7:1 contrast on every volume. The original deeper palette
     (--pg-N-deep) is preserved for the 3D viewer's book spines and any
     other surface that wants the saturated gradient. */
  --pg-1-deep: #6b7a87;
  --pg-2-deep: #56646f;
  --pg-3-deep: #414d57;
  --pg-4-deep: #2c343d;
  --pg-5-deep: #171c22;
  /* Menu tints — printed-page brightness for vols 1, 2, 3, 5 (light
     paper grounds for dark ink) with Vol 4 as the inversion: a darker
     Payne's-grey ground matching the canonical --v4 book color, holding
     flat-white type the same way the printed Vol 4 covers do. The
     gradient discontinuity at vol 4 is intentional — the menu mirrors
     the conceptual flip the book itself stages. */
  --pg-1: #d4dce4;
  --pg-2: #c0c9d2;
  --pg-3: #acb6c1;
  --pg-4: #586878;   /* matches --v4 (oklch 0.41 0.026 245), white-on-this ≈ 5.6:1 */
  --pg-5: #84909e;

  /* Type colors for each volume's menu content. Vols 1, 2, 3, 5 carry a
     near-black blue-grey ink on their lighter backgrounds (>4.5:1 on
     Vol 5, >9:1 on Vol 1). Vol 4 reverses — flat white on the darker
     ground, the same inversion the printed front and back covers carry. */
  --pg-1-dark: #11161e;
  --pg-2-dark: #11161e;
  --pg-3-dark: #11161e;
  --pg-4-dark: #ffffff;
  --pg-5-dark: #0c1118;

  /* Slipcase shell tones. */
  --case-cream:      #efe8d3;
  --case-cream-dark: #d9d0b7;
  --case-edge:       rgba(40, 36, 28, .35);

  /* Per-volume page counts (canonical, from the rsw5-model skill). */
  --vol-pages-1: 200;
  --vol-pages-2: 125;
  --vol-pages-3:  80;
  --vol-pages-4:  65;
  --vol-pages-5: 250;
}
