When science and literature inspired one another