/* ===========================================
   CATALOG PAGE (T18) — Series & Attribute Pages
   Aesthetic: Perrotin-inspired minimal gallery
   =========================================== */

/* --- Override base main constraint --- */
.catalog-page main {
    max-width: none;
    padding: 0;
}

/* --- Breadcrumb --- */
.catalog-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--grey-500);
}

.catalog-breadcrumb ol {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-breadcrumb li + li::before {
    content: "/";
    margin: 0 0.5em;
    color: var(--grey-400);
}

.catalog-breadcrumb a {
    color: var(--grey-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.catalog-breadcrumb a:hover {
    color: var(--black);
}

/* --- Page header --- */
.catalog-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.catalog-header h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--black);
    margin: 0;
}

.catalog-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--grey-600);
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
}

/* --- Auto-generated intro paragraph --- */
.catalog-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--grey-600);
}

/* --- Hero split: Ken Burns left + summary right --- */
.catalog-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    align-items: stretch;
}

.catalog-hero-image a {
    display: block;
}

.catalog-hero-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.catalog-hero-caption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
}

.catalog-hero-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1.3;
}

.catalog-hero-subtitle {
    font-size: 0.75rem;
    color: var(--grey-600);
    letter-spacing: 0.02em;
}

.catalog-hero-caption .status-badge {
    margin-top: 0;
}

.catalog-hero-summary {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--grey-700);
}

.catalog-hero-summary p {
    margin: 0;
}

/* --- Flipbook Button (hero actions) --- */
.catalog-hero-actions {
    margin-top: 1rem;
}

.catalog-flipbook-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--grey-700);
    background: #fff;
    border: 1px solid var(--grey-300);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.catalog-flipbook-btn:hover {
    color: #111;
    border-color: var(--grey-500);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.catalog-flipbook-btn svg {
    flex-shrink: 0;
}

/* --- Description columns --- */
.catalog-description-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    border-top: 1px solid var(--grey-300);
    padding-top: 2.5rem;
}

.catalog-desc-col p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--grey-700);
    margin: 0 0 1.25rem 0;
}

.catalog-desc-col p:last-child {
    margin-bottom: 0;
}

.catalog-desc-col h2,
.catalog-desc-col h3 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0 0 0.75rem 0;
}

/* Fallback: single column if description is short */
.catalog-description-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    border-top: 1px solid var(--grey-300);
    padding-top: 2.5rem;
}

.catalog-description-single p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--grey-700);
    margin: 0 0 1.25rem 0;
    max-width: 720px;
}

/* --- Works grid — vertical cards, 4 per row --- */
.catalog-works {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.catalog-works h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--black);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--grey-300);
}

.catalog-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.catalog-work-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.catalog-work-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.catalog-work-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.catalog-work-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.catalog-work-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1.3;
}

.catalog-work-subtitle {
    font-size: 0.7rem;
    color: var(--grey-600);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* Status badges */
.status-badge {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.status-badge.available {
    color: #2d6a4f;
}

.status-badge.sold {
    color: var(--grey-500);
}

.status-badge.nfs {
    color: var(--grey-500);
}

/* --- Artist block overrides for catalog context --- */
.catalog-page .artist-block {
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-top: 1px solid var(--grey-300);
    background: transparent;
    padding: 2.5rem 2rem 0;
}

.catalog-page .artist-inner {
    max-width: none;
    margin: 0;
}

/* --- Colophon (override dark base from artwork_page.css) --- */
.catalog-page .aqc-colophon {
    background: transparent !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--grey-300);
    font-size: 0.78rem;
    color: var(--grey-500);
    line-height: 1.6;
}

.catalog-page .aqc-colophon strong {
    color: var(--black);
    font-weight: 500;
}

.catalog-page .aqc-colophon p {
    margin: 0 0 0.5rem 0;
    color: var(--grey-500);
}

.catalog-page .aqc-colophon a {
    color: var(--grey-600);
    text-decoration: underline;
    text-decoration-color: var(--grey-400);
    text-underline-offset: 2px;
    border-bottom: none;
}

.catalog-page .aqc-colophon a:hover {
    color: var(--black);
}

.catalog-page .colophon-social {
    border-top-color: var(--grey-300);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .catalog-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-header h1 {
        font-size: 2rem;
    }

    .catalog-hero-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1.5rem 2rem;
    }

    .catalog-description-columns {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1.5rem 2rem;
    }

    .catalog-header {
        padding: 2rem 1.5rem 0.75rem;
    }

    .catalog-works {
        padding: 0 1.5rem 2rem;
    }

    .catalog-page .artist-block {
        padding: 2rem 1.5rem 0;
    }

    .catalog-page .aqc-colophon {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .catalog-works-grid {
        grid-template-columns: 1fr;
    }
}
