/* =====================================================================
   SANTA LETTER SET: PRINTED SHEETS
   Styles for the letter, Nice List certificate and envelope.
   Used both for the on-screen preview and for printing.
   Everything prints on plain white paper (no background color).
   ===================================================================== */

/* ---------- FONTS (self-hosted, nothing loads from outside) ---------- */
@font-face {
    font-family: "Cinzel Decorative";
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/santa/cinzel-decorative-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cinzel Decorative";
    font-weight: 900;
    font-display: swap;
    src: url("/fonts/santa/cinzel-decorative-latin-900-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cinzel";
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/santa/cinzel-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cinzel";
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/santa/cinzel-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cinzel";
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/santa/cinzel-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant Garamond";
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/santa/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant Garamond";
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/santa/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant Garamond";
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/santa/cormorant-garamond-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant Garamond";
    font-weight: 500;
    font-style: italic;
    font-display: swap;
    src: url("/fonts/santa/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Great Vibes";
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/santa/great-vibes-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Dancing Script";
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/santa/dancing-script-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Dancing Script";
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/santa/dancing-script-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Pinyon Script";
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/santa/pinyon-script-latin-400-normal.woff2") format("woff2");
}

/* ---------- SHEET BASICS ---------- */
/* Sizes are exact paper sizes at 96 pixels per inch:
   letter page 8.5 x 11 in = 816 x 1056, #10 envelope 9.5 x 4.125 in = 912 x 396 */
.np-sheet {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #2a1a12;
    font-family: "Cormorant Garamond", Georgia, serif;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.np-sheet * {
    box-sizing: border-box;
}
.np-page {
    width: 816px;
    height: 1056px;
}
.np-env {
    width: 912px;
    height: 396px;
}
.np-sheet img {
    display: block;
    max-width: none;
}
.np-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- LETTER ---------- */
.np-letter .np-head {
    position: absolute;
    left: 88px;
    right: 88px;
    top: 46px;
    width: 640px;
    height: auto;
}
.np-letter .np-dateline {
    position: absolute;
    left: 96px;
    right: 96px;
    top: 276px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.np-letter .np-date {
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a8161b;
}
.np-letter .np-verified {
    width: 250px;
    height: auto;
}
.np-letter .np-body {
    position: absolute;
    left: 96px;
    right: 96px;
    top: 318px;
    bottom: 50px;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.5;
}
.np-letter .np-body p {
    margin: 0 0 11px;
    text-align: justify;
    hyphens: auto;
}
.np-dear {
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    font-size: 2.3em;
    line-height: 1;
    color: #a8161b;
    margin: 0 0 0.3em;
}
.np-p1::first-letter {
    float: left;
    font-family: "Cinzel Decorative", serif;
    font-weight: 900;
    font-size: 3em;
    line-height: 0.9;
    margin: 0.08em 0.15em 0 0;
    color: #a8161b;
}
.np-signrow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0.2em;
}
.np-signrow > div {
    flex: 1;
}
.np-close {
    font-style: italic;
    font-size: 1em;
}
.np-sig {
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    font-size: 2.7em;
    line-height: 1.05;
    color: #1a2f6b;
    margin: 0 0 0 0.3em;
}
.np-ps {
    margin: 0.3em 0 0;
    padding-top: 0.35em;
    border-top: 1px solid #d9c07a;
    font-size: 0.88em;
    font-style: italic;
    text-align: left !important;
}
.np-ps b {
    font-style: normal;
    font-family: "Cinzel", serif;
    font-size: 0.95em;
    color: #a8161b;
    letter-spacing: 1px;
}
.np-letter .np-seal {
    flex: 0 0 auto;
    width: 188px;
    height: auto;
    transform: rotate(-6deg);
}

/* ---------- CERTIFICATE ---------- */
.np-cert .np-title {
    position: absolute;
    left: 108px;
    top: 52px;
    width: 600px;
    height: auto;
}
.np-cert .np-vstamp {
    position: absolute;
    left: 193px;
    top: 226px;
    width: 430px;
    height: auto;
}
.np-cert .np-cbody {
    position: absolute;
    left: 80px;
    right: 80px;
    top: 336px;
    bottom: 268px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.np-certifies {
    font-style: italic;
    font-size: 25px;
}
.np-cname {
    display: inline-block;
    min-width: 62%;
    margin-top: 4px;
    padding: 0 30px 2px;
    border-bottom: 2px solid #c9a227;
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    font-size: 84px;
    line-height: 1.12;
    color: #a8161b;
}
.np-ctext {
    margin: 22px 10px 0;
    font-size: 23px;
    line-height: 1.6;
}
.np-awarded {
    margin-top: 24px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #14532d;
}
.np-cert .np-bottom {
    position: absolute;
    left: 70px;
    right: 70px;
    bottom: 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.np-cert .np-cseal {
    width: 178px;
    height: auto;
    transform: rotate(-6deg);
}
.np-cert .np-emblem {
    width: 196px;
    height: auto;
}
.np-sigblock {
    flex: 1;
    margin: 0 16px 16px;
    text-align: center;
}
.np-sigblock .np-s {
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    font-size: 46px;
    line-height: 1.1;
    color: #1a2f6b;
    border-bottom: 1.5px solid #2a1a12;
}
.np-sigblock .np-l {
    margin-top: 6px;
    font-family: "Cinzel", serif;
    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a4a3a;
}

/* ---------- ENVELOPE ---------- */
.np-env .np-ret {
    position: absolute;
    left: 44px;
    top: 34px;
    font-size: 16px;
    line-height: 1.32;
}
.np-env .np-ret b {
    font-family: "Cinzel Decorative", serif;
    font-weight: 700;
    font-size: 19px;
    color: #a8161b;
}
.np-env .np-eseal {
    position: absolute;
    left: 48px;
    top: 148px;
    width: 168px;
    height: auto;
    transform: rotate(-6deg);
}
.np-env .np-pmark {
    position: absolute;
    right: 124px;
    top: 38px;
    width: 172px;
    height: 104px;
}
.np-env .np-stamp {
    position: absolute;
    right: 46px;
    top: 32px;
    width: 98px;
    height: 118px;
}
.np-env .np-to {
    position: absolute;
    left: 340px;
    right: 50px;
    top: 160px;
}
.np-env .np-tn {
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    font-size: 54px;
    line-height: 1;
    color: #1a2f6b;
}
.np-env .np-ta {
    margin-left: 8px;
    font-size: 21px;
    line-height: 1.35;
}
.np-env .np-express {
    position: absolute;
    left: 44px;
    bottom: 30px;
    padding: 6px 14px;
    border: 1.5px solid #14532d;
    border-radius: 3px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #14532d;
}

/* =====================================================================
   PRINTING
   Only the chosen sheet(s) print. The envelope uses its own page size
   in browsers that support named pages (Chrome, Edge, Firefox, newer Safari).
   ===================================================================== */
#np-print-root {
    display: none;
}

@page {
    size: 8.5in 11in;
    margin: 0;
}
@page envelope {
    size: 9.5in 4.125in;
    margin: 0;
}

@media print {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    body > *:not(#np-print-root) {
        display: none !important;
    }
    #np-print-root {
        display: block !important;
    }
    #np-print-root .np-sheet {
        transform: none !important;
        margin: 0;
    }
    #np-print-root .np-sheet + .np-sheet {
        break-before: page;
        page-break-before: always;
    }
    #np-print-root .np-env {
        page: envelope;
    }
}
