/* Explain: Base reset, print behavior, and typography defaults */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
}

body {
    min-width: 320px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(128, 0, 32, 0.34), transparent 30rem),
        radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.16), transparent 24rem),
        linear-gradient(145deg, #0d1111 0%, #132020 52%, #0a0d0d 100%);
}

button,
a,
input,
textarea,
label {
    font-family: var(--font-ui);
}

::selection {
    background: rgba(212, 175, 55, 0.38);
    color: var(--text-color);
}

@media print {
    html,
    body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        background: #ffffff;
        overflow: visible;
    }

    body * {
        visibility: hidden;
    }

    #letterheadPaper,
    #letterheadPaper * {
        visibility: visible;
    }

    #letterheadPaper {
        position: fixed;
        inset: 0;
        width: 210mm !important;
        height: 297mm !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }
}
