@font-face{font-family:Instrument Serif;src:url("fonts/instrument-serif.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Instrument Serif;src:url("fonts/instrument-serif-italic.ttf") format("truetype");font-style:italic;font-weight:400;font-display:swap}
@font-face{font-family:Instrument Sans;src:url("fonts/instrument-sans.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Instrument Sans;src:url("fonts/instrument-sans-bold.ttf") format("truetype");font-weight:650 900;font-display:swap}

:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --ink: #28221b;
  --quiet: #665e53;
  --line: #cfc8bb;
  --dark: #241811;
  --light: #fcf5e8;
  --copper: #dfab77;
  --focus-ink: #80522d;
  --direction-arrow: url("arrow-right.svg");
  --serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --gutter: clamp(1.3rem, 5.9vw, 6.4rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.55 var(--sans); background: var(--paper); color: var(--ink); }
::selection { color: #302117; background: #e9c6a0; }
input, textarea { caret-color: var(--focus-ink); }
:where(h1,h2,h3,p,figure) { margin: 0; }
img { display: block; max-width: 100%; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 4px; }
.hero :focus-visible, .contact :focus-visible { outline-color: #ffe4a8; }
[hidden] { display: none !important; }
.frame { width: min(100% - 2 * var(--gutter), 100rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 7.3vw, 8rem); scroll-margin-top: .5rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(3.35rem, 5.15vw, 6.5rem); line-height: 1.01; letter-spacing: -.036em; }
.skip-link { position: fixed; z-index: 10; transform: translateY(-150%); padding: .7rem 1.2rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative; isolation: isolate; overflow: clip; color: var(--light); background: var(--dark);
  display: grid; grid-template-rows: auto 1fr auto; min-height: clamp(41rem, 52.1vw, 62rem);
}
.hero-art, .hero::before { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 19%; }
.hero::before {
  content: ""; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(16 10 8 / 46%), transparent 21%), linear-gradient(90deg, rgb(20 13 10 / 27%) 0%, rgb(20 13 10 / 9%) 35%, transparent 58%), linear-gradient(0deg, rgb(13 9 7 / 24%), transparent 12%);
}
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding-block: clamp(1.15rem, 1.9vw, 2.15rem); z-index: 3; }
.brand { display: inline-flex; gap: .72rem; align-items: center; width: max-content; }
.seal { width: 2.57rem; height: 2.57rem; border-radius: 1px; }
.brand-wordmark { display: flex; flex-direction: column; color: var(--light); }
.brand-wordmark > span { font: 400 2.03rem/.94 var(--serif); letter-spacing: -.025em; }
.brand-wordmark small { font-size: .64rem; letter-spacing: .165em; text-transform: uppercase; line-height: 1; margin-top: .36rem; }
.desktop-nav { display: flex; gap: clamp(1.5rem, 2.65vw, 3.2rem); }
@media (min-width: 1101px) {
  .desktop-nav { position: relative; left: max(-8.3rem, -7.25vw); }
}
.desktop-nav a, .header-actions, .view-selector, .mobile-nav { font-size: .90625rem; }
.desktop-nav a { padding: .4rem 0; position: relative; color: #fff9ef; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .13rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .17s; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 1.25rem; align-items: center; justify-self: end; }
.header-inquiry { border: 1px solid rgb(248 240 222 / 65%); border-radius: 2rem; padding: .48rem 1.27rem; color: var(--ink); background: var(--light); }
.header-inquiry:hover, .button-paper:hover { background: #ead5b2; }
.menu-toggle, .mobile-nav { display: none; }
.hero-content { display: flex; align-items: center; padding-block: clamp(1.8rem, 2.7vw, 3rem) .9rem; }
.hero-copy { width: min(47%, 41rem); }
.hero-kicker { display: flex; align-items: center; gap: .72rem; color: #f0d4ae; font-size: .78rem; font-weight: 650; letter-spacing: .18em; line-height: 1.5; }
.kicker-rule { width: 2.15rem; height: 1px; background: #d3a272; margin-right: .1rem; }
.hero-kicker .slash { font-weight: 400; opacity: .7; font-size: .9rem; }
.hero h1 { margin: 1.26rem 0 1.45rem; font-size: clamp(5.65rem, 7.75vw, 9.6rem); line-height: .88; letter-spacing: -.039em; }
.headline-line, .hero h1 em { display: block; }
.by-mobile { display: none; }
.hero h1 em { color: var(--copper); font-weight: 400; letter-spacing: -.045em; }
.hero-description { width: min(100%, 23.25rem); line-height: 1.63; color: #e9e0d4; font-size: 1rem; }
.hero-links, .contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: .66rem; }
.hero-links { margin-top: 1.62rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .65rem 1.32rem; border-radius: 3rem; font-size: .91rem; font-weight: 650; line-height: 1.2; transition: background .16s, border-color .16s; }
.forward, .outward { display: inline-flex; align-items: center; gap: .5em; }
.forward::after, .outward::after, .nav-overview span::after {
  content: ""; display: inline-block; flex: none; width: 1.06em; height: 1.06em;
  background-color: currentColor; mask: var(--direction-arrow) center / contain no-repeat;
}
.outward::after { transform: rotate(-45deg); }
.button:active, .header-quote:active, .drawer-quote:active, .mobile-contacts a:active { transform: translateY(1px); }
.button-paper { background: var(--light); border: 1px solid var(--light); color: #332519; }
.button-glass { border: 1px solid rgb(245 231 209 / 55%); color: var(--light); background: rgb(29 21 16 / 24%); }
.button-glass:hover { background: rgb(249 233 209 / 14%); border-color: var(--light); }
.hero-foot { display: flex; justify-content: flex-end; align-items: center; padding-block: 0 clamp(1.35rem, 1.9vw, 2.3rem); }
.view-selector { display: inline-flex; gap: .13rem; padding: .21rem; border: 1px solid rgb(250 238 221 / 36%); border-radius: 4rem; background: rgb(29 20 15 / 66%); color: #f5e7d6; }
.view-selector a { display: inline-flex; align-items: center; justify-content: center; min-height: 1.85rem; padding: .1rem .84rem; border-radius: inherit; font-size: .81rem; }
.view-selector a[aria-current] { background: #f1e8d7; color: #372619; }
.view-selector a:not([aria-current]):hover { background: rgb(255 245 229 / 13%); }

.works { padding-top: clamp(3.6rem, 5.3vw, 6rem); }
.section-top { display: flex; align-items: end; justify-content: space-between; column-gap: 2rem; row-gap: 1.2rem; margin-bottom: clamp(1.9rem, 2.5vw, 3rem); }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; padding-bottom: .25rem; }
.filters button, .dialog-switches button { background: transparent; border: 1px solid transparent; border-radius: 3rem; padding: .41rem .88rem; color: var(--quiet); font-size: .91rem; }
.filters button[aria-pressed="true"], .dialog-switches button[aria-pressed="true"] { color: var(--ink); border-color: #8b8274; background: #efeade; }
.filters button:hover, .dialog-switches button:hover { color: var(--ink); background: #ebe6da; }
.works-grid { display: grid; grid-template-columns: 1.06fr 1.18fr .94fr; gap: clamp(1rem, 2.1vw, 2.65rem); }
.works-grid[data-filtered="true"] { grid-template-columns: repeat(3, minmax(0,1fr)); }
.work-card { min-width: 0; }
.work-card a { display: block; }
.work-image { position: relative; overflow: hidden; height: clamp(15rem, 24.45vw, 28rem); background: #d4ccbd; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card[data-groups="animals"] img { object-position: center 9%; }
.work-card[data-groups="animals vessels"] img { object-position: 55% center; }
.work-card a:hover img { transform: scale(1.026); }
.work-open, .record-open, .dialog-close { display: grid; place-items: center; border-radius: 50%; }
.work-open { position: absolute; bottom: .82rem; right: .82rem; width: 2.22rem; height: 2.22rem; color: #30251a; background: rgb(250 246 235 / 94%); }
.work-open::before, .work-open::after, .record-open::before, .record-open::after, .dialog-close span::before, .dialog-close span::after {
  content: ""; width: .78rem; height: 1px; background: currentColor; position: absolute;
}
.work-open::after,.record-open::after { transform: rotate(90deg); }
.work-caption { padding-block: .95rem; }
.work-caption h3, .record-row h3 { font-size: clamp(1.8rem, 2.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.024em; }
.work-caption p, .record-row p, .artist-photo figcaption { font-size: .9rem; color: var(--quiet); }
.work-caption p { margin-top: .26rem; }
.artist { background: #e9e4d8; }
.artist-grid { display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: clamp(2.2rem, 6.1vw, 7.5rem); }
.artist-photo img { width: 100%; height: auto; }
.artist-photo figcaption { margin-top: .6rem; }
.section-label { font-size: .91rem; font-weight: 650; margin-bottom: 1rem; }
.artist-copy h2 { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.artist-copy h2 > [lang="en"] { font-family: var(--serif); }
.name-divider { height: .65em; width: 1px; transform: rotate(13deg); background: #afa490; }
.name-chinese { font: 400 .47em/1 var(--cn-serif); letter-spacing: .13em; }
.artist-copy p:not(.section-label), .archive-head p, .dialog-info > p:not(.section-label) { color: #514a40; line-height: 1.76; }
.artist-copy p + p { margin-top: .85rem; }
.text-link { display: inline-flex; padding-block: .2rem; border-bottom: 1px solid currentColor; color: var(--ink); font-size: .94rem; }
.text-link:hover { color: #895135; }
.artist-copy .text-link { margin-top: 1.35rem; }
.archive-grid { display: grid; grid-template-columns: .82fr 1.24fr; gap: clamp(3rem, 7vw, 9rem); align-items: start; }
.archive-head h2 { max-width: 8em; }
.archive-head p { max-width: 23.5rem; margin-top: 1.1rem; }
.record-list { border-top: 1px solid #9e9382; }
.record-row { display: grid; grid-template-columns: max-content 1fr auto; align-items: center; gap: clamp(.8rem, 1.65vw, 2.1rem); padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.record-row time { font-size: .84rem; color: #685e50; min-width: 4.3rem; }
.record-row h3 { font-size: clamp(1.55rem, 1.9vw, 2.45rem); }
.record-open { position: relative; width: 2rem; height: 2rem; border: 1px solid var(--line); transition: background .18s; }
.record-row:hover .record-open { background: #e7dfd0; }
.contact { background: #33271f; color: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 7vw, 9rem); align-items: center; }
.contact h2 { max-width: 7.2em; }
.contact .section-label { color: #e8b982; }
.contact-copy { max-width: 31rem; }
.contact-copy p { color: #ede0cf; line-height: 1.7; }
.contact-links { margin-block: 1.45rem 1rem; }
.plain-email { font-size: .94rem; text-underline-offset: .3rem; }
.plain-email:hover { text-decoration: underline; }
.site-footer { color: #65594a; font-size: .87rem; }
.footer-inner, .footer-inner > div { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-inner { padding-block: 1.5rem; }
.foot-sep { margin-inline: .35rem; }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: .23em; }

.detail-dialog { position: fixed; inset: 0; width: min(69rem, 92vw); max-width: none; max-height: 90vh; max-height: 90dvh; margin: auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; }
.detail-dialog::backdrop { background: rgb(23 16 12 / 79%); }
html:has(.detail-dialog[open]) { overflow: hidden; }
.dialog-layout { display: grid; grid-template-columns: 1.35fr .9fr; min-height: min(35rem, 72vh); position: relative; }
.dialog-stage { display: grid; align-items: center; min-width: 0; background: #dbd5c9; }
.record-dialog .dialog-stage { background: #d5d0c6; }
.dialog-stage a { display: grid; place-items: center; width: 100%; }
.dialog-stage img { width: 100%; height: min(68vh, 40rem); object-fit: contain; }
.dialog-info { align-self: center; padding: clamp(2rem, 3.4vw, 4rem); }
.dialog-info h2 { font-size: clamp(2.6rem, 4.2vw, 4.75rem); margin-bottom: 1rem; }
.dialog-switches { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: 1.3rem; }
.dialog-info .text-link { margin-top: 1rem; }
.dialog-close { position: absolute; top: .8rem; right: .8rem; background: #f7f3ea; border: 1px solid var(--line); width: 2.55rem; height: 2.55rem; color: var(--ink); }
.dialog-close span { display: grid; place-items: center; }
.dialog-close span::before { transform: rotate(45deg); }
.dialog-close span::after { transform: rotate(-45deg); }

@media (min-width: 1950px) {
  .hero { min-height: 57vw; }
  .hero-art img { object-position: right center; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  :root { --gutter: 4vw; }
  .hero { min-height: clamp(36.65rem, 66vw, 43rem); }
  .hero-art, .hero::before { top: 4.7rem; }
  .hero-art img { object-position: 84% 12%; }
  .masthead { padding-block: 1rem; }
  .hero h1 { font-size: clamp(4.3rem, 8.9vw, 5.6rem); }
  .hero-copy { width: 46%; }
  .desktop-nav { gap: 1.15rem; }
  .header-actions { gap: .65rem; }
  .hero-content { padding-top: 1rem; }
  .section-top { align-items: center; }
  .record-row { grid-template-columns: 1fr auto; gap: .35rem .75rem; }
  .record-row time { grid-column: 1 / -1; }
  .archive-grid { gap: 2.3rem; }
}
@media (max-width: 700px) {
  :root { --gutter: clamp(1.15rem, 5.25vw, 2.25rem); }
  .section { padding-block: 3.8rem; }
  h2 { font-size: clamp(3rem, 10.4vw, 4rem); }
  .hero { display: grid; min-height: 0; grid-template-columns: 100%; grid-template-rows: auto auto auto; background: #211610; }
  .hero::before { display: none; }
  .masthead { position: relative; grid-row: 1; gap: .35rem; grid-template-columns: 1fr auto; padding-block: .88rem; }
  .brand { gap: .55rem; }
  .seal { width: 2.17rem; height: 2.17rem; }
  .brand-wordmark > span { font-size: 1.8rem; }
  .brand-wordmark small { margin-top: .26rem; font-size: .57rem; }
  .desktop-nav, .header-inquiry { display: none; }
  .header-actions { gap: .75rem; }
  .menu-toggle { display: grid; align-content: center; gap: 5px; justify-items: center; width: 2.55rem; height: 2.55rem; border: 1px solid rgb(249 239 219 / 42%); border-radius: 50%; padding: 0; background: transparent; color: inherit; }
  .menu-toggle i { display: block; width: 1.02rem; height: 1px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-nav { position: absolute; display: grid; top: calc(100% - 2px); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); z-index: 4; background: #302119; padding: .45rem var(--gutter) .85rem; box-shadow: 0 10px 18px #21161038; }
  .mobile-nav a { padding: .66rem .2rem; border-bottom: 1px solid #745e49; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .hero-art { position: relative; z-index: 0; grid-row: 2; grid-column: 1; height: clamp(14.5rem, 72vw, 26.4rem); }
  .hero-art img { object-position: 63% 19%; }
  .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #211610, transparent 18%); pointer-events: none; }
  .hero-content { grid-row: 3; grid-column: 1; padding: .66rem 0 2.15rem; }
  .hero-copy { width: 100%; }
  .hero-kicker { gap: .52rem; font-size: .75rem; }
  .kicker-rule { width: 1.55rem; }
  .hero h1 { font-size: clamp(3.4rem, 10.9vw, 4.8rem); margin: .88rem 0 .78rem; line-height: .96; }
  .headline-line { display: inline; }
  .by-desktop { display: none; }
  .by-mobile { display: inline; }
  .hero h1 em { display: block; }
  .hero-description { max-width: 32rem; font-size: 1rem; line-height: 1.5; }
  .hero-links { margin-top: 1.12rem; gap: .55rem; }
  .button { min-height: 2.65rem; padding: .6rem 1.12rem; }
  .hero-foot { grid-row: 2; grid-column: 1; align-self: end; z-index: 1; padding: 0 0 .83rem; pointer-events: none; }
  .view-selector { pointer-events: auto; }
  .view-selector a { padding: .15rem .72rem; min-height: 1.77rem; }
  .section-top { display: grid; gap: .85rem; margin-bottom: 1.28rem; }
  .filters { margin-left: -.1rem; }
  .filters button { padding: .35rem .72rem; }
  .works-grid, .works-grid[data-filtered="true"] { grid-template-columns: 1fr; gap: 1.46rem; }
  .work-image { height: auto; aspect-ratio: 1.32; }
  .work-card[data-groups="animals"] img { object-position: center 8%; }
  .work-caption { padding: .65rem 0 0; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
  .work-caption p { margin-top: 0; }
  .artist-grid, .archive-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .artist-photo figcaption { font-size: .84rem; }
  .artist-copy h2 { margin-bottom: .85rem; }
  .section-label { margin-bottom: .65rem; }
  .archive-head h2 { max-width: 10em; }
  .archive-head p { max-width: 28rem; margin-top: .7rem; }
  .record-row { grid-template-columns: 1fr auto; gap: .28rem .75rem; padding: 1rem 0; }
  .record-row time { grid-column: 1 / -1; }
  .record-row h3 { font-size: 1.75rem; }
  .contact h2 { max-width: none; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.1rem; }
  .footer-inner > div { gap: 1rem; }
  .detail-dialog { width: min(92vw, 31rem); }
  .dialog-layout { display: flex; flex-direction: column; }
  .dialog-stage img { height: min(43dvh, 26rem); }
  .dialog-info { padding: 1.35rem; align-self: stretch; }
  .dialog-info h2 { font-size: 2.65rem; }
  .dialog-close { top: .52rem; right: .52rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 3rem; }
  .hero-links .button { font-size: .86rem; padding-inline: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
