Create document layout and update styles.