Artists like Pieter Bruegel the Elder and Hendrick Avercamp documented locals’ resilience in the face of freezing winters and food shortages