:root {
    --paper: #f1f0ec;
    --ink: #151515;
    --muted: #666560;
    --line: #cbc9c2;
    --page-gutter: clamp(18px, 3vw, 52px);
    --row-height: clamp(190px, 22vw, 430px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

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

.site-header,
main,
.site-footer {
    width: 100%;
    max-width: 1800px;
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    border-bottom: 1px solid var(--line);
}

.brand,
.site-nav,
.copyright {
    font-size: 11px;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow,
.collection-number,
.collection-count,
figcaption {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand {
    font-weight: 700;
}

.site-nav {
    display: flex;
    gap: clamp(18px, 3vw, 42px);
}

.site-nav a,
.site-nav [aria-current="page"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 4px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--muted);
}

.site-nav [aria-current="page"] {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    column-gap: 40px;
    align-items: end;
    min-height: min(720px, 72vh);
    padding-block: clamp(90px, 13vw, 210px) clamp(72px, 10vw, 150px);
}

.intro .eyebrow {
    grid-column: 1 / -1;
    align-self: start;
    margin: 0 0 48px;
    color: var(--muted);
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(48px, 7.6vw, 132px);
    font-weight: 400;
    line-height: .91;
    letter-spacing: -.035em;
}

.intro-text {
    max-width: 380px;
    margin-bottom: .25em;
    color: var(--muted);
    font-size: clamp(15px, 1.3vw, 20px);
    line-height: 1.45;
}

.collection {
    scroll-margin-top: 24px;
}

#works {
    --row-height: clamp(190px, 26vw, 430px);
}

.collection + .collection {
    margin-top: clamp(100px, 13vw, 210px);
}

.collection-header {
    display: grid;
    grid-template-columns: minmax(80px, .7fr) 2fr 1fr;
    gap: 24px;
    align-items: start;
    padding-block: 22px 34px;
    border-top: 1px solid var(--line);
}

.collection-number,
.collection-count {
    margin-bottom: 0;
    color: var(--muted);
}

.collection-count {
    justify-self: end;
}

.collection-header h2 {
    margin-bottom: 3px;
    font-size: clamp(30px, 3vw, 52px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.035em;
}

.collection-header div p {
    margin-bottom: 0;
    color: var(--muted);
}

.collection-page-link {
    display: inline-block;
    margin-top: 14px;
    border-bottom: 1px solid currentColor;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.collection-page-link:hover,
.collection-page-link:focus-visible,
.series-footer a:hover,
.series-footer a:focus-visible {
    color: var(--ink);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    align-items: flex-start;
}

.photo {
    flex-grow: var(--ratio);
    flex-basis: calc(var(--ratio) * var(--row-height));
    min-width: 180px;
    margin: 0;
}

@media (min-width: 761px) {
    .photo.is-orphan {
        flex-grow: 0;
    }
}

.photo-trigger {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.photo-trigger:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.photo img {
    display: block;
    width: 100%;
    height: auto;
    background: #deddd8;
}

figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 9px;
    color: var(--muted);
}

.lightbox-open {
    overflow: hidden;
    scrollbar-width: none;
}

.lightbox-open::-webkit-scrollbar {
    display: none;
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #111;
    color: var(--paper);
}

.lightbox::backdrop {
    background: #111;
}

.lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
}

.lightbox-figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 54px 82px 28px;
}

.lightbox-image {
    display: block;
    align-self: center;
    justify-self: center;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-image.is-loading {
    opacity: 0;
}

.lightbox-caption {
    width: min(100%, 1600px);
    justify-self: center;
    margin-top: 14px;
    color: #b5b3ad;
}

.lightbox-count {
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 24px;
    margin: 0;
    color: #b5b3ad;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .12em;
}

.lightbox-control {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    font: inherit;
    font-size: 28px;
}

.lightbox-control:hover,
.lightbox-control:focus-visible {
    color: #b5b3ad;
}

.lightbox-control:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

.lightbox-close {
    top: 8px;
    right: 10px;
    font-size: 34px;
    font-weight: 200;
}

.lightbox-previous,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-previous {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.site-footer {
    position: relative;
    min-height: 520px;
    margin-top: clamp(120px, 16vw, 260px);
    padding-top: 26px;
    padding-bottom: 34px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.site-footer .eyebrow {
    color: var(--muted);
}

.contact-lead {
    max-width: 920px;
    margin: clamp(82px, 11vw, 170px) 0 18px;
    font-size: clamp(38px, 6vw, 98px);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.035em;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    color: var(--muted);
}

.contact-links a {
    border-bottom: 1px solid currentColor;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: var(--ink);
}

.contact-page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.contact-page {
    display: flex;
    align-items: center;
    padding-block: clamp(90px, 13vw, 190px);
}

.contact-page > section {
    width: 100%;
}

.contact-page .eyebrow {
    margin-bottom: clamp(72px, 9vw, 130px);
    color: var(--muted);
}

.contact-title {
    max-width: 1180px;
    margin-bottom: 24px;
    font-size: clamp(48px, 7.6vw, 132px);
    font-weight: 400;
    line-height: .91;
    letter-spacing: -.035em;
}

.contact-footer {
    width: 100%;
    max-width: 1800px;
    margin-inline: auto;
    padding: 24px var(--page-gutter) 34px;
    border-top: 1px solid var(--line);
}

.contact-footer .copyright {
    position: static;
    margin: 0;
    text-align: right;
}

.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;
}

.series-page-shell {
    min-height: 100vh;
}

.series-page {
    padding-bottom: clamp(90px, 12vw, 180px);
}

.series-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    column-gap: 40px;
    align-items: end;
    padding-block: clamp(86px, 11vw, 180px) clamp(68px, 9vw, 140px);
}

.series-intro .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 42px;
    color: var(--muted);
}

.series-intro h1 {
    font-size: clamp(48px, 7vw, 118px);
}

.series-intro-copy {
    max-width: 520px;
    padding-bottom: .4em;
}

.series-subtitle {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.series-description {
    margin-bottom: 0;
    font-size: clamp(15px, 1.3vw, 20px);
    line-height: 1.5;
}

.series-gallery {
    --row-height: clamp(190px, 26vw, 430px);
}

.series-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1800px;
    margin-inline: auto;
    padding: 26px var(--page-gutter) 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.series-footer p {
    margin: 0;
}

.series-footer a {
    border-bottom: 1px solid currentColor;
}

.copyright {
    position: absolute;
    right: var(--page-gutter);
    bottom: 34px;
    margin: 0;
    color: var(--muted);
}

@media (max-width: 960px) {
    .intro {
        display: block;
        min-height: auto;
        padding-block: 92px 110px;
    }

    .intro .eyebrow {
        margin-bottom: 38px;
    }

    h1 {
        font-size: clamp(40px, 13vw, 76px);
    }

    .intro-text {
        margin-top: 36px;
    }

    .series-intro {
        display: block;
        padding-block: 92px 110px;
    }

    .series-intro .eyebrow {
        margin-bottom: 38px;
    }

    .series-intro-copy {
        margin-top: 36px;
        padding-bottom: 0;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 64px;
    }

    .site-nav {
        gap: 14px;
    }

    .collection-header {
        grid-template-columns: 42px 1fr;
        padding-block: 18px 28px;
    }

    .collection-count {
        display: none;
    }

    .gallery {
        display: block;
    }

    .photo {
        width: 100%;
        min-width: 0;
        margin-bottom: 28px;
    }

    .lightbox-figure {
        padding: 52px 12px 76px;
    }

    .lightbox-caption {
        padding-inline: 6px;
    }

    .lightbox-previous,
    .lightbox-next {
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .lightbox-previous {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .site-footer {
        min-height: 440px;
        margin-top: 120px;
    }

    .contact-page {
        align-items: start;
        padding-block: 92px 120px;
    }

    .contact-page .eyebrow {
        margin-bottom: 56px;
    }

    .contact-title {
        font-size: clamp(40px, 13vw, 76px);
    }

    .copyright {
        right: auto;
        left: var(--page-gutter);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
