Medium-density housing has limited green spaces, but even small planted patches can provide enough food and habitat to enhance urban biodiversity.