/* Leeman Art — Public Styles
   Art-first. Quiet confidence. The site disappears; the work stays. */

/* ---- Variables ---- */
:root {
    --black: #1a1a1a;
    --white: #fafafa;
    --bg: #fff;
    --grey-warm: #f5f4f2;
    --grey-light: #edeceb;
    --grey-mid: #9a9590;
    --grey-text: #5c5650;
    --border: #e8e6e3;
    --max-width: 1200px;
    --max-width-narrow: 720px;
    --nav-height: 72px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Cormorant', 'Georgia', 'Times New Roman', serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.25, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--black); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--black); color: var(--white); }

/* ---- Navigation ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    display: flex; align-items: center;
    padding: 0 3rem;
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--black);
}
.nav-links {
    margin-left: auto;
    display: flex; gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-mid);
    transition: color 0.3s var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--black);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--black); opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* ---- Layout ---- */
.main { padding-top: var(--nav-height); min-height: calc(100vh - var(--nav-height)); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 3rem; }
.container--narrow { max-width: var(--max-width-narrow); }
.section { padding: 5rem 0; }
.section + .section { padding-top: 0; }

/* ---- Section Titles ---- */
.section-title {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey-mid);
    margin-bottom: 2.5rem;
}

/* ---- Hero ---- */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 3rem;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: var(--black);
}
.hero p {
    font-size: 0.95rem;
    color: var(--grey-text);
    margin-top: 1.5rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

/* ---- Art Grid ---- */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}
.art-card {
    display: block;
    cursor: pointer;
}
.art-card img,
.art-card .art-card__placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    background: var(--grey-warm);
    transition: opacity 0.4s var(--ease);
}
.art-card:hover img { opacity: 0.88; }
.art-card .info { padding: 1rem 0 0; }
.art-card .title {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}
.art-card .artist {
    font-size: 0.78rem;
    color: var(--grey-mid);
    margin-top: 0.15rem;
}
.art-card .price {
    font-size: 0.82rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* ---- Artist Grid ---- */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}
.artist-card {
    display: block;
}
.artist-card img,
.artist-card .artist-card__placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--grey-warm);
    margin-bottom: 1.25rem;
    transition: opacity 0.4s var(--ease);
}
.artist-card:hover img { opacity: 0.88; }
.artist-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
}
.artist-card p {
    font-size: 0.82rem;
    color: var(--grey-text);
    margin-top: 0.35rem;
    line-height: 1.6;
}

/* ---- Page Headings ---- */
.page-heading {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.page-heading--small {
    font-size: 1.8rem;
}

/* ---- Artist Detail ---- */
.artist-header {
    max-width: 680px;
    margin-bottom: 4rem;
}
.artist-avatar {
    width: 100px; height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.75rem;
}
.artist-style {
    font-size: 0.88rem;
    color: var(--grey-text);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.artist-bio {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--grey-text);
}
.artist-social {
    margin-top: 1.25rem;
    font-size: 0.82rem;
}
.artist-social a {
    color: var(--grey-mid);
    transition: color 0.3s var(--ease);
}
.artist-social a:hover { color: var(--black); }

/* ---- Collection List ---- */
.collection-item {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease);
}
.collection-item:first-child { border-top: 1px solid var(--border); }
.collection-item:hover { padding-left: 0.5rem; }
.collection-item h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}
.collection-item .collection-meta {
    font-size: 0.82rem;
    color: var(--grey-mid);
    margin-top: 0.35rem;
}
.collection-item .collection-desc {
    font-size: 0.85rem;
    color: var(--grey-text);
    margin-top: 0.6rem;
    line-height: 1.6;
}

/* ---- Collection Detail Header ---- */
.collection-header {
    max-width: 680px;
    margin-bottom: 4rem;
}
.collection-header h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.collection-header .collection-artist {
    font-size: 0.88rem;
    color: var(--grey-mid);
    display: block;
    margin-bottom: 1.75rem;
}
.collection-header .collection-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--grey-text);
}

