.heading-component {
    display: flex;
    flex-direction: column;
}


.heading-component__subtitle {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: .87rem;
    display: flex;
    gap: .5rem;
}

.heading-component__subtitle:after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    margin-top: 1em;
    background: var(--muted);
    align-self: baseline;
}

.heading-component__button-group {
    margin-top: var(--margin-medium);
    display: flex;
    align-items: flex-start;
}



@media (min-width: 479px) {
    .heading-component .heading-component__caption {
        max-width: 75%;
    }

    .heading-component.aside .heading-component__caption {
        align-self: flex-end;
    }
}


@media (min-width: 1024px) {
    .heading-component.aside {
        display: grid;
        grid-template-columns: .75fr 1.5fr;
    }

    .heading-component__caption.aside {
        max-width: none;
    }

    .heading-component__subtitle {
        font-size: 1.25rem;
    }

    .heading-component.aside .heading-component__caption {
        margin-inline-start: auto;
    }
}