An interview with the writer and producer of ITV’s global hit period drama