/* theme-blackmix/theme.css - COLOR-BLACKMIX-SITE (2026-10-31), LOCAL PREVIEW ONLY.
   O2 (#420712) mixed toward black in OKLab, hue kept: K20/K35/K50/K65 = percent black.
   Generated by sasha-rovelle-data/remodel/2026-10-30-hb-method/color-v2/blackmix/scripts/write_css.py
   from blackmix.json (colour maths: color-v2/engine/scripts/engine.py). Do not edit by hand.
   Active only when <html data-blackmix="..."> is set (switch.js; injected only when SITE_BLACKMIX is set).
   Token mapping reused from brand-film web-dark-2026-10-31/site/www/theme-dark.css, with three changes:
   image wells use the page ground (borderless, founder 10-31), no gold on text or hover (--brand = ivory),
   logo swapped for the ivory one-line wordmark. Colour only: no layout, type or copy change. */

/* 1. ground family per variant */
html[data-blackmix="O2"] {
  --sr-ground: #420712;        /* OKLCH 0.2494 0.0877 16.52  L* 11.65  C* 29.88 */
  --sr-ground-raised: #470C16; /* OKLCH 0.2662 0.0879 16.32  L* 13.6  C* 30.0 */
  --sr-ground-deep: #3D030E;   /* OKLCH 0.2327 0.0872 16.84  L* 9.71  C* 29.55 */
  --sr-rule: #613038;          /* hairline: ivory over ground, dL* = white-site rule */
  --sr-rule-strong: #896268;   /* >= 3:1 on deep/ground/raised */
}
html[data-blackmix="K20"] {
  --sr-ground: #2F040A;        /* OKLCH 0.2013 0.0699 17.41  L* 6.44  C* 22.73 */
  --sr-ground-raised: #32060D; /* OKLCH 0.2119 0.0703 16.34  L* 7.57  C* 23.41 */
  --sr-ground-deep: #2B0207;   /* OKLCH 0.1876 0.0691 18.17  L* 5.17  C* 21.0 */
  --sr-rule: #4E282D;          /* hairline: ivory over ground, dL* = white-site rule */
  --sr-rule-strong: #795C5E;   /* >= 3:1 on deep/ground/raised */
}
html[data-blackmix="K35"] {
  --sr-ground: #210205;        /* OKLCH 0.1629 0.0572 18.04  L* 3.41  C* 13.41 */
  --sr-ground-raised: #240307; /* OKLCH 0.1731 0.0584 16.53  L* 4.12  C* 15.39 */
  --sr-ground-deep: #1E0104;   /* OKLCH 0.1524 0.0564 17.28  L* 2.77  C* 11.66 */
  --sr-rule: #412527;          /* hairline: ivory over ground, dL* = white-site rule */
  --sr-rule-strong: #705A5B;   /* >= 3:1 on deep/ground/raised */
}
html[data-blackmix="K50"] {
  --sr-ground: #140102;        /* OKLCH 0.1259 0.0438 20.11  L* 1.58  C* 6.13 */
  --sr-ground-raised: #160203; /* OKLCH 0.1354 0.0425 19.77  L* 1.99  C* 6.79 */
  --sr-ground-deep: #120002;   /* OKLCH 0.1159 0.0463 14.27  L* 1.2  C* 5.59 */
  --sr-rule: #362525;          /* hairline: ivory over ground, dL* = white-site rule */
  --sr-rule-strong: #675958;   /* >= 3:1 on deep/ground/raised */
}
html[data-blackmix="K65"] {
  --sr-ground: #080001;        /* OKLCH 0.0858 0.0343 11.38  L* 0.49  C* 2.26 */
  --sr-ground-raised: #090101; /* OKLCH 0.0969 0.0275 23.79  L* 0.74  C* 2.22 */
  --sr-ground-deep: #070001;   /* OKLCH 0.0822 0.0329 9.43  L* 0.43  C* 1.99 */
  --sr-rule: #2C2525;          /* hairline: ivory over ground, dL* = white-site rule */
  --sr-rule-strong: #605958;   /* >= 3:1 on deep/ground/raised */
}

/* YB (YUNSEUL-BOUCHERON 2026-11-01, added by hand, MOOD.md section 2): neutral ground #050505, hairline #2A2A2A
   (draft U2-3 hairline_black), control rule #6E6E6E (>= 3:1 on the ground) */
html[data-blackmix="YB"] {
  --sr-ground: #050505;
  --sr-ground-raised: #0B0B0B;
  --sr-ground-deep: #020202;
  --sr-rule: #2A2A2A;
  --sr-rule-strong: #6E6E6E;
}

/* 2. fixed tokens (all variants): ivory text, champagne secondary (T2), gold only as a non-text fill */
html[data-blackmix] {
  --sr-ivory: #F7F1EE;
  --sr-champagne: #BCAEA6;
  --sr-gold: #D2AE68;
  --sr-faint: var(--sr-rule);
  --sr-dot: #BCAEA6;
  color-scheme: dark;
}

/* 3. the site's own tokens (styles.css :root 12-31) mapped onto the palette */
html[data-blackmix] {
  --ink: var(--sr-ivory);
  --bg: var(--sr-ground);
  --grey-text: var(--sr-champagne);
  --grey-strong: var(--sr-ivory);
  --grey-bar: var(--sr-rule-strong);
  --line-block: var(--sr-rule);
  --line-table: var(--sr-rule);
  --line-drawer: var(--sr-rule);
  --surface-img: var(--sr-ground);       /* borderless: image wells = page ground */
  --surface-footer: var(--sr-ground);
  --surface-panel: var(--sr-ground-raised);
  --dot: var(--sr-dot);
  --dot-on-dark: var(--sr-dot);
  --brand: var(--sr-ivory);              /* hover underline / icon: no gold */
  --text-ink: var(--sr-ivory);
  --text-photo-bg: var(--sr-ground);
  --oxblood: var(--sr-gold);             /* filled bag icon only (non-text) */
}
html[data-blackmix] body { background: var(--sr-ground); color: var(--sr-ivory); }

/* 4. literal colours and inverted roles in styles.css (hooks.md section 2) */
html[data-blackmix] .bag-count.is-filled { background: var(--sr-ivory); color: var(--sr-ground); }
html[data-blackmix] .btn-disabled, html[data-blackmix] .btn[disabled] { background: var(--sr-faint); }
html[data-blackmix] .btn-secondary[disabled] { border-color: var(--sr-faint); }
html[data-blackmix] .qty-btn[disabled] { color: var(--sr-faint); }
html[data-blackmix] .gallery-dots.on-dark i.is-active { background: var(--sr-ivory); }
html[data-blackmix] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F7F1EE' stroke-width='1'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E"); }
html[data-blackmix] .ft-biz, html[data-blackmix] .ft-copy { color: var(--sr-champagne); }

/* 5. logo: the one-line wordmark in ivory (an <img> cannot take a CSS colour) */
html[data-blackmix] .wm img { content: url("/theme-blackmix/logo-ivory.svg"); }
