/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;

    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-accent: #000000;

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

    --container-width: 1400px;
    --header-height: 80px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* No changes needed here, just verifying alignment */

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

/* Navigation */
.site-header {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    /* Increased bottom padding to ~4x */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    z-index: 100;
}

/* Explicit Mobile Override to ensure margins */
@media (max-width: 768px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.brand {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* 1.5x of previous 2rem */
    list-style: none;
    flex-wrap: wrap;
    /* Handle small screens gracefully */
    justify-content: center;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.nav-link.active {
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-weight: 300;
}

/* Grid Layouts */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.work-item {
    display: block;
    margin-bottom: var(--spacing-lg);
}

.work-image {
    width: 100%;
    aspect-ratio: 4/5;
    /* Portrait aspect ratio typical for art */
    background-color: #f0f0f0;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.5s ease;
}

.work-item:hover .work-image {
    transform: scale(1.02);
}

.work-info {
    font-size: 0.9rem;
}

.work-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.work-meta {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
    border-top: 1px solid #f0f0f0;
    margin-top: var(--spacing-xl);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    position: relative;
    z-index: 1000;
    padding: 0.5rem;
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 2rem;
        /* Reset to standard, using explicit padding for container instead */
        --spacing-lg: 3rem;
        --spacing-xl: 2rem;
        /* Reduced from 4rem to 2rem for tighter spacing */
    }

    .site-header {
        padding: var(--spacing-md) 0 var(--spacing-md);
        /* Reduced to 2rem (narrower) */
        flex-direction: column;
        /* Stack logo and nav */
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .brand {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .nav-links {
        display: flex;
        /* Always visible */
        position: static;
        inset: auto;
        height: auto;
        width: auto;
        background: transparent;
        flex-direction: row;
        /* Horizontal tabs */
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        /* Smaller gap for mobile */
        z-index: auto;
        opacity: 1;
        padding: 0;
        border: none;
        transition: none;
    }

    /* .nav-links.open removed as it's no longer needed */

    .nav-link {
        font-size: 0.9rem;
        /* Adjusted for mobile tabs */
        font-family: var(--font-sans);
        /* Back to sans usually for tabs, or keep serif if preferred. Sticking to desktop style but smaller */
        font-style: normal;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .mobile-menu-btn {
        display: none !important;
        /* Force hide */
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 3rem;
        /* Slightly smaller to prevent overflow on very narrow screens */
    }

    /* Grid Adjustments for Mobile */
    .works-grid {
        display: block;
        /* Stack vertically */
        /* margin: 0; Default margin applies, respecting container padding */
    }

    .work-item {
        margin-bottom: 4rem;
        /* More generous vertical spacing */
    }

    .work-info {
        padding: 0;
        /* Remove extra padding since container now handles it */
        margin-top: 1rem;
    }

    .work-title {
        font-size: 1.5rem;
        /* Larger title for mobile */
        font-weight: 400;
    }

    .about-grid {
        gap: var(--spacing-md);
    }

    .contact-section {
        min-height: 50vh;
    }

    /* .email-link font-size override removed to match parent text size */
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
    }
}