:root {
  color-scheme: light;
  --paper: #e9e5dc;
  --paper-soft: #f0ede6;
  --ink: #272a28;
  --ink-soft: #66655f;
  --line: rgba(39, 42, 40, 0.22);
  --moss: #60675c;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.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; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4vw;
  font-size: .78rem;
  letter-spacing: .14em;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: .95rem; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
nav a { border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible { border-bottom-color: currentColor; }

.intro {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: 150px 6vw 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 73% 38%, rgba(255,255,255,.55), transparent 30%),
    linear-gradient(124deg, transparent 0 62%, rgba(73,78,71,.06) 62% 63%, transparent 63%);
}
.eyebrow { margin: 0 0 20px; color: var(--ink-soft); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.intro .eyebrow { grid-column: 1 / -1; align-self: start; }
.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 9vw, 9rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .93;
}
.intro-note { align-self: end; max-width: 340px; padding: 0 0 15px 28px; border-left: 1px solid var(--line); }
.intro-note p { margin: 0 0 28px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.8; }
.intro-note span { color: var(--ink-soft); font-size: .72rem; letter-spacing: .16em; }
.scroll-cue { grid-column: 1 / -1; justify-self: end; margin-top: 70px; font-size: .75rem; letter-spacing: .16em; }
.scroll-cue span { display: inline-block; margin-left: 12px; transition: transform .25s ease; }
.scroll-cue:hover span { transform: translateY(4px); }

.collection { padding: 120px 4vw 150px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.section-heading h2, .about h2, .detail-copy h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.section-heading h2 { font-size: clamp(2.7rem, 5vw, 5.5rem); }
.collection-count { margin: 0 0 18px; color: var(--ink-soft); font-size: .75rem; letter-spacing: .14em; }
.collection-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; font-size: .78rem; letter-spacing: .08em; transition: .2s ease; }
.filter:hover, .filter:focus-visible, .filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search-label { width: min(320px, 100%); }
#search { width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: .85rem; }
#search:focus { border-bottom-color: var(--ink); }
#search::placeholder { color: #77756e; }

.collection-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; align-items: start; }
.object-card { min-width: 0; }
.object-card[hidden] { display: none; }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
figure { margin: 0; }
.object-card figure { position: relative; }
.object-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.76) contrast(.94); transition: filter .45s ease, transform .6s cubic-bezier(.2,.75,.2,1); }
.object-card:nth-child(2) { margin-top: 110px; }
.object-card:nth-child(3) { margin-top: 38px; }
.object-card figure { overflow: hidden; }
.object-card figcaption { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding: 13px 2px 0; background: var(--paper); font-size: .8rem; letter-spacing: .04em; }
.object-card figcaption span:last-child { color: var(--ink-soft); font-size: .72rem; }
.object-number { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 8px; background: rgba(233,229,220,.9); font-size: .64rem; letter-spacing: .12em; }
.card-open:hover img, .card-open:focus-visible img { filter: saturate(.94) contrast(1); transform: scale(1.018); }
.card-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.empty-state { padding: 80px 0; color: var(--ink-soft); text-align: center; }

.about { min-height: 58svh; display: flex; align-items: flex-end; justify-content: space-between; padding: 80px 6vw; background: #30342f; color: #e5e1d8; }
.about p { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 7.5rem); letter-spacing: -.045em; }
.about span { color: #999990; font-size: .7rem; letter-spacing: .18em; }
footer { display: flex; justify-content: space-between; padding: 28px 4vw; border-top: 1px solid rgba(255,255,255,.15); background: #30342f; color: #aaa99f; font-size: .68rem; letter-spacing: .14em; }

.detail-dialog { width: min(1120px, calc(100% - 34px)); max-height: calc(100svh - 34px); padding: 0; border: 0; background: var(--paper-soft); color: var(--ink); }
.detail-dialog::backdrop { background: rgba(19, 21, 19, .82); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 20px; right: 22px; z-index: 3; border: 0; background: rgba(233,229,220,.88); cursor: pointer; padding: 8px 10px; font-size: .74rem; letter-spacing: .08em; }
.detail-layout { display: grid; grid-template-columns: 1fr .85fr; min-height: min(760px, calc(100svh - 34px)); }
.detail-image-wrap { min-height: 0; background: #272a27; }
.detail-image-wrap img { display: block; width: 100%; height: 100%; max-height: calc(100svh - 34px); object-fit: cover; }
.detail-copy { align-self: center; padding: clamp(42px, 7vw, 90px); }
.detail-copy h2 { font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: 1; }
.detail-story { margin: 36px 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.08rem; line-height: 1.9; }
.detail-copy dl { display: grid; grid-template-columns: 90px 1fr; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; }
.detail-copy dt, .detail-copy dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-copy dt { color: var(--ink-soft); }

@media (max-width: 820px) {
  .site-header { padding: 22px 20px; }
  nav a { display: none; }
  .intro { grid-template-columns: 1fr; padding: 130px 22px 38px; }
  .intro h1 { font-size: clamp(3.8rem, 18vw, 6.5rem); }
  .intro-note { margin-top: 50px; }
  .scroll-cue { margin-top: 42px; }
  .collection { padding: 82px 20px 100px; }
  .collection-tools { align-items: stretch; flex-direction: column; }
  .search-label { width: 100%; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .object-card:nth-child(2), .object-card:nth-child(3) { margin-top: 0; }
  .featured { grid-column: 1 / -1; }
  .featured img { aspect-ratio: 5 / 6; }
  .about { min-height: 48svh; padding: 60px 22px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image-wrap img { height: 48svh; }
}

@media (max-width: 520px) {
  .brand span:last-child { display: none; }
  .intro { min-height: 92svh; }
  .intro-note { padding-left: 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .collection-count { margin-top: 8px; }
  .collection-grid { grid-template-columns: 1fr; gap: 52px; }
  .featured { grid-column: auto; }
  .object-card img, .featured img { aspect-ratio: 4 / 5; }
  .object-card figcaption { font-size: .86rem; }
  footer { flex-direction: column; gap: 8px; }
  .detail-dialog { width: 100%; max-height: 100svh; }
  .detail-image-wrap img { height: 44svh; }
  .detail-copy { padding: 40px 24px 55px; }
}

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