Document architecture