:root {
    --background: #f7f6f2;
    --surface: #ffffff;
    --text: #242421;
    --muted: #77766f;
    --accent: #9b654b;
    --line: #e7e4dd;
    --max-width: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

.site-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: Georgia, serif;
    font-size: 25px;
    letter-spacing: -0.7px;
}

.brand-subtitle,
.eyebrow {
    font-size: 10px;
    letter-spacing: 2.2px;
    font-weight: 700;
    color: var(--muted);
}

.brand-subtitle {
    margin-top: 6px;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 90px 5% 100px;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.hero h1,
.page-heading h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(44px, 6vw, 76px);
    margin: 22px 0;
}

.hero-description {
    max-width: 440px;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 30px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 7px;
}

.text-link span {
    color: var(--accent);
}

.hero-art {
    min-height: 390px;
    display: grid;
    place-items: center;
    background: #d9d1c5;
    overflow: hidden;
}

.hero-art-inner {
    width: 78%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border: 1px solid rgba(40, 35, 28, 0.35);
    color: #413b33;
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 53px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    transform: rotate(-4deg);
}

.hero-art-inner span:nth-child(2) {
    margin-left: 15%;
}

.hero-art-inner span:nth-child(3) {
    margin-left: 30%;
}

.gallery-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 55px 5% 100px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    margin: 8px 0 0;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 24px;
}

.artwork-card {
    display: block;
}

.artwork-image {
    aspect-ratio: 4 / 5;
    background: #e9e6df;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.5s;
}

.artwork-card:hover .artwork-image img {
    transform: scale(1.025);
}

.artwork-info {
    padding-top: 13px;
}

.artwork-info h3 {
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 400;
    margin: 0 0 3px;
}

.artwork-info span,
.collection-card span {
    color: var(--muted);
    font-size: 12px;
}

.empty-gallery {
    padding: 75px 20px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
}

.empty-gallery p {
    font-family: Georgia, serif;
    font-size: 25px;
    margin: 0 0 5px;
}

.empty-gallery span {
    color: var(--muted);
    font-size: 13px;
}

.page-heading {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 95px 5% 35px;
}

.page-heading h1 {
    font-size: clamp(48px, 7vw, 76px);
    margin: 15px 0;
}

.page-heading > p:last-child {
    color: var(--muted);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.collection-card {
    background: var(--surface);
    border: 1px solid var(--line);
}

.collection-card img,
.collection-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #e9e6df;
}

.collection-card > div:last-child {
    padding: 22px;
}

.collection-card h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    margin: 0 0 7px;
}

.collection-card p {
    color: var(--muted);
    font-size: 13px;
}

.about-heading {
    padding-top: 130px;
    padding-bottom: 150px;
}

.about-heading h1 {
    font-size: clamp(45px, 7vw, 78px);
}

.artwork-detail {
    max-width: 1180px;
    margin: 0 auto;
    padding: 45px 5% 100px;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 30px;
}

.detail-image {
    background: #e9e6df;
    min-height: 300px;
    display: grid;
    place-items: center;
}

.detail-image img {
    display: block;
    max-width: 100%;
    max-height: 850px;
    object-fit: contain;
}

.detail-info {
    max-width: 650px;
    margin: 40px auto 0;
}

.detail-info h1 {
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    margin: 10px 0;
}

.detail-meta {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0;
}

.detail-description {
    margin-top: 25px;
    line-height: 1.8;
}

.site-footer {
    border-top: 1px solid var(--line);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.5px;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .main-nav {
        width: 100%;
        gap: 0;
        justify-content: space-between;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 60px;
        gap: 40px;
    }

    .hero-art {
        min-height: 290px;
    }

    .hero-art-inner {
        min-height: 220px;
    }

    .artwork-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading {
        padding-top: 65px;
    }

    .artwork-detail {
        padding-top: 25px;
    }
}

@media (max-width: 420px) {
    .artwork-grid {
        grid-template-columns: 1fr;
    }
}
