/* ============================================================
   Don Adán Coffee — Base typography (IDENTITY defaults only)
   ------------------------------------------------------------
   Division of responsibility:
     • THIS FILE  → brand identity: font family + colour (+ gentle
                    line-height). No font-SIZE, no letter-spacing.
     • DIVI       → size, weight, letter-spacing, and RESPONSIVE
                    scale, via module Presets and the Design tab.

   Because there are no font sizes here, Divi's Design-tab typography
   (including per-breakpoint sizing) is fully in control. Bare/pasted
   content still inherits the brand font + colour, so nothing ever
   looks off-brand — it just isn't force-sized.
   ============================================================ */

/* ---- Headings: brand font + colour only (Divi owns size/weight) ---- */
:where(.et_pb_text h1, .et_pb_text h2, .et_pb_text h3,
       .et_pb_text h4, .et_pb_text h5, .et_pb_text h6,
       .et_pb_post_content h1, .et_pb_post_content h2, .et_pb_post_content h3,
       .et_pb_post_content h4, .et_pb_post_content h5, .et_pb_post_content h6) {
  font-family: var(--font-sans);
  color: var(--text-strong);
}

/* strong inside a heading = the heavy display weight (brand pattern) */
:where(.et_pb_text h1, .et_pb_text h2, .et_pb_text h3) strong {
  font-weight: var(--fw-heavy);
}

/* On dark sections, headings/text flip to light */
.et_pb_section.da-section--dark :where(h1, h2, h3, h4, h5, h6) { color: #fff; }

/* ---- Body copy: brand font, colour, readable rhythm (no size) ---- */
:where(.et_pb_text p, .et_pb_post_content p) {
  font-family: var(--font-sans);
  line-height: var(--lh-body);
}
/* Default body colour sits on the module, not the <p>, so a module's own
   Text colour (Design tab) always wins, including light text on dark sections. */
:where(.et_pb_text, .et_pb_post_content) { color: var(--text-body); }
.et_pb_section.da-section--dark :where(.et_pb_text) { color: var(--on-dark-2); }

/* ---- Lists ---- */
:where(.et_pb_text ul, .et_pb_text ol,
       .et_pb_post_content ul, .et_pb_post_content ol) {
  font-family: var(--font-sans);
  line-height: var(--lh-body);
}

/* ---- Links inside content ---- */
:where(.et_pb_text a, .et_pb_post_content a) { color: var(--accent); }
.et_pb_text a:hover, .et_pb_post_content a:hover { color: var(--accent-dark); }

/* ---- Blockquote / pull quote (this one IS a styled component) ----
   Kept fully styled because a pull quote is a brand element, not body
   text. Override per-module in Divi if you ever need to. */
.et_pb_text blockquote, .et_pb_post_content blockquote {
  font-family: var(--font-sans);
  line-height: var(--lh-body);
  color: var(--text-strong);
  border-left: 3px solid var(--accent);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  margin: var(--sp-6) 0;
  font-style: normal;
}

/* ============================================================
   PASTE NORMALISER
   Forces stray pasted inline font-family back to the brand family so
   a leftover Montserrat/system font can't slip through. Colour is
   left alone so you can still colour a span on purpose.
   ============================================================ */
:where(.et_pb_text, .et_pb_post_content) span[style],
:where(.et_pb_text, .et_pb_post_content) p[style] {
  font-family: var(--font-sans) !important;
}

/* ---- OPTIONAL: also strip pasted inline COLOUR. Enable only if
   white text pasted from the prototype's dark sections shows up
   invisible on white. It also removes intentional inline colours.

:where(.et_pb_text) span[style], :where(.et_pb_text) p[style] {
  color: inherit !important;
}
*/
