/* Manuscript palette; selected by index.html and app/theme.ts. */

:root[data-theme="manuscript-light"] {
  /*
   * Accent — lapis blue with gold leaf on lightly tinted paper; vermilion stays in the
   * rubric role (--destructive). The only light-first family: light is the
   * home mode and dark is the reading-room variant below.
   */
  --ring: #31549b;
  --accent: #31549b;
  --accent-hover: #274279;
  --accent-muted: #31549b;
  --accent-subtle: rgba(49, 84, 155, 0.09);
  --accent-glow: rgba(49, 84, 155, 0.14);
  --primary: #31549b;
  --primary-hover: var(--accent-hover);
  --primary-foreground: #ffffff;
  --accent-foreground: #ffffff;

  --bg-content: #f1f0ea;

  --card-foreground: #1d1a12;
  --card-highlight: rgba(50, 40, 20, 0.02);
  --popover-foreground: #1d1a12;
  --session-hovercard-surface: var(--card);

  --text: #322d22;
  --text-strong: #1d1a12;
  --chat-text: #322d22;
  --muted: #6a604e;
  --muted-strong: #55503e;
  --muted-foreground: #6a604e;

  --secondary-foreground: #322d22;
  --accent-2: #7d6118;
  --accent-2-muted: rgba(125, 97, 24, 0.75);
  --accent-2-subtle: rgba(125, 97, 24, 0.09);

  --destructive: #bc2f26;
  --destructive-hover: #a52922;

  --shadow-sm: 0 1px 2px rgba(60, 45, 20, 0.06);
  --shadow-lg: 0 12px 28px rgba(60, 45, 20, 0.1);

  --grid-line: rgba(60, 45, 20, 0.05);

  /* The manuscript reads as a document: the serif is the body voice, not a
     chat garnish. Same opt-in character decision as Phosphor's all-mono. */
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-display: var(--font-body);
  --font-chat: var(--font-body);
}

:root[data-theme="manuscript"] {
  /*
   * Accent — lapis and gold in the candlelit reading room; iron-gall charcoal
   * base, vermilion kept for the rubric role (--destructive).
   */
  --ring: #8fa8e0;
  --accent: #8fa8e0;
  --accent-hover: #a8bce9;
  --accent-muted: #8fa8e0;
  --accent-subtle: rgba(143, 168, 224, 0.12);
  --accent-glow: rgba(143, 168, 224, 0.2);
  --primary: #8fa8e0;
  --primary-hover: #a8bce9;
  --primary-foreground: #101c33;
  --accent-foreground: #101c33;

  --destructive: #c93a30;
  --destructive-hover: #b3332a;
  --destructive-foreground: #ffffff;

  --focus: rgba(207, 125, 116, 0.18);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--ring) 75%, transparent);
  --focus-glow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ring), 0 0 16px var(--accent-glow);

  --bg-content: #211e18;

  --card-foreground: #efe8d6;
  --card-highlight: rgba(240, 230, 205, 0.04);
  --popover-foreground: #efe8d6;

  --text: #d8d0bc;
  --text-strong: #efe8d6;
  --chat-text: #d8d0bc;
  --muted: #ab9f84;
  --muted-strong: #bcb096;
  --muted-foreground: #ab9f84;

  --secondary-foreground: #efe8d6;
  --accent-2: #cfa85e;
  --accent-2-muted: rgba(207, 168, 94, 0.7);
  --accent-2-subtle: rgba(207, 168, 94, 0.12);

  --shadow-sm: 0 1px 2px rgba(8, 6, 2, 0.4);
  --shadow-lg: 0 12px 32px rgba(8, 6, 2, 0.6);

  --grid-line: rgba(240, 230, 205, 0.04);

  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-display: var(--font-body);
  --font-chat: var(--font-body);
}
