Multi-scale mechanics of granular solids from grain-resolved X-ray measurements