:root {
  color-scheme: dark;
  --paper: #000;
  --ink: #f4f4f1;
  --quiet: #989b9f;
  --soft: #62666b;
  --line: #25272a;
  --surface: #141618;
  --focus: #c3dcff;
  --gutter: clamp(20px, 4.4vw, 76px);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; }
body.viewer-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, video:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}
[hidden] { display: none !important; }
::selection { background: #d7e5f5; color: #000; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 20;
  padding: 12px 18px; background: var(--ink); color: #000;
  border-radius: 6px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.page-shell { max-width: 1920px; margin: 0 auto; padding: 0 var(--gutter); }
.masthead {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 100px; border-bottom: 1px solid var(--line);
}
.monogram {
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, serif;
  font-size: 34px; line-height: 1; letter-spacing: -2px;
}
.monogram span { padding-left: 1px; color: var(--quiet); }
.header-note { color: var(--quiet); font-size: 12px; letter-spacing: .015em; }
.introduction { padding: clamp(52px, 6.6vw, 110px) 0 clamp(48px, 5.5vw, 90px); }
h1 {
  margin: 0; max-width: 1400px;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, serif;
  font-weight: 400; font-size: clamp(53px, 8.15vw, 142px);
  line-height: 1.02; letter-spacing: -.053em; text-wrap: balance;
}
.byline {
  margin: 25px 0 0 4px; color: var(--quiet);
  max-width: 64ch; font-size: clamp(12px, 1.04vw, 15px); line-height: 1.8;
}
.collection { scroll-margin-top: 20px; }
.collection-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; min-height: 78px; margin-bottom: 14px;
}
.filters { display: flex; gap: 4px; align-items: center; }
.filter {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 18px; min-height: 46px; border: 1px solid transparent;
  background: transparent; color: var(--quiet); border-radius: 999px;
  font-size: 13px; line-height: 18px; transition: background .18s ease, color .18s ease;
}
.filter:first-child { margin-left: -18px; }
.filter.is-active { background: var(--ink); color: #000; }
.filter:hover:not(.is-active):not(:disabled) { background: var(--surface); color: var(--ink); }
.filter:disabled:not(.is-active) { opacity: .45; }
.filter-count { font-size: 10px; line-height: 1; opacity: .57; font-variant-numeric: tabular-nums; }
.collection-count { font-size: 12px; color: var(--quiet); white-space: nowrap; }
.gallery { columns: 3; column-gap: 18px; min-height: 0; }
.gallery[data-item-count="1"] { columns: 1; max-width: 1100px; margin-inline: auto; }
.gallery[data-item-count="2"] { columns: 2; }
.media-card {
  position: relative; display: block; width: 100%;
  margin: 0 0 18px; padding: 0; break-inside: avoid;
  overflow: hidden; border: 0; border-radius: 9px;
  background: var(--surface); text-align: left;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.media-card > .card-visual {
  display: block; width: 100%; height: auto;
  min-height: 100px; object-fit: cover; background: var(--surface);
  transition: transform .55s cubic-bezier(.2, .65, .2, 1), opacity .2s ease;
}
.media-card.is-loading > .card-visual { opacity: .3; }
.media-card::after {
  content: ""; position: absolute; inset: 45% 0 0; z-index: 1;
  background: linear-gradient(transparent, rgb(0 0 0 / .42));
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.card-meta {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 17px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #fff; opacity: 0;
  transform: translateY(3px); transition: opacity .2s ease, transform .2s ease;
  text-shadow: 0 1px 8px rgb(0 0 0 / .5); pointer-events: none;
}
.card-expand { display: flex; align-items: center; gap: 5px; }
.card-expand svg { width: 13px; height: 13px; }
.media-card:hover > .card-visual, .media-card:focus-visible > .card-visual { transform: scale(1.025); }
.media-card:hover::after, .media-card:focus-visible::after,
.media-card:hover .card-meta, .media-card:focus-visible .card-meta { opacity: 1; transform: none; }
.video-badge {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.video-play {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .45); border-radius: 50%;
  background: rgb(0 0 0 / .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; box-shadow: 0 2px 20px rgb(0 0 0 / .1);
}
.video-play svg { width: 16px; height: 16px; margin-left: 3px; fill: currentColor; stroke: none; }
.duration { position: absolute; z-index: 2; top: 13px; right: 13px; background: rgb(0 0 0 / .4); color: #fff; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-variant-numeric: tabular-nums; backdrop-filter: blur(10px); }
.card-error { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: var(--surface); font-size: 12px; color: var(--quiet); }
.card-error svg { width: 24px; height: 24px; opacity: .6; }
.card-error span:last-child { font-size: 11px; color: var(--ink); }
.loading-state { min-height: 320px; display: flex; align-items: flex-start; justify-content: center; gap: 10px; padding-top: 110px; color: var(--quiet); font-size: 12px; }
.loading-dot { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--ink); animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }
.message-state { min-height: 320px; padding: 85px 20px; text-align: center; }
.message-state > p:first-child { margin: 0; font-size: 20px; }
.message-detail { color: var(--quiet); line-height: 1.7; font-size: 13px; max-width: 50ch; margin: 14px auto 20px; }
.text-button { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; background: var(--surface); font-size: 12px; }
.text-button:hover { border-color: var(--quiet); }
.noscript-message { padding: 30px; text-align: center; color: var(--quiet); }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--soft); font-size: 11px; }
.back-top { color: var(--quiet); padding: 12px 0 12px 16px; }
.back-top span { margin-left: 8px; }
.viewer {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / .98); color: var(--ink);
  overflow: hidden;
}
.viewer::backdrop { background: #000; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: max(18px, env(safe-area-inset-top)) 30px 18px; min-height: 82px; }
.viewer-identity { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.viewer-position { color: var(--quiet); font-size: 11px; font-variant-numeric: tabular-nums; }
.viewer-actions { display: flex; gap: 7px; }
.icon-button { width: 44px; height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: grid; place-items: center; }
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { background: #1b1b1b; border-color: #4a4a4a; }
.icon-button:disabled { opacity: .25; }
.close-button { border-color: transparent; }
.close-button:hover { border-color: transparent; }
.viewer-body { min-height: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; }
.navigation-button { margin: auto; z-index: 2; }
.viewer-stage { position: relative; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.viewer-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.detail-image, .detail-video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.detail-image { cursor: zoom-in; user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.detail-video { width: 100%; height: 100%; outline-offset: -4px; }
.viewer-stage.is-zoomed { overflow: auto; display: block; overscroll-behavior: contain; }
.viewer-stage.is-zoomed .viewer-media { display: block; height: auto; min-width: 100%; width: max-content; min-height: 100%; }
.viewer-stage.is-zoomed .detail-image { max-width: none; max-height: none; width: auto; height: auto; cursor: zoom-out; }
.viewer-status { position: absolute; z-index: 1; color: var(--quiet); font-size: 12px; pointer-events: none; }
.viewer-error { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: #000; font-size: 14px; text-align: center; }
.viewer-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 15px; min-height: 84px; padding: 20px 32px max(20px, env(safe-area-inset-bottom)); font-size: 11px; }
.viewer-kind { color: var(--quiet); }
.viewer-hint { color: var(--soft); margin: 0; text-align: center; }
kbd { padding: 0 3px; font: inherit; font-size: 13px; }
.original-link { justify-self: end; color: var(--quiet); padding: 12px 0; }
.original-link:hover { color: var(--ink); }
.original-link span { margin-left: 5px; }
@media (min-width: 1800px) { .gallery { columns: 4; } }
@media (max-width: 960px) {
  .gallery { columns: 2; column-gap: 14px; }
  .media-card { margin-bottom: 14px; border-radius: 7px; }
  .viewer-body { grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .viewer-toolbar { padding-inline: 20px; }
}
@media (max-width: 600px) {
  .masthead { min-height: 78px; }
  .monogram { font-size: 30px; }
  .header-note { font-size: 11px; }
  .introduction { padding: 48px 0 35px; }
  h1 { max-width: 480px; font-size: clamp(51px, 13vw, 75px); line-height: 1.04; }
  .byline { margin: 20px 0 0 2px; font-size: 12px; line-height: 1.8; max-width: 42ch; }
  .collection-toolbar { min-height: 70px; gap: 8px; margin-bottom: 9px; }
  .filter { font-size: 12px; padding-inline: 12px; gap: 5px; min-height: 44px; }
  .filter:first-child { margin-left: -12px; }
  .filter-count { font-size: 9px; }
  .collection-count { font-size: 10px; }
  .gallery { column-gap: 9px; }
  .media-card { margin-bottom: 9px; border-radius: 5px; }
  .video-play { width: 38px; height: 38px; }
  .video-play svg { width: 13px; height: 13px; }
  .duration { top: 8px; right: 8px; font-size: 9px; padding: 3px 5px; }
  .card-meta { left: 10px; right: 10px; bottom: 10px; font-size: 10px; }
  .card-expand { display: none; }
  .card-error { padding: 12px; gap: 7px; font-size: 10px; }
  .card-error svg { width: 18px; height: 18px; }
  .card-error span:last-child { font-size: 10px; }
  .page-footer { margin-top: 45px; padding-bottom: 25px; font-size: 10px; }
  .viewer-toolbar { min-height: 76px; padding-inline: 14px; gap: 10px; }
  .viewer-identity { flex-direction: column; align-items: flex-start; gap: 5px; }
  .viewer-body { position: relative; display: block; padding-bottom: 52px; }
  .viewer-stage { width: 100%; }
  .navigation-button { position: absolute; bottom: 0; width: 40px; height: 40px; }
  .previous-button { left: calc(50% - 52px); }
  .next-button { right: calc(50% - 52px); }
  .viewer-footer { min-height: 72px; grid-template-columns: 1fr 1fr; padding-inline: 18px; font-size: 10px; }
  .viewer-hint { display: none; }
  .detail-video { max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (hover: none) {
  .media-card:hover > .card-visual { transform: none; }
  .media-card:hover::after, .media-card:hover .card-meta { opacity: 0; }
}
