:root {
  color-scheme: dark;
  --background: #000;
  --text: #f5f3ee;
  --muted: #a9a7a2;
  --line: #292929;
  --accent: #ff4747;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
.shell { width: min(100% - clamp(36px, 8vw, 128px), 1520px); margin-inline: auto; }
.accent, .archive-link span { color: var(--accent); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { display: block; padding: 12px; width: fit-content; margin: 12px; }
.site-header {
  min-height: 88px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; border-bottom: 1px solid var(--line);
}
.brand { flex: 0 0 auto; }
.brand img { width: 66px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3.5vw, 54px); }
.site-header nav a, .archive-link, .site-footer a {
  min-height: 44px; display: inline-flex; align-items: center; gap: .45em;
  font-size: 13px; transition: color 160ms ease;
}
.site-header nav a { color: var(--muted); }
.site-header nav a[aria-current] { color: var(--text); }
.site-header nav a:hover, .archive-link:hover, .site-footer a:hover { color: var(--accent); }
.intro {
  display: grid; grid-template-columns: .72fr 1fr; gap: clamp(20px, 4vw, 72px);
  align-items: center; padding-block: clamp(32px, 5vw, 82px) clamp(48px, 7vw, 108px);
}
h1 { font-size: clamp(48px, 6.6vw, 108px); line-height: .94; letter-spacing: -.076em; font-weight: 600; }
.archive-link { margin-top: clamp(16px, 3vw, 43px); border-bottom: 1px solid var(--line); }
.feature-link { display: block; overflow: hidden; background: #0c0c0c; }
.feature-link img { width: 100%; height: auto; transition: filter 200ms ease; }
.feature-link:hover img { filter: brightness(1.08); }
.feature figcaption {
  font: 12px/1.4 ui-monospace, monospace; color: var(--muted);
  text-align: right; padding-top: 12px;
}
.archive { scroll-margin-top: 12px; border-top: 1px solid var(--line); padding-top: clamp(27px, 4vw, 60px); }
.archive-heading {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 28px; width: min(100%, 1200px);
  margin: 0 auto clamp(34px, 5.5vw, 78px);
}
.archive-heading h2 { font-size: clamp(32px, 4vw, 58px); font-weight: 500; letter-spacing: -.065em; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 21px; }
.filters button {
  min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid transparent;
  font-size: 13px; color: var(--muted); cursor: pointer; background: transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.filters button:hover { color: var(--text); }
.gallery {
  width: min(100%, 1200px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(10px, 1.7vw, 26px);
  row-gap: clamp(52px, 7vw, 108px);
}
.gallery .photo:nth-child(6n + 1) { grid-column: 1 / span 7; }
.gallery .photo:nth-child(6n + 2) {
  grid-column: 9 / span 4; margin-top: clamp(34px, 6vw, 102px);
}
.gallery .photo:nth-child(6n + 3) { grid-column: 3 / span 8; }
.gallery .photo:nth-child(6n + 4) {
  grid-column: 1 / span 4; margin-top: clamp(24px, 4.5vw, 76px);
}
.gallery .photo:nth-child(6n + 5) { grid-column: 6 / span 7; }
.gallery .photo:nth-child(6n) { grid-column: 2 / span 8; }
.photo {
  display: block; align-self: start; width: 100%; position: relative; overflow: hidden;
  border: 0; padding: 0; background: #101010; cursor: zoom-in; text-align: left;
  animation: appear 240ms ease both;
}
.photo:focus-visible { z-index: 1; }
.photo img { width: 100%; height: auto; transition: filter 200ms ease; }
.photo-caption {
  position: absolute; inset: auto 0 0; padding: 32px 11px 10px;
  background: linear-gradient(transparent, #000d); font-size: 13px;
  opacity: 0; transition: opacity 200ms ease; pointer-events: none;
}
.photo:focus-visible .photo-caption { opacity: 1; }
@media (hover: hover) {
  .photo:hover img { filter: brightness(.92); }
  .photo:hover .photo-caption { opacity: 1; }
}
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--muted); border-top: 1px solid var(--line);
  margin-top: clamp(40px, 7vw, 100px); padding-block: 18px;
}
.site-footer small { font: 11px/1.3 ui-monospace, monospace; }
.viewer {
  position: fixed; inset: 0; border: none; padding: 0;
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; color: var(--text); background: #000; overflow: hidden;
}
.viewer[open] {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px;
  grid-template-rows: 54px minmax(0, 1fr) 36px; align-items: center;
  animation: appear 160ms ease both;
}
.viewer::backdrop { background: #000; }
body:has(.viewer[open]) { overflow: hidden; }
.viewer button {
  width: 44px; height: 44px; justify-self: center; z-index: 1; border: 0;
  border-radius: 0; background: transparent; color: var(--text);
  font-size: 33px; line-height: 1; cursor: pointer;
}
.viewer button:disabled { visibility: hidden; }
.viewer button:hover { color: var(--accent); }
.viewer-close { grid-area: 1 / 3; }
.viewer-prev { grid-area: 2 / 1; }
.viewer-next { grid-area: 2 / 3; }
.viewer-figure {
  grid-area: 2 / 2; height: 100%; display: grid;
  grid-template-rows: minmax(0, 1fr) auto; row-gap: 14px; min-width: 0;
  touch-action: pan-y pinch-zoom;
}
.viewer-figure img { width: 100%; height: 100%; object-fit: contain; }
.viewer-figure figcaption {
  display: flex; gap: 14px; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.viewer-position { flex: 0 0 auto; color: var(--muted); font-family: ui-monospace, monospace; }
.about-page {
  display: grid; grid-template-columns: .75fr 1fr; gap: clamp(30px, 6vw, 96px);
  align-items: center; padding-block-start: clamp(42px, 8vw, 124px);
}
.about-copy p { max-width: 31ch; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.about-photo { width: 100%; height: auto; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) {
  .site-header { min-height: 70px; }
  .brand img { width: 56px; }
  .intro, .about-page { grid-template-columns: 1fr; }
  .intro { gap: 26px; }
  h1 { font-size: clamp(53px, 10vw, 78px); }
  .archive-heading { align-items: flex-start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr; row-gap: clamp(30px, 8vw, 62px); }
  .gallery .photo:nth-child(n) { grid-column: 1; margin-top: 0; }
  .gallery .photo:nth-child(6n + 2),
  .gallery .photo:nth-child(6n + 4) { width: 82%; }
  .gallery .photo:nth-child(6n + 2) { justify-self: end; }
  .viewer[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 52px minmax(0, 1fr) 58px; }
  .viewer-figure { grid-area: 2 / 1 / 3 / 3; padding-inline: 14px; }
  .viewer-close { grid-area: 1 / 2; justify-self: end; margin-right: 8px; }
  .viewer-prev { grid-area: 3 / 1; }
  .viewer-next { grid-area: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
