How carbon-free energy around the clock can work