/*
 * Yumi design system — canonical tokens.
 * Single source of truth for every Yumi surface.
 *
 * Identity today: mmd-portal-letterbox-v1 (based on flowmaster-theme-letterbox-v1).
 * At rebrand (docs/YUMI_MASTER.md §6) the manifest `name` becomes yumi-letterbox-v1;
 * the token *contract* below does not change.
 *
 * Rules (enforced by scripts/check-design-system.mjs in each surface):
 *   - Surfaces consume these tokens; they do NOT redefine colors/fonts.
 *   - No local styles.css, no inline style=, no hex/rgb/hsl in markup.
 *   - Every component class must be declared in design-system.manifest.json.
 *   - baobab is a SCARCE accent. Radii ≤ 4px. No drop shadows.
 */

:root {
  /* surface */
  --paper:      #FAFAF6;
  --paper-2:    #F3F0E6;
  --paper-3:    #ECE6D0;
  /* ink */
  --ink:        #0E0E0C;
  --ink-soft:   #2B2A26;
  --ink-mute:   #6E6B62;
  --ink-faint:  #A6A39A;
  /* lines */
  --hairline:         #D6CFB6;
  --hairline-on-ink:  rgba(250, 250, 246, 0.16);
  /* accent (scarce) */
  --baobab:    #C8102E;
  --baobab-bg: #FBE9EC;
  /* typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-ui:      "PP Neue Machina", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

/* Dark theme */
body[data-theme="dark"] {
  --paper:      #161513;
  --paper-2:    #211F1A;
  --paper-3:    #2D291F;
  --ink:        #FAFAF6;
  --ink-soft:   #E8E2D2;
  --ink-mute:   #B8AF9C;
  --ink-faint:  #746E61;
  --hairline:         #4A4436;
  --hairline-on-ink:  rgba(250, 250, 246, 0.18);
  --baobab-bg:        #3A171C;
}

/* NOTE: PP Neue Machina / PP Mori were never sourced locally (caveat since 2026-06-03).
 * License them, or document an approved fallback in the token contract. */
