As for water, there's plenty of it in the ocean. All you need is some cheap energy to desalinate it. Californians need not worry. One of the richest and high tech economies in the world sitting right next to the largest reservoir of water on the planet. They'll figure it out eventually.
I'm not saying it will be easy. But the combination of large scale investments in making renewable energy generation dirt cheap and increasingly more energy efficient ways to desalinate water inevitably means that people will have access to as much water that they need when this gets pushed far enough. Just a matter of time. Lots of places manage to get by with desalinated water already. Large parts of the middle east for example. It's just about making the process cheaper and more efficient.