/* ==========================================================
   HANDBOOK TOKENS
   Shared values for the whole site. Change a value here and every
   rule that uses it follows. Loads right after style.css (custom
   properties work wherever they're defined, so style.css can use
   them too).

   1. Palette: every grey and the gold the Handbook uses. Names run
      from dark (950) to light (100). When a colour is needed, pick
      the nearest step rather than adding a new hex value.
   2. Roles: what components use. Point a role at a palette step.
   ========================================================== */

:root {

    /* 1. Palette ------------------------------------------------
       Consolidated Nov 2026: shades within 4/255 of each other were
       merged into one step (noted beside each). */
    --handbook-black: #000000;
    --handbook-grey-950: #0e0e0e;
    --handbook-grey-925: #111111;
    --handbook-grey-900: #161616;  /* also replaces #181818 */
    --handbook-grey-850: #1d1d1d;  /* also replaces #1a1a1a, #1b1b1b, #1c1c1c, #1e1e1e */
    --handbook-grey-825: #202020;  /* also replaces #222222 */
    --handbook-grey-800: #242424;  /* also replaces #252525 */
    --handbook-grey-775: #2b2b2b;  /* also replaces #282828, #292929, #2e2e2e */
    --handbook-grey-750: #333333;  /* also replaces #303030, #343434 */
    --handbook-grey-725: #3a3a3a;  /* also replaces #383838 */
    --handbook-grey-700: #444444;  /* also replaces #404040 */
    --handbook-grey-650: #555555;
    --handbook-grey-600: #666666;  /* also replaces #626262 */
    --handbook-grey-550: #777777;
    --handbook-grey-500: #888888;
    --handbook-grey-450: #999999;
    --handbook-grey-425: #9f9f9f;
    --handbook-grey-400: #a6a6a6;  /* also replaces #a8a8a8 */
    --handbook-grey-375: #aaaaaa;
    --handbook-grey-350: #b1b1b1;  /* also replaces #b3b3b3 */
    --handbook-grey-340: #b6b6b6;
    --handbook-grey-325: #bbbbbb;
    --handbook-grey-310: #bfbfbf;  /* also replaces #c0c0c0 */
    --handbook-grey-300: #c6c6c6;  /* also replaces #c5c5c5 */
    --handbook-grey-275: #cccccc;  /* also replaces #d0d0d0 */
    --handbook-grey-250: #d6d6d6;
    --handbook-grey-225: #dddddd;  /* also replaces #e0e0e0 */
    --handbook-grey-200: #e5e5e5;
    --handbook-grey-150: #eeeeee;  /* also replaces #f0f0f0 */
    --handbook-grey-100: #f2f2f2;  /* also replaces #f3f3f3, #f5f5f5 */
    --handbook-white: #ffffff;
    --handbook-gold: #bcab29;  /* also replaces #bdad29 */
    --handbook-gold-bright: #ddc933;
    --handbook-gold-muted: #b8aa1b;

    /* 2. Roles ---------------------------------------------------- */

    /* Links */
    --handbook-link-hover: var(--handbook-gold-bright);

    /* Content column side padding (Kouki's .entry-content padding).
       The post hero uses it so its accent lines up with the cards. */
    --handbook-content-inset: 30px;

    /* Card (handbook-card) */
    --handbook-card-bg: var(--handbook-grey-850);
    --handbook-card-accent: var(--handbook-grey-750);
    --handbook-card-accent-width: 5px;
    --handbook-card-radius: 18px;
    --handbook-card-padding-y: 34px;
    --handbook-card-padding-x: 28px;
    --handbook-card-header-gap: 26px;
    --handbook-card-gap: 16px;

    /* Card heading */
    --handbook-heading-font: 'Josefin Sans', sans-serif;
    --handbook-card-heading-size: 22px;
    --handbook-card-heading-color: var(--handbook-grey-200);

    /* Status lists (status-list.css) */
    --handbook-status-allowed: #81c9a1;
    --handbook-status-blocked: #ff5757;
    --handbook-status-conditional: #e7b65b;
    --handbook-status-neutral: var(--handbook-grey-375);

    /* Post hero */
    --handbook-hero-accent: var(--handbook-grey-325);
    --handbook-hero-title-color: var(--handbook-grey-100);
    --handbook-hero-intro-color: var(--handbook-grey-425);
}

@media (max-width: 800px) {
    :root {
        --handbook-card-padding-y: 28px;
        --handbook-card-padding-x: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --handbook-content-inset: 15px;
    }
}
