@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,700;1,300;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&display=swap');

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

:root {
    --bg: #fafaf8;
    --text: #1a1a1a;
    --muted: #000;
    --accent: #e5007e;
    --border: #e0e0e0;
    --max-width: 1200px;
    --header-text: #fff;
    --hire-bg: #fff;
    --hire-color: #000;
    --hire-hover-bg: #000;
    --hire-hover-color: #fff;
}

body {
    font-family: 'Mulish', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--text);
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent);
}

img {
    display: block;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    line-height: 1.15;
}

/* ---- LAYOUT ---- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- HEADER ---- */

header {
    padding: 1.5rem 0;
    background-color: var(--accent);
    margin-bottom: 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--header-text);
}

header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 1rem;
}

header nav a {
    text-decoration: none;
    color: var(--header-text);
    font-weight: 700;
    text-transform: uppercase;
}

header nav a:hover {
    color: var(--header-text);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

header nav .contact-btn {
    background-color: var(--hire-bg);
    color: var(--hire-color);
    padding: 0.5rem 1.1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
}

header nav .contact-btn:hover {
    background-color: var(--hire-hover-bg);
    color: var(--hire-hover-color);
    text-decoration: none;
}

/* ---- INTRO ---- */

.intro {
    background-color: #fff;
    color: #000;
    padding: 2.5rem 0;
}

.intro h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 0.5rem;
}

.intro p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

.intro p.intro-tagline {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.intro p a {
    color: var(--accent);
}

.intro p a:hover {
    text-decoration: underline;
}

/* ---- HERO IMAGE ---- */

.hero-image img {
    width: 100%;
    display: block;
}

/* ---- SECTION HEADER ---- */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--muted);
}

.section-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* ---- PAINTINGS GRID ---- */

.paintings-section {
    padding: 3rem 0 5rem;
}

.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.paintings-grid figure {
    position: relative;
}

.paintings-grid figure img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    margin-bottom: 0.6rem;
}

.paintings-grid figcaption {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
}

.paintings-grid figcaption p {
    font-weight: 300;
    font-size: 0.875rem;
    color: #555;
    margin-top: 0.15rem;
}

/* ---- SOLD ---- */

.paintings-grid figure.sold::after {
    content: 'Sold';
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: #000;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
}

/* ---- LIGHTBOX ---- */

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    cursor: default;
    border: 6px solid #fff;
}

#lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}

#lightbox-close:hover {
    opacity: 1;
}

/* ---- FOOTER ---- */

footer {
    background-color: #000;
    padding: 2.5rem 0;
    margin-top: 0;
}

footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer .social {
    display: flex;
    gap: 1rem;
}

footer .social a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

footer .social a:hover {
    opacity: 0.6;
    color: #fff;
}

footer .copyright {
    font-size: 0.8rem;
    color: #fff;
}

/* ---- SHOWS PAGE ---- */

.shows-columns {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

.shows-group h2 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #444;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.shows-list {
    list-style: none;
}

.shows-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.shows-list li span {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.shows-back {
    margin-bottom: 3rem;
}

.shows-back a {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.shows-back a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .shows-list li {
        flex-direction: column;
        gap: 0.1rem;
    }
}

/* ---- CONTACT PAGE ---- */

main {
    padding-bottom: 5rem;
}

.page-intro {
    padding: 3rem 0 2rem;
}

.page-intro h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.page-intro p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.contact-options a {
    display: block;
    padding: 1rem 1.5rem;
    border: 2px solid currentColor;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s, color 0.15s;
}

.contact-options a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.contact-direct {
    margin-bottom: 3rem;
    color: #555;
    font-size: 0.95rem;
}

.contact-direct address {
    font-style: normal;
    font-size: 1rem;
    margin-top: 0.4rem;
    color: var(--text);
}

/* ---- CONTACT MODAL ---- */

.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal-inner {
    background: var(--bg);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    border-radius: 4px;
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text);
}

#contact-modal-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

#contact-modal-content form div {
    margin-bottom: 1rem;
}

#contact-modal-content label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    color: #555;
}

#contact-modal-content input,
#contact-modal-content textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

#contact-modal-content input:focus,
#contact-modal-content textarea:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

#contact-modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

#contact-modal-content button[type="submit"] {
    margin-top: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.05em;
}

#contact-modal-content button[type="submit"]:hover {
    background: #000;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 680px) {
    header {
        padding: 1.25rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    header .wordmark {
        font-size: 1rem;
    }

    header nav {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    header nav a:not(.contact-btn) {
        display: none;
    }

    header nav .contact-btn {
        padding: 0.4rem 0.75rem;
        white-space: nowrap;
    }

    .intro h1 {
        font-size: 1.4rem;
    }

    .paintings-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
}

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