:root {
  color-scheme: light;
  --ground: #fafaf8;
  --ink: #292f28;
  --muted: #646b60;
  --surface: #eeefea;
  --accent: #35472e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #7b9a69;
}
header {
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
header a {
  text-decoration: none;
}
header a:first-child {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
header a:last-child {
  color: var(--muted);
}
.skip {
  position: fixed;
  z-index: 10;
  left: 20px;
  top: 12px;
  padding: 12px;
  background: white;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.cover {
  position: relative;
  height: min(780px, 85svh);
  min-height: 520px;
  margin: 0 24px;
  overflow: hidden;
  color: white;
  background: #35472e;
}
.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 59%;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( /* taste-skill-ignore: permitted neutral scrim over a photograph for text contrast. */
    180deg,
    rgba(0, 0, 0, 0.42),
    transparent 48%,
    rgba(0, 0, 0, 0.24)
  );
  pointer-events: none;
}
.cover-copy {
  position: relative;
  z-index: 1;
  padding: 56px;
}
.cover h1 {
  font:
    normal clamp(56px, 7.5vw, 112px)/1.05 Georgia,
    serif;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.cover-copy p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  color: #fff;
}
.cover-link {
  position: absolute;
  bottom: 38px;
  left: 56px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 20px;
  background: var(--ground);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  border-radius: 3px;
}
.cover-link span {
  font-size: 20px;
}
.collection {
  max-width: 1560px;
  margin: auto;
  padding: 88px 40px 72px;
  scroll-margin-top: 24px;
}
.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.collection h2 {
  font:
    normal clamp(32px, 3.5vw, 48px)/1.15 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}
#count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.search-label {
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
input {
  border: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  width: 260px;
  max-width: 100%;
}
.photo-batch {
  columns: 4;
  column-gap: 20px;
}
.tile {
  display: block;
  break-inside: avoid;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  margin: 0 0 24px;
  color: var(--muted);
}
.tile img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  transition: opacity 180ms var(--ease);
}
.tile span {
  display: block;
  padding-top: 10px;
  font-size: 13px;
}
.tile:hover img {
  opacity: 0.88;
}
#more {
  display: block;
  margin: 40px auto 0;
  border: 0;
  padding: 16px 28px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
#more:active {
  transform: scale(0.98);
}
[hidden] {
  display: none !important;
}
footer {
  padding: 44px 40px;
  background: var(--surface);
}
footer > p {
  font:
    normal 28px/1.4 Georgia,
    serif;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
}
footer > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
footer a {
  text-decoration: none;
  font-weight: 600;
}
dialog {
  border: none;
  padding: 24px;
  background: #131612;
  color: white;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
}
dialog::backdrop {
  background: #131612;
}
.viewerbar {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.viewerbar span {
  margin-right: auto;
}
.viewerbar a {
  color: white;
  text-underline-offset: 5px;
}
.viewerbar button,
.stage button {
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  padding: 12px;
}
.stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(100% - 100px);
}
.stage img {
  max-width: calc(100% - 110px);
  max-height: 100%;
  object-fit: contain;
}
.stage button {
  font-size: 40px;
}
#position {
  text-align: center;
  font-size: 13px;
  color: #b7c0b2;
}
.locked {
  overflow: hidden;
}
.viewerbar button:hover,
.stage button:hover {
  background: #ffffff15;
  border-radius: 6px;
}
@media (min-width: 1600px) {
  .cover {
    max-width: 1512px;
    margin: auto;
  }
}
@media (max-width: 1000px) {
  .photo-batch {
    columns: 3;
  }
  .cover-copy {
    padding: 40px;
  }
  .cover-link {
    left: 40px;
  }
  .cover {
    min-height: 580px;
  }
}
@media (max-width: 640px) {
  header {
    height: 68px;
    padding: 0 20px;
  }
  .cover {
    margin: 0 12px;
    height: 78svh;
    min-height: 520px;
  }
  .cover-copy {
    padding: 32px 24px;
  }
  .cover h1 {
    font-size: 56px;
  }
  .cover-copy p {
    font-size: 15px;
  }
  .cover-link {
    left: 24px;
    bottom: 26px;
  }
  .cover-image {
    object-position: 49% 50%;
  }
  .collection {
    padding: 52px 20px;
  }
  .collection-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 28px;
  }
  .search-label {
    gap: 8px;
  }
  input {
    width: 100%;
    font-size: 16px;
  }
  .photo-batch {
    columns: 2;
    column-gap: 12px;
  }
  .tile {
    margin-bottom: 18px;
  }
  .tile span {
    font-size: 13px;
    padding-top: 7px;
  }
  footer {
    padding: 32px 20px;
  }
  footer > p {
    font-size: 26px;
  }
  footer > div {
    flex-direction: column;
    line-height: 1.6;
  }
  .stage {
    gap: 0;
  }
  .stage img {
    max-width: calc(100% - 56px);
  }
  .stage button {
    padding: 4px;
    font-size: 30px;
  }
  dialog {
    padding: 12px;
  }
  .viewerbar {
    gap: 12px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
