@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/fonts/inter-latin-300.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/inter-latin-500.woff2") format("woff2");
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/playfair-display-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/playfair-display-latin-400-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/playfair-display-latin-600.woff2") format("woff2");
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf9f6;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Header & Nav */
header,
.site-header {
    text-align: center;
    padding: 3.25rem 1.5rem 1.5rem;
}

header h1,
.site-header h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.85rem);
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.home-link {
    white-space: nowrap;
}

.is-home .site-header {
    padding-bottom: 1rem;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.35rem 1.85rem;
}

nav a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    color: #555;
    transition: border-color 0.3s ease, color 0.3s ease;
}

nav a:hover, nav a.active {
    border-bottom: 1px solid #333;
    color: #333;
}

/* Layouts */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.home-main {
    max-width: none;
    padding: 0 0 3rem;
}

.current-face {
    margin: 0 0 2.75rem;
    content-visibility: visible;
    contain-intrinsic-size: none;
}

.current-face-media {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-transform: none;
    letter-spacing: 0;
}

.current-face-media:focus {
    outline: 2px solid #333;
    outline-offset: 6px;
}

.current-face-media:focus:not(:focus-visible) {
    outline: none;
}

.current-face-media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 86vh;
    margin: 0 auto;
    animation: face-in 0.9s ease both;
}

@keyframes face-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.current-face-copy {
    max-width: 42rem;
    margin: 1.35rem auto 0;
    padding: 0 1.5rem;
    text-align: center;
}

.current-face-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #555;
}

.current-face-copy h2 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    margin: 0 0 0.45rem;
}

.current-face-copy h2 a:hover {
    border-bottom: 1px solid #333;
}

.current-face-copy .details {
    margin: 0 0 0.85rem;
}

.current-face-copy .inquire-link {
    display: inline-block;
}

.gallery-rest-label {
    max-width: 1200px;
    margin: 0 auto 1.1rem;
    padding: 0 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
}

.home-main .gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Gallery — CSS grid keeps visual order equal to reading order */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.gallery-kicker {
    max-width: 36rem;
    margin: 0 0 2rem;
}

.gallery-kicker h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gallery-kicker p,
.gallery-empty {
    color: #555;
}

.gallery-empty {
    margin: 2rem 0 4rem;
}

.item-header h3 a:hover {
    border-bottom: 1px solid #333;
}

.artwork-page {
    max-width: 900px;
}

.artwork-back {
    margin-bottom: 1.5rem;
}

.artwork-back a {
    color: #555;
    border-bottom: 1px solid transparent;
}

.artwork-back a:hover {
    border-bottom-color: #333;
}

.artwork-figure {
    margin: 0 0 1.5rem;
}

.artwork-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.artwork-meta .item-header {
    margin-bottom: 0.5rem;
}

.artwork-meta .inquire-link {
    display: inline-block;
    margin-top: 1rem;
}

.story-page {
    max-width: 980px;
}

.story-hero {
    margin: 0 0 2.5rem;
}

.story-hero h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.story-hero p,
.story-chapter p,
.story-note,
.story-meta {
    color: #555;
    line-height: 1.75;
}

.story-portrait {
    margin: 0 0 3rem;
}

.story-portrait img,
.story-work img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.story-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid #e0dbd2;
}

.story-entry {
    position: relative;
    padding: 0 0 2.75rem 1.4rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
}

.story-entry::before {
    content: "";
    position: absolute;
    left: -0.3rem;
    top: 0.35rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #333;
}

.story-year {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
}

.story-entry-body {
    display: grid;
    gap: 1rem 1.5rem;
}

.story-work {
    display: block;
    min-width: 0;
}

.story-entry-copy {
    min-width: 0;
}

.story-work-title {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}

.story-work-title:hover {
    border-bottom: 1px solid #333;
}

.story-meta {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
}

.story-note {
    margin: 0;
    max-width: 28rem;
}

@media (min-width: 900px) {
    .story-entry-body {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: start;
    }

    .story-entry-copy {
        padding-top: 0.35rem;
    }
}

.story-chapter {
    margin: 2rem 0 3.25rem;
}

.story-chapter h3 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
}

.gallery-item {
    min-width: 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

.gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    color: inherit;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font: inherit;
}

.gallery-open:hover {
    background: none;
}

.gallery-open:focus {
    outline: 2px solid #333;
    outline-offset: 6px;
}

.gallery-open:focus:not(:focus-visible) {
    outline: none;
}

.gallery-open img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-open:hover img {
    transform: scale(1.02);
}