/* ---- Artwork Detail ---- */
.artwork-detail {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 5rem;
    padding: 4rem 0 6rem;
    align-items: start;
}
.artwork-images img {
    width: 100%;
    margin-bottom: 1.5rem;
    cursor: zoom-in;
    background: var(--grey-warm);
}
.artwork-images img:last-child { margin-bottom: 0; }
.artwork-meta { position: sticky; top: calc(var(--nav-height) + 2rem); }
.artwork-meta h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}
.artwork-meta .artist-link {
    font-size: 0.88rem;
    color: var(--grey-mid);
    display: block;
    margin-bottom: 2rem;
    transition: color 0.3s var(--ease);
}
.artwork-meta .artist-link:hover { color: var(--black); }
.artwork-meta .price {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 2rem;
}
.artwork-meta .price--sold { color: var(--grey-mid); }
.artwork-meta .details {
    font-size: 0.82rem;
    color: var(--grey-text);
    line-height: 2;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.artwork-meta .details a { color: var(--grey-text); transition: color 0.3s var(--ease); }
.artwork-meta .details a:hover { color: var(--black); }
.artwork-meta .description {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* ---- Buy Button ---- */
.buy-btn {
    display: block;
    width: 100%;
    padding: 1.1rem;
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}
.buy-btn:hover { background: #333; color: var(--white); opacity: 1; }
.buy-btn--sold {
    background: var(--grey-warm);
    color: var(--grey-mid);
    cursor: default;
}
.buy-btn--sold:hover { background: var(--grey-warm); color: var(--grey-mid); }

/* ---- Shop Filters ---- */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.shop-filters {
    display: flex; gap: 1.5rem; align-items: center;
}
.shop-filters a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey-mid);
    transition: color 0.3s var(--ease);
}
.shop-filters a:hover { color: var(--black); opacity: 1; }
.shop-filters a.active { color: var(--black); }

/* ---- About & Contact ---- */
.prose {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--grey-text);
}
.prose p + p { margin-top: 1.25rem; }
.about-artists { margin-top: 4rem; }
.about-artist-item {
    margin-bottom: 2.5rem;
}
.about-artist-item a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    transition: color 0.3s var(--ease);
}
.about-artist-item p {
    font-size: 0.82rem;
    color: var(--grey-text);
    margin-top: 0.3rem;
    line-height: 1.6;
}

.contact-content a {
    color: var(--black);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s var(--ease);
}
.contact-content a:hover { border-color: var(--black); opacity: 1; }

/* ---- Empty States ---- */
.empty-state {
    color: var(--grey-mid);
    text-align: center;
    padding: 5rem 0;
    font-size: 0.9rem;
}

/* ---- Badge ---- */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--grey-warm);
    color: var(--grey-mid);
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* ---- Cart ---- */
.cart-count {
    font-size: 0.6rem;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    width: 16px; height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    vertical-align: middle;
    font-weight: 600;
}
.cart-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.cart-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 400px; max-width: 90vw;
    z-index: 201;
    background: var(--bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}
.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
}
.cart-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--grey-mid);
    line-height: 1; padding: 0;
    transition: color 0.2s var(--ease);
}
.cart-close:hover { color: var(--black); }
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}
.cart-empty {
    color: var(--grey-mid);
    font-size: 0.88rem;
    text-align: center;
    padding: 3rem 0;
}
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img {
    width: 72px; height: 90px;
    object-fit: cover;
    background: var(--grey-warm);
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}
.cart-item-artist {
    font-size: 0.75rem;
    color: var(--grey-mid);
    margin-top: 0.15rem;
}
.cart-item-price {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
}
.cart-item-remove {
    background: none; border: none; cursor: pointer;
    font-size: 0.7rem; color: var(--grey-mid);
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0; margin-top: 0.5rem;
    transition: color 0.2s var(--ease);
}
.cart-item-remove:hover { color: var(--black); }
.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--grey-mid);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 24px; height: 18px; position: relative;
    margin-left: auto;
}
.nav-toggle span {
    display: block; width: 100%; height: 1px;
    background: var(--black); position: absolute; left: 0;
    transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav-toggle.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .artwork-detail {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 0 4rem;
    }
    .artwork-meta {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
    .nav { padding: 0 1.5rem; }
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: var(--nav-height); left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column; gap: 0; padding: 0;
        max-height: 0; overflow: hidden;
        transition: max-height 0.4s var(--ease-out);
    }
    .nav-links.open { max-height: 320px; }
    .nav-links li { border-top: 1px solid var(--border); }
    .nav-links a {
        display: block; padding: 1.1rem 1.5rem; font-size: 0.8rem;
    }
    .nav-links a::after { display: none; }
    .container { padding: 0 1.5rem; }
    .section { padding: 3.5rem 0; }
    .hero { min-height: 50vh; padding: 4rem 1.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .art-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.75rem;
    }
    .artist-grid { gap: 2rem; }
    .page-heading { font-size: 1.8rem; }
    .shop-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
    .art-grid { grid-template-columns: 1fr; gap: 2rem; }
    .artist-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .nav { padding: 0 1rem; }
    .container { padding: 0 1rem; }
}
