:root {
  --paper: #f4efe5;
  --paper-deep: #e9dfd0;
  --paper-light: #fbf8f1;
  --ink: #22201c;
  --ink-soft: #686157;
  --line: rgba(34, 32, 28, 0.16);
  --cinnabar: #b74631;
  --cinnabar-dark: #853322;
  --jade: #315f57;
  --jade-light: #dce9e4;
  --gold: #b09158;
  --shadow: 0 24px 60px rgba(45, 36, 25, 0.12);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(183, 70, 49, 0.06), transparent 26rem),
    linear-gradient(rgba(34, 32, 28, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 32, 28, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 34px 34px, 34px 34px, auto;
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: #fff; background: var(--cinnabar); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1440px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 50% 50% 46% 54%;
  font: 700 22px/1 var(--serif);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.2);
}
.brand strong { display: block; font: 700 21px/1.1 var(--serif); letter-spacing: .12em; }
.brand small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; letter-spacing: .24em; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-size: 14px; }
.site-nav a { position: relative; padding: 34px 0; color: var(--ink-soft); }
.site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; background: var(--cinnabar); transition: .25s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { left: 0; right: 0; }

.section-shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--cinnabar); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font: 600 clamp(32px, 4vw, 52px)/1.1 var(--serif); letter-spacing: .04em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: 14px; }

