:root {
  color-scheme: light;
  --ink: #253333;
  --paper: #f6f5f0;
  --muted: #596763;
  --line: #d4d9d3;
  --green: #456461;
  --gutter: clamp(16px, 4vw, 68px);
  --gap: clamp(9px, 1.15vw, 18px);
  --display: Manrope, Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
button { font: inherit; }
p, h1, h2 { margin: 0; }

.page-width {
  width: min(1512px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  padding: 0.65rem 1rem;
  background: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.masthead, .site-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-block;
  font: 700 1.8125rem/1 var(--display);
  letter-spacing: -0.058em;
}
.wordmark span { font-weight: 400; }

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 3vw, 43px);
  font-weight: 600;
}
.masthead nav > a:first-child:hover { text-decoration: underline; text-underline-offset: 4px; }

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font: 600 0.9375rem/1.25 var(--body);
  white-space: nowrap;
  transition: background-color 160ms, border-color 160ms, color 160ms;
}
.button:hover { background: var(--green); border-color: var(--green); }
.button--outline {
  min-height: 43px;
  padding-inline: 1.05rem;
  background: transparent;
  border-color: #aebbb4;
  color: var(--ink);
}
.button--outline:hover { color: #fff; }

.hero {
  min-height: clamp(430px, 43vw, 660px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 7px;
  background: #eeebea;
}

.hero__photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 29%;
  mask-image: linear-gradient(to right, transparent, #000 22%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 54%;
}

.hero__copy {
  padding: 36px 0 43px clamp(30px, 4.5vw, 76px);
}

.eyebrow {
  margin-bottom: clamp(12px, 1.65vw, 23px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.hero h1 {
  font: 600 clamp(3.9rem, 7.1vw, 7.6rem)/0.95 var(--display);
  letter-spacing: -0.085em;
  margin-left: -0.06em;
}

.hero__action {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
  margin-top: clamp(23px, 3vw, 44px);
}

.hero__action span, .gallery__heading p {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.hero__action span { padding-inline: 2px; }

.detail-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.876fr) minmax(0, 1.2fr);
  align-items: start;
  gap: var(--gap);
  margin-top: var(--gap);
}

.detail-frame {
  position: relative;
  display: block;
  aspect-ratio: var(--crop-width) / var(--crop-height);
  overflow: hidden;
  border-radius: 5px;
  background: #eae7e4;
  cursor: zoom-in;
}

.detail-frame img {
  position: absolute;
  width: calc(100% * 1535 / var(--crop-width));
  max-width: none;
  height: auto;
  left: calc(-100% * var(--crop-left) / var(--crop-width));
  top: calc(-100% * var(--crop-top) / var(--crop-height));
}

.gallery { padding-top: clamp(49px, 7vw, 112px); padding-bottom: clamp(50px, 7vw, 110px); }

.gallery__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: clamp(16px, 2.25vw, 30px);
}

.gallery__heading h2 {
  font: 600 clamp(2.25rem, 4.55vw, 4.65rem)/1.08 var(--display);
  letter-spacing: -0.076em;
}

.gallery__layout, .spread { display: grid; gap: var(--gap); }
.spread {
  min-width: 0;
  height: clamp(290px, 34.5vw, 520px);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.spread--feature-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.spread--trio-a, .spread--trio-b, .spread--trio-c {
  height: clamp(246px, 24vw, 372px);
}
.spread--trio-a { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); }
.spread--trio-b { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
.spread--trio-c { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); }
.spread--panorama {
  height: clamp(189px, 30vw, 480px);
  grid-template-columns: minmax(0, 1fr);
}
.spread--duet {
  height: clamp(285px, 30vw, 475px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #eae7e4;
  cursor: zoom-in;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 55%);
  transition: transform 300ms ease;
}
.tile:hover img { transform: scale(1.028); }

.tile__open {
  position: absolute;
  inset: auto 12px 12px auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 7px #25333324;
  font: 500 1.35rem/1 var(--body);
  opacity: 0;
  transition: opacity 160ms;
}
.tile:focus-visible .tile__open, .tile:hover .tile__open { opacity: 1; }

.portrait-feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  padding-bottom: clamp(34px, 5vw, 74px);
}

.portrait-feature figure {
  width: min(100%, 27rem);
  margin: 0 auto;
}

.portrait-feature img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.portrait-feature figcaption {
  margin-top: 16px;
  text-align: center;
}

@media (max-width: 600px) {
  .portrait-feature { grid-template-columns: minmax(0, 1fr); }
}

.lineups {
  display: grid;
  gap: var(--gap);
  padding-bottom: clamp(24px, 4vw, 64px);
}

.lineups a {
  display: block;
  background: #eae7e4;
  cursor: zoom-in;
}

.lineups a:focus-visible { outline-offset: -5px; }
.lineups img { width: 100%; height: auto; }

.site-footer {
  min-height: 113px;
  border-top: 1px solid var(--line);
}

html:has(.viewer[open]) { overflow: hidden; }
.viewer {
  width: min(1040px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: clamp(12px, 2.2vw, 26px);
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  overflow: auto;
}
.viewer::backdrop { background: #162020d9; }
.viewer__top, .viewer__bottom, .viewer__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.viewer__top { margin-bottom: 12px; }
.viewer__bottom { margin-top: 12px; }
.viewer__top p { font-weight: 700; }
.viewer__count { opacity: 0.78; margin-inline-start: 6px; font-weight: 400; white-space: nowrap; }
.viewer__image {
  width: 100%;
  height: min(64dvh, 652px);
  object-fit: contain;
  background: #1f2a2a;
}
.viewer__control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid #85918d;
  border-radius: 100px;
  color: inherit;
  background: transparent;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}
.viewer__control:hover { background: var(--green); }
.viewer__control:focus-visible { outline-color: #eaece5; }

@media (min-width: 761px) and (max-width: 1040px) {
  .hero__photo { left: 31%; }
  .hero__copy { padding-left: 3.4vw; }
}

@media (max-width: 760px) {
  .masthead { min-height: 65px; }
  .wordmark { font-size: 1.67rem; }
  .hero { display: block; min-height: auto; }
  .hero__photo { position: static; mask-image: none; aspect-ratio: 1.55; }
  .hero__copy { padding: 24px clamp(18px, 5vw, 38px) 30px; border-top: 1px solid #25333314; }
  .hero h1 { font-size: clamp(3.5rem, 12.5vw, 6rem); }
  .hero__action { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 21px; }
  .spread { height: clamp(184px, 42vw, 320px); }
  .spread--trio-a, .spread--trio-b, .spread--trio-c { height: clamp(159px, 30vw, 235px); }
  .spread--panorama { height: clamp(159px, 38vw, 292px); }
  .site-footer { min-height: 88px; }
}

@media (max-width: 500px) {
  .masthead nav .button--outline { display: none; }
  .detail-strip { grid-template-columns: minmax(0, 0.876fr) minmax(0, 1.2fr); }
  .detail-frame:first-child { grid-column: 1 / -1; }
  .spread--trio-a, .spread--trio-b, .spread--trio-c {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spread--trio-a .tile, .spread--trio-b .tile, .spread--trio-c .tile { aspect-ratio: 1; }
  .spread--trio-a .tile:last-child, .spread--trio-b .tile:first-child, .spread--trio-c .tile:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1.7;
  }
  .viewer__control { padding-inline: 8px; }
}

@media (hover: none) {
  .tile__open { opacity: 1; width: 30px; height: 30px; font-size: 1.1rem; inset: auto 8px 8px auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .tile:hover img { transform: none; }
}