.item-info {
    padding-top: 0.8rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.item-header h3 {
    font-size: 1.15rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    color: #222;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    white-space: nowrap;
}

.status-badge.available {
    background-color: #eaf3ed;
    color: #2e6930;
    border: 1px solid #d0e7d5;
}

.status-badge.available::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2e6930;
}

.status-badge.sold {
    background-color: #f2f2f2;
    color: #777;
    border: 1px solid #e0e0e0;
}

.status-badge.private {
    background-color: #f7f5f0;
    color: #8c7b64;
    border: 1px solid #e8e2d5;
}

.status-badge.in-progress {
    background-color: #eff5fa;
    color: #2a6f97;
    border: 1px solid #d3e4f0;
}

.item-info .details {
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inquire-link {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

.inquire-link[hidden] {
    display: none !important;
}

.lightbox-inquire {
    color: #fff;
    border-bottom-color: #fff;
    margin-top: 0.85rem;
}

/* About Section */
.about-container {
    max-width: 850px;
}

.bio {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.profile-pic {
    width: 45%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.bio-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bio-text p {
    margin-bottom: 1rem;
    color: #555;
}

/* Contact Form */
.contact {
    scroll-margin-top: 1.5rem;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact p {
    color: #555;
    margin-bottom: 2rem;
}

.form-success,
.contact p.form-success {
    color: #5a6b5c;
    font-size: 0.95rem;
    margin: -0.5rem 0 1.25rem;
}

.form-hint,
.form-error,
.contact p.form-hint,
.contact p.form-error {
    color: #8a7a72;
    font-size: 0.9rem;
    margin: -0.5rem 0 1.25rem;
}

.hp {
    display: none !important;
}

.inquire-painting {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e0d8;
    background: #faf8f4;
}

.inquire-painting img {
    width: 4.75rem;
    height: 4.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.inquire-kicker {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #555;
}

.inquire-painting h3 {
    margin: 0.15rem 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

input, textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    background-color: transparent;
    font-family: inherit;
    border-radius: 2px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #333;
}

button {
    padding: 1rem 2rem;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #111;
}

/* Frames Section */
.frames-container {
    max-width: 800px;
}

.frames-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.frames-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.frames-grid {
    display: flex;
    justify-content: center;
}

.frame-content {
    width: 100%;
}

.frame-content img {
    max-height: 580px;
    width: auto;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
    margin: 0 auto 2.5rem;
    display: block;
}

.frame-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.frame-content p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #5c5c5c;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bio {
        flex-direction: column;
    }
    .profile-pic {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    header,
    .site-header {
        padding: 2rem 1.1rem 1rem;
    }
    header h1,
    .site-header h1 {
        font-size: 1.35rem;
        letter-spacing: 0.14em;
    }
    nav {
        gap: 0.85rem 1.2rem;
    }
    .home-main .gallery,
    .gallery-rest-label {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
    .current-face-copy {
        padding: 0 1.1rem;
        text-align: left;
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.94);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
}

.lightbox-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 75vh;
}

#lightbox-img {
    max-width: 88vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.lightbox-caption {
    width: 100%;
    max-width: 600px;
    margin-top: 1.2rem;
    text-align: center;
    color: #fff;
}

.lightbox-caption .caption-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.35rem;
}

.lightbox-caption h3 {
    font-size: 1.35rem;
    font-family: 'Playfair Display', serif;
    color: #fff;
}

.lightbox-caption .details {
    font-size: 0.85rem;
    color: #bbb;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1002;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.lightbox-close {
    top: -45px;
    right: 0;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 45%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 8px;
        background: rgba(0, 0, 0, 0.5);
    }
    .lightbox-next {
        right: 8px;
        background: rgba(0, 0, 0, 0.5);
    }
    .lightbox-close {
        top: -45px;
        right: 5px;
    }
    .lightbox-caption h3 {
        font-size: 1.15rem;
    }
}

.subscribe {
    max-width: 28rem;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1rem;
}

.subscribe h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    margin: 0 0 0.4rem;
}

.subscribe p {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.subscribe .form-success {
    color: #5a6b5c;
}

.subscribe .form-hint {
    color: #8a7a72;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem;
}

.subscribe-form button {
    padding: 0.75rem 1.15rem;
    white-space: nowrap;
}

.notice-page {
    max-width: 36rem;
    margin: 3rem auto 4rem;
    text-align: center;
}

.notice-page h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.notice-page a {
    text-decoration: underline;
}

.privacy-page {
    text-align: left;
}

.privacy-page p {
    margin-bottom: 1rem;
    color: #555;
}

.privacy-note {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
}

.privacy-note a {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .subscribe-form {
        flex-direction: column;
    }
}
