:root {
  color-scheme: light;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #050505;
  --page-width: 1920px;
  --gutter: clamp(24px, 4.17vw, 80px);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #fff; }

body {
  max-width: var(--page-width);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
}

.site-header {
  height: 12.55vw;
  min-height: 92px;
  max-height: 241px;
  padding: 0 2.1%;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  height: 100%;
}

.nav-link {
  justify-self: center;
  color: inherit;
  font-size: clamp(34px, 5vw, 96px);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 160ms ease;
}

.nav-link[aria-current="page"] { font-weight: 700; }
.nav-link:hover, .nav-link:focus-visible { opacity: 0.58; }
.nav-link:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.home-main {
  padding: 8.28vw 0 10vw var(--gutter);
}

.artwork {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}

.artwork img {
  display: block;
  width: 100%;
  height: auto;
}

.home-artwork { width: min(38.125vw, 732px); }

.work-main {
  padding-top: 7.65vw;
  overflow: hidden;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.79fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 1.4vw, 27px);
  width: calc(100% - var(--gutter));
  margin-left: var(--gutter);
}

.work-item { min-width: 0; margin: 0; }
.work-item-first { margin-top: 4.9vw; }
.work-item .artwork { overflow: hidden; }
.work-item-first img { aspect-ratio: 853 / 1066; object-fit: cover; }
.work-item-second img { aspect-ratio: 4 / 5; object-fit: cover; }

.work-item figcaption {
  margin-top: 38px;
  font-size: clamp(20px, 2.08vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.info-main { padding: 4.1vw var(--gutter) 10vw; }

.contact-details {
  margin: 0;
  font-size: clamp(23px, 3.33vw, 64px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.28;
}

.contact-details p { margin: 0; }
.contact-details p + p { margin-top: 1.85em; }
.contact-details a { color: inherit; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 0.12em; }

.lightbox {
  position: fixed;
  inset: 0;
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 94vh;
  padding: 24px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.lightbox::backdrop { background: rgb(0 0 0 / 88%); }
.lightbox-image { display: block; max-width: 100%; max-height: calc(94vh - 48px); margin: auto; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #000;
  background: #fff;
  font: 36px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

@media (min-width: 1921px) {
  .site-header { height: 241px; }
}

@media (max-width: 700px) {
  .site-header { height: 104px; min-height: 0; padding-inline: 12px; }
  .nav-link { font-size: clamp(23px, 7.5vw, 38px); }
  .home-main { padding: 52px 24px 80px; }
  .home-artwork { width: min(100%, 480px); }
  .work-main { padding-top: 48px; }
  .work-grid { grid-template-columns: 1fr; gap: 42px; width: auto; margin: 0 24px; }
  .work-item-first { margin-top: 0; }
  .work-item-first .artwork, .work-item-second .artwork { max-width: 520px; }
  .work-item-first img, .work-item-second img { aspect-ratio: auto; object-fit: contain; }
  .work-item figcaption { margin-top: 12px; font-size: 22px; }
  .info-main { padding: 48px 24px 80px; }
  .contact-details { font-size: clamp(23px, 6.1vw, 34px); line-height: 1.36; overflow-wrap: anywhere; }
  .contact-details p + p { margin-top: 1.8em; }
}

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