Ancient Japanese writings are guiding cutting-edge technology as researchers investigate medieval solar storms.