/* Global Styles */
body {
    background-color: #EFDFC8;
    color: #221b0a; /* resolved from theme('colors.on-background') */
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Handwritten Write-in Effect */
@keyframes write-reveal {
    0% {
        clip-path: polygon(-20% -50%, -20% -50%, -20% 150%, -20% 150%);
    }

    100% {
        clip-path: polygon(-20% -50%, 120% -50%, 120% 150%, -20% 150%);
    }
}

.writing-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
}

.writing-text {
    padding-left: 0.15em;
    /* Generous breathing room for left descenders (e.g., 'y') */
    padding-right: 0.15em;
    /* Generous breathing room for slanted italic tails */
    padding-top: 0.1em;
    /* Breathing room for top ascenders */
    padding-bottom: 0.1em;
    /* Breathing room for bottom descenders */
    clip-path: polygon(-20% -50%, -20% -50%, -20% 150%, -20% 150%);
    animation: write-reveal 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

/* Text Marquee Animation (index.html) */
@keyframes marquee-text-loop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.animate-marquee-text {
    display: flex;
    width: max-content;
    animation: marquee-text-loop 65s linear infinite;
}

/* Blog Marquee Effect Setup (blog.html) */
@keyframes marquee-blog {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-50% - 1rem), 0, 0);
    }
}

.animate-marquee-blog {
    display: flex;
    width: max-content;
    animation: marquee-blog 50s linear infinite;
    will-change: transform;
}

.animate-marquee-blog:hover {
    animation-play-state: paused;
}

.blog-mask-container {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 10%, white 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, white 10%, white 90%, transparent 100%);
}