Life-history variation is fundamental to the long-term persistence of populations and species because it ensures their ability to adapt to changing environments. Many important studies have focused on life-history variation between habitats, but the variation maintained within a habitat has often been overlooked.