The example I gave above is meant to illustrate this. “Housing” remains affordable — a family can still purchase a 1200 sqft unit in a desirable neighborhood for a reasonable amount of money.
But the value of a particular house or apartment grows our[acing inflation because (of course, assuming more people want to live in that area—which all housing price growth is predicated on anyway) the demand on land is high, and a developer can come in and increase density on any particular lot.
In other words, the cost of housing remains affordable while the cost of any particular house or apartment grows above inflation, because each particular unit reflects a claim on land, the comparatively scarce resource.
Everyone needs housing, but not everyone needs a detached single family home on a half-acre lot.
In other words, The piece that is missing from your assessment is that a house is two things: land and a structure on top; the value of the land can go up, ensuring a high return for the owner of the land+structure, even as new structures can offer fractional claims on that same land at a more affordable price.
I’m happy to dig in further here if I’m still not being clear!
The areas where housing is no longer affordable are the areas where you can’t buy any housing with the median income, not where the fanciest housing is inaccessible to the median income.
What form that housing takes (detached house, apartment in a duplex, then 4-pled, then larger apt building) will change over time as density increases.