/* =================================================================
   AUTHORNODE DESIGN TOKENS
   Central source of truth for colors, typography, and radii.
   Two coexisting aesthetics:
     · Light / clinical  (app pages, galley-proof theme)  --an-*
     · Dark / premium    (waitlist, typesetter exports)   --an-dark-*
   Refactor rule: reference these tokens instead of hardcoding the
   values below. Visual output must not change when adopting a token.
   ================================================================= */
:root {
    /* ── Light / clinical ───────────────────────────────────────── */
    /* Ink (text) scale */
    --an-ink:          #111;      /* primary text, buttons            */
    --an-ink-strong:   #1a1a1a;   /* headings, near-black             */
    --an-ink-soft:     #333;
    --an-ink-mid:      #444;
    --an-text-subtle:  #555;      /* secondary text                   */
    --an-text-dim:     #666;
    --an-text-muted:   #888;      /* captions, labels                 */

    /* Grey / line scale (light → dark) */
    --an-line-faint:   #f0f0f0;
    --an-line:         #eee;
    --an-line-mid:     #e0e0e0;
    --an-grey-300:     #ddd;
    --an-grey-400:     #ccc;
    --an-grey-500:     #bbb;
    --an-grey-600:     #aaa;

    /* Paper / surface scale */
    --an-surface:      #fff;
    --an-paper:        #faf9f6;   /* app background                   */
    --an-parchment:    #f9f7f3;   /* galley-proof canvas              */
    --an-cream:        #ede9e0;
    --an-cream-line:   #e8e4dc;

    /* Accents */
    --an-gold:         #d4af37;   /* brand gold                       */
    --an-gold-deep:    #b5952a;
    --an-proof-red:    #d42b2b;   /* galley 'proof' stamp red         */
    --an-danger:       #d00000;

    /* Typography */
    --an-font-mono:    'Courier Prime', 'Courier New', monospace;
    --an-font-mono-short: 'Courier Prime', monospace;
    --an-font-ui:      'Inter', sans-serif;
    --an-font-serif:   'Lora', Georgia, serif;
    --an-font-display: 'Plus Jakarta Sans', sans-serif;

    /* ── Dark / premium ─────────────────────────────────────────── */
    --an-dark-bg:      #0a0a0a;
    --an-dark-surface: #1a1a1a;
    --an-dark-elev:    #2a2a2a;
    --an-dark-text:    #f4ecd8;

    /* ── Manuscript Studio (editor) theme ───────────────────────── */
    /* A third aesthetic: warm parchment writing canvas inside dark,
       electric-blue-accented premium chrome. Distinct from the light/
       clinical app pages and the dark/premium exports, but coherent
       with both. Studio CSS references these tokens, never raw values. */

    /* Warm parchment canvas (default / light) */
    --an-studio-canvas:        #f7f2e6;   /* the page                   */
    --an-studio-canvas-desk:   #201d17;   /* dark desk between/behind pages
                                             (dark chrome shows in the gaps
                                             so parchment sheets pop)     */
    --an-studio-ink:           #2b2117;   /* warm dark body ink         */
    --an-studio-ink-soft:      #6c5f4b;   /* secondary warm ink         */
    --an-studio-canvas-line:   #e2dbc9;   /* page-boundary rule         */

    /* Dark premium chrome */
    --an-studio-chrome:        #0d0d11;   /* near-black chrome           */
    --an-studio-chrome-elev:   #17171d;   /* raised chrome surfaces      */
    --an-studio-chrome-line:   #26262f;
    --an-studio-chrome-text:   #e9e7f0;
    --an-studio-chrome-muted:  #8b8b9a;
    --an-studio-accent:        #2f81f7;   /* electric blue               */
    --an-studio-accent-hover:  #4b95ff;
    --an-studio-accent-soft:   rgba(47,129,247,0.16);

    /* Suggestions / severity — crimson pending, gold resolved (shared
       with the Mapper's severity language). */
    --an-studio-pending:       #c81e4a;   /* crimson (pending)           */
    --an-studio-pending-soft:  rgba(200,30,74,0.08);
    --an-studio-resolved:      #d4af37;   /* gold (resolved)             */
    --an-studio-resolved-deep: #9a7d16;

    /* Dark-canvas variant — soft near-black + warm off-white (not an
       invert), tied to the user dark-mode preference. */
    --an-studio-canvas-dark:       #17140d;
    --an-studio-canvas-desk-dark:  #100e09;
    --an-studio-ink-dark:          #ece2ce;
    --an-studio-ink-soft-dark:     #9c917c;
    --an-studio-canvas-line-dark:  #29261d;

    /* Collaborator cursor palette — distinct per active collaborator,
       extended beyond the core brand accents so several simultaneous
       collaborators stay visually distinguishable. */
    --an-cursor-1:  #2f81f7;
    --an-cursor-2:  #e0479e;
    --an-cursor-3:  #24b47e;
    --an-cursor-4:  #f5a623;
    --an-cursor-5:  #9b59f6;
    --an-cursor-6:  #17b3c4;
    --an-cursor-7:  #e8635e;
    --an-cursor-8:  #7ec636;
    --an-cursor-9:  #d081c9;
    --an-cursor-10: #c0a24a;
    --an-cursor-11: #5a8dee;
    --an-cursor-12: #4bbf9a;
}
