* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #0b0909;
    color: #eee4d5;
    font-family: Georgia, "Times New Roman", serif;
}

/* =========================
   MAIN SCENE
   ========================= */

.scene {
    position: fixed;
    inset: 0;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(130, 115, 100, 0.16),
            transparent 42%
        ),
        linear-gradient(
            to bottom,
            #191516 0%,
            #100d0e 42%,
            #090708 75%,
            #040304 100%
        );
}

/* =========================
   MOON
   ========================= */

.moon {
    position: absolute;

    width: 340px;
    height: 340px;

    top: 10%;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 34% 32%,
            #fffdf3 0%,
            #e4ddd0 43%,
            #b8afa3 74%,
            #817970 100%
        );

    box-shadow:
        0 0 35px rgba(255, 248, 231, 0.22),
        0 0 100px rgba(255, 230, 200, 0.11);

    animation: moonGlow 5s ease-in-out infinite;
}

.moon::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 28% 30%,
            rgba(75, 68, 60, .10) 0 4%,
            transparent 5%
        ),
        radial-gradient(
            circle at 65% 28%,
            rgba(75, 68, 60, .10) 0 7%,
            transparent 8%
        ),
        radial-gradient(
            circle at 46% 60%,
            rgba(75, 68, 60, .09) 0 6%,
            transparent 7%
        ),
        radial-gradient(
            circle at 72% 66%,
            rgba(75, 68, 60, .09) 0 5%,
            transparent 6%
        ),
        radial-gradient(
            circle at 28% 72%,
            rgba(75, 68, 60, .08) 0 8%,
            transparent 9%
        );
}

@keyframes moonGlow {
    0%,
    100% {
        box-shadow:
            0 0 35px rgba(255, 248, 231, 0.22),
            0 0 100px rgba(255, 230, 200, 0.11);
    }

    50% {
        box-shadow:
            0 0 55px rgba(255, 248, 231, 0.30),
            0 0 140px rgba(255, 230, 200, 0.15);
    }
}

/* =========================
   RED ATMOSPHERE
   ========================= */

.red-glow {
    position: absolute;

    width: 900px;
    height: 300px;

    left: 50%;
    bottom: 14%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(120, 18, 24, 0.22);

    filter: blur(90px);
}

/* =========================
   STARS
   ========================= */

.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;

    width: 2px;
    height: 2px;

    border-radius: 50%;

    background: #ded6ca;

    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: .2;
    }

    50% {
        opacity: .9;
    }
}

/* =========================
   CITY
   ========================= */

.city {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 40%;
}

.building {
    position: absolute;
    bottom: 0;

    background: #090708;

    border-top: 1px solid rgba(255,255,255,.025);
}

/* left tower */

.left-tower {
    left: 5%;

    width: 145px;
    height: 70%;
}

.left-tower::before {
    content: "";

    position: absolute;

    left: 50%;
    top: -115px;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 72px solid transparent;
    border-right: 72px solid transparent;
    border-bottom: 115px solid #090708;
}

/* right tower */

.right-tower {
    right: 6%;

    width: 165px;
    height: 79%;
}

.right-tower::before {
    content: "";

    position: absolute;

    left: 50%;
    top: -135px;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 82px solid transparent;
    border-right: 82px solid transparent;
    border-bottom: 135px solid #090708;
}

/* cathedral */

.cathedral {
    left: 50%;

    width: 390px;
    height: 48%;

    transform: translateX(-50%);
}

.cathedral::before {
    content: "";

    position: absolute;

    left: 50%;
    top: -170px;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 125px solid transparent;
    border-right: 125px solid transparent;
    border-bottom: 170px solid #090708;
}

/* spires */

.spires {
    position: absolute;

    left: 50%;
    bottom: 48%;

    width: 240px;
    height: 200px;

    transform: translateX(-50%);
}

.spire {
    position: absolute;

    bottom: 0;

    width: 0;
    height: 0;

    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 120px solid #090708;
}

.spire:first-child {
    left: 0;
}

.spire:last-child {
    right: 0;
}

/* =========================
   WINDOWS
   ========================= */

