/* Kholosh article — Gutenberg-to-design-system mapping
 * Loaded only on single posts (is_singular('post')). Targets .entry-content
 * descendants only so it can never bleed into other templates.
 */

/* Body prose */
.entry-content > p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  color: #1A1A1A;
  margin-top: 1.75rem;
}
.entry-content > p:first-of-type {
  margin-top: 0;
}

/* Dropcap on the opening paragraph */
.entry-content > p:first-of-type::first-letter {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  float: left;
  font-size: 76px;
  line-height: 0.75;
  padding-right: 14px;
  margin-top: 8px;
  color: #1A1A1A;
}

/* Subheads (H2 in body) */
.entry-content > h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

/* Inline single-image figures (wp-block-image) */
.entry-content .wp-block-image {
  margin: 3rem -1.25rem;
}
@media (min-width: 768px) {
  .entry-content .wp-block-image {
    margin: 3rem -4rem;
  }
}
.entry-content .wp-block-image img {
  border-radius: 0.5rem;
  display: block;
  width: 100%;
  height: auto;
}
.entry-content .wp-block-image figcaption {
  font-size: 12px;
  font-style: italic;
  color: #6B6B68;
  margin-top: 0.75rem;
  text-align: center;
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* Wide-aligned images get a stronger column break */
.entry-content .alignwide,
.entry-content .wp-block-image.alignwide {
  margin-left: -1.25rem;
  margin-right: -1.25rem;
}
@media (min-width: 768px) {
  .entry-content .alignwide,
  .entry-content .wp-block-image.alignwide {
    margin-left: -8rem;
    margin-right: -8rem;
  }
}

/* Pull quote (wp-block-quote, wp-block-pullquote) */
.entry-content .wp-block-quote,
.entry-content .wp-block-pullquote {
  margin: 3rem -1.25rem;
  border: none;
  padding: 0;
}
@media (min-width: 768px) {
  .entry-content .wp-block-quote,
  .entry-content .wp-block-pullquote {
    margin: 4rem -8rem;
  }
}
.entry-content .wp-block-quote p,
.entry-content .wp-block-pullquote p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  color: #1A1A1A;
}
.entry-content .wp-block-quote cite,
.entry-content .wp-block-pullquote cite {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  font-style: normal;
  color: #6B6B68;
  margin-top: 1.5rem;
  text-align: center;
}

/* Two-image rows (wp-block-gallery with columns="2") */
.entry-content .wp-block-gallery.columns-2 {
  margin: 3rem -1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .entry-content .wp-block-gallery.columns-2 {
    margin: 3rem -4rem;
    gap: 1rem;
  }
}
.entry-content .wp-block-gallery.columns-2 img {
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ── Lists + H3 — match the serif body prose (AI blog posts use ul/ol/li/h3).
 *    Without this they fell back to the base Montserrat sans-serif. */
.entry-content ul,
.entry-content ol {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  color: #1A1A1A;
  margin-top: 1.75rem;
  padding-left: 1.5rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li {
  font-family: 'Source Serif 4', Georgia, serif;
  margin-top: 0.5rem;
}
.entry-content > h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
