Difficulties understanding なのだと


> その人間が最も恐れる罪の具現が悪夢 **なのだと悪夢は** 語った。

I really can't parse this. I know the meaning of the words but I do not
understand the meaning of the sentence.

Can someone explain? The bold part is what is confusing me the most.

Shouldn't it be

> その人間が最も恐れる罪の具現が悪夢 **なのだと語った** 。

The fantranslation is:

> The person said that the things one fears the most becomes his nightmare.




Without more context, I would say that 悪夢は is indicating what did the verb
語った, and その人間 is not the one saying the quote but is instead part of the
quote. That would make the sentence equivalent to
悪夢は、その人間が最も恐れる罪の具現が悪夢なのだと語った。

> その人間が最も恐れる罪の具現が悪夢なのだと悪夢は語った。  
>  The nightmare showed that the embodiment of the sins that that person most
> fears is the nightmare.

The parsing:

> (((その人間が最も恐れる)罪の具現)が悪夢なのだ)と悪夢は語った。

If it's safe to assume that 悪夢 is the same nightmare, then the English could
be shifted around a little to make it more simple:

> The nightmare showed that it is the embodiment of the sins that that person
> most fears.




Without more context, I would say that 悪夢は is indicating what did the verb
語った, and その人間 is not the one saying the quote but is instead part of the
quote. That would make the sentence equivalent to
悪夢は、その人間が最も恐れる罪の具現が悪夢なのだと語った。

> その人間が最も恐れる罪の具現が悪夢なのだと悪夢は語った。  
>  The nightmare showed that the embodiment of the sins that that person most
> fears is the nightmare.

The parsing:

> (((その人間が最も恐れる)罪の具現)が悪夢なのだ)と悪夢は語った。

If it's safe to assume that 悪夢 is the same nightmare, then the English could
be shifted around a little to make it more simple:

> The nightmare showed that it is the embodiment of the sins that that person
> most fears.

