Enjoyment appears at the boundary between boredom and anxiety, when the challenges are just balanced with the person’s capacity to act.

James Wallman Time and How to Spend It: The 7 Rules for Richer, Happier Days

LessWrong How to Be Happy - LessWrong

Mihaly Csikszentmihalyi Flow: The Psychology of Happiness