Inflation, terms of trade, and debt capacity