:root {
    --bg: #0b1d2e;
    --bg-light: #102a42;
    --accent: #1e3a5f;
    --accent-hover: #264d7a;
    --text: #e0e8f0;
    --text-muted: #8fa3b8;
    --link: #a8c5ff;
    --gold: #c9a84c;
    --font-primary: "Playfair Display", serif;
    --font-secondary: "Source Sans Pro", sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-secondary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text);
    margin: 0 0 .5rem 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header.site-header {
    background: linear-gradient(135deg, var(--bg) 0%, var(--accent) 100%);
    color: var(--text);
    text-align: center;
    padding: 2.5rem 0;
    border-bottom: 2px solid var(--gold);
}

header.site-header h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0;
    color: var(--gold);
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--accent);
    margin-bottom: 2rem;
}

.hero-image {
    width: 320px;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Gallery */
.gallery-title {
    font-size: 1.6rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

figure:hover img {
    transform: scale(1.03);
}

figcaption {
    padding: 0.6rem 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--text-muted);
    background: var(--bg-light);
}

/* Single painting page */
.painting-page {
    padding: 2rem 0;
    text-align: center;
}

.painting-page h1 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.painting-page figure {
    max-width: 800px;
    margin: 0 auto;
}

.painting-page .description {
    max-width: 600px;
    margin: 1.5rem auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Footer */
footer.site-footer {
    background: var(--accent);
    color: var(--text-muted);
    text-align: center;
    padding: 1.2rem 0;
    border-top: 2px solid var(--gold);
}

footer.site-footer p {
    margin: 0;
    font-size: 0.85rem;
}

/* Links */
a {
    color: var(--link);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 700px) {
    header.site-header h1 {
        font-size: 1.6rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 80%;
        max-width: 320px;
    }

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