High-pressure insights into magnetism