@import url('https://fonts.googleapis.com/css2?family=Hedvig+Letters+Sans&family=Hedvig+Letters+Serif:opsz@12..24&display=swap');

body {
    background-color: #FDFBEE;
    font-family: 'Hedvig Letters Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero {
    height: 100vh;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.flower-one {
    position: absolute;
    top: 132px;
    left: 162px;
    width: 180px;
    height: auto;
    cursor: pointer;
}

.flower-two {
    position: absolute;
    top: 632px;
    right: 162px;
    width: 180px;
    height: auto;
    cursor: pointer;
}

.is-spinning {
    animation: flower-sway 0.9s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes flower-sway {
    from {
        transform: rotate(-14deg);
    }

    to {
        transform: rotate(14deg);
    }
}

.hero-text {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 100px;
    text-align: center;
    margin: 0 20px;
}

.content {
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.content-text {
    font-family: 'Hedvig Letters Sans', sans-serif;
    font-size: 26px;
    line-height: 46px;
    margin-bottom: 50Px;
}

.content-text.signature {
    display: block;
    margin: 0px;
    font-size: 28px;
    font-family: 'Hedvig Letters Serif', serif;
}

.signature-name {
    position: relative;
    display: inline-block;
    width: 4ch;
    height: 1em;
    cursor: pointer;
}

.signature-name .name-primary,
.signature-name .name-alt {
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 260ms ease, transform 260ms ease;
}

.signature-name .name-primary {
    opacity: 1;
    transform: translateY(0);
}

.signature-name .name-alt {
    opacity: 0;
    transform: translateY(8px);
}

.signature-name.is-hoey .name-primary {
    opacity: 0;
    transform: translateY(-8px);
}

.signature-name.is-hoey .name-alt {
    opacity: 1;
    transform: translateY(0);
}

/* TEMP: Falling call text animation styles (remove to disable) */
#call-text-rain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 40;
}

body.call-rain-active > *:not(#call-text-rain) {
    filter: blur(5px);
    transition: filter 220ms ease;
}

.call-fall-text {
    position: absolute;
    top: -20vh;
    left: 0;
    margin: 0;
    max-width: calc(100vw - 16px);
    white-space: normal;
    font-family: 'Hedvig Letters Serif', serif;
    font-size: clamp(1rem, 4.2vw, 2.5rem);
    text-align: center;
    color: #333;
    opacity: 0.92;
    transform: translateY(0);
    animation: call-fall var(--fall-duration, 2800ms) linear forwards;
}

.call-fall-text.is-fading {
    transition: opacity 700ms ease;
    opacity: 0;
}

@keyframes call-fall {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(120vh);
    }
}
/* END TEMP: Falling call text animation styles */

@media (max-width: 1024px) {
    .hero {
        height: 80vh;
    }

    .hero-text {
        font-size: 80px;
    }

    .flower-one {
        top: 132px;
        left: 162px;
    }

    .flower-two {
        top: 532px;
        right: 162px;
    }

    .flower-one, .flower-two {
        width: 150px;
    }

    .content-text {
        font-size: 22px;
        line-height: 40px;
    }

    .content-text.signature {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 75vh;
    }

    .hero-text {
        font-size: 60px;
    }

    .flower-one {
        top: 132px;
        left: 62px;
    }

    .flower-two {
        top: 532px;
        right: 62px;
    }

    .flower-one, .flower-two {
        width: 120px;
    }

    .content-text {
        font-size: 18px;
        line-height: 32px;
    }

    .content-text.signature {
        font-size: 22px;
    }
}
