/* Gooey text morphing animation
   Vanilla port of the React GooeyText component.
   Two overlapping words cross-fade with a blur, merged by an SVG
   threshold filter to create the "gooey" liquid morph effect. */

.gooey-text {
    position: relative;
    width: 100%;
}

/* The threshold SVG filter is rendered hidden in the DOM */
.gooey-text-filter {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.gooey-text-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    /* The threshold filter is what fuses the two blurred words together */
    filter: url(#gooey-threshold);
    min-height: 1.2em;
}

.gooey-text-word {
    position: absolute;
    display: inline-block;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    line-height: 1;
    font-weight: 700;
    /* Inherit hero colour; overridable via .gooey-text-word custom styles */
    color: #676362;
    font-size: 3.75rem;        /* ~ text-6xl */
}

@media (min-width: 768px) {
    .gooey-text-word {
        font-size: 80px;       /* ~ md:text-[60pt] */
    }
}

/* Hero-specific sizing/colour so the morphing title fits the gradient hero */
.tm-site-title-gooey {
    min-height: 96px;
    margin: 0 auto;
}

.tm-site-title-gooey .gooey-text-word {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575px) {
    .tm-site-title-gooey .gooey-text-word {
        font-size: 2.75rem;
    }
}
