@font-face {
  font-family: Barlow;
  src: url("/assets/fonts/barlow.ttf") format("truetype");
  font-display: swap;
}
:root {
  font-family: Barlow, Arial, sans-serif;
  color: #202c29;
  background: #f5f3ed;
  font-synthesis: none;
  color-scheme: light;
  /* Keep gallery geometry fixed while dialogs temporarily lock page scrolling. */
  scrollbar-gutter: stable;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #386557;
  outline-offset: 5px;
}
.site-header,
main,
footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-left: 5vw;
  padding-right: 5vw;
}
.site-header {
  height: 114px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d8d9cf;
}
.wordmark {
  display: block;
  line-height: 0;
}
.wordmark img {
  width: 160px;
  height: auto;
}
.account {
  display: flex;
  align-items: center;
  gap: 24px;
}
.account > span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 46px;
  border: 1px solid #202c29;
  background: transparent;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.button:hover {
  background: #e5e5dc;
}
.accent {
  background: #233f35;
  color: #fff;
  border-color: #233f35;
}
.accent:hover {
  background: #35594b;
}
.quiet {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a2aaa0;
  padding: 6px 0;
  color: inherit;
  border-radius: 0;
}
main {
  flex: 1;
}
.welcome {
  padding: 70px 0;
  max-width: 800px;
}
#welcome {
  max-width: none;
  padding: 32px 0 64px;
}
.showcase {
  --card-height: clamp(270px, 41vh, 390px);
  overflow: hidden;
  margin: 0 -5vw;
  padding: 24px 0 30px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}
.showcase-track {
  display: flex;
  width: max-content;
  animation: card-scroll var(--scroll-duration, 360s) linear infinite;
  will-change: transform;
}
.showcase-group {
  display: flex;
  gap: 28px;
  padding-right: 28px;
  flex: none;
}
.showcase img {
  height: var(--card-height);
  width: auto;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 8px 8px #12291e24);
}
.showcase:hover .showcase-track,
.showcase:focus-within .showcase-track {
  animation-play-state: paused;
}
@keyframes card-scroll {
  to {
    transform: translateX(-50%);
  }
}
.welcome-action {
  text-align: center;
  padding: 28px 0 10px;
}
#welcome h1 {
  font-family: Barlow, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 28px;
}
.welcome-action .button {
  min-height: 52px;
  padding: 14px 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  margin: 0 0 20px;
  color: #637267;
}
.welcome h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(54px, 7.5vw, 105px);
  letter-spacing: -0.055em;
  line-height: 0.99;
  margin: 0 0 28px;
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 54px 0 36px;
}
.collection-heading h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0;
}
.collection-heading h1 span {
  font-family: Barlow, Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
  vertical-align: super;
  color: #7b867e;
  margin-left: 8px;
}
.collection-heading .eyebrow {
  margin-bottom: 10px;
}
.pull-control {
  display: flex;
  align-items: center;
  gap: 26px;
}
.pull-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
  font-size: 15px;
}
.pull-details strong {
  font-weight: 600;
}
.pull-details span {
  font-size: 12px;
  color: #69756c;
  min-width: 142px;
  font-variant-numeric: tabular-nums;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 34px 26px;
  padding: 12px 0 40px;
}
.gallery-card {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  min-width: 0;
  border-radius: 0;
}
.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 63/88;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 7px 6px #12291e16);
  transition: transform 0.2s;
}
.gallery-card:hover img {
  transform: translateY(-5px);
}
.gallery-card .caption {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 13px;
}
.gallery-card strong {
  font-weight: 500;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-card small {
  color: #79867c;
  font-size: 11px;
  flex: none;
  letter-spacing: 0.06em;
}
.empty-collection {
  border-top: 1px solid #d8d9cf;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #727e74;
}
.empty-collection span {
  font-size: 55px;
  color: #a4ad9e;
}
.empty-collection p {
  font-size: 17px;
}
.status {
  font-size: 14px;
  color: #5a695e;
  margin: 0 0 24px;
  min-height: 18px;
}
.status:empty {
  display: none;
}
.more {
  display: block;
  margin: 0 auto 32px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 25px;
  border-top: 1px solid #d8d9cf;
  color: #7a867b;
  font-size: 11px;
  letter-spacing: 0.08em;
}
footer nav {
  display: flex;
  gap: 22px;
}
dialog {
  padding: 34px 26px 22px;
  border: 0;
  background: #eeeee5;
  max-width: min(620px, 96vw);
  max-height: 96svh;
  overflow: auto;
  color: #202c29;
}
dialog::backdrop {
  background: #1d2924bb;
  backdrop-filter: blur(5px);
}
#fullCard {
  display: block;
  max-height: 76svh;
  max-width: 100%;
  height: auto;
  width: auto;
  margin: auto;
}
.close-viewer {
  position: absolute;
  right: 6px;
  top: 0;
  font-size: 28px;
  background: none;
  border: 0;
  color: #233f35;
  padding: 2px 9px;
}
.viewer-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 14px;
}
.viewer-meta > span {
  max-width: 55%;
  overflow-wrap: anywhere;
}
.viewer-meta .button {
  padding: 10px 12px;
  min-height: 40px;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .site-header {
    height: 86px;
  }
  .wordmark img {
    width: 125px;
  }
  .account {
    gap: 14px;
  }
  .account > span {
    max-width: 100px;
    font-size: 13px;
  }
  .account .button {
    font-size: 12px;
    padding: 10px;
    min-height: 40px;
  }
  .welcome {
    padding: 48px 0;
  }
  #welcome {
    padding: 22px 0 48px;
  }
  .showcase {
    --card-height: 310px;
  }
  .showcase-group {
    gap: 18px;
    padding-right: 18px;
  }
  .welcome-action {
    padding-top: 18px;
  }
  .collection-heading {
    padding-top: 34px;
    display: block;
  }
  .collection-heading h1 {
    font-size: 36px;
  }
  .pull-control {
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
  }
  .pull-details {
    text-align: left;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 16px;
  }
  .gallery-card .caption {
    margin-top: 9px;
    gap: 4px;
  }
  .gallery-card strong {
    font-size: 13px;
  }
  .gallery-card small {
    font-size: 9px;
  }
  .viewer-meta {
    align-items: flex-start;
  }
  dialog {
    padding: 30px 14px 18px;
  }
  footer {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .showcase {
    overflow-x: auto;
    mask-image: none;
  }
  .showcase-track {
    animation: none;
    will-change: auto;
  }
  .showcase-group[aria-hidden] {
    display: none;
  }
}
