Rising costs and volatile markets are steadily eroding farm profitability, raising questions about the long-term viability