:root {
    --bg: #f6f5f2;
    --surface: #ffffff;
    --mat: #eceae4;
    --text: #1c1c1c;
    --muted: #666666;
    --border: #e0ded9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--text);
}

nav a {
    text-decoration: none;
    color: var(--muted);
    margin-left: 28px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text);
}

.hero {
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero .years {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero .subtitle {
    font-size: 1.1rem;
    max-width: 560px;
    color: #333;
}

.hero-artwork {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-frame {
    background: var(--mat);
    border: 1px solid var(--border);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    height: 480px;
    cursor: zoom-in;
}

.hero-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-artwork figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: right;
}

section {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    font-size: 1.8rem;
    margin-bottom: 32px;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
}

.bio-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.timeline {
    list-style: none;
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

.timeline li {
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.timeline strong {
    display: block;
    color: var(--text);
    font-weight: 600;
}

.timeline span {
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.work-card {
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.work-image-wrap {
    position: relative;
    background-color: var(--mat);
    height: 360px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.work-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.views-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(28, 28, 28, 0.82);
    color: #fff;
    font-size: 0.78rem;
    padding: 4px 9px;
    border-radius: 3px;
    pointer-events: none;
}

.work-info {
    padding: 18px 20px;
}

.work-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.work-meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.exhibition-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 32px;
    max-width: 780px;
}

.exhibition-box h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.exhibition-date {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 14px;
}

footer {
    padding: 40px 0;
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.94);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 82vh;
}

.lightbox img {
    max-width: 82vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.lightbox-caption {
    color: #f0f0f0;
    font-size: 1rem;
    text-align: center;
    margin-top: 16px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav.hidden {
    visibility: hidden;
}

@media (max-width: 820px) {
    .hero-grid,
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-artwork {
        align-items: flex-start;
    }
    .hero-frame {
        max-width: 100%;
        height: 380px;
    }
    nav a {
        margin-left: 0;
        margin-right: 20px;
    }
}
