@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap");

@font-face {
    font-family: "Garet";
    src: url("/assets/fonts/garet/Garet-Book.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fff;
    --ink: #111;
    --muted: #666;
    --line: #e7e7e7;
    --soft: #f7f7f7;
    --overlay: rgba(0, 0, 0, 0.78);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color: var(--ink);
    font-family: "Garet", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

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

:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    transform: translateY(-150%);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 0.45rem 0.65rem;
}

.skip-link:focus {
    transform: translateY(0);
}

.background-stage {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #000 url("/assets/images/background.jpeg") center / cover no-repeat;
}

.is-home .background-stage {
    z-index: 0;
}

.is-home .home-shell {
    position: relative;
    z-index: 1;
}

.background-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
}

.is-internal .background-stage {
    display: none;
}

.background-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1800ms ease;
}

.background-stage img.is-active {
    opacity: 1;
}

.site-nav {
    position: fixed;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    z-index: 30;
    display: grid;
    gap: 1rem;
    width: min(180px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: right;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.artist-mark {
    text-decoration: none;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink);
}

.is-home .artist-mark,
.is-home .site-menu a {
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.site-menu {
    display: grid;
    gap: 0.52rem;
    justify-items: end;
}

.site-menu a {
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--ink);
    transition: opacity 160ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a[aria-current="page"] {
    opacity: 0.55;
}

.language-link {
    margin-top: 0.35rem;
    font-weight: 700;
}

.is-home .site-nav {
    display: block;
    top: auto;
    right: auto;
    bottom: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    width: min(72vw, 780px);
    max-height: none;
    overflow: visible;
    text-align: left;
}

.is-home .artist-mark {
    display: block;
    font-size: clamp(1.4rem, 4vw, 4.2rem);
    line-height: 0.9;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.is-home .site-menu {
    position: fixed;
    top: clamp(1.5rem, 4vw, 3rem);
    right: clamp(1rem, 3vw, 2.2rem);
    display: grid;
    justify-items: end;
    gap: 0.78rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    text-align: right;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.site-menu::-webkit-scrollbar {
    display: none;
}

.menu-toggle {
    display: none;
}

.home-shell {
    min-height: 100vh;
}

.page-shell {
    width: min(980px, calc(100% - 10rem));
    min-height: 100vh;
    margin-left: clamp(1.5rem, 7vw, 7rem);
    padding: clamp(5rem, 9vw, 7rem) 0 6rem;
}

.page-header {
    margin-bottom: 1.6rem;
}

.page-header h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

.page-text {
    max-width: 720px;
}

.prose,
.contact-grid,
.empty-state {
    padding: 0;
    background: transparent;
}

.prose p,
.contact-grid p,
.content-entry p,
.other-card p,
.modal-copy p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.65;
}

.page-portrait {
    width: min(360px, 100%);
    margin-bottom: 1.4rem;
}

.empty-state {
    display: inline-block;
    color: var(--muted);
}

.art-grid {
    columns: 3 220px;
    column-gap: 1rem;
}

.art-tile {
    position: relative;
    display: block;
    width: 100%;
    break-inside: avoid;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.art-tile img {
    width: 100%;
    transition: filter 180ms ease;
}

.art-tile span {
    position: absolute;
    right: 0.6rem;
    bottom: 0.55rem;
    left: 0.6rem;
    display: grid;
    gap: 0.1rem;
    opacity: 0;
    text-align: right;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
    transition: opacity 180ms ease;
}

.art-tile:hover img,
.art-tile:focus-visible img {
    filter: brightness(0.82);
}

.art-tile:hover span,
.art-tile:focus-visible span {
    opacity: 1;
}

.art-tile strong,
.project-row strong {
    display: block;
    font-weight: 700;
}

.art-tile em,
.project-row em,
.muted {
    display: block;
    font-style: normal;
    color: var(--muted);
}

.art-tile em {
    color: rgba(255, 255, 255, 0.82);
}

.project-list,
.press-list,
.video-list,
.text-list {
    display: grid;
    gap: 1.2rem;
}

.project-row,
.press-list article,
.content-entry {
    display: grid;
    grid-template-columns: minmax(120px, 240px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1.2rem;
    background: transparent;
    text-align: left;
    color: var(--ink);
}

.project-row {
    cursor: pointer;
}

.project-row img,
.press-list img,
.content-entry img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-row span,
.press-list article > div {
    background: transparent;
    padding: 0;
}

.press-list article > div:only-child,
.content-entry > div:only-child {
    grid-column: 1 / -1;
}

.project-row strong,
.press-list h2,
.content-entry h2,
.other-card h2 {
    margin: 0 0 0.35rem;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
}

.text-link {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form {
    display: grid;
    gap: 0.65rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.65rem;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form button,
.modal-close,
.image-nav button {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
}

.instagram-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

.instagram-strip a {
    border-bottom: 1px solid currentColor;
    text-decoration: none;
}

.video-entry {
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
}

.video-entry iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: var(--soft);
}

.other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.other-card {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.other-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 0.7rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: clamp(0.8rem, 2vw, 1.5rem);
    background: var(--overlay);
}

.modal-dialog {
    position: relative;
    display: grid;
    width: min(1280px, 100%);
    max-height: min(92vh, 900px);
    overflow: hidden;
    background: #000;
}

.modal-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.modal-media button {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.modal-dialog img {
    width: 100%;
    max-height: 92vh;
    object-fit: contain;
    background: #000;
}

.modal-copy {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: min(360px, calc(100% - 1.5rem));
    padding: 0.65rem 0.75rem;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    text-align: right;
}

.modal-copy h2 {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
}

.modal-copy p,
.modal-copy .muted {
    margin-bottom: 0.28rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    line-height: 1.35;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.6rem;
}

.image-nav {
    display: flex;
    justify-content: end;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.image-nav button {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 1ms;
        animation-duration: 1ms;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        position: fixed;
        top: 0.8rem;
        right: 0.8rem;
        z-index: 45;
        display: grid;
        gap: 0.22rem;
        width: 40px;
        height: 40px;
        place-content: center;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.86);
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 1px;
        background: var(--ink);
    }

    .site-nav {
        inset: 0;
        display: none;
        width: auto;
        max-height: none;
        place-content: center;
        gap: 1rem;
        padding: 4rem 1.5rem;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.97);
        text-align: center;
    }

    .is-home .site-nav {
        inset: 0;
        display: none;
        width: auto;
        max-height: none;
        padding: 4rem 1.5rem;
        overflow-y: auto;
        text-align: center;
    }

    body.menu-open .site-nav {
        display: grid;
    }

    .site-menu {
        justify-items: center;
        gap: 0.72rem;
    }

    .is-home .site-menu {
        position: static;
        display: grid;
        justify-items: center;
        max-height: none;
        overflow: visible;
        text-align: center;
    }

    .site-menu a,
    .is-home .site-menu a,
    .is-home .artist-mark {
        color: var(--ink);
        text-shadow: none;
    }

    .is-home .artist-mark {
        font-size: clamp(1rem, 8vw, 2.6rem);
        letter-spacing: 0.18em;
    }

    .page-shell {
        width: min(100% - 2rem, 760px);
        margin: 0 auto;
        padding-top: 5rem;
    }

    .contact-grid,
    .project-row,
    .press-list article,
    .content-entry,
    .video-entry {
        grid-template-columns: 1fr;
    }

    .art-grid {
        columns: 1;
    }

    .modal-copy {
        right: 0.5rem;
        bottom: 0.5rem;
    }
}
