/* =========================================
   Variables & Theme
   ========================================= */
:root {
    --bg-color: #F8F7F5;
    /* Very soft off-white/warm gray paper texture */
    --text-primary: #383838;
    /* Soft charcoal, not harsh black */
    --text-muted: #7A7A7A;
    --text-light: #A0A0A0;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 8rem;
    --spacing-huge: 12rem;

    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Subtle grain texture to make the screen feel like paper */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* =========================================
   Navigation (Quiet and Out of the Way)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 4%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    /* Allows clicks to pass through the empty transparent space */
}

.nav-logo {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    /* Re-enable clicks */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    pointer-events: auto;
    /* Re-enable clicks */
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    color: #0d0d0d;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-logo:hover {
    opacity: 0.6;
}

/* =========================================
   Hero Section (Home)
   ========================================= */
.hero-minimal {
    margin: 0 auto;
    padding: var(--spacing-xxl) 4% var(--spacing-md);
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-image-wrapper {
    width: 100%;
    margin-bottom: 4rem;
}

.hero-image-wrapper img {
    width: 100%;
    max-height: 40vh;
    object-fit: cover;
    object-position: center 75%;
}

.hero-intro {
    max-width: 520px;
    margin: 3rem auto 2rem;
    /* Added 3rem top margin to definitively force the title down away from the menu */
}

.hero-intro h1 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    /* Reduced size by ~15% to stop it feeling like a headline */
    line-height: 1.35;
    color: rgba(90, 90, 90, 0.85);
    /* Lightened the color so it whispers compared to body text */
    font-weight: 300;
    margin: 0;
}

/* =========================================
   Featured Work Grid (Home)
   ========================================= */
.featured-work {
    max-width: 1100px;
    margin: 0 auto var(--spacing-huge);
    padding: 0 4%;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.image-frame {
    overflow: hidden;
    background-color: #ededed;
    display: block;
    cursor: pointer;
}

.image-frame img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.image-frame:hover img {
    transform: scale(1.03);
    opacity: 0.92;
}


.featured-link-wrapper {
    text-align: left;
    margin-top: 0.5rem;
}

.featured-link-wrapper .quiet-link {
    font-size: 0.65rem;
    letter-spacing: -0.5px;
    color: #000000;
}

/* =========================================
   Quiet Links & Text Elements
   ========================================= */
.quiet-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.quiet-link:hover {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

.personal-line {
    max-width: 600px;
    margin: calc(var(--spacing-huge) + 6rem) auto calc(var(--spacing-huge) + 3rem);
    text-align: center;
    padding: 0 4%;
}

.personal-line p {
    font-size: 1.45rem;
    font-style: italic;
    color: #000000;
    margin-bottom: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.quiet-cta {
    text-align: center;
    margin-bottom: var(--spacing-md);
    margin-top: 3rem;
}

.enquiry-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.enquiry-text {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(40, 40, 40, 0.75);
}

.enquire-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #000000;
    font-weight: 600;
}

/* =========================================
   Paintings Page (The Gallery)
   ========================================= */
.gallery-container {
    padding: calc(var(--spacing-xxl) + 1rem) 4% 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 0;
}

.page-header h1 {
    font-size: 2.75rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: #000000;
}

.page-header p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #1a1a1a;
    letter-spacing: 0px;
}

.gallery-section {
    margin-bottom: 1rem;
}

.gallery-heading {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 400;
    color: rgba(140, 140, 140, 0.5);
    margin-top: 0;
    margin-bottom: 2.5rem;
}

/* Add row-gap to separate the rows */
.gallery-grid {
    column-gap: 12px;
    row-gap: 4rem;
}

.gallery-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    width: 60%;
    margin: 3.5rem auto;
}

/* Artwork Sub-Tags */
.artwork-item {
    display: flex;
    flex-direction: column;
}

.artwork-meta {
    margin-top: 0.8rem;
    /* Gap between image and title: ~12px */
    text-align: center;
}

.artwork-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    /* ~15px */
    font-weight: 400;
    /* No bold */
    color: rgba(70, 70, 70, 0.9);
    /* Medium contrast */
    margin-bottom: 0.3rem;
    /* Gap between title and status: ~5px */
    text-transform: none;
    /* Normal case */
}

.artwork-status {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    /* ~11px */
    letter-spacing: 1.5px;
    /* Slight letter spacing */
    text-transform: uppercase;
    color: rgba(130, 130, 130, 0.8);
    /* Lighter color */
    display: block;
    /* So the margin above works properly */
}

.artwork-status.sold {
    color: rgba(160, 160, 160, 0.5);
    /* Even lighter for set sold */
}

/* =========================================
   Text Pages (About & Contact)
   ========================================= */
.text-page-container {
    padding: calc(var(--spacing-xxl) + 2rem) 4% calc(var(--spacing-xl) - 2rem);
    max-width: 580px;
    margin: 0 auto;
    min-height: 55vh;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.prose p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

.prose p:first-child {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 3.5rem;
}

.inline-cta {
    margin-top: var(--spacing-lg);
}

.contact-email-link {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 3px;
    letter-spacing: 1px;
}

.contact-email-link:hover {
    border-bottom-color: #000000;
    opacity: 0.7;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    text-align: center;
    padding: 1rem 4% var(--spacing-md);
    margin-top: 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.6;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.footer-ig-link {
    color: var(--text-light);
    /* Lighter color */
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    text-transform: none;
    display: inline-block;
    padding-bottom: 2px;
}

.footer-ig-link:hover {
    color: var(--text-muted);
    border-bottom-color: var(--text-muted);
    /* Underline on hover */
}

/* =========================================
   Animations & Responsive
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
        /* Reduced movement for elegance */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@media (max-width: 900px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-divider {
        width: 80%;
    }

    :root {
        --spacing-xxl: 6rem;
        --spacing-huge: 8rem;
    }

    .hero-intro h1 {
        font-size: 1.45rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-minimal {
        padding-top: calc(var(--spacing-xxl) + 4rem);
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .personal-line p {
        font-size: 1.2rem;
    }

    .contact-email-link {
        font-size: 1.35rem;
        word-break: break-all;
    }

    .split-section {
        flex-direction: column;
        gap: 2rem;
        margin: 4rem auto;
    }
    
    .meet-artist-section {
        margin: 4rem auto;
    }
}

/* =========================================
   New Home Page Sections
   ========================================= */
.split-section {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 0 4%;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.split-image {
    flex: 1;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.meet-artist-section {
    max-width: 650px;
    margin: 4rem auto;
    padding: 0 4%;
    text-align: center;
}

.meet-artist-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.meet-artist-section .prose p {
    text-align: left;
}

.strong-cta {
    background-color: #F1EFEA;
    padding: 5rem 4%;
    text-align: center;
    margin-top: 6rem;
}

.strong-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}