/* ============================================
   ENARGEIA — Global Styles
   ============================================ */

:root {
    --black: #000000;
    --void: #050208;
    --deep: #0a0a12;
    --shadow: #120a1a;
    --bruise: #1a0f2e;

    --opal-pink: #ff7eb3;
    --opal-lavender: #c4b5fd;
    --opal-teal: #5eead4;
    --opal-gold: #fde68a;
    --opal-coral: #fca5a5;
    --mauve: #c084fc;
    --deep-purple: #a855f7;
    --hot-pink: #f472b6;
    --indigo: #818cf8;

    --sunset-gold: #fde68a;
    --sunset-amber: #fbbf24;
    --sunset-orange: #f97316;
    --sunset-coral: #f87171;
    --sunset-pink: #ec4899;
    --sunset-magenta: #d946ef;
    --sunset-purple: #a855f7;

    --ghost: #f0e6ff;
    --mist: #c8bfdb;
    --dust: #8a8098;

    --font-display: 'Uncial Antiqua', serif;
    --font-body: 'MedievalSharp', cursive;
    --font-mono: 'Courier New', monospace;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;

    --shimmer-speed: 8s;
    --breathe-speed: 4s;
}

html {
    background: #000000;
}

body {
    background: #050208;
    background-color: #050208;
    color: #f0e6ff;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Uncial Antiqua', serif;
    font-weight: normal;
    line-height: 1.2;
}

p {
    max-width: 65ch;
}

a {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #fde68a;
    text-shadow: 0 0 12px rgba(253, 230, 138, 0.4);
}

/* --- Oilslick Utilities --- */

.oilslick-text {
    background: linear-gradient(
        135deg,
        #ff7eb3,
        #c4b5fd,
        #5eead4,
        #fde68a,
        #ff7eb3,
        #c4b5fd
    );
    background-size: 300% 300%;
    animation: shimmer 8s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* --- Keyframes --- */

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Cursor Glitter Trail (falling teardrops) --- */

.trail-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    will-change: transform, opacity;
    /* Diamond/star shape via rotation */
    transform: rotate(45deg) scale(0);
}

.trail-dot.active {
    animation: glitter-fall 1.4s ease-out forwards;
}

@keyframes glitter-fall {
    0% {
        opacity: 1;
        transform: rotate(45deg) scale(1) translateY(0px);
        filter: blur(0px) brightness(1.5);
    }
    15% {
        opacity: 0.95;
        transform: rotate(50deg) scale(0.9) translateY(8px) translateX(3px);
    }
    40% {
        opacity: 0.6;
        transform: rotate(40deg) scale(0.6) translateY(25px) translateX(-2px);
        filter: blur(0px) brightness(1.2);
    }
    70% {
        opacity: 0.25;
        transform: rotate(55deg) scale(0.35) translateY(50px) translateX(4px);
        filter: blur(0.5px) brightness(1);
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) scale(0.1) translateY(75px) translateX(-1px);
        filter: blur(1px) brightness(0.8);
    }
}

/* --- Scrollbar --- */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050208; }
::-webkit-scrollbar-thumb { background: #1a0f2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a855f7; }
html { scrollbar-width: thin; scrollbar-color: #1a0f2e #050208; }

/* --- Selection --- */
::selection {
    background: rgba(196, 181, 253, 0.3);
    color: #f0e6ff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}