
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(
        ellipse at top,
        #183b75 0%,
        #681d35 55%,
        #100e20 100%
    );
    color: #fff3ee;
    font-family: Georgia, serif;
}

a {
    color: inherit;
}

.snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.flake {
    position: absolute;
    top: -20px;
    color: #fff9;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

.gate {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    background: radial-gradient(
        circle at 50% 20%,
        #244b88 0%,
        #74233b 55%,
        #100e20 100%
    );
    padding: 20px;
}

.gate.hidden {
    display: none;
}

.panel {
    width: min(100%, 450px);
    padding: 48px 30px;
    text-align: center;
    background: #ffffff0c;
    border: 1px solid #ffffff30;
    border-radius: 25px;
}

.eyebrow {
    color: #b7d3ff;
    letter-spacing: .2em;
    text-transform: uppercase;
    font: 12px Arial, sans-serif;
}

.panel h1 {
    font-size: 48px;
    font-weight: normal;
}

.panel p,
.intro,
.letter p {
    line-height: 1.85;
    color: #f5e5eb;
}

.panel input {
    width: 100%;
    padding: 15px;
    border-radius: 9px;
    border: 1px solid #ffffff60;
    background: #ffffff16;
    color: white;
    margin: 15px 0;
    text-align: center;
    font: inherit;
}

.button,
.panel button {
    display: inline-block;
    border: 1px solid #b7d3ff55;
    border-radius: 40px;
    background: #b7d3ff;
    color: #14264a;
    padding: 15px 26px;
    font: bold 15px Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

.button:hover,
.panel button:hover {
    transform: translateY(-3px);
    background: #e0ebff;
}

.error {
    color: #ffb4bd;
    min-height: 20px;
    font: 13px Arial, sans-serif;
}

.site {
    display: none;
    position: relative;
    z-index: 3;
}

.site.visible {
    display: block;
}

.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 85px 20px;
}

.home h1 {
    font-size: clamp(65px, 12vw, 110px);
    font-weight: normal;
    color: #ff9eac;
    margin: 16px 0;
}

.intro {
    font-size: clamp(19px, 3vw, 23px);
    max-width: 660px;
    margin: 22px auto 40px;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    max-width: 850px;
    margin: auto;
}

.nav-buttons .button {
    min-width: 210px;
}

.inner {
    max-width: 1000px;
    margin: auto;
    padding: 70px 20px 90px;
    text-align: center;
    min-height: 80vh;
}

.inner h1 {
    font-size: clamp(38px, 7vw, 65px);
    font-weight: normal;
    color: #ff9eac;
}

.back {
    display: inline-block;
    margin-bottom: 40px;
    text-decoration: none;
    color: #b7d3ff;
    font: 14px Arial, sans-serif;
}

.letter {
    max-width: 750px;
    margin: 35px auto;
    text-align: left;
    background: #ffffff0b;
    border: 1px solid #ffffff25;
    border-radius: 22px;
    padding: clamp(25px, 6vw, 60px);
}

.letter p {
    font-size: 18px;
}

.signature {
    text-align: right;
    color: #b7d3ff;
    font-size: 22px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 20px;
    margin-top: 35px;
}

.photo {
    aspect-ratio: 4/5;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #284d80,
        #75283e,
        #25172c
    );
    border: 1px solid #ffffff2c;
    display: grid;
    place-items: center;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    padding: 20px;
    color: #d5e5ff;
    line-height: 1.7;
}

.reasons {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );
    gap: 15px;
    margin: 35px 0;
    text-align: left;
}

.reason {
    border: 1px solid #ffffff25;
    background: #ffffff0b;
    border-radius: 16px;
    padding: 20px;
    line-height: 1.6;
}

.reason strong {
    color: #b7d3ff;
    margin-right: 10px;
}

.note {
    font: 14px/1.7 Arial, sans-serif;
    color: #c5d6ef;
}

.footer {
    text-align: center;
    padding: 28px;
    color: #d8dff2;
    border-top: 1px solid #ffffff1c;
    font: 13px Arial, sans-serif;
}

@media (max-width: 600px) {
    .nav-buttons {
        flex-direction: column;
    }

    .nav-buttons .button {
        width: 100%;
    }

    .panel {
        padding: 35px 20px;
    }
}
