House of Stairs by William Sleator messed with my head for a while.
Among other aspects, I read it in - I think - the mid nineties. At one point one of the main characters describes a past activity - leaving her car to rescue another person, IIRC - and details how difficult was to do so because you have to put on a gas mask to be out in the atmosphere or something like that. (It's been most of thirty years since I read it, I apologize for being light on the details.)
At the time I was a kid and thought it ridiculous. After all, humanity had conquered acid rain and the hole in the ozone (though I don't recall if that had happened yet). Climate change would never get that bad.