A heading that wraps and leaves one short word alone on the second line looks like a mistake, and one line of CSS prevents it.
Set text-wrap to balance and the browser spreads the words over the lines so they come out about the same length. Without it, the first line is filled to the edge and whatever is left lands on the next one.
h1, h2, h3 {
text-wrap: balance;
}
I would put it on headings, captions and short pull quotes, the places where a lonely last word is most visible. It only changes where the line breaks fall, so adding it to an existing stylesheet is low risk. A browser that does not know the value ignores the line, and MDN lists text-wrap as available in current browsers, with the style values newer than the rest.
One caveat: balancing only happens for blocks of a few lines. MDN gives six lines or fewer for Chromium and ten or fewer for Firefox, so on a long paragraph balance does nothing. For body text, text-wrap: pretty is the value to look at. It uses a slower algorithm, and MDN says it can hurt performance, so I would test it before putting it on every paragraph.
Further reading: MDN: text-wrap, MDN: text-wrap-style