Resource limitation and competition shape reproductive allocation and synchrony