Ecological and social resilience