San Francisco has led the way in making environmental accountability part of the fabric of the city. Photograph: Getty Images