:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --card-bg: rgba(20, 20, 20, 0.8);
    --card-border: #333333;
    --card-hover-border: #ffffff;
    --grid-gap: 4rem;
    /* More breathing room */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville', 'Baskerville', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 1;
}

@keyframes drift {
    from {
        transform: translate(-2%, -2%) rotate(-2deg);
    }

    to {
        transform: translate(2%, 2%) rotate(2deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

header {
    margin-bottom: 4rem;
    text-align: center;
}

h1 {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.subtitle {
    font-family: 'Inter', sans-serif;
    /* Keep sans-serif for small UI text for readability */
    font-size: 0.85rem;
    color: #aaaaaa;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Gallery List */
.gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.art-card {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
}

.art-card:hover,
.art-card:focus {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.05), 0 10px 10px rgba(0, 0, 0, 0.02);
    background-color: rgba(20, 20, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.art-card:active {
    transform: translateY(-6px) scale(1.00);
    background-color: #000000;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05), 0 5px 5px rgba(0, 0, 0, 0.02);
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
    /* Ensure text is above watermark */
}

.card-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    font-style: italic;
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #aaaaaa;
    line-height: 1.6;
    font-weight: 400;
}

.card-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    top: auto;
    line-height: 1;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 1;
}

.art-card:hover .card-number {
    color: rgba(255, 255, 255, 0.8);
    transform: none;
}

/* Page Transition removed for instant navigation */

/* Footer */
footer {
    margin-top: 8rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #666;
    padding-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}