.project-reportage {
  --reportage-space: clamp(54px, 8vw, 132px);
  --reportage-measure: 54ch;
  --reportage-gutter: clamp(24px, 4.6vw, 80px);
  --reportage-row-space: clamp(38px, 6.7vw, 122px);
  --reportage-offset: clamp(25px, 5.8vw, 110px);
  --reportage-inset: clamp(25px, 8.2vw, 148px);
}

.reportage-tags,
.reportage-press ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reportage-opening {
  margin-block: clamp(24px, 3vw, 50px) clamp(22px, 3.5vw, 52px);
}

.reportage-opening h1 {
  margin-top: .12em;
  font-size: clamp(44px, 8.1vw, 164px);
  letter-spacing: -.063em;
  line-height: .91;
  text-transform: uppercase;
}

.reportage-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(20px, 4.2vw, 90px);
  align-items: start;
  margin-top: clamp(21px, 3vw, 48px);
  padding-top: clamp(14px, 1.7vw, 26px);
  border-top: 1px solid var(--ink);
}

.reportage-deck {
  max-width: 42ch;
  font-size: clamp(18px, 2vw, 34px);
  line-height: 1.24;
  letter-spacing: -.025em;
}

.reportage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: clamp(12px, 1.5vw, 22px);
}

.reportage-tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.reportage-tags a:hover,
.reportage-jumps a:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.reportage-summary,
.reportage-information dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px clamp(12px, 2vw, 28px);
  margin: 0;
}

.reportage-summary dt,
.reportage-information dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.reportage-summary dd,
.reportage-information dd {
  margin: 3px 0 0;
  font-size: clamp(13px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.4;
}

.reportage-summary a,
.reportage-information dd a {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.reportage-figure img {
  width: 100%;
  height: auto;
}

.reportage-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.reportage-hero img {
  aspect-ratio: 1.85;
  max-height: min(79vh, 1060px);
  object-fit: cover;
  object-position: center 53%;
}

.reportage-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(14px, 3vw, 40px);
  margin-top: 20px;
  border-block: 1px solid var(--line);
}

.reportage-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
}

.reportage-section {
  margin-top: var(--reportage-space);
}

.reportage-ruled {
  padding-top: clamp(14px, 2vw, 25px);
  border-top: 1px solid var(--ink);
}

.reportage-section h2 {
  font-size: clamp(30px, 4.7vw, 76px);
  letter-spacing: -.053em;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.reportage-copy p {
  max-width: var(--reportage-measure);
  margin-top: 16px;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.56;
}

.reportage-copy h3 {
  margin-top: clamp(22px, 3vw, 44px);
  font-size: clamp(20px, 2vw, 31px);
  letter-spacing: -.03em;
}

.reportage-copy .underlink,
.reportage-press > div > .underlink {
  margin-top: 18px;
}

.reportage-spread,
.reportage-photo-row,
.reportage-drawings {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.reportage-spread-patio {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--reportage-gutter);
}

.reportage-spread-patio > .reportage-figure {
  width: min(74%, 590px);
  justify-self: center;
  margin-top: var(--reportage-offset);
}

.reportage-spread-light {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--reportage-gutter);
  margin-top: var(--reportage-row-space);
}

.reportage-light-column {
  display: grid;
  gap: clamp(18px, 4.5vw, 70px);
  margin-top: clamp(12px, 2.4vw, 42px);
}

#recit,
.reportage-materials {
  max-width: 1580px;
  margin-inline: auto;
}

.reportage-materials > .reportage-copy {
  margin-left: 33%;
}

.reportage-photo-row {
  grid-template-columns: var(--photo-columns);
  gap: var(--reportage-gutter);
  margin-top: var(--reportage-row-space);
}

@media (min-width: 800px) {
  .reportage-photo-row--left {
    margin-right: var(--reportage-inset);
  }

  .reportage-photo-row--left > figure:nth-child(2) {
    margin-top: var(--reportage-offset);
  }

  .reportage-photo-row--left > figure:nth-child(3) {
    margin-top: calc(var(--reportage-offset) * .32);
  }

  .reportage-photo-row--right {
    margin-left: var(--reportage-inset);
  }

  .reportage-photo-row--right > figure:first-child {
    margin-top: var(--reportage-offset);
  }

  .reportage-photo-row--right > figure:nth-child(3) {
    margin-top: calc(var(--reportage-offset) * .48);
  }

  .reportage-photo-row--center {
    margin-inline: var(--reportage-inset);
  }

  .reportage-photo-row--center > figure:first-child {
    margin-top: calc(var(--reportage-offset) * .36);
  }

  .reportage-photo-row--center > figure:nth-child(3) {
    margin-top: var(--reportage-offset);
  }
}

