Life-history trade-offs vary with resource availability across the geographic range of a widespread plant.