Upstate population decline tied to housing costs across New York