/* Color Field - Rothko-style color block paintings */

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

:root {
    --bg-dark: #1a1612;
    --text-light: #d4cfc7;
    --text-dim: #7a756d;
}

body {
    min-height: 100vh;
    background: var(--bg-dark);
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-light);
}

.canvas {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Main Painting */
.painting {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    background: #2a2520;
    margin-bottom: 4rem;
}

.field {
    flex: 1;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.field::before,
.field::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* Soft edge effect */
.field::before {
    filter: blur(15px);
    opacity: 0.8;
}

.field::after {
    filter: blur(5px);
    opacity: 0.6;
}

.field-top {
    flex: 1.2;
    background: linear-gradient(
        to bottom,
        #c94c4c 0%,
        #b83c3c 30%,
        #a82c2c 70%,
        #8c1c1c 100%
    );
}

.field-top::before {
    background: linear-gradient(
        to bottom,
        #d45a5a 0%,
        #c94c4c 100%
    );
}

.field-middle {
    flex: 1;
    background: linear-gradient(
        to bottom,
        #d4a44c 0%,
        #c4943c 30%,
        #b4842c 70%,
        #a4741c 100%
    );
}

.field-middle::before {
    background: linear-gradient(
        to bottom,
        #e4b45c 0%,
        #d4a44c 100%
    );
}

.field-bottom {
    flex: 0.8;
    background: linear-gradient(
        to bottom,
        #1a1a2e 0%,
        #16162a 50%,
        #121226 100%
    );
}

.field-bottom::before {
    background: linear-gradient(
        to bottom,
        #202040 0%,
        #1a1a2e 100%
    );
}

/* Breathing animation */
@keyframes breathe {
    0%, 100% {
        opacity: 0.6;
        filter: blur(5px);
    }
    50% {
        opacity: 0.75;
        filter: blur(8px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .field::after {
        animation: breathe 8s ease-in-out infinite;
    }

    .field-middle::after {
        animation-delay: 2s;
    }

    .field-bottom::after {
        animation-delay: 4s;
    }
}

/* Contemplation Text */
.contemplation {
    text-align: center;
    padding: 3rem 0;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.contemplation h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.philosophy {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.instruction {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* Gallery of smaller works */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.work {
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #252220;
    border-radius: 2px;
}

.layer {
    flex: 1;
    border-radius: 1px;
    position: relative;
}

.layer::after {
    content: '';
    position: absolute;
    inset: 0;
    filter: blur(8px);
    opacity: 0.5;
}

/* Work 1 - Blues */
.work-1 .layer-a {
    background: linear-gradient(#2e5077, #1e3a5f);
}
.work-1 .layer-a::after {
    background: #3e6087;
}
.work-1 .layer-b {
    background: linear-gradient(#1a2a44, #0f1a2a);
}
.work-1 .layer-b::after {
    background: #2a3a54;
}

/* Work 2 - Greens */
.work-2 .layer-a {
    flex: 1.5;
    background: linear-gradient(#4a5d4a, #3a4d3a);
}
.work-2 .layer-a::after {
    background: #5a6d5a;
}
.work-2 .layer-b {
    flex: 0.8;
    background: linear-gradient(#6b5b4a, #5b4b3a);
}
.work-2 .layer-b::after {
    background: #7b6b5a;
}

/* Work 3 - Purples */
.work-3 .layer-a {
    background: linear-gradient(#5a4a6a, #4a3a5a);
}
.work-3 .layer-a::after {
    background: #6a5a7a;
}
.work-3 .layer-b {
    flex: 1.2;
    background: linear-gradient(#3a2a3a, #2a1a2a);
}
.work-3 .layer-b::after {
    background: #4a3a4a;
}

/* Quote */
.quote {
    text-align: center;
    padding: 3rem 2rem;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.quote cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

footer p {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

.separator {
    margin: 0 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 600px) {
    .canvas {
        padding: 1.5rem 1rem;
    }

    .painting {
        padding: 20px;
        gap: 12px;
    }

    .gallery {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto 3rem;
    }

    .work {
        aspect-ratio: 4 / 3;
    }
}

/* Dark mode already by default, but ensure contrast */
@media (prefers-color-scheme: light) {
    body {
        background: var(--bg-dark);
    }
}
