For decades, science has understood the basics of photosynthesis, the process by which plants turn sunlight into food.