@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/geist-mono-variable.afaacc4c5fbb.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --background: #f3f1ec;
  --text: #161615;
  --muted: #706e68;
  --line: #d5d2ca;
  --soft: #e9e7e1;
  --focus: #111;
  --header-height: 3.75rem;
  --page-padding: clamp(1rem, 3vw, 2.5rem);
  --grid-gap: clamp(.45rem, 1vw, .9rem);
  --chrome-font-size: .8rem;
  --font-sans: -apple-system, system-ui, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

@view-transition { navigation: auto; }

[data-transition-photo-id] {
  view-transition-name: attr(id type(<custom-ident>), none);
  view-transition-name: auto;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #090909;
    --text: #efeee9;
    --muted: #9f9d97;
    --line: #2d2d2d;
    --soft: #171717;
    --focus: #fff;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scrollbar-gutter: stable;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: normal;
}

a { color: inherit; text-underline-offset: .22em; }

::selection {
  background: var(--text);
  color: var(--background);
}

a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  padding: .65rem .8rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-inline: var(--page-padding);
}

.site-header {
  min-height: var(--header-height);
}

.site-identity {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: var(--chrome-font-size);
  font-weight: 400;
  letter-spacing: .035em;
}

.site-identity a {
  text-decoration: none;
}

.site-owner { color: var(--muted); }
.site-owner:hover { color: var(--text); }

.site-header__primary,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 1.5rem);
}

.site-header__primary a,
.site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--chrome-font-size);
  font-weight: 400;
  letter-spacing: .02em;
  text-decoration: none;
}

.site-header__primary a {
  position: relative;
  min-height: 2rem;
  color: var(--muted);
}

.site-header__primary a:hover,
.site-header__primary a[aria-current="page"] { color: var(--text); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-left: auto;
}

.site-header__divider {
  color: var(--line);
  font-family: var(--font-mono);
  font-size: var(--chrome-font-size);
}

.site-menu { display: none; }

@media (pointer: coarse) {
  .site-header__primary a {
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
  }
}

.site-footer {
  min-height: 5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: 1rem;
  color: var(--muted);
}

main { min-height: 0; }

.photo-grid {
  --gallery-columns: 1;
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
  align-items: start;
  gap: var(--grid-gap);
  padding: 0 var(--page-padding);
}

.photo-grid__item {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: clip;
  background: var(--soft);
  line-height: 0;
  text-decoration: none;
}

.photo-grid[data-masonry-layout] {
  position: relative;
  display: block;
}

.photo-grid[data-masonry-layout] .photo-grid__item {
  position: absolute;
  inset: 0 auto auto 0;
}

.photo-grid__item picture,
.photo-grid__item img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-grid__item img {
  object-fit: contain;
  opacity: 1;
  view-transition-class: gallery-photo;
}

.photo-grid__item:focus-visible { outline-offset: 5px; }

.photo-detail {
  padding: clamp(.75rem, 2vw, 1.5rem) var(--page-padding) 0;
}

.photo-detail__picture {
  display: grid;
  place-items: center;
}

.photo-detail__picture > picture {
  display: grid;
  grid-area: 1 / 1;
  place-items: center;
  min-width: 0;
  width: 100%;
}

.photo-detail__stage {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}
.photo-detail__stage[hidden] { display: none; }
html:active-view-transition .photo-detail__stage[hidden] { display: grid; }
.photo-detail__stage[data-photo-hero-handoff] { opacity: 0; }
.photo-detail__picture[data-photo-hero-staging] .photo-detail__full { opacity: 0; }

.photo-detail__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(calc(100svh - 7.75rem), 72rem);
  margin-inline: auto;
  object-fit: contain;
  background: var(--soft);
  view-transition-class: gallery-photo;
}

@supports (dynamic-range-limit: no-limit) {
  .photo-detail__image--hdr { dynamic-range-limit: no-limit; }
}

.photo-detail__rail {
  width: min(100%, 58rem);
  margin: clamp(1rem, 2.5vw, 1.75rem) auto 0;
}

.caption {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  white-space: pre-line;
}

.photo-metadata {
  display: grid;
  gap: 1rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.photo-metadata__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: .2rem;
}

.photo-metadata dt,
.photo-metadata dd {
  margin: 0;
  font-family: var(--font-mono);
}

.photo-metadata dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.6;
}

.photo-metadata dd {
  font-size: clamp(.78rem, 1.5vw, .88rem);
  letter-spacing: -.018em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.collection-links {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-links li:not(:last-child)::after {
  margin-right: .35rem;
  content: ",";
}

.place-outline {
  margin: 2rem 0 0;
}

.place-outline svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text);
}

