Deep Recurrent Neural Networks

https://d2l.ai/chapter_recurrent-modern/deep-rnn.html

It is mentioned that the input dimension is n x d. But if the first hidden layer is treated as the first input how can the dimensions match?