.home-hero {
  width: min(1440px, calc(100% - 64px));
  min-height: 710px;
  margin: 0 auto;
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
}
.hero-copy { padding-left: clamp(0px, 3vw, 46px); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow span { display: inline-block; width: 32px; height: 1px; background: currentColor; }
.hero-copy h1 { margin: 0; font: 600 clamp(66px, 7vw, 106px)/.96 var(--serif); letter-spacing: -.035em; }
.hero-copy h1 span { color: var(--cinnabar); }
.hero-lede { max-width: 570px; margin: 30px 0; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,32,28,.12); }
.button-primary { color: #fff; background: var(--ink); }
.button-ghost { background: transparent; }
.hero-stats { display: flex; gap: 44px; margin: 42px 0 0; }
.hero-stats div { position: relative; }
.hero-stats div + div::before { content: ""; position: absolute; left: -22px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.hero-stats dt { font: 600 30px/1 var(--serif); }
.hero-stats dd { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; letter-spacing: .1em; }

.hero-mosaic { position: relative; min-height: 560px; }
.hero-image { position: absolute; overflow: hidden; background: var(--paper-deep); box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-image:hover img { transform: scale(1.035); }
.hero-image span { position: absolute; left: 14px; right: 14px; bottom: 12px; padding: 8px 10px; overflow: hidden; color: #fff; background: rgba(25,22,18,.62); backdrop-filter: blur(10px); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hero-image-1 { inset: 0 22% 14% 8%; transform: rotate(-1.5deg); z-index: 2; }
.hero-image-2 { width: 42%; height: 42%; right: 0; top: 6%; transform: rotate(2.5deg); z-index: 3; border: 8px solid var(--paper-light); }
.hero-image-3 { width: 46%; height: 38%; right: 2%; bottom: 0; transform: rotate(-2deg); z-index: 4; border: 8px solid var(--paper-light); }
.hero-mosaic::before { content: ""; position: absolute; inset: 7% 13% 3% 0; border: 1px solid var(--gold); transform: translate(18px, 18px); }

.type-overview { padding: 105px 0 120px; border-top: 1px solid var(--line); }
.type-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.type-card { position: relative; min-height: 320px; padding: 34px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.type-card-shai { color: #f8f0e5; background: var(--cinnabar-dark); }
.type-card-da { color: #eff8f4; background: var(--jade); }
.type-number { font: 12px/1 var(--sans); letter-spacing: .18em; opacity: .7; }
.type-symbol { position: absolute; right: 5%; top: -16%; font: 700 240px/1 var(--serif); opacity: .08; }
.type-card div { position: relative; }
.type-card div p { margin: 0 0 7px; font-size: 10px; letter-spacing: .22em; opacity: .72; }
.type-card h3 { margin: 0 0 9px; font: 600 48px/1.1 var(--serif); }
.type-card div span { font-size: 13px; opacity: .72; }
.type-card b { position: absolute; right: 34px; bottom: 34px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; font-size: 20px; font-weight: 400; transition: transform .25s ease; }
.type-card:hover b { transform: translateX(4px); }

.catalog { padding: 110px 0 130px; }
.catalog-tools { margin-bottom: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.28); cursor: pointer; }
.filter-button:hover, .filter-button.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.search-box { width: min(360px, 100%); min-height: 46px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); }
.search-box svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.search-box input { width: 100%; padding: 12px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #8c8478; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 24px; }
.collection-card[hidden] { display: none; }
.collection-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block; background: var(--paper-deep); }
.collection-cover::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.2); }
.collection-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.collection-card:hover .collection-cover img { transform: scale(1.04); filter: saturate(1.04); }
.count-chip { position: absolute; right: 12px; top: 12px; z-index: 1; padding: 6px 10px; border-radius: 50px; color: #fff; background: rgba(28,25,21,.64); backdrop-filter: blur(8px); font-size: 11px; }
.collection-card-body { padding: 18px 3px 0; }
.type-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.type-label i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--cinnabar); }
.type-label.type-da-ka i { background: var(--jade); }
.collection-card h3 { min-height: 3em; margin: 8px 0 12px; font: 600 20px/1.5 var(--serif); }
.collection-card h3 a { background-image: linear-gradient(var(--cinnabar), var(--cinnabar)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size .25s; }
.collection-card:hover h3 a { background-size: 100% 1px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.empty-state { padding: 70px; text-align: center; border: 1px dashed var(--line); color: var(--ink-soft); }

.method-note { padding: 76px 0 96px; display: grid; grid-template-columns: 1fr 2fr; gap: 60px; border-top: 1px solid var(--line); }
.method-note h2 { margin: 0 0 20px; font: 600 clamp(30px, 4vw, 48px)/1.2 var(--serif); }
.method-note div p { max-width: 760px; margin: 0; color: var(--ink-soft); line-height: 2; }

.archive-hero { width: min(1440px, calc(100% - 64px)); min-height: 570px; margin: 0 auto; padding: 64px 0 90px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: stretch; border-bottom: 1px solid var(--line); }
.archive-hero-copy { padding: 62px clamp(0px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.back-link { display: inline-block; width: fit-content; margin-bottom: 50px; color: var(--ink-soft); font-size: 12px; }
.back-link:hover { color: var(--cinnabar); }
.archive-hero h1 { margin: 0 0 24px; font: 600 clamp(70px, 8vw, 116px)/.95 var(--serif); }
.archive-hero-copy > p:not(.eyebrow) { max-width: 520px; margin: 0; color: var(--ink-soft); line-height: 2; }
.archive-hero dl { display: flex; gap: 50px; margin: 48px 0 0; }
.archive-hero dl div { display: flex; align-items: baseline; gap: 9px; }
.archive-hero dt { font: 600 34px/1 var(--serif); }
.archive-hero dd { margin: 0; color: var(--ink-soft); font-size: 12px; }
.archive-hero > img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; box-shadow: var(--shadow); }
.archive-da-ka .eyebrow { color: var(--jade); }
.archive-search { margin: -6px 0 42px auto; }

.collection-hero-detail { width: min(1440px, calc(100% - 64px)); min-height: 640px; margin: 0 auto; padding: 66px 0 90px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(56px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.collection-intro { padding-left: clamp(0px, 3vw, 44px); }
.collection-intro .back-link { margin-bottom: 44px; }
.collection-intro h1 { max-width: 650px; margin: 16px 0 20px; font: 600 clamp(42px, 6vw, 82px)/1.12 var(--serif); letter-spacing: -.025em; }
.collection-intro > p { margin: 0 0 35px; color: var(--ink-soft); }
.collection-hero-detail figure { position: relative; margin: 0; padding: 15px 15px 42px; background: var(--paper-light); box-shadow: var(--shadow); transform: rotate(1deg); }
.collection-hero-detail figure img { width: 100%; height: 500px; object-fit: cover; }
.collection-hero-detail figcaption { position: absolute; left: 18px; bottom: 12px; color: var(--ink-soft); font-size: 10px; letter-spacing: .18em; }
.photo-section { padding: 105px 0 120px; }
.photo-wall { columns: 3 300px; column-gap: 18px; }
.photo-item { position: relative; margin: 0 0 18px; overflow: hidden; display: block; break-inside: avoid; background: var(--paper-deep); cursor: zoom-in; }
.photo-item img { width: 100%; height: auto; transition: transform .5s ease, filter .3s; }
.photo-item:hover img { transform: scale(1.018); filter: brightness(.92); }
.photo-item span { position: absolute; right: 10px; bottom: 9px; padding: 5px 8px; color: #fff; background: rgba(20,18,15,.62); font-size: 10px; letter-spacing: .1em; }
.next-nav { padding: 0 0 110px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.next-nav a { padding: 28px 32px; border: 1px solid var(--line); transition: background .2s; }
.next-nav a:hover { background: rgba(255,255,255,.35); }
.next-nav span { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 11px; }
.next-nav strong { font: 600 22px/1.3 var(--serif); }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: rgba(17,16,14,.97); }
.lightbox::backdrop { background: rgba(17,16,14,.97); }
.lightbox[open] { display: grid; grid-template-columns: 90px 1fr 90px; grid-template-rows: 68px 1fr; }
.lightbox-top { grid-column: 1 / -1; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); }
.lightbox-top p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.lightbox-top button { width: 44px; height: 44px; border: 0; color: #fff; background: none; font-size: 34px; cursor: pointer; }
.lightbox-stage { position: relative; min-width: 0; min-height: 0; padding: 30px; display: grid; place-items: center; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 128px); object-fit: contain; }
.lightbox-stage span { position: absolute; right: 30px; bottom: 18px; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .16em; }
.lightbox-nav { border: 0; color: rgba(255,255,255,.7); background: none; font-size: 30px; cursor: pointer; }
.lightbox-nav:hover { color: #fff; background: rgba(255,255,255,.04); }

.not-found { min-height: 620px; padding: 130px 32px; text-align: center; }
.not-found h1 { margin: 0 0 20px; font: 600 clamp(56px, 8vw, 100px)/1 var(--serif); }
.not-found > p:not(.eyebrow) { margin: 0 0 36px; color: var(--ink-soft); }

.site-footer { width: min(1440px, calc(100% - 64px)); min-height: 190px; margin: 0 auto; padding: 45px 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); }
.brand-mark-small { width: 36px; font-size: 18px; }
.site-footer p { margin: 0; text-align: center; font: 600 16px/1.8 var(--serif); }
.site-footer p span { color: var(--ink-soft); font: 11px/1.4 var(--sans); }
.site-footer > a { justify-self: end; color: var(--ink-soft); font-size: 12px; }

@media (max-width: 1020px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-mosaic { min-height: 620px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-hero, .collection-hero-detail { grid-template-columns: 1fr; gap: 30px; }
  .archive-hero-copy { padding-bottom: 15px; }
  .archive-hero > img { height: 520px; }
  .collection-hero-detail figure { max-width: 760px; }
}

@media (max-width: 720px) {
  .site-header, .home-hero, .archive-hero, .collection-hero-detail, .site-footer { width: min(100% - 32px, 1440px); }
  .section-shell { width: min(100% - 32px, 1320px); }
  .site-header { min-height: 78px; align-items: center; }
  .brand small { display: none; }
  .brand-mark { width: 36px; font-size: 18px; }
  .site-nav { gap: 16px; font-size: 12px; }
  .site-nav a { padding: 28px 0; }
  .site-nav a:last-child { display: none; }
  .home-hero { min-height: 0; padding: 58px 0 75px; gap: 48px; }
  .hero-copy h1 { font-size: clamp(62px, 19vw, 86px); }
  .hero-lede { font-size: 14px; }
  .hero-stats { gap: 28px; }
  .hero-stats div + div::before { left: -14px; }
  .hero-mosaic { min-height: 440px; }
  .hero-image-1 { right: 15%; left: 0; }
  .hero-image-2 { width: 43%; height: 36%; }
  .hero-image-3 { width: 48%; height: 34%; }
  .type-overview, .catalog, .photo-section { padding: 74px 0 84px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 28px; }
  .type-cards { grid-template-columns: 1fr; }
  .type-card { min-height: 270px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .collection-grid { grid-template-columns: 1fr; gap: 38px; }
  .collection-card h3 { min-height: 0; }
  .method-note { grid-template-columns: 1fr; gap: 12px; padding: 65px 0; }
  .archive-hero { padding: 32px 0 64px; }
  .archive-hero-copy { padding: 35px 0 8px; }
  .archive-hero h1 { font-size: 72px; }
  .archive-hero > img { height: 390px; }
  .collection-hero-detail { padding: 38px 0 70px; }
  .collection-intro { padding: 0; }
  .collection-intro .back-link { margin-bottom: 32px; }
  .collection-hero-detail figure img { height: 390px; }
  .photo-wall { columns: 2 150px; column-gap: 10px; }
  .photo-item { margin-bottom: 10px; }
  .next-nav { grid-template-columns: 1fr; padding-bottom: 80px; }
  .lightbox[open] { grid-template-columns: 50px 1fr 50px; grid-template-rows: 60px 1fr; }
  .lightbox-stage { padding: 10px; }
  .site-footer { grid-template-columns: auto 1fr; gap: 18px; }
  .site-footer p { text-align: left; }
  .site-footer > a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
