/* These selectors apply only after the opt-in H1 has been decorated. */
.btbm-article-header .btbm-article-title.btbm-title-has-cutouts {
  margin-block: 24px 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.btbm-article-header .btbm-title-has-cutouts > .btbm-title-row {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.btbm-article-header .btbm-title-has-cutouts .btbm-title-word {
  display: inline-block;
  box-sizing: border-box;
  max-width: calc(100% - 0.08em);
  margin: 0 0.08em 0.14em 0;
  padding: 0.08em 0.22em 0.1em;
  background-color: #e4ded0;
  color: #212121;
  line-height: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: baseline;
  transform: rotate(1.4deg);
}

.btbm-article-header .btbm-title-word:nth-child(3n) {
  transform: rotate(-0.6deg);
}

.btbm-article-header .btbm-title-word:nth-child(3n + 1) {
  transform: rotate(-1.1deg);
}

.btbm-article-header .btbm-title-word.btbm-title-word--first {
  background-color: #212121;
  color: #f5f1e7;
  transform: rotate(-2.3deg);
}

/* One charcoal paper strip, including when its text wraps on a phone. */
.btbm-article-header .btbm-article-subtitle {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 0.3em 0.65em 0.36em;
  background-color: #44413d;
  color: #f5f1e7;
  font-family: var(--btbm-title-font-family, inherit);
  font-size: clamp(1.25rem, 2.0625vw, 1.6875rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: rotate(-1.25deg);
  transform-origin: left center;
}
