Whether you’re renting or buying, housing is becoming less affordable across much of the U.S. Here’s why.