:root{
    --night: #0b1f3a;
    --night-deep: #071426;
    --gold: #e3b23c;
    --gold-deep: #b8842a;
    --snow: #f6f4ec;
    --pine: #3c5c48;
    --text-soft: #cdd8ea;
}

*{
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body{
    background:
        radial-gradient(ellipse 700px 500px at 78% 12%, rgba(230, 220, 190, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 50% -10%, #1c3760 0%, var(--night) 45%, var(--night-deep) 100%);
    font-family: 'Nunito Sans', sans-serif;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 130px;
    position: relative;
    overflow-x: hidden;
}

/* stars, scattered by hand rather than a repeating pattern */
body::before{
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #ffffff 100%, transparent 0),
        radial-gradient(1px 1px at 24% 40%, #ffffff 100%, transparent 0),
        radial-gradient(2px 2px at 68% 12%, #ffffff 100%, transparent 0),
        radial-gradient(1px 1px at 82% 30%, #ffffff 100%, transparent 0),
        radial-gradient(1.5px 1.5px at 90% 65%, #ffffff 100%, transparent 0),
        radial-gradient(1px 1px at 8% 75%, #ffffff 100%, transparent 0),
        radial-gradient(1.5px 1.5px at 38% 8%, #ffffff 100%, transparent 0),
        radial-gradient(1px 1px at 55% 85%, #ffffff 100%, transparent 0);
    opacity: 0.5;
    pointer-events: none;
}

.moon{
    position: fixed;
    top: 8%;
    right: 10%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f3ecd6;
    box-shadow: 0 0 40px 12px rgba(243, 236, 214, 0.25);
    z-index: 1;
}

.garland{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 46px;
    z-index: 4;
}

.bulb{
    filter: drop-shadow(0 0 4px currentColor);
    animation: twinkle 2.4s ease-in-out infinite;
}

.b-gold{ fill: var(--gold); color: var(--gold); }
.b-red{ fill: #c94f4f; color: #c94f4f; animation-delay: 0.4s; }
.b-green{ fill: #6fae7c; color: #6fae7c; animation-delay: 0.8s; }

@keyframes twinkle{
    0%, 100%{ opacity: 1; }
    50%{ opacity: 0.55; }
}

.skyline{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 130px;
    z-index: 1;
}

.skyline .tree polygon,
.skyline .tree rect{
    fill: #0a1a30;
}

.skyline .ground{
    fill: #0d2038;
}

.snowfall{
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.snowfall span{
    position: absolute;
    top: -10px;
    display: block;
    background: var(--snow);
    border-radius: 50%;
    opacity: 0.85;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall{
    to{
        transform: translateY(110vh) translateX(var(--drift, 0px));
    }
}

.postcard{
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #0f2545 0%, #0b1e3a 100%);
    border: 1px solid rgba(227, 178, 60, 0.35);
    border-radius: 4px;
    padding: 44px 40px 40px;
    text-align: center;
    box-shadow: 0 0 0 6px rgba(227, 178, 60, 0.06), 0 30px 60px rgba(0,0,0,0.45);
}

.holly{
    width: 60px;
    height: 24px;
    display: block;
    margin: 0 auto 14px;
}

.eyebrow{
    margin: 0 0 6px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
}

h1{
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 40px;
    margin: 0 0 30px;
    color: var(--snow);
    letter-spacing: 0.01em;
}

.field-row{
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

input#userinput{
    flex: 1 1 220px;
    background: rgba(246, 244, 236, 0.06);
    border: 1px solid rgba(205, 216, 234, 0.35);
    border-radius: 3px;
    padding: 12px 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    color: var(--snow);
    outline: none;
    transition: border-color 0.2s ease;
}

input#userinput::placeholder{
    color: rgba(205, 216, 234, 0.5);
}

input#userinput:focus{
    border-color: var(--gold);
}

button#submit{
    flex: 0 0 auto;
    background: var(--gold);
    color: var(--night-deep);
    border: none;
    border-radius: 3px;
    padding: 12px 22px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

button#submit:hover{
    background: #f0c563;
}

button#submit:active{
    transform: scale(0.97);
}

h3{
    display: none;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 26px;
    color: var(--gold);
    margin: 32px 0 4px;
}

p#disappear{
    display: none;
    margin: 14px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(227, 178, 60, 0.25);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
}

p#disappear a{
    display: inline-block;
    margin-top: 12px;
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-deep);
    padding-bottom: 1px;
}

p#disappear a:hover{
    color: #f0c563;
}

@media (max-width: 480px){
    .postcard{
        padding: 36px 24px 32px;
    }
    h1{
        font-size: 32px;
    }
}