The macroeconomics of sustainability