> I'm sure somebody has written a book already about how ostensibly wealthy societies can fail at basic infrastructure that they previously mastered, driven by greed and complacency and other socioeconomic factors.
How about Foundation by Isaac Asimov.