.window {
    position: absolute;

    width: 9px;
    height: 15px;

    background: #af7137;

    box-shadow:
        0 0 8px rgba(190, 115, 45, .55),
        0 0 18px rgba(190, 115, 45, .18);

    animation: flicker 4s ease-in-out infinite;
}

@keyframes flicker {
    0%,
    100% {
        opacity: .45;
    }

    50% {
        opacity: .95;
    }
}

/* =========================
   FOG
   ========================= */

.fog {
    position: absolute;

    left: -10%;
    right: -10%;
    bottom: 15%;

    height: 24%;

    background:
        radial-gradient(
            ellipse at 20% 55%,
            rgba(218, 211, 200, .22),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 55% 45%,
            rgba(218, 211, 200, .18),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 82% 60%,
            rgba(218, 211, 200, .19),
            transparent 40%
        );

    filter: blur(18px);

    opacity: .60;

    animation:
        fogMove 17s ease-in-out infinite alternate;
}

.fog-secondary {
    bottom: 7%;

    opacity: .26;

    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

@keyframes fogMove {
    from {
        transform: translateX(-4%);
    }

    to {
        transform: translateX(4%);
    }
}

/* =========================
   WINDOWS / CITY DETAILS
   ========================= */

.windows {
    position: absolute;
    inset: 0;
}

/* =========================
   WELCOME CARD
   ========================= */

.welcome {
    position: absolute;
    z-index: 20;

    left: 50%;
    top: 57%;

    width: min(850px, 90vw);

    transform: translate(-50%, -50%);

    padding: 45px 35px;

    text-align: center;

    background:
        linear-gradient(
            rgba(12, 10, 10, .55),
            rgba(12, 10, 10, .45)
        );

    border: 1px solid rgba(225, 210, 190, .24);

    box-shadow:
        0 30px 90px rgba(0,0,0,.65),
        inset 0 0 50px rgba(255,255,255,.015);

    backdrop-filter: blur(4px);

    animation: welcomeIn 1.5s ease-out;
}

@keyframes welcomeIn {
    from {
        opacity: 0;
        transform:
            translate(-50%, calc(-50% + 25px));
    }

    to {
        opacity: 1;
        transform:
            translate(-50%, -50%);
    }
}

/* ornamental corners */

.ornament {
    position: absolute;

    width: 28px;
    height: 28px;

    border-color: rgba(220, 204, 180, .52);
}

.top-left {
    left: -1px;
    top: -1px;

    border-left: 1px solid;
    border-top: 1px solid;
}

.top-right {
    right: -1px;
    top: -1px;

    border-right: 1px solid;
    border-top: 1px solid;
}

.bottom-left {
    left: -1px;
    bottom: -1px;

    border-left: 1px solid;
    border-bottom: 1px solid;
}

.bottom-right {
    right: -1px;
    bottom: -1px;

    border-right: 1px solid;
    border-bottom: 1px solid;
}

/* text */

.kicker {
    margin: 0 0 18px;

    color: #b8afa2;

    font-size: 12px;

    letter-spacing: .5em;

    text-transform: uppercase;
}

h1 {
    margin: 0;

    font-family:
        "Palatino Linotype",
        "Book Antiqua",
        Palatino,
        Georgia,
        serif;

    font-size: clamp(55px, 10vw, 125px);

    font-weight: 400;

    line-height: .95;

    letter-spacing: -.055em;

    color: #eee5d7;

    text-shadow:
        0 3px 0 #050404,
        0 12px 40px rgba(0,0,0,.85);
}

/* divider */

.divider {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 25px;
}

.divider span {
    width: 95px;
    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(216,202,183,.52)
        );
}

.divider span:last-child {
    transform: scaleX(-1);
}

.divider b {
    color: #ae2929;

    font-size: 18px;

    font-weight: normal;

    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: 1;

        text-shadow:
            0 0 18px rgba(180,30,30,.75);
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .moon {
        width: 230px;
        height: 230px;
        top: 8%;
    }

    .city {
        height: 34%;
    }

    .left-tower {
        transform: scale(.7);
        transform-origin: bottom left;
    }

    .right-tower {
        transform: scale(.7);
        transform-origin: bottom right;
    }

    .cathedral {
        width: 280px;
    }

    .welcome {
        top: 57%;
        padding: 35px 20px;
    }

    .divider span {
        width: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}