@import url(clash-display.css);

body {
    font-family: ClashDisplay-Regular,sans-serif;
    font-weight: normal;
    color: #2f2f2f;
    background-color: #fff6ec;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.floating-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 20% 15%, rgba(255, 196, 160, 0.3), transparent 58%),
                radial-gradient(circle at 80% 10%, rgba(188, 238, 208, 0.24), transparent 55%),
                linear-gradient(120deg, #fff6ec 0%, #f3fff6 100%);
}

.floating-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 185, 135, 0.45), transparent 52%),
                radial-gradient(circle at 75% 12%, rgba(168, 242, 209, 0.34), transparent 48%),
                radial-gradient(circle at 58% 80%, rgba(255, 232, 190, 0.28), transparent 60%);
    filter: blur(45px);
}

.jelly {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 42% 58% 60% 40%;
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.78), rgba(255, 188, 150, 0.5));
    opacity: 0.62;
    filter: blur(13px) saturate(120%);
    animation: swim 30s ease-in-out infinite;
    mix-blend-mode: screen;
    box-shadow: 0 40px 70px rgba(255, 182, 140, 0.25);
}

.jelly::after {
    content: "";
    position: absolute;
    inset: 30% 10% -15% 10%;
    background: radial-gradient(circle at 45% 5%, rgba(255, 255, 255, 0.55), rgba(255, 204, 170, 0.18));
    filter: blur(40px);
    opacity: 0.45;
    animation: pulseGlow 11s ease-in-out infinite;
    border-radius: 50%;
}

.jelly-1 {
    top: 8%;
    left: 12%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), rgba(255, 185, 135, 0.55));
    animation-duration: 32s;
    animation-delay: -4s;
}

.jelly-2 {
    top: 48%;
    left: 55%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.82), rgba(188, 238, 208, 0.42));
    box-shadow: 0 35px 60px rgba(185, 238, 208, 0.25);
    animation-duration: 28s;
    animation-delay: -10s;
}

.jelly-3 {
    top: 18%;
    right: 6%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.83), rgba(255, 219, 160, 0.4));
    animation-duration: 35s;
    animation-delay: -16s;
}

@keyframes swim {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(-1deg);
    }
    25% {
        transform: translate3d(-25px, 35px, 0) scale(1.02) rotate(0deg);
    }
    50% {
        transform: translate3d(35px, 55px, 0) scale(0.99) rotate(-1deg);
    }
    75% {
        transform: translate3d(-15px, 28px, 0) scale(1.01) rotate(1deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(-1deg);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px;
}

h1 {
    font-family: ClashDisplay-SemiBold,sans-serif;
    font-size: 100px;
    margin-top: 24px;
}

p {
    font-size: 42px;
    line-height: 1.5;
    color: #717182;
    transition: color 0.3s ease;
}

a {
    color: #2f2f2f;
    transition: color 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.logo {
    width: 100px;
    height: 100px;
    transition: filter 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0a;
        color: #e5e5e5;
    }

    h1 {
        color: #ffffff;
    }

    p {
        color: #a0a0a0;
    }

    a {
        color: #e5e5e5;
    }

    .logo {
        filter: invert();
    }

    .floating-background {
        background: radial-gradient(circle at 25% 25%, rgba(255, 150, 101, 0.2), transparent 52%),
                    radial-gradient(circle at 75% 20%, rgba(98, 212, 200, 0.18), transparent 48%),
                    linear-gradient(120deg, #050505 0%, #101414 100%);
    }

    .floating-background::after {
        background: radial-gradient(circle at 20% 20%, rgba(255, 136, 96, 0.22), transparent 52%),
                    radial-gradient(circle at 80% 10%, rgba(87, 191, 182, 0.22), transparent 45%),
                    radial-gradient(circle at 50% 80%, rgba(255, 205, 140, 0.18), transparent 60%);
    }

    .jelly {
        opacity: 0.35;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 60px;
    }

    p {
        font-size: 28px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jelly {
        animation: none;
    }

    .jelly::after {
        animation: none;
    }
}
