
/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: sans-serif;
}

/* ---------- Main layout ---------- */

.landing {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;

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

    overflow: hidden;
}

.wordmark {
    margin: 0;
    position: relative;
    z-index: 1;

    color: #e02030;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.06em;

    animation: text-flicker 5s infinite;
}

.navigation-links {
    position: absolute;
    top: calc(50% + 60px);
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.navigation-links a {
    color: #777;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-link:hover {
    color: #e02030;
}

/* ---------- Social container ---------- */

.socials {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ---------- Bubbles ---------- */

.bubble {
    position: absolute;
    width: 96px;
    height: 96px;

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

    background-color: #171717;
    border: 1px solid #333333;
    border-radius: 50%;

    pointer-events: auto;

    animation: float 4s ease-in-out infinite;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.bubble img {
    display: block;
    width: 44px;
    height: 44px;
}

.bubble:hover {
    background-color: #242424;
    border-color: #e02030;
    box-shadow: 0 0 18px #e0203033;
}

.bubble:focus-visible {
    outline: 2px solid #e02030;
    outline-offset: 4px;
}

/* ---------- Individual positions ---------- */

.bubble--github {
    top: 22%;
    left: 28%;
    animation-delay: -2s;
}

.bubble--youtube {
    top: 31%;
    right: 25%;
    animation-delay: -1.2s;
}

.bubble--bluesky {
    top: 62%;
    left: 22%;
    animation-delay: -2.5s;
}

.bubble--discord {
    top: 68%;
    right: 27%;
    animation-delay: -0.7s;
}

.bubble--steam {
    top: 43%;
    left: 13%;
    animation-delay: -3s;
}

.bubble--itch {
    top: 48%;
    right: 12%;
    animation-delay: -1.8s;
}

/* ---------- Floating animation ---------- */

@keyframes float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -14px;
    }
}

@keyframes text-flicker {
    0%, 19%, 21%, 75%, 80%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px #e0203033
    }

    20%, 22%, 76%, 85% {
        opacity: 0.5;
        text-shadow: none;
    }
}

/* ---------- Reduced motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
        transition: none;
    },
    .wordmark {
        animation: none;
        transition: none;
    }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 600px) {
    .wordmark {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .bubble--github {
        top: 25%;
        left: 17%;
    }

    .bubble--youtube {
        top: 30%;
        right: 15%;
    }

    .bubble--bluesky {
        top: 68%;
        left: 13%;
    }

    .bubble--discord {
        top: 72%;
        right: 14%;
    }

    .bubble--steam {
        top: 46%;
        left: 6%;
    }

    .bubble--itch {
        top: 49%;
        right: 5%;
    }
}

.blog-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
    color: #eee;
}

.blog-home {
    color: #e02030;
    text-decoration: none;
    font-weight: bold;
}

.blog-page h1 {
    margin-top: 64px;
    font-size: 2.5rem;
}

.blog-page p {
    color: #999;
    line-height: 1.7;
}

.blog-page .empty-message {
    margin-top: 48px;
    font-size: 0.9rem;
}
