Resources and the life course: Patterns through the demographic transition