* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #000;
}

/* Keep the layered composition centered as the available width changes. */
.home {
    --image-width: min(calc(100vw - 2rem), clamp(18rem, calc(100vw - 60rem), 48rem));
    --image-top: clamp(7rem, 10vw, 9rem);
    min-height: calc(var(--image-top) + var(--image-width) * 4 / 3 + 2rem);
    padding-bottom: 3rem;
}

.logo {
    padding: 2rem 1rem;
    text-align: center;
}

.logo h1 {
    font-family: "Momo Signature", cursive;
    color: #fff;
    font-size: 1.5rem;
}

.hero-image,
.hero-image-alt {
    width: var(--image-width);
    position: absolute;
    top: var(--image-top);
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.hero-image-alt {
    z-index: 10;
    opacity: 0;
}

.hero-image-alt:hover {
    opacity: 1;
}

.hero-image img,
.hero-image-alt img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-text {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: clamp(10rem, 26.67vw, 24rem);
    z-index: 10000;
    text-align: center;
}

.hero-text h2 {
    margin: 0.83em 0;
    font-size: clamp(2.5rem, 6.67vw, 6rem);
    font-family: "Limelight", serif;
    color: #fff;
    line-height: 1.15;
}

.learn-more {
    position: relative;
    margin-top: -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
}

.learn-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background-color: #dc1212;
    padding: 1rem 2rem;
}

/* Clip only the deliberately oversized background, never the page content. */
.more {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.more img {
    position: absolute;
    width: max(280vw, 210vh);
    width: max(280vw, 210svh);
    max-width: none;
    height: auto;
    top: 0;
    left: 50%;
    transform: translate(-50%, -30%);
}

.contact {
    position: relative;
    z-index: 100000;
    padding: clamp(12rem, 16vw, 15rem) 1rem 3rem;
    text-align: center;
}

.contact h3 {
    margin: 0;
    font-size: clamp(1rem, 5.55vw, 5rem);
    line-height: 1.5;
    color: #ffea00;
    font-family: "Nosifer", cursive;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .hero-text {
        margin-top: clamp(17rem, 45vw, 17rem);
    }

    .hero-text h2 {
        font-size: clamp(3.75rem, 12vw, 5rem);
    }

    .learn-more {
        margin-top: 0;
    }

    .contact h3 {
        color: inherit;
        text-decoration: none;
    }

}
