@media print {

html, body {
    font: 12pt/1.3 serif !important;
    background: $bg-color !important;
    color: $fg-color !important;
}

body {
    header {
        display: none;
    }

    footer {
        nav {
            display: none;
        }
    }

    a, a:hover, a:active, a:visited {
        color: $fg-color !important;
    }
}

main, article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    float: none;
}

h1 {
    font-size: 2rem;
}

h2, h3, h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
}

a {
    page-break-inside: avoid
}

blockquote {
    page-break-inside: avoid;
}

h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid; 
    page-break-inside: avoid
}

img {
    page-break-inside: avoid; 
    page-break-after: avoid;
}

table, pre {
    page-break-inside: avoid
}

ul, ol, dl  {
    page-break-before: avoid
}

}