/* ============================================================
   FATALIA — Design Tokens · v2 (light palette · cream + warm gold)
   Полностью заменяет v1. Единственный источник правды.
   ============================================================ */

:root {
  /* ---- Backgrounds (LIGHT) ---- */
  --color-bg-canvas: #F5F1E8;   /* primary page bg, milky cream */
  --color-bg-paper:  #FAF7F0;   /* lighter surface */
  --color-bg-shadow: #E8DFD0;   /* depth shadow */
  --color-bg-deep:   #1A1410;   /* footer / hover-cards / modals */
  --color-bg-deeper: #0E0A07;   /* deepest accents only */

  /* ---- Gold ---- */
  --color-gold-primary: #C9A961;  /* warm primary gold */
  --color-gold-soft:    #D4B576;  /* soft gold for highlights */
  --color-gold-deep:    #8E732C;  /* pressed / deep */
  --color-gold-faint:   #E8D8AC;  /* faint underline / hairline */

  /* ---- Ink (text on light) ---- */
  --color-ink:        #2A1F18;    /* primary text — warm near-black */
  --color-ink-soft:   #5C4938;    /* secondary text */
  --color-ink-faint:  #8B7864;    /* meta */
  --color-ink-hair:   rgba(42,31,24,0.10); /* hairline rules */

  /* On-deep text */
  --color-cream:      #F5E6C5;
  --color-cream-soft: #B8A98A;

  /* ---- Class accents (watercolor wash + rail iconography) ---- */
  --color-crownbearer:    #C9A961;
  --color-knight:         #5A7AA8;
  --color-veiled-court:   #7B2D5C;
  --color-free-sovereign: #B8543E;
  --color-fallen:         #6B6B6B;
  --color-familiar:       #E8C170;
  --color-witness:        #8B7D5C;

  /* ---- Relationship colours ---- */
  --color-rel-love:    #D54C2D;
  --color-rel-ally:    #C9A961;
  --color-rel-rival:   #7B2D5C;
  --color-rel-nemesis: #6B6B6B;
  --color-rel-family:  #5A7AA8;
  --color-rel-mentor:  #B8A98A;

  /* ---- Typography ---- */
  --font-display:    "Cinzel", "PT Serif Caption", "Times New Roman", serif;
  --font-display-ru: "PT Serif Caption", "PT Serif", "Times New Roman", serif; /* Cinzel doesn't support Cyrillic */
  --font-body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-tight:      "Inter Tight", "Inter", sans-serif;
  --font-mono:       "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- Type scale ---- */
  --fs-display:  6rem;     /* huge character name */
  --fs-hero:     4.5rem;
  --fs-page:    3rem;
  --fs-section: 2rem;
  --fs-sub:     1.5rem;
  --fs-body-l:  1.25rem;
  --fs-body:    1rem;
  --fs-cap:     0.875rem;
  --fs-meta:    0.75rem;
  --fs-micro:   0.6875rem;

  /* ---- Tracking ---- */
  --tracking-display: 0.04em;
  --tracking-meta:    0.3em;
  --tracking-cap:     0.18em;

  /* ---- Easings ---- */
  --ease-out-quart:    cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:     cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-expo:  cubic-bezier(0.87, 0, 0.13, 1);
  --ease-back-out:     cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Durations ---- */
  --dur-instant: 100ms;
  --dur-fast:    200ms;
  --dur-normal:  350ms;
  --dur-slow:    600ms;
  --dur-slower:  1000ms;
}