.place-outline path {
  fill: currentColor;
  opacity: .82;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.place-outline figcaption {
  margin-top: .65rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .035em;
  line-height: 1.5;
  white-space: nowrap;
}

.place-outline figcaption a { color: var(--muted); }

.photo-order {
  position: relative;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--chrome-font-size);
  letter-spacing: .02em;
  line-height: 1.4;
}

.photo-order > summary {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .3rem;
  color: inherit;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.photo-order > summary::-webkit-details-marker { display: none; }

.photo-order > summary svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.photo-order__selection { color: var(--text); }

.photo-order > summary::after {
  width: .35rem;
  height: .35rem;
  margin: -.2rem 0 0 .15rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.photo-order[open] > summary::after {
  margin-top: .2rem;
  transform: rotate(225deg);
}

.photo-order__menu {
  position: absolute;
  z-index: 9;
  top: calc(100% + .35rem);
  right: 0;
  display: none;
  min-width: 10rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  background: var(--background);
}

.photo-order[open] > .photo-order__menu { display: grid; }

.photo-order__menu a,
.photo-order__menu span {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.photo-order__menu a:hover,
.photo-order__menu [aria-current="page"] { color: var(--text); }

.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: 0;
  padding: .65rem var(--page-padding) 0;
  border-top: 1px solid var(--line);
}

.pager a {
  display: inline-flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-decoration: none;
}

.pager a:hover { text-decoration: underline; }

.pager a[rel="prev"] { grid-column: 1; }

.pager a[rel="next"] {
  grid-column: 3;
  justify-content: flex-end;
  text-align: right;
}

.pager__position {
  grid-column: 2;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .025em;
  white-space: nowrap;
}

@media (max-width: 36rem) {
  .pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .pager a[rel="next"] { grid-column: 2; }

  .pager__position {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
  }
}

.collections-page,
.browse-page {
  width: min(100% - 2 * var(--page-padding), 70rem);
  margin: 0 auto;
}

.browse-heading {
  padding-block: clamp(2rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2.5rem);
}

.browse-heading h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.browse-switcher {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.browse-options {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .015em;
}

.browse-options a {
  display: inline-flex;
  min-height: 2.75rem;
  margin-bottom: -1px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.browse-options a:hover { color: var(--text); }

.browse-options a[aria-current="page"] {
  border-bottom-color: var(--text);
  color: var(--text);
}

.browse-options a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.browse-section {
  padding-top: clamp(2rem, 6vw, 4rem);
}

.browse-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.browse-section__heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.browse-section__heading a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  text-decoration: none;
}

.browse-section__heading a:hover { color: var(--text); }

.collection-heading {
  width: min(100%, 42rem);
  padding-block: clamp(2rem, 8vw, 6rem) clamp(1.75rem, 5vw, 3.5rem);
}

.collection-heading h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.collection-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
  text-wrap: pretty;
  white-space: pre-line;
}

.collection-heading small {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .02em;
}

.collection-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.collection-list__item {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 28rem);
  gap: clamp(1rem, 5vw, 5rem);
  align-items: center;
  min-height: 8.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.collection-list__item--without-preview {
  grid-template-columns: 1fr;
}

.collection-list__copy {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.collection-list__copy strong {
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.collection-list__copy > span {
  max-width: 32rem;
  color: var(--muted);
  text-wrap: pretty;
  white-space: pre-line;
}

.collection-list__copy small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .02em;
}

.collection-list__preview {
  --collection-preview-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  min-width: 0;
  width: min(100%, 28rem);
  margin-left: auto;
}

.collection-list__preview picture {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: var(--collection-preview-height);
  background: transparent;
  line-height: 0;
}

.collection-list__preview img {
  display: block;
  width: auto;
  height: var(--collection-preview-height);
  max-width: none;
  background: transparent;
}

.collection-list__item:hover .collection-list__copy strong {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.collection-page .collection-heading {
  width: min(100% - 2 * var(--page-padding), 42rem);
  margin: 0 auto;
}

.collection-page .photo-grid { padding-top: 0; }

.text-page,
.update-page > h1,
.empty-state {
  width: min(100% - 2 * var(--page-padding), 42rem);
  margin: 0 auto;
  padding-top: clamp(2rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 8vw, 6rem);
}

.text-page h1,
.update-page h1 {
  margin-bottom: 1.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.text-page p,
.update-page p { text-wrap: pretty; }

.text-page p a,
.update-page p a {
  padding-inline: .12em;
  background: var(--soft);
  text-decoration: none;
}

.text-page p a:hover,
.update-page p a:hover {
  background: var(--text);
  color: var(--background);
}

.update-page > h1 { padding-bottom: 0; }

.privacy-page h2,
.analytics-consent h2 {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.privacy-page code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: .9em;
}

.privacy-page button,
.analytics-consent__choice {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .02em;
  cursor: pointer;
}

.privacy-page button:not(:disabled):hover,
.analytics-consent__choice:not(:disabled):hover {
  background: var(--text);
  color: var(--background);
}

.privacy-page button:disabled,
.analytics-consent__choice:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.analytics-consent {
  position: fixed;
  z-index: 8;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  width: min(38rem, calc(100% - 2rem));
  max-height: min(80svh, 40rem);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: auto;
  border: 1px solid var(--text);
  border-top-width: 3px;
  background: var(--background);
  color: var(--text);
}

.analytics-consent[hidden],
[data-analytics-signal-notice][hidden],
[data-analytics-deletion-pending][hidden] { display: none; }

.analytics-consent h2 { margin: 0; }
.analytics-consent h2 {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
}

.analytics-consent p {
  margin-block: .75rem;
  color: var(--muted);
  font-size: .875rem;
}

.analytics-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.analytics-consent__choice { width: 100%; }

.privacy-page button:focus-visible,
.analytics-consent__choice:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 40rem) {
  .photo-grid { --gallery-columns: 2; }
}

@media (min-width: 70rem) {
  .photo-grid { --gallery-columns: 3; }
}

@media (min-width: 64rem) {
  .photo-detail--with-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(17rem, 23vw, 22rem);
    gap: clamp(1.75rem, 3vw, 3.5rem);
    align-items: start;
    min-height: calc(100svh - 7.75rem);
  }

  .photo-detail--with-rail .photo-detail__picture {
    min-width: 0;
    min-height: calc(100svh - 7.75rem);
  }

  .photo-detail--with-rail .photo-detail__image {
    max-height: calc(100svh - 7.75rem);
  }

  .photo-detail__rail {
    align-self: center;
    width: auto;
    margin: 0;
    padding: .35rem 0 1.5rem;
  }

  .photo-metadata__row {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 44rem) {
  .site-header { flex-wrap: nowrap; }

  .site-owner,
  .site-identity__separator { display: none; }

  .site-header__actions {
    flex-wrap: nowrap;
    gap: .75rem;
  }

  .site-header__primary--wide { display: none; }

  .site-menu {
    position: relative;
    display: block;
  }

  .site-menu > summary {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: flex-end;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--chrome-font-size);
    letter-spacing: .02em;
    list-style: none;
    cursor: pointer;
  }

  .site-menu > summary::-webkit-details-marker { display: none; }

  .site-menu[open] > summary { color: var(--text); }

  .site-menu:not([open]) > .site-header__primary { display: none; }

  .site-menu[open] > .site-header__primary {
    position: absolute;
    z-index: 9;
    top: calc(100% + .35rem);
    right: 0;
    display: grid;
    min-width: 10rem;
    gap: 0;
    padding: .35rem .75rem;
    border: 1px solid var(--line);
    background: var(--background);
  }

  .site-menu[open] > .site-header__primary a {
    min-height: 2.75rem;
    justify-content: flex-start;
  }
}

@media (max-width: 28rem) {
  html { scrollbar-gutter: auto; }

  .site-header {
    align-items: center;
    gap: .25rem .5rem;
    padding-block: .5rem;
  }

  .site-header__actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: .75rem;
  }

  .site-header__primary {
    width: auto;
    justify-content: flex-start;
    gap: .5rem;
  }

  .photo-order__label { display: none; }

  .photo-detail { padding-inline: 0; }
  .photo-detail__rail { width: auto; margin-inline: 1rem; }
  .photo-detail__image { max-height: calc(100svh - 9.5rem); }

  .site-footer {
    align-items: center;
    justify-content: flex-start;
    gap: 0 1.25rem;
  }
}

@media (max-width: 42rem) {
  .collection-list__item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .collection-list__preview {
    --collection-preview-height: 5rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .skip-link { transition: transform 120ms ease-out; }

  .photo-grid__item img { transition: opacity 140ms ease-out; }
  .photo-detail__stage { transition: opacity 140ms ease-out; }

  ::view-transition-old(root) {
    animation: 140ms ease-in both gallery-page-out;
  }

  ::view-transition-new(root) {
    animation: 200ms ease-out both gallery-page-in;
  }

  ::view-transition-group(*) {
    animation-duration: 220ms;
    animation-timing-function: cubic-bezier(.2, .7, .2, 1);
  }

  ::view-transition-group(*.gallery-photo) {
    animation-duration: 220ms;
  }

  ::view-transition-old(*.gallery-photo) {
    animation: 220ms cubic-bezier(.2, .7, .2, 1) both gallery-photo-old;
  }

  ::view-transition-new(*.gallery-photo) {
    animation: 220ms cubic-bezier(.2, .7, .2, 1) both gallery-photo-new;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

@keyframes gallery-page-out {
  to { opacity: 0; }
}

@keyframes gallery-page-in {
  from { opacity: 0; }
}

@keyframes gallery-photo-old {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes gallery-photo-new {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .photo-grid__item:hover img { opacity: .9; }
}
