:root{
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-accent: #5b7083;
    --color-muted: #666666;
    --color-card: #ffffff;
    --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
body{
    animation: fadeIn 0.6s ease-in;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
}

.container{
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.banner{
    background-color: #ffffff;
    color: var(--color-text);
}

h1 {
    color: var(--color-accent);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2{
    font-size: 1.5rem;
    font-weight: 700;
}

h1, h2, h3, h4{
    font-family: var(--font-heading);
}

p{
    line-height: 1.6;
    color: var(--color-text);
}

ul{
    list-style-type:circle;
    padding: 20px;
}

nav {
    display: none;
    gap: 20px;
    flex-direction: column;

}

.nav-toggle{
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color:var(--color-text);
    transition: transform 0.3s ease, background-color 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-toggle:hover{
    transform:scale(1.08);
    background-color: rgba(0, 0, 0, 0.06);
}

nav.open{
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #000000;
    padding: 20px;
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;

}

@keyframes fadeInDown{
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
nav.open a {
    animation: fadeInDown 0.3s ease forwards;
    opacity: 0;
}

nav.open a:nth-child(2) { animation-delay: 0s; }
nav.open a:nth-child(3) { animation-delay: 0.1s; }
nav.open a:nth-child(4) { animation-delay: 0.2s; }
nav.open a:nth-child(5) { animation-delay: 0.3s; }
nav.open a:nth-child(6) { animation-delay: 0.4s; }

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.piece img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.piece-caption{
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text);
}

.gallery-grid h1{
    grid-column: 1/-1;
}

form{
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

input, textarea{
    padding: 8px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button{
    font-family: inherit;
    padding: 10px;
    background-color:var(--color-text);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover{
    background-color: var(--color-accent);
}

.hero-video{
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    overflow: hidden;
}

.hero-scroll-track{
    display: flex;
    height: 100%;
    width: max-content;
    animation: heroScroll 60s linear infinite;
}

.hero-scroll-track img{
    height: 100%;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 4px;
}

@keyframes heroScroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
}

.hero-video-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.1), rgba(26, 26, 26, 0.35));
}

.hero-video-button{
    padding: 16px 40px;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    border-radius: 2px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero-video-button:hover{
    background-color: #ffffff;
    color: var(--color-accent);
    transform: scale(1.05);
}

@media (max-width: 700px){
    .hero-video{
        height: 50vh;
        min-height: 320px;
    }

    .hero-video-button{
        font-size: 1.05rem;
        padding: 12px 28px;
    }
}

.about-section{
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image{
    flex: 1;
    min-width: 0;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.about-text{
    flex: 1;
}

.about-text h2{
    margin-top: 0;
}

.care-section,
.commission-section{
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 32px;
}

.care-section h2,
.commission-section h2{
    margin-top: 0;
}

.commission-button{
    display: inline-block;
    margin-top: 4px;
    padding: 12px 24px;
    background-color: var(--color-text);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.commission-button:hover{
    background-color: var(--color-accent);
}

@media (max-width: 700px){
    .about-section{
        flex-direction: column;
    }
}

section{
    margin-bottom: 60px;
}

section:last-child{
    margin-bottom: 0;
}

nav a{
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

nav a.active{
    font-weight: 650;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
}

.social-link {
    color: var(--color-text);
    display: flex;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.15);
}

footer{
    padding: 20px;
}

.site-title{
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
}

.site-title:hover{
    transform: translateX(-50%) scale(1.08);
}

main{
    margin-top: 40px;
    margin-bottom: 40px;
}

main.container {
    max-width: 1050px;
}

.piece img{
    transition: transform 0.3s ease;
}

.piece img:hover{
    transform:scale(1.08)
}

.piece{
    overflow: hidden;
}

.banner {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s ease;
}

.banner.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
}

.piece-image{
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
}

.piece-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    width: 100%;
    padding: 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.piece-image:hover .piece-title{
    opacity: 1;
}

.piece-image img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.piece-image:hover img {
    filter: brightness(0.6)
}

.sold-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-text);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
}

div.banner{
    z-index: 60;
}

/* Individual piece pages */

.back-link{
    display: inline-block;
    margin-bottom: 24px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover{
    color: var(--color-text);
}

.piece-detail{
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.piece-photos{
    flex: 1;
    min-width: 0;
}

.piece-main-image-wrap{
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.piece-main-image{
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.piece-thumbs{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.piece-thumb{
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.piece-thumb:hover{
    opacity: 1;
    transform: scale(1.05);
}

.piece-thumb.active{
    opacity: 1;
    border-color: var(--color-accent);
}

.piece-detail-info{
    flex: 1;
    min-width: 0;
}

.piece-detail-info h1{
    margin-top: 0;
    margin-bottom: 8px;
}

.piece-detail-info .sold-badge{
    position: static;
    display: inline-block;
    margin-bottom: 16px;
}

.piece-detail-description{
    margin-bottom: 32px;
}

.buy-box{
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 24px;
}

.buy-price{
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.buy-button{
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: var(--color-text);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.buy-button:hover{
    background-color: var(--color-accent);
}

.buy-note{
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.piece-sold-message{
    margin: 0;
    color: var(--color-muted);
}

.piece-pagination{
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #e2e2e2;
    gap: 16px;
}

.piece-pagination a{
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
}

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

.piece-pagination .next-piece{
    text-align: right;
    margin-left: auto;
}

@media (max-width: 700px){
    .piece-detail{
        flex-direction: column;
        gap: 24px;
    }

    .piece-main-image{
        height: 300px;
    }
}

.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.8rem;
    cursor: pointer;
}

body.no-scroll{
    overflow: hidden;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .site-title {
        font-size: 1.6rem;
    }

    nav.open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    nav.open a {
        font-size: 2rem;
    }

    .nav-close {
        display: block;
    }
}

@media (min-width: 901px){
    header{
        justify-content: flex-start;
        gap: 40px;
    }

    .nav-toggle,
    .nav-close{
        display: none;
    }

    .site-title{
        position: static;
        transform: none;
        font-size: 2.2rem;
        order: 1;
    }

    .site-title:hover{
        transform: scale(1.04);
    }

    nav{
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        background: none;
        padding: 0;
        box-shadow: none;
        animation: none;
        opacity: 1;
        order: 2;
    }

    nav a{
        font-size: 1.05rem;
        padding: 6px 4px;
        animation: none;
        opacity: 1;
    }

    .social-link{
        margin-left: auto;
        order: 3;
    }
}

/* Footer */
.site-footer{ padding: 32px 20px; border-top: 1px solid #e2e2e2; }
.footer-inner{ max-width: 1050px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-col p{ margin: 0 0 6px; }
.footer-brand{ font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.footer-heading{ font-weight: 600; }
.footer-links{ display: flex; flex-direction: column; gap: 8px; }
.footer-links a{ color: var(--color-text); text-decoration: none; }
.footer-links a:hover{ color: var(--color-accent); text-decoration: underline; }
.newsletter-form{ flex-direction: row; gap: 8px; max-width: 320px; }
.newsletter-form input{ flex: 1; min-width: 0; }
.form-status{ min-height: 1.2em; font-size: 0.9rem; color: var(--color-muted); }
.visually-hidden{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gallery filters */
.gallery-filters{ grid-column: 1/-1; display: flex; gap: 10px; }
.filter-btn{ background: none; color: var(--color-text); border: 1px solid #ccc; padding: 8px 18px; border-radius: 20px; }
.filter-btn:hover{ background: rgba(0, 0, 0, 0.06); }
.filter-btn.active{ background: var(--color-text); color: #ffffff; border-color: var(--color-text); }
.piece[hidden]{ display: none; }

/* Commission steps and info pages */
.commission-steps{ padding-left: 22px; line-height: 1.6; }
main.container.info-page{ max-width: 800px; }
.info-page h2{ margin-top: 40px; }
.info-page ul{ list-style-type: disc; line-height: 1.6; }

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{ outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Additions */
.piece-sold-message + .buy-button{ margin-top: 16px; }
.form-note{ font-size: 0.8rem; color: var(--color-muted); line-height: 1.4; max-width: 320px; }
.noscript-note{ grid-column: 1/-1; }

@media (prefers-reduced-motion: reduce){
    body, nav.open, nav.open a{ animation: none; opacity: 1; }
    .hero-scroll-track{ animation: none; }
    *{ transition: none !important; }
}

/* Header logo */
.site-title{ line-height: 0; }
.site-logo{ display: block; height: 52px; width: auto; }
@media (min-width: 901px){
    .site-logo{ height: 68px; }
}
.footer-brand img{ display: block; height: 44px; width: auto; }
