Upgrade the brain

It’s time to upgrade my PC again, 4 years after its last upgrade. Its role has changed in that time. What CPU should I buy?