:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --ink: #20221f;
  --muted: #777a73;
  --line: #d9dad5;
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
html.viewer-open { overflow: hidden; scroll-snap-type: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; }
a { color: inherit; text-decoration: none; }
.hero, .works { scroll-snap-align: start; }
.hero { min-height: 100svh; }
.hero { position: relative; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; padding: 34px 5.1vw 28px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.identity { display: grid; gap: 7px; }
.identity__name { font-size: 18px; font-weight: 500; letter-spacing: .16em; }
.identity__role, .topbar__edition, .footer__eyebrow, .footer__location, .enter-link__text span { color: var(--muted); font: 12px/1.5 var(--mono); letter-spacing: .07em; }
.topbar__edition { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #5d6a57; }
.mono { color: var(--ink); }
.composition { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 14px 0; }
.portrait { position: relative; margin: 0; height: min(68svh, 700px); aspect-ratio: 3 / 4; max-width: 68vw; background: #e6e8e4; box-shadow: 0 14px 44px rgb(31 36 31 / 10%); opacity: 0; transform: translateY(12px); animation: reveal .9s cubic-bezier(.2,.75,.25,1) .12s forwards; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 14px 16px; color: #fff; background: rgb(21 25 23 / 40%); font: 11px var(--mono); letter-spacing: .08em; }
.portrait figcaption span:last-child { font-family: var(--sans); letter-spacing: .08em; }
.side-note { position: absolute; top: 50%; display: flex; color: #666a64; font: 11px var(--mono); letter-spacing: .12em; writing-mode: vertical-rl; align-items: center; gap: 13px; transform: translateY(-50%); }
.side-note--left { left: clamp(7px, 11vw, 170px); }
.side-note--right { right: clamp(7px, 11vw, 170px); }
.side-note__line { width: 1px; height: 42px; background: var(--line); }
.side-note__index { color: #999b96; }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; border-top: 1px solid var(--line); padding-top: 17px; }
.footer__title { display: grid; gap: 5px; }
.footer__eyebrow { font-size: 11px; }
.footer__name { font-size: 17px; letter-spacing: .07em; }
.footer__location { justify-self: end; font-family: var(--sans); letter-spacing: .08em; }
.enter-link { display: flex; align-items: center; gap: 14px; }
.enter-link__text { display: grid; gap: 4px; font-size: 13px; letter-spacing: .08em; }
.enter-link__text span { font-size: 10px; }
.arrow-circle { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #aeb0aa; border-radius: 50%; transition: color .25s, background .25s, transform .25s; }
.arrow-circle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.enter-link:hover .arrow-circle { color: var(--paper); background: var(--ink); transform: translateY(3px); }
.works { min-height: 100svh; padding: 28px 4.8vw 18px; background: #f0f0ee; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 30px; }
.works-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 14px 0 24px; }
.works-heading > span { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.works-heading h1 { margin: 8px 0 0; font-size: 25px; font-weight: 400; letter-spacing: .08em; }
.works-search { width: min(360px, 45%); }
.works-search > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.works-search__field { display: flex; align-items: center; border-bottom: 1px solid #a5a59d; }
.works-search input { width: 100%; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; outline-offset: 4px; }
.works-search input::-webkit-search-cancel-button { display: none; }
.works-search button { flex: 0 0 auto; border: 0; padding: 10px 6px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.category-nav { display: flex; gap: 24px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.category-nav button { flex: 0 0 auto; border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 9px 0; font: inherit; font-size: 13px; color: #88887f; cursor: pointer; }
.category-nav button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.works-result { min-height: 18px; margin: 0 0 16px; font-size: 11px; color: var(--muted); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.pagination button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.pagination button[aria-current="page"] { background: #242520; color: #fff; }
.pagination button:not(:disabled):hover { border-color: #aaa; }
.pagination button:disabled { color: #a9a99f; cursor: default; }
.pagination span { color: var(--muted); }
.works-message { grid-column: 1 / -1; margin: 34px 0 8px; color: var(--muted); text-align: center; font-size: 15px; }
.works-grid > a { grid-column: 1 / -1; color: var(--ink); text-align: center; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.work-card { min-width: 0; text-align: center; }
.work-card__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.work-card__open img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #e1e3de; transition: opacity .25s; }
.work-card__open:hover img { opacity: .88; }
.work-card__open span { display: block; margin: 10px 0 0; font-size: clamp(15px, 1.18vw, 19px); line-height: 1.55; font-weight: 400; letter-spacing: .025em; }
.works-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); letter-spacing: .09em; }
.works-footer > :last-child { justify-self: end; font-family: var(--sans); letter-spacing: .06em; }
.back-link { display: flex; gap: 8px; align-items: center; color: var(--muted); font: 11px var(--sans); letter-spacing: .06em; }
.back-link span { font: 17px var(--mono); }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .hero { padding-right: 7vw; padding-left: 7vw; } .portrait { height: min(72svh, 790px); } }
@media (max-width: 700px) {
  .hero { padding: 25px 22px 20px; }
  .identity__name { font-size: 15px; }
  .identity__role, .topbar__edition { font-size: 10px; }
  .topbar__edition { gap: 6px; }
  .composition { padding: 20px 0 10px; }
  .portrait { height: min(64svh, 620px); max-width: 82vw; }
  .portrait figcaption { padding: 11px 12px; }
  .side-note { font-size: 8px; }
  .side-note--left { left: -7px; }
  .side-note--right { right: -7px; }
  .side-note__line { height: 27px; }
  .footer { grid-template-columns: 1fr auto; row-gap: 12px; }
  .footer__name { font-size: 14px; }
  .footer__eyebrow { font-size: 9px; }
  .footer__location { display: none; }
  .enter-link { gap: 9px; }
  .enter-link__text { font-size: 12px; }
  .enter-link__text span { font-size: 9px; }
  .arrow-circle { width: 35px; height: 35px; }
  .works { padding: 18px 16px 14px; }
  .works-grid { grid-template-columns: 1fr; gap: 19px; }
  .works-toolbar { align-items: start; flex-direction: column; gap: 18px; }
  .works-search { width: 100%; }
  .category-nav { gap: 22px; }
.work-card__open span { margin-top: 8px; font-size: 15px; }
  .works-footer { grid-template-columns: 1fr auto; gap: 12px; font-size: 9px; }
  .works-footer > :last-child { display: none; }
}
@media (min-width: 701px) and (max-width: 1050px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-height: 680px) and (min-width: 701px) { .hero { padding-top: 20px; padding-bottom: 18px; } .portrait { height: 61svh; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: #000; color: #f5f5f5; }
.viewer::backdrop { background: #000; }
.viewer__status { position: absolute; z-index: 2; left: 50%; top: calc((100% - 131px) / 2); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; max-width: calc(100% - 80px); padding: 8px 12px; color: #aaa; font-size: 13px; text-align: center; }
.viewer__status.is-loading::before { content: ''; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid #333; border-top-color: #aaa; border-radius: 50%; animation: loading-spin .9s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.viewer__retry, .works-retry { margin-left: 10px; padding: 5px 10px; border: 1px solid currentColor; border-radius: 3px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.viewer__close { position: absolute; z-index: 2; top: 16px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgb(255 255 255 / 36%); border-radius: 50%; background: rgb(0 0 0 / 40%); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.viewer__close:hover { border-color: #fff; background: rgb(255 255 255 / 14%); }
.viewer__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.viewer__stage { position: absolute; inset: 0 0 131px; display: grid; place-items: center; }
.viewer__empty { color: #aaa; font-size: 14px; letter-spacing: .04em; }
.viewer__image { display: block; width: calc(100vw - 150px); height: calc(100svh - 165px); max-width: calc(100vw - 150px); max-height: calc(100svh - 165px); object-fit: contain; }
.viewer__image.is-entering-next { animation: slide-in-next .28s ease-out both; }
.viewer__image.is-entering-prev { animation: slide-in-prev .28s ease-out both; }
.viewer__arrow { position: absolute; z-index: 1; top: 50%; display: grid; place-items: center; width: 54px; height: 76px; padding: 0; border: 0; background: transparent; color: #f2f2f2; cursor: pointer; transform: translateY(-50%); }
.viewer__arrow--prev { left: 5px; }
.viewer__arrow--next { right: 5px; }
.viewer__arrow svg { width: 21px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewer__filmstrip { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 16px; height: 122px; padding: 8px 3vw 11px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #555 #111; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer__stage { position: relative; inset: auto; flex: 1 1 0; min-height: 0; padding: 24px 75px 12px; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.viewer__image { width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; }
.viewer__meta { flex: 0 0 auto; max-height: min(120px,22svh); overflow-y: auto; padding: 4px 3vw 12px; }
.viewer__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 1.6; }
#viewer-title { min-width: 0; overflow-wrap: anywhere; }
#viewer-counter { flex: 0 0 auto; color: #666; font-size: 10px; }
#viewer-description { margin: 7px 0 0; color: #aaa; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.viewer__filmstrip { position: relative; inset: auto; flex: 0 0 122px; min-height: 0; }
.viewer__thumb { flex: 0 0 clamp(104px, 12vw, 180px); height: 100px; padding: 0; overflow: hidden; border: 1px solid transparent; background: #111; opacity: .48; cursor: pointer; transition: opacity .2s, border-color .2s; }
.viewer__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb:hover { opacity: .8; }
.viewer__thumb.is-active { border-color: #fff; opacity: 1; }
@keyframes slide-in-next { from { opacity: .35; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-in-prev { from { opacity: .35; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 700px) {
  .viewer__close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .viewer__stage { inset: auto; padding: 48px 25px 12px; }
  .viewer__status { top: calc((100% - 112px) / 2); }
  .viewer__image { width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
  .viewer__arrow { display: none; }
  .viewer__meta { padding: 4px 12px 8px; }
  .viewer__caption { font-size: 12px; }
  .viewer__filmstrip { height: 104px; flex-basis: 104px; gap: 9px; padding: 6px 12px 10px; }
  .viewer__thumb { flex-basis: 94px; height: 70px; }
}
