/* ===========================================================================
   ACF — COLOR TOKENS
   A dark-first palette: warm stone darkness, gilt that has tarnished with age,
   bone-pale parchment for reading, and oxidized metal accents (rust / verdigris
   / cold steel). Nothing is pure — every neutral is warmed, every gold is dimmed
   as if recovered from a tomb. Gold is a HIGHLIGHT, never a flood-fill.
   =========================================================================== */
:root {
  /* ---- Stone — warm near-blacks, the substrate everything is carved from ---- */
  --stone-950: #0a0907;
  --stone-900: #110f0b;
  --stone-850: #181510;
  --stone-800: #201b15;
  --stone-750: #29231b;
  --stone-700: #342c21;
  --stone-600: #483d2d;
  --stone-500: #5e503c;

  /* ---- Gilt — aged gold, from buried-leaf pale to shadowed antique ---- */
  --gilt-100: #f4e8c8;
  --gilt-200: #e9d6a4;
  --gilt-300: #d8bd80;
  --gilt-400: #c3a25c;   /* PRIMARY — the tarnished gold of the wordmark      */
  --gilt-500: #a4823e;   /* tarnish — borders, hairlines, secondary marks     */
  --gilt-600: #806328;   /* deep antique — pressed / shadowed gilt            */
  --gilt-700: #5a461c;   /* gilt buried in shadow                             */

  /* ---- Bone — parchment & ash, the reading neutrals on dark ---- */
  --bone-100: #f2ebdb;   /* brightest text — titles on dark                   */
  --bone-200: #ddd1b9;   /* body text on dark                                 */
  --bone-300: #b3a585;   /* muted / secondary text                           */
  --bone-400: #877a60;   /* faint / disabled / captions                       */
  --bone-500: #5f5544;   /* hairline dividers on dark                         */

  /* ---- Rust — dried blood & oxidized iron; danger, damage, the war accent ---- */
  --rust-300: #c06a47;
  --rust-400: #9e4b2e;   /* PRIMARY accent — sigils, alerts, fervor           */
  --rust-500: #7c3922;
  --rust-600: #592717;

  /* ---- Verdigris — bronze patina; the "alive / restored / success" accent ---- */
  --verdigris-300: #7e9685;
  --verdigris-400: #5c7866;
  --verdigris-500: #435a4c;

  /* ---- Steel — cold quenched blade; info / neutral interactive accent ---- */
  --steel-300: #8693a0;
  --steel-400: #647280;
  --steel-500: #4a5560;

  /* =========================================================================
     SEMANTIC ALIASES — reference these in components, not the raw scale above.
     ========================================================================= */
  /* Surfaces (back-to-front depth) */
  --bg-void: var(--stone-950);        /* page / behind everything             */
  --surface-1: var(--stone-900);      /* base panel                           */
  --surface-2: var(--stone-850);      /* raised card                          */
  --surface-3: var(--stone-800);      /* raised-over-card / popover           */
  --surface-inset: var(--stone-950);  /* sunken wells, inputs, slots          */
  --surface-rune: #07060403;          /* near-nothing wash for textures       */

  /* Text */
  --text-strong: var(--bone-100);     /* display & key headings               */
  --text-body: var(--bone-200);       /* default reading text                 */
  --text-muted: var(--bone-300);      /* secondary, supporting                */
  --text-faint: var(--bone-400);      /* captions, disabled, metadata         */
  --text-gilt: var(--gilt-300);       /* gilded emphasis text                 */
  --text-on-gilt: var(--stone-950);   /* text sitting on a gold fill          */

  /* Borders & dividers */
  --border-hair: rgba(168,130,62,0.22);   /* faint gilt hairline              */
  --border-edge: rgba(168,130,62,0.40);   /* defined gilt edge                */
  --border-strong: var(--gilt-500);       /* emphasized / focused edge        */
  --border-stone: rgba(95,85,68,0.45);    /* neutral stone divider            */

  /* Brand / interactive */
  --brand: var(--gilt-400);
  --brand-strong: var(--gilt-300);
  --brand-deep: var(--gilt-600);
  --accent-war: var(--rust-400);
  --accent-life: var(--verdigris-400);
  --accent-cold: var(--steel-400);

  /* Status */
  --danger: var(--rust-400);
  --success: var(--verdigris-400);
  --warning: var(--gilt-400);
  --info: var(--steel-400);

  /* Focus ring */
  --focus-ring: rgba(216,189,128,0.55);
}
