/* ════════════════════════════════════════════════════════════════════
   DIFT Off — Café crème brand layer
   Source: assets/dift-off-logo-kit.zip (Espresso · Cream · Brass).
   Load LAST on every page (after inline <style> blocks) — it re-points
   the existing token names at the new palette, so components need no edits.

   Contrast (WCAG AA, checked against --dift-bg #F6F0E6):
     espresso 12.0 · text-2 7.8 · text-3 5.0 · brass-text 4.75
   Raw brass #B98B45 is 2.7:1 on cream — fills, rules and dots only, never text.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Kit primaries ── */
  --espresso:        #3B2A20;
  --espresso-deep:   #2C1F17;
  --espresso-soft:   #4A372B;
  --kit-cream:       #F1E9DC;   /* not --cream: product pages repurpose that as dark text */
  --brass:           #B98B45;
  --brass-text:      #8A6328;   /* brass dark enough for text on cream */

  /* ── Legacy tokens (colors_and_type.css) → new palette ── */
  --green:           var(--espresso);
  --green-mid:       var(--espresso-soft);
  --green-dark:      var(--espresso-deep);
  --green-deep:      #20160F;
  --green-light:     #EADFCD;
  --cream-dark:      #E6D9C4;
  --off-white:       #F6F0E6;
  --accent:          var(--brass);
  --black:           var(--espresso);
  --gray:            #7A6250;

  /* ── v2 light system → café crème ── */
  --dift-bg:         #F6F0E6;
  --dift-bg2:        #F1E9DC;
  --dift-surface:    #FCF9F4;
  --dift-white:      #F6F0E6;
  --dift-cream:      #F1E9DC;
  --dift-sand:       #EADFCD;
  --dift-sand-deep:  #DFCFB5;

  --dift-text:       var(--espresso);
  --dift-text-2:     #5C4636;
  --dift-text-3:     #7A6250;

  --dift-border:     rgba(59,42,32,0.10);
  --dift-border-md:  rgba(59,42,32,0.17);

  --dift-gold:       var(--brass-text);
  --dift-gold-rgb:   138 99 40;
  --dift-gold-mid:   #74521F;
  --dift-gold-dim:   rgba(185,139,69,0.12);
  --dift-gold-line:  rgba(185,139,69,0.35);

  --leads-accent:    var(--brass-text);

  /* ── Dark sections (footer, FAQ, CTA) → espresso ── */
  --dift-dark:       var(--espresso);
  --dift-dark2:      var(--espresso-deep);
  --dift-dark3:      var(--espresso-soft);

  /* ── Text on dark → cream-based ── */
  --tx:              rgba(241,233,220,0.88);
  --tx2:             rgba(241,233,220,0.62);
  --tx3:             rgba(241,233,220,0.40);
  --bd:              rgba(241,233,220,0.12);
  --bd2:             rgba(241,233,220,0.07);

  /* ── Product pages (dift-product*.css) ── */
  --page-bg:         #F6F0E6;
  --page-bg-2:       #F1E9DC;
  --page-bg-3:       #FCF9F4;
}

body { background: var(--dift-bg); color: var(--dift-text); }

::selection { background: rgba(185,139,69,0.30); color: var(--espresso); }

/* Primary filled CTAs: espresso with cream type (11.3:1) — the kit's own pairing */
.dift-btn-green,
.btn-dift-primary,
.dp-btn-p {
  background: var(--espresso) !important;
  color: var(--kit-cream) !important;
  border-color: var(--espresso) !important;
}
.dift-btn-green:hover,
.btn-dift-primary:hover,
.dp-btn-p:hover { background: var(--espresso-soft) !important; }

.dift-btn-accent { background: var(--brass); color: var(--espresso); }

/* ── Type: Helvetica Neue headings, Roboto body ──
   Helvetica Neue is a system font (macOS/iOS); Windows and Android fall back to Arial. */
:root {
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Emphasis: no colour + italic swap on a single headline word ──
   <em> inside headlines now reads as plain headline text. Body-copy <em> stays italic. */
:is(h1, h2, h3, h4, h5, h6,
    .car-title, .car-tagline, .cc-name, .faq-statement, .qtext, .s-val,
    .lc-name, .dp-modal-title, .h-cream, .legal-h1, .legal-h2) em {
  font-style: normal !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}
