A $315k 30 yr mortgage today at 3.8% is $525k total.
$315,000 in 1985 is equivalent in purchasing power to about $751,664.36 in 2019.
So its cheaper today to buy a median price home🤷🏼♂️
Also theres what constitutes a median price home.
Todays home likely is larger with more luxuries like AC, better insulation, bigger garage, more trim, smarter controls, better appliances, etc.