@media print {
    .markdown-body {

        >h1:first-child {
            margin-top: 50vh;

            +p {
                text-align: center;
            }
        }

        >h1:first-child:not(:has(+ p)),
        >h1:first-child+p {
            break-after: page;
        }

        hr {
            display: none;
            break-after: page;
        }
    }
}