/* print.css: the site as a document. Linked with media="print" from every page. */
@page { margin: 1.6cm; }

:root {
    --section-y: 1.5rem !important;
    --hero-top: 1rem !important;
    --stack-gap: 1.5rem !important;
}

* {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* scroll reveals must never print invisible */
[data-reveal], .mask .mask-inner {
    opacity: 1 !important;
    transform: none !important;
}

.site-header, .hero .media, video, .skip { display: none !important; }
.hero { height: auto !important; min-height: 0 !important; margin-top: 0 !important; }
.site-footer { min-height: 0 !important; margin-top: 2rem !important; gap: 2rem !important; }

/* white/black register holds on paper */
img { max-width: 100% !important; filter: grayscale(1); }
img[src$="palisade-icon-light.svg"] { filter: invert(1); }

a { text-decoration: underline; }
main a[href^="http"]::after, main a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
}

h1, h2, h3 { break-after: avoid; }
figure, img { break-inside: avoid; }
p { orphans: 3; widows: 3; }
