Text this: High-luminosity meV-resolution single-shot hard X-ray spectrograph for cavity-based X-ray free-electron lasers