/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
    /* Strange Frontiers color sheet (rpg-components.php shows it): numbered
       scales, higher numbers darker. Every family runs 50, 100, 200 ... 1000
       (some keep an in-between step like gray-150). The steps with a comment are
       colors in use; the bare ones (added 2026-11-24) fill out each scale in
       OKLCH around them and aren't used yet. New colors outside the scales need
       Ethan's OK. Card Edge (gray-900) is still the darkest a component's
       background goes; the 1000s are for text, lines and glows. */
    --sf-gray-0: #ffffff;    /* White */
    --sf-gray-50: #f9fafb;   /* Near White */
    --sf-gray-100: #e7e8e9;  /* Text */
    --sf-gray-150: #d3d4d5;  /* light card edge */
    --sf-gray-200: #b2b3b4;  /* Soft Text, Condition Bar */
    --sf-gray-300: #949798;  /* Medium Gray */
    --sf-gray-350: #888a8c;  /* empty stat pips */
    --sf-gray-400: #626466;  /* Condition Edge */
    --sf-gray-500: #505254;  /* Gray */
    --sf-gray-600: #343638;  /* Panel Box */
    --sf-gray-700: #292b2c;  /* Panel */
    --sf-gray-800: #1f2122;  /* Card */
    --sf-gray-900: #161819;  /* Card Edge */
    --sf-gray-1000: #0e0f10;

    /* Warm grays: Panel Box's lightness, warmer (not used yet) */
    --sf-warm-50: #f7f7f6;
    --sf-warm-100: #d4d3d3;
    --sf-warm-200: #b1b1b0;
    --sf-warm-300: #90908f;
    --sf-warm-400: #71706f;
    --sf-warm-500: #525151;
    --sf-warm-600: #363534;  /* Warm Panel Box */
    --sf-warm-700: #2c2a29;  /* Warm Panel */
    --sf-warm-800: #21201f;  /* Warm Card */
    --sf-warm-900: #1c1b1a;
    --sf-warm-1000: #161615;

    /* Isekai greens */
    --sf-green-50: #e9fded;
    --sf-green-100: #c3efcc;
    --sf-green-200: #9be0ab;
    --sf-green-300: #6fd18a; /* good, on the dark panel */
    --sf-green-400: #5cc479;
    --sf-green-500: #47b767; /* Green */
    --sf-green-600: #2e8a4a; /* good, on light */
    --sf-green-700: #327749; /* Dreft Mid */
    --sf-green-800: #2a4c37;
    --sf-green-850: #26382d; /* Dreft Shade: an Isekai Kind card's solar system */
    --sf-green-900: #1c372b; /* Dreft */
    --sf-green-1000: #0b1913;

    /* Frontiers Green, the neon accent */
    --sf-neon-50: #eafdeb;
    --sf-neon-100: #d0fed3;
    --sf-neon-200: #b4feba;
    --sf-neon-300: #94fea0;
    --sf-neon-400: #6dfd84;
    --sf-neon-500: #2dfc64;
    --sf-neon-600: #0ecb4a;
    --sf-neon-700: #039b36;
    --sf-neon-800: #026d24;
    --sf-neon-900: #044314;
    --sf-neon-1000: #001d05;

    /* Each resource's color, on the sheets and in Player Tools: HP red, VP purple,
       SP yellow, MP blue. All clear 4.5:1 on the sheets' dark backgrounds. */
    --sf-red-50: #fff4f2;
    --sf-red-100: #fed6d0;
    --sf-red-200: #fdb6ad;
    --sf-red-300: #f7978b;
    --sf-red-400: #ed786c;
    --sf-red-500: #e2574c;     /* HP */
    --sf-red-600: #c14a40;     /* not used yet */
    --sf-red-700: #a53027;     /* not used yet */
    --sf-red-800: #6f2f2a;     /* not used yet */
    --sf-red-900: #4a1f1b;     /* not used yet */
    --sf-red-1000: #250e0c;
    --sf-teal-50: #ebfafc;
    --sf-teal-100: #d2e7e9;
    --sf-teal-200: #bad4d7;
    --sf-teal-300: #a2c2c5;
    --sf-teal-400: #8aafb3;
    --sf-teal-500: #739da1;
    --sf-teal-600: #5b8b90;
    --sf-teal-700: #447a7f;
    --sf-teal-800: #2a696f;    /* a monster sheet's frame line: red-800's lightness and saturation at a blue-leaning teal (185°) */
    --sf-teal-900: #224043;    /* a monster sheet's frame band: red-900's lightness at the same teal, less saturated (33%) */
    --sf-teal-1000: #09191b;
    --sf-crimson-50: #fff3f5;
    --sf-crimson-100: #ffc8d0;
    --sf-crimson-200: #fe99ac;
    --sf-crimson-300: #ff5c86; /* bad, on dark */
    --sf-crimson-400: #f63e67;
    --sf-crimson-500: #eb0844; /* danger, damage */
    --sf-crimson-600: #d1073f;
    --sf-crimson-700: #b8063a; /* bad, on light */
    --sf-crimson-800: #870829;
    --sf-crimson-900: #5a0218;
    --sf-crimson-1000: #310109;
    --sf-purple-50: #f8f5ff;
    --sf-purple-100: #e2d7ff;
    --sf-purple-200: #ceb8fe;
    --sf-purple-300: #ba9af8;
    --sf-purple-400: #a67bf0;  /* Lore on Black: #884ddc is 3.18:1 on #1f2122; this clears 4.5:1 */
    --sf-purple-500: #9b7bff;  /* VP */
    --sf-purple-600: #9164ee;
    --sf-purple-700: #884ddc;  /* Lore */
    --sf-purple-800: #632fa7;
    --sf-purple-900: #401174;
    --sf-purple-1000: #1e003e;
    --sf-yellow-50: #fef7e1;
    --sf-yellow-100: #fbecc0;
    --sf-yellow-200: #f8e09e;
    --sf-yellow-300: #f5d579;
    --sf-yellow-400: #f2c94c;  /* SP */
    --sf-yellow-500: #f7bd33;
    --sf-yellow-600: #fcb10f;
    --sf-yellow-700: #bf8508;
    --sf-yellow-800: #855c06;
    --sf-yellow-900: #503500;
    --sf-yellow-1000: #201300;
    --sf-blue-50: #f1f8ff;
    --sf-blue-100: #cbe4ff;
    --sf-blue-200: #a4d1fe;
    --sf-blue-300: #7ebdfc;
    --sf-blue-400: #4aa8ff;    /* MP */
    --sf-blue-500: #428ddc;
    --sf-blue-600: #3974ba;
    --sf-blue-700: #2f5b99;
    --sf-blue-800: #244479;
    --sf-blue-900: #142b53;
    --sf-blue-1000: #051530;

    /* Item cards */
    --sf-olive-50: #f8f7f0;
    --sf-olive-100: #d6d1b4; /* Item Text */
    --sf-olive-200: #c5bf9d;
    --sf-olive-300: #b5ae86; /* Item Accent; a monster sheet's gold filigree, skull and star */
    --sf-olive-400: #a29d82; /* Item Muted */
    --sf-olive-500: #87836e;
    --sf-olive-600: #6d6a5a; /* Item Edge */
    --sf-olive-700: #545145;
    --sf-olive-800: #3c3a31;
    --sf-olive-900: #25241e; /* Item Field */
    --sf-olive-1000: #171613;

    /* The older names, kept as aliases */
    --portfolio-white: var(--sf-gray-0);
    --portfolio-near-white: var(--sf-gray-50);
    --portfolio-black: var(--sf-gray-800);
    --portfolio-red: var(--sf-crimson-500);
    --portfolio-yellow: var(--sf-yellow-600);
    --portfolio-blue: var(--sf-blue-800);
    --portfolio-green: var(--sf-green-500);
    --portfolio-gray: var(--sf-gray-500);
    --portfolio-medium-gray: var(--sf-gray-300);
    /* The portfolio keeps its own light gray; Strange Frontiers uses gray-100 */
    --portfolio-light-gray: #e9eaeb;

    --portfolio-radius: 8px;

    --frontiers-green: var(--sf-neon-500);
    --frontiers-lore: var(--sf-purple-700);
    --frontiers-lore-on-black: var(--sf-purple-400);
    --frontiers-dreft: var(--sf-green-900);
    --frontiers-dreft-mid: var(--sf-green-700);
    --frontiers-hp: var(--sf-red-500);
    --frontiers-vp: var(--sf-purple-500);
    --frontiers-sp: var(--sf-yellow-400);
    --frontiers-mp: var(--sf-blue-400);
}