.reportage-drawings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 410px;
  margin-top: clamp(18px, 2.5vw, 36px);
}

.reportage-drawings a {
  display: grid;
  height: clamp(105px, 29vw, 140px);
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.reportage-drawings a:hover {
  border-color: var(--ink);
}

.reportage-drawings img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

html:has(.drawing-viewer[open]) {
  overflow: hidden;
}

.drawing-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
  background: #fff;
  color: var(--ink);
}

.drawing-viewer[open] {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.drawing-viewer::backdrop {
  background: #fff;
}

.drawing-viewer-toolbar {
  grid-column: 1 / -1;
}

.drawing-viewer button {
  min-height: 44px;
  color: inherit;
  background: transparent;
  border: 0;
}

.drawing-viewer-toolbar .underlink {
  gap: 9px;
  padding-inline: 8px;
}

.drawing-viewer-previous,
.drawing-viewer-next {
  align-self: center;
  font-size: 21px;
}

.drawing-arrow-left { --arrow-turn: 180deg; }
.drawing-arrow-right { --arrow-turn: 0deg; }

.drawing-viewer-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  justify-items: center;
  margin: 0;
}

.drawing-viewer-figure img {
  height: 100%;
  width: 100%;
  min-height: 0;
  object-fit: contain;
}

.drawing-viewer-figure figcaption {
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) and (orientation: portrait) {
  .drawing-viewer[open] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .drawing-viewer-figure {
    grid-area: 2 / 1 / 3 / -1;
  }

  .drawing-viewer-previous {
    justify-self: end;
  }

  .drawing-viewer-next {
    justify-self: start;
  }

  .drawing-viewer-previous,
  .drawing-viewer-next {
    min-width: 44px;
  }
}

.reportage-information,
.reportage-press {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(22px, 4vw, 66px);
}

.reportage-information dl div {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
}

.reportage-press-entry {
  display: grid;
  grid-template-columns: clamp(62px, 8.5vw, 118px) minmax(0, 1fr);
  gap: clamp(12px, 2.3vw, 34px);
  align-items: center;
  padding-block: clamp(14px, 1.6vw, 22px);
  border-bottom: 1px solid var(--line);
}

.reportage-press-entry:first-child {
  padding-top: 0;
}

.reportage-press-logo {
  font-size: 12px;
  font-weight: 500;
}

.reportage-press-logo img {
  height: clamp(36px, 4.2vw, 54px);
  object-fit: contain;
  object-position: left center;
}

.reportage-press-copy h3 {
  font-size: clamp(15px, 1.65vw, 23px);
  font-weight: 400;
  letter-spacing: -.024em;
  line-height: 1.2;
}

.reportage-press-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 9px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.reportage-press-meta span::before {
  content: "·";
  margin-right: 9px;
}

.reportage-press-summary {
  max-width: 61ch;
  margin-top: 6px;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.45;
}

.reportage-press-copy .underlink {
  gap: 12px;
  margin-top: 9px;
  padding-bottom: 4px;
}

.reportage-related-head,
.reportage-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px 32px;
}

.reportage-related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: clamp(22px, 3.2vw, 46px);
  margin-top: clamp(18px, 3vw, 46px);
}

.reportage-related .project-meta h3 {
  font-size: clamp(13px, 3.5vw, 16px);
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

@media (min-width: 521px) {
  .reportage-related {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }
}

@media (max-width: 799px) {
  .reportage-hero img {
    aspect-ratio: auto;
    max-height: none;
  }

  .reportage-opening h1 span {
    display: block;
  }

  .reportage-opening h1 {
    font-size: clamp(30px, 10.3vw, 82px);
  }

  .reportage-overview,
  .reportage-spread,
  .reportage-photo-row,
  .reportage-information,
  .reportage-press {
    grid-template-columns: minmax(0, 1fr);
  }

  .reportage-spread-patio,
  .reportage-spread-light,
  .reportage-photo-row,
  .reportage-light-column {
    gap: var(--gap);
  }

  .reportage-spread-patio > .reportage-figure {
    width: 100%;
    margin-top: 0;
  }

  .reportage-spread-light,
  .reportage-photo-row {
    margin-top: var(--gap);
  }

  .reportage-light-column {
    margin-top: 0;
    padding-top: 15px;
  }

  .reportage-materials > .reportage-copy {
    margin-left: 0;
  }
}
