High-fidelity stellar extinction with Gaia and APOGEE – I. The method and a new extinction curve | Synapse