/* =============================================================
   DARK REALMS — Design Tokens
   The public-site expression of the browser-client design system.
   Sourced from the client (WEB-UX-001) + the Visual Asset Style Bible:
   near-black indigo base · violet/amethyst arcane accent ·
   electric-blue logo energy · aged gilt structure/prestige ·
   bone-silver chiselled serif display · per-domain semantic colour.
   ============================================================= */

:root {
  /* ---- Base surfaces (deep indigo-charcoal, near black) ---- */
  --ink-1000: #050509;   /* void — page base */
  --ink-950:  #08080f;
  --ink-900:  #0b0b15;   /* primary surface */
  --ink-850:  #0f0f1c;
  --ink-800:  #141426;   /* raised panel */
  --ink-750:  #1a1a2e;
  --ink-700:  #212138;   /* hover / active panel */
  --ink-650:  #2a2a45;

  /* ---- Hairlines & structure ---- */
  --line:         rgba(170, 158, 214, 0.12);
  --line-soft:    rgba(170, 158, 214, 0.07);
  --line-strong:  rgba(186, 172, 224, 0.22);
  --gilt-line:    rgba(201, 162, 74, 0.30);

  /* ---- Text (bone / silver) ---- */
  --bone:    #ece7dd;    /* display headings */
  --silver:  #d7d4e0;    /* strong body */
  --text:    #c2bfcf;    /* body */
  --muted:   #928fa6;    /* secondary — AA on --ink-900 */
  --faint:   #6f6c86;    /* tertiary / captions */

  /* ---- Brand accents ---- */
  --violet:        #8b6cf0;   /* primary arcane accent */
  --violet-bright: #a98bff;
  --violet-dim:    #6f57c4;
  --violet-glow:   rgba(139, 108, 240, 0.45);
  --arcane:        #6ea8ff;   /* electric-blue logo energy / links */
  --arcane-bright: #8fc0ff;
  --cyan:          #4fd6e0;   /* info / combat prose */

  /* ---- Gilt (prestige, framing — used sparingly) ---- */
  --gilt:        #c9a24a;
  --gilt-bright: #e6c877;
  --gilt-glow:   rgba(201, 162, 74, 0.30);

  /* ---- Semantic domain colours (classes / systems) ---- */
  --dom-arcane:   #9a7bf2;   /* magic */
  --dom-divine:   #d8b453;   /* holy / celestial */
  --dom-nature:   #5faa63;   /* druid / wild */
  --dom-martial:  #cc5340;   /* warrior / martial */
  --dom-blood:    #b0283c;   /* vampire / blood */
  --dom-infernal: #dd6a2e;   /* demon / infernal */
  --dom-shadow:   #6f93a8;   /* rogue / assassin / shadow */
  --dom-death:    #74b58a;   /* necromancy / undeath (sickly green) */
  --dom-psionic:  #c05bd6;   /* psionics / mind */

  /* ---- Resource colours (from the live client) ---- */
  --res-health:    #d24b4b;
  --res-mana:      #4f86e0;
  --res-endurance: #b45cd0;
  --res-willpower: #d8b24a;

  /* ---- Status ---- */
  --ok:      #58c07a;   /* online / success */
  --warn:    #e0a53a;
  --danger:  #d2504a;

  /* ---- Typography ---- */
  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-serif:   "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* Fluid type scale */
  --fs-eyebrow: 0.78rem;
  --fs-body:    1.03rem;
  --fs-lead:    clamp(1.12rem, 0.9rem + 0.9vw, 1.35rem);
  --fs-h4:      clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h3:      clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-h1:      clamp(2.5rem, 1.7rem + 3.5vw, 4.4rem);
  --fs-mega:    clamp(3.2rem, 1.4rem + 7vw, 7rem);

  /* ---- Spacing ---- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 1200px;
  --maxw-text: 66ch;

  /* ---- Radius ---- */
  --r-sm: 4px;  --r-md: 7px;  --r-lg: 11px;  --r-xl: 16px;  --r-pill: 999px;

  /* ---- Shadow & glow ---- */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 30px -12px rgba(0,0,0,.7);
  --shadow-3: 0 30px 70px -24px rgba(0,0,0,.8);
  --glow-violet: 0 0 30px -4px var(--violet-glow);
  --inset-hair: inset 0 0 0 1px var(--line);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 0.18s;  --dur-2: 0.35s;  --dur-3: 0.6s;  --dur-4: 1.1s;

  /* ---- Layout ---- */
  --nav-h: 68px;
  --z-nav: 100;  --z-drawer: 200;  --z-top: 300;
}
