/* Preset: subtitle followed by related text */
@layer horeca.components {
  .horeca-blog-title-text {
    margin: var(--horeca-space-6) 0;
    max-width: var(--horeca-reading-width);
  }

  .horeca-blog-title-text > :where(h2, h3) {
    color: var(--horeca-ink);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 0 var(--horeca-space-3);
  }

  .horeca-blog-title-text > h2 {
    font-size: clamp(1.5rem, 1.35rem + 0.65vw, 1.875rem);
  }

  .horeca-blog-title-text > h3 {
    font-size: clamp(1.25rem, 1.17rem + 0.35vw, 1.5rem);
  }

  .horeca-blog-title-text > :where(h2, h3)::after {
    background: var(--horeca-red);
    content: "";
    display: block;
    height: 0.1875rem;
    margin-top: 0.65rem;
    width: 3.25rem;
  }

  .horeca-blog-title-text > p,
  .horeca-blog-title-text__body > p { margin: 0 0 1.1em; }
  .horeca-blog-title-text > :last-child,
  .horeca-blog-title-text__body > :last-child { margin-bottom: 0; }

  .horeca-blog-title-text > .horeca-blog-list,
  .horeca-blog-title-text__body > .horeca-blog-list {
    margin: 0;
    max-width: none;
  }

  .horeca-blog-title-text__body {
    min-height: 1.5em;
  }

  @media (max-width: 48rem) {
    .horeca-blog-title-text { margin: 2.25rem 0; }
    .horeca-blog-title-text > :where(h2, h3) { overflow-wrap: anywhere; }
    .horeca-blog-title-text > h2 { font-size: 1.4375rem; }
    .horeca-blog-title-text > h3 { font-size: 1.25rem; }
  }
}
