/* --- GLOBAL & HOMEPAGE STYLES --- */
body {
    font-family: 'Cutive Mono', monospace;
    background-color: #e5e5e5;
    color: #374151;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.decorator {
    position: absolute;
    user-select: none;
    font-size: 0.875rem; /* 14px */
}

/* Mobile responsive adjustments for decorators */
@media (max-width: 768px) {
    .decorator-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 0.5rem;
        left: 0;
        z-index: 20;
        padding: 0 0.5rem;
    }
    .decorator {
        position: static;
        font-size: 0.75rem;
        max-width: 24vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }
    a.absolute.bottom-8.left-1\/2 {
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90vw;
        box-sizing: border-box;
    }
}

.background-container {
    transition: background-image 0.4s ease-in-out;
}

.interactive-link {
    position: relative;
}

.interactive-link img.base-image {
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    height: auto;
}

.is-faded {
    opacity: 0.2;
}

.rotating {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#rotating-text-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

#rotating-text-image {
    width: 45vw;
    height: auto;
    max-width: 720px;
    min-width: 250px;
    opacity: 0.7;
}

/* Mobile responsive adjustments for rotating text */
@media (max-width: 768px) {
    #rotating-text-image {
        width: 80vw;
        min-width: 200px;
    }
}

#main-links {
    transform: translateY(-10px);
    opacity: 100%;
    mix-blend-mode: multiply;
}

/* --- INNER PAGE STYLES (FOR BLOG & STORIES) --- */

.page-background {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.63; /* As per your blog page */
}

.inner-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem; /* Horizontal padding */
}

/* Mobile responsive adjustments for inner pages */
@media (max-width: 768px) {
    .inner-page-wrapper {
        padding: 0 1rem; /* Reduce padding on mobile */
    }
}

.inner-header {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.inner-content {
    text-align: center;
    padding-bottom: 1rem;
}

.inner-footer {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Mobile responsive adjustments for footer */
@media (max-width: 768px) {
    .inner-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .inner-footer .text-left,
    .inner-footer .text-right {
        text-align: center !important;
    }
    .inner-footer > div {
        display: block;
        width: 100%;
    }
}

.brutalist-divider {
    font-family: 'Cutive Mono', monospace;
    letter-spacing: -0.1em;
    white-space: nowrap;
    overflow: hidden;
    color: #374151;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .brutalist-divider {
        max-width: 100vw;
        box-sizing: border-box;
        font-size: 0.75rem;
        margin-left: auto;
        margin-right: auto;
    }
}

.font-barlow {
    font-family: 'Barlow Condensed', sans-serif;
}

/* --- STORIES PAGE SPECIFIC STYLES --- */
.story-item {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.story-item .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(23, 23, 23, 0.75);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    text-align: left;
}

.story-item:hover .description {
    transform: translateY(0);
}

/* Mobile responsive adjustments for story items */
@media (max-width: 768px) {
    .story-item .description {
        padding: 1rem;
    }
}