@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/static/fonts/cormorant-garamond.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/static/fonts/cormorant-garamond-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: Georgia, 'Times New Roman', serif;
    --font-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --c-black: #111111;
    --c-dim: #555555;
    --c-border: #E8E8E8;
    --c-bg: #FFFFFF;
    --c-muted: #AAAAAA;
    --max-width: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--c-black);
    background: var(--c-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Header --- */
.site-header {
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(4px);
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: var(--c-black);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-desktop {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-desktop a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-dim);
    transition: color 150ms;
}

.nav-desktop a:hover {
    color: var(--c-black);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--c-muted);
}

.lang-switcher a {
    color: var(--c-muted);
    text-decoration: none;
    transition: color 200ms;
}

.lang-switcher a:hover {
    color: var(--c-black);
}

.lang-switcher strong {
    color: var(--c-black);
    font-weight: 600;
}

.hamburger {
    font-size: 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-black);
    -webkit-tap-highlight-color: transparent;
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms, visibility 200ms;
}

.nav-open .nav-overlay {
    visibility: visible;
    opacity: 1;
}

.nav-overlay-inner {
    text-align: center;
    position: relative;
    width: 100%;
    padding: 2rem;
}

.nav-close {
    position: absolute;
    top: -2rem;
    right: 1rem;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-black);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.nav-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-overlay nav a {
    font-family: var(--font-ui);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-black);
    padding: 0.5rem 1rem;
    -webkit-tap-highlight-color: transparent;
}

.nav-overlay-lang {
    margin-top: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--c-muted);
}

.nav-overlay-lang a {
    color: var(--c-muted);
    text-decoration: none;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.nav-overlay-lang a:hover {
    color: var(--c-black);
}

.nav-overlay-lang strong {
    color: var(--c-black);
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: var(--c-border);
    margin: 0.5rem 2rem;
}

/* --- Hero --- */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1rem 3rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--c-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Collections Grid --- */
.collections-grid-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.collection-card {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-border);
}

.card-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease, transform 300ms ease;
}

.card-slide.active {
    opacity: 1;
}

.card-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: 1;
    pointer-events: none;
}

.collection-card:hover .card-slideshow::after {
    opacity: 1;
}

.collection-card:hover .card-slide.active {
    transform: scale(1.03);
}

.collection-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

.item-count {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--c-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Collection/Tag Page --- */
.collection-header, .tag-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem 1.5rem;
}

.collection-header h1, .tag-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
}

.collection-description {
    color: var(--c-dim);
    margin-top: 0.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem 0;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.breadcrumb a {
    color: var(--c-muted);
    transition: color 150ms;
}

.breadcrumb a:hover {
    color: var(--c-black);
}

/* --- Item Detail --- */
.item-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    gap: 2.5rem;
}

.item-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.item-figure {
    cursor: zoom-in;
    order: 1;
}

.item-figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 150ms ease;
}

.item-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    order: 2;
}

.item-thumb {
    display: block;
    width: 56px;
    height: 56px;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 200ms, border-color 200ms, transform 200ms;
}

.item-thumb.active {
    opacity: 1;
    border-color: var(--c-black);
}

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

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-info h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.item-dimensions {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--c-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag-chip {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid #CCCCCC;
    border-radius: 2px;
    padding: 0.2rem 0.6rem;
    color: var(--c-dim);
    transition: color 150ms, border-color 150ms;
}

.tag-chip:hover {
    color: var(--c-black);
    border-color: var(--c-black);
}

.item-description {
    margin-top: 0.5rem;
    max-width: 600px;
    line-height: 1.7;
    color: var(--c-dim);
}

.item-back {
    margin-top: auto;
    padding-top: 2rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--c-dim);
    transition: color 150ms;
}

.item-back:hover {
    color: var(--c-black);
}

/* --- Item Nav (prev/next) --- */
.item-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem 4rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--c-border);
    padding-top: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.item-nav a {
    color: var(--c-dim);
    transition: color 150ms;
}

