Long-lived marine species may be resilient to environmental variability through a temporal portfolio effect