:root {
  --ink: #141414;
  --muted: #73716d;
  --line: #e9e8e4;
  --bone: #f7f6f2;
  --white: #fff;
  --max-width: 1480px;
  --page-gutter: clamp(1.25rem, 3vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, var(--max-width));
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--page-gutter);
}

.wordmark {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-size: 0.78rem;
}

nav a,
.footer-links a {
  position: relative;
}

nav a::after,
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-inquire {
  border: 1px solid rgba(20, 20, 20, 0.22);
  padding: 0.35rem 0.7rem;
}

.nav-inquire::after {
  display: none;
}

.hero {
  display: grid;
  width: min(100%, var(--max-width));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(7rem, 11vw, 10rem) var(--page-gutter) clamp(3rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.97;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 6.7vw, 7.3rem);
}

h1 em,
h2 em {
  font-weight: 400;
}

.hero-intro {
  max-width: 29rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 1.5rem;
  color: #4f4e4a;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.text-link span {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.text-link:hover span {
  transform: translateY(3px);
}

.hero-image {
  margin: 0;
  align-self: stretch;
}

.hero-image picture {
  height: calc(100dvh - clamp(10rem, 16vw, 14rem));
  min-height: 540px;
}

.hero-image img {
  height: 100%;
  object-fit: cover;
}

.hero-image figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.work-section {
  padding: clamp(7rem, 12vw, 12rem) var(--page-gutter);
  background: var(--bone);
}

.section-heading,
.gallery {
  width: min(100%, calc(var(--max-width) - var(--page-gutter) * 2));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.section-heading h2,
.prints-section h2 {
  font-size: clamp(3rem, 5.5vw, 5.8rem);
}

.filters {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.filter-button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 0.2rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  transition: color 200ms ease, border-color 200ms ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4.5vw, 5rem) clamp(1rem, 2vw, 2rem);
}

.photo {
  display: block;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  cursor: zoom-in;
  grid-column: span 5;
}

.photo:nth-child(4n + 1) {
  grid-column: 1 / span 7;
}

.photo:nth-child(4n + 2) {
  grid-column: 9 / span 4;
  margin-top: 8rem;
}

.photo:nth-child(4n + 3) {
  grid-column: 2 / span 4;
}

.photo:nth-child(4n + 4) {
  grid-column: 7 / span 6;
  margin-top: 5rem;
}

.photo img {
  background: #e8e7e3;
  transition: opacity 500ms ease;
}

.photo picture {
  overflow: hidden;
}

.photo-wide img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-tall img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.photo:hover img {
  opacity: 0.92;
}

.photo span {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 0.75rem;
}

.photo b {
  font-size: 0.78rem;
  font-weight: 500;
}

.photo small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.67rem;
}

.photo.is-hidden {
  display: none;
}

.about-section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(8rem, 14vw, 15rem) var(--page-gutter);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.6fr);
  gap: clamp(4rem, 10vw, 11rem);
}

.about-grid h2 {
  max-width: 17ch;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
}

.about-copy {
  align-self: end;
  max-width: 29rem;
  color: #4f4e4a;
}

.about-copy p {
  margin: 0 0 1.25rem;
}

.prints-section {
  display: grid;
  min-height: 82dvh;
  background: var(--bone);
  grid-template-columns: 1.1fr 0.9fr;
}

.print-image img {
  width: 100%;
  height: 100%;
  max-height: 88dvh;
  object-fit: cover;
}

.print-copy {
  align-self: center;
  max-width: 35rem;
  padding: clamp(4rem, 9vw, 10rem);
}

.print-copy > p:not(.eyebrow) {
  max-width: 30rem;
  margin: 2rem 0;
  color: #55534f;
}

.button {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 0.78rem 1.1rem;
  color: var(--white);
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  transition:
    color 250ms ease,
    background 250ms ease,
    transform 250ms ease;
}

.button:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-1px);
}

footer {
  display: grid;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 4rem var(--page-gutter) 2rem;
  grid-template-columns: 1fr auto;
  gap: 4rem;
}

footer p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 1.25rem;
  color: var(--white);
  background: rgba(12, 12, 12, 0.97);
}

.lightbox::backdrop {
  background: rgba(12, 12, 12, 0.97);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  border: 0;
  padding: 0.5rem;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  transition: opacity 200ms ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-close svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.lightbox-close:focus-visible {
  outline-color: #fff;
  outline-offset: 4px;
}

.lightbox-stage {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.lightbox-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
}

.lightbox-caption p {
  margin: 0;
}

.lightbox-caption small {
  color: #aaa;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-image {
    width: calc(100% + var(--page-gutter) * 2);
    margin-left: calc(var(--page-gutter) * -1);
  }

  .hero-image picture {
    height: 68vh;
    min-height: 460px;
  }

  .hero-image figcaption {
    padding: 0 var(--page-gutter);
  }

  .gallery {
    gap: 3rem 1.25rem;
  }

  .photo:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-copy {
    max-width: 36rem;
  }

  .prints-section {
    grid-template-columns: 1fr;
  }

  .print-image img {
    max-height: 75vh;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 1.1rem;
  }

  nav {
    gap: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 8.5rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.2rem);
  }

  .hero-image picture {
    height: 63vh;
    min-height: 400px;
  }

  .section-heading {
    display: block;
  }

  .filters {
    position: relative;
    margin-top: 2.5rem;
    gap: 1.25rem;
    overflow-x: auto;
    mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
  }

  .filters::after {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0.5rem;
    width: 2rem;
    pointer-events: none;
    content: "";
  }

  .gallery {
    display: block;
  }

  .photo:nth-child(n) {
    width: 100%;
    margin: 0 0 3.5rem;
  }

  .photo:nth-child(3n + 2) {
    width: 78%;
    margin-left: auto;
  }

  .photo:nth-child(3n + 3) {
    width: 84%;
  }

  .about-grid h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .print-copy {
    padding: 4.5rem var(--page-gutter) 5rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