.item-nav a:hover {
    color: var(--c-black);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--c-border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
}

.footer-columns {
    display: grid;
    gap: 2.5rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-dim);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-bottom: 0.4rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.footer-info a {
    color: var(--c-dim);
}

.footer-info a:hover {
    color: var(--c-black);
}

.contact-form {
    margin-bottom: 2rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-dim);
    margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    background: var(--c-bg);
    color: var(--c-black);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--c-black);
    outline-offset: 2px;
}

.btn-primary {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--c-black);
    color: var(--c-bg);
    border: none;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    border-radius: 2px;
    transition: opacity 180ms, transform 180ms;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-feedback {
    margin-top: 1rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.form-feedback.success {
    color: #2e7d32;
}

.form-feedback.error {
    color: #c62828;
}

.form-success {
    color: #2e7d32;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.form-error {
    color: #c62828;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.footer-social a {
    color: var(--c-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--c-black);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    border-top: 1px solid var(--c-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--c-muted);
}

.credit {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--c-muted);
}

.credit a {
    color: var(--c-muted);
    text-decoration: underline;
}

.credit a:hover {
    color: var(--c-dim);
}

.footer-legal {
    font-family: var(--font-ui);
    font-size: 0.7rem;
}

.footer-legal a {
    color: var(--c-muted);
    text-decoration: underline;
}

.footer-legal a:hover {
    color: var(--c-dim);
}

/* --- Legal Page --- */
.legal-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.legal-page .back-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--c-muted);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 150ms;
}

.legal-page .back-link:hover {
    color: var(--c-black);
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.legal-content {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-dim);
}

/* --- Error Page --- */
.error-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1rem;
    text-align: center;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 400;
}

.error-page p {
    margin: 1rem 0 2rem;
    color: var(--c-dim);
}

.error-link {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-dim);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 0.2rem;
    transition: color 150ms, border-color 150ms;
}

.error-link:hover {
    color: var(--c-black);
    border-color: var(--c-black);
}

.empty {
    text-align: center;
    color: var(--c-dim);
    padding: 3rem 0;
}

/* --- Mobile-specific --- */
@media (max-width: 767px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .item-info h1 {
        font-size: 1.6rem;
    }

    .breadcrumb {
        padding-top: 1.2rem;
        font-size: 0.72rem;
    }

    .collection-header h1, .tag-header h1 {
        font-size: 1.6rem;
    }

    .item-nav {
        padding-bottom: 2rem;
        font-size: 0.8rem;
    }

    .item-nav a {
        padding: 0.5rem 0;
    }

    .footer-brand {
        font-size: 1.4rem;
    }

    .footer-heading {
        font-size: 1.3rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.6rem;
        min-width: 44px;
        min-height: 44px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.6rem;
        padding: 1.5rem 0.5rem;
    }
}

/* --- Desktop --- */
@media (min-width: 640px) {
    .header-inner {
        padding: 0.8rem 2rem;
    }
    .hero {
        padding: 5rem 2rem 4rem;
    }
    .collections-grid-section,
    .collection-header,
    .tag-header,
    .item-detail,
    .item-nav,
    .breadcrumb,
    .legal-page,
    .footer-inner,
    .footer-bottom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    .nav-desktop {
        display: flex;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
    .item-detail {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
        gap: 3rem;
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }
    .item-gallery {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }
    .item-thumbnails {
        flex-direction: column;
        order: -1;
    }
    .item-figure {
        order: 0;
    }
    .item-figure img {
        max-height: 75vh;
        width: auto;
        max-width: 100%;
    }
    .item-info h1 {
        font-size: 2.4rem;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0.8rem 3rem;
    }
    .hero {
        padding: 6rem 3rem 5rem;
    }
    .collections-grid-section,
    .collection-header,
    .tag-header,
    .item-detail,
    .item-nav,
    .breadcrumb,
    .legal-page,
    .footer-inner,
    .footer-bottom {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}
