Text this: QUBIC VIII: Optical design and performance