:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 1rem;
    --header-height: 80px;
    --border-color: #e5e5e5;
}

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

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

/* Typography */
h1,
h2,
h3,
.logo,
nav a,
.date,
.venue,
footer div {
    font-size: 1rem;
    /* Base size matches the design's minimal look */
    font-weight: 400;
}

h2 {
    font-style: italic;
    font-size: 1.2rem;
    font-family: serif;
    /* "Upcoming Exhibitions" looks serif italic in the design */
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    background: var(--bg-color);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    margin-left: 20px;
}

/* Hero */
.hero {
    width: 100%;
    margin-bottom: 60px;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: cover;
}

/* Container for centered content */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Bio */
.bio {
    padding: 0 40px 80px 40px;
}

.bio .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 split */
    gap: 40px;
}

.bio-text p {
    max-width: 60ch;
}

/* Exhibitions */
.exhibitions {
    border-top: 1px solid var(--border-color);
    padding: 60px 40px;
    width: 100%;
}

.exhibitions .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 split */
    gap: 40px;
}

.exhibition-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exhibition-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.date {
    color: #666;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
    max-width: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .bio,
    .exhibitions {
        padding: 40px 20px;
    }

    footer {
        padding: 40px 0;
    }

    .bio .container,
    .exhibitions .container {
        grid-template-columns: 1fr;
        /* Stack vertically */
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .bio .spacer {
        display: none;
        /* Hide empty column on mobile */
    }

    .exhibitions {
        padding-top: 40px;
    }

    .exhibition-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
}

/* Active Nav State */
nav a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* CV Page Specifics */
.cv-section {
    border-top: 1px solid var(--border-color);
    padding: 60px 40px;
    width: 100%;
}

.cv-section:first-of-type {
    border-top: none;
    /* First section (Bio) might not need border if it's right under header, 
       but design shows bio under header. 
       In the provided screenshot, everything seems to be in a list. 
       Let's stick to the consistent section styling. */
}

/* Re-using .bio styling for the first section but ensuring spacing matches */
.cv-section.bio {
    padding-bottom: 60px;
    /* Reset the specific padding from original .bio if needed */
}

/* Generalized CV Section Layout */
.cv-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Works Page Grid */
.works-grid {
    padding: 40px;
    /* Design shows some padding around the grid */
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 80px;
    /* Large gap between rows as seen in screenshot */
}

.work-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/2;
    /* Approximation based on screenshot */
    object-fit: cover;
}

.work-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-item h3 {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 12px;
}

/* Responsive updates for new elements */
@media (max-width: 768px) {
    .cv-section {
        padding: 40px 20px;
    }

    .cv-section .container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .works-grid {
        padding: 20px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

/* Work Detail Page - Single Column Layout */
.work-hero img,
.work-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Hero Styles */
.video-hero {
    width: 100%;
    /* Maintain 16:9 if directly on hero, but container handles strict ratio */
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.work-hero {
    display: block;
    margin-bottom: 60px;
}

/* Removed .work-content .container constraint for desktop */
.work-content .container {
    /* Constrain reading width */
    margin: 0 auto;
}

.work-header {
    margin-bottom: 40px;
}

.work-header h1 {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.subtitle {
    font-family: var(--font-main);
    color: #666;
    font-style: italic;
    font-size: 1rem;
}

.work-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.work-description p {
    margin-bottom: 24px;
}

.work-links {
    margin-top: 40px;
}

.work-links p {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.work-links a {
    color: blue;
    text-decoration: underline;
    word-break: break-all;
}

.work-media {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.work-media figure img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.ratio-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Exhibitions List Styling (Shared) */
.exhibition-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exhibition-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    /* Fixed width for date, rest for event */
    gap: 20px;
}

.exhibition-item .date {
    font-size: 0.9rem;
    color: #666;
}

.exhibition-item .event {
    font-size: 0.9rem;
}

/* Specific adjustments for Work Detail Exhibitions */
.work-exhibitions {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
}

.work-exhibitions .container {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns on desktop */
    gap: 40px;
}

.work-navigation {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.work-navigation .container {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns on desktop */
    gap: 40px;
}

.work-navigation a {
    text-decoration: none;
    display: block;
}

.prev-work,
.next-work {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #666;
    text-align: left;
    /* Ensure text is at start of column */
}

a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

/* Mobile Menu & Responsiveness */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 200;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Work Detail Desktop Padding (Match Header) */
.work-content .container,
.work-exhibitions .container,
.work-navigation .container {
    padding: 0 40px;
}

/* Responsive for Work Detail */
@media (max-width: 800px) {
    header {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    header nav {
        display: none;
        /* Hide standard nav on mobile */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 20px;
    }

    header nav.open {
        display: flex;
    }

    header nav a {
        margin-left: 0;
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    .work-header h1 {
        font-size: 2rem;
    }

    /* Adjust padding for constrained mobile view */
    .work-content .container {
        padding: 0 20px;
    }

    .work-body {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .work-exhibitions .container {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .work-navigation .container {
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .work-media figcaption {
        font-size: 0.85rem;
        color: #888;
    }

    .exhibition-item {
        grid-template-columns: 100px 1fr;
        gap: 10px;
    }
}