:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #24231f;
  --muted: #68665d;
  --line: #d8d5ca;
  --accent: #93452f;
  --serif: Georgia, "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --sans: Arial, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden], [data-language="zh"] .en, [data-language="en"] .zh { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1390px, 100% - clamp(34px, 10vw, 144px)); margin-inline: auto; }
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  gap: 22px;
}
.wordmark { font: 34px/1 var(--serif); justify-self: start; white-space: nowrap; letter-spacing: -.05em; }
.wordmark span { font: 13px/1 var(--sans); margin-left: 6px; letter-spacing: .07em; }
nav { display: flex; gap: clamp(20px, 3.6vw, 56px); font-size: 14px; }
nav a:hover, .text-link:hover, .email:hover { color: var(--accent); }
.language {
  justify-self: end;
  min-width: 44px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 4px 10px;
  font-size: 13px;
}
.language:hover { border-color: var(--accent); color: var(--accent); }
.hero { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(24px, 6vw, 100px); padding-block: clamp(40px, 7vw, 105px); }
.hero-copy { padding-bottom: 16px; }
.years { font-size: 13px; letter-spacing: .16em; color: var(--accent); }
h1 { font: 400 clamp(46px, 6vw, 102px)/1.04 var(--serif); letter-spacing: -.06em; margin: 18px 0 33px; }
[data-language="zh"] h1 { font-size: clamp(41px, 5.4vw, 88px); letter-spacing: -.08em; }
.text-link { display: inline-block; font-size: 14px; padding-block: 4px; border-bottom: 1px solid currentColor; }
.hero-art img { width: 100%; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 12px; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.section { border-top: 1px solid var(--line); padding-block: clamp(26px, 4.5vw, 68px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 22px; row-gap: 12px; margin-bottom: clamp(20px, 3vw, 40px); }
h2 { font: 400 clamp(31px, 4vw, 61px)/1.12 var(--serif); letter-spacing: -.04em; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.filters button { padding: 7px 1px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font-size: 13px; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--accent); border-bottom-color: currentColor; }
.series-notes p { max-width: 700px; color: var(--muted); margin: -8px 0 26px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3.2vw, 50px) clamp(13px, 2.3vw, 35px); }
.art-link { display: block; }
.art-image { display: grid; place-items: center; aspect-ratio: 1.22; background: #efede5; overflow: hidden; }
.art-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform 180ms ease; }
.art-link:hover img { transform: scale(1.028); }
.caption { padding-top: 10px; }
h3 { color: var(--ink); font-size: 16px; font-weight: 500; }
.caption p, .exhibitions figcaption p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.exhibitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.exhibitions img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(26px, 7vw, 95px); }
.about img { width: 100%; max-width: 430px; }
.about p { max-width: 650px; margin: 12px 0; }
.artist-name { font: 400 34px/1.1 var(--serif); }
.cv-title { margin-top: 34px; }
.cv { list-style: none; padding: 0; margin: 10px 0 0; }
.cv li { display: grid; grid-template-columns: 3.5em 1fr; gap: 10px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 14px; }
time { color: var(--muted); }
.footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.email { display: inline-block; margin-top: 12px; overflow-wrap: anywhere; }
.social { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 24px; margin-top: 13px; font-size: 13px; }
.social img { width: 135px; margin-top: 7px; }
dialog { max-width: min(92vw, 1110px); max-height: 93dvh; border: 0; background: var(--paper); color: var(--ink); padding: 40px 16px 14px; }
dialog img { width: auto; max-height: 77dvh; object-fit: contain; margin-inline: auto; }
dialog::backdrop { background: rgb(29 27 24 / .82); }
.close { position: absolute; right: 10px; top: 3px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink); font-size: 29px; line-height: 1; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; gap: 4px; padding-top: 15px; }
  nav { grid-row: 2; grid-column: 1 / -1; padding-block: 12px 15px; }
  .hero, .about { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  h1 { margin: 8px 0 15px; }
}
@media (max-width: 500px) {
  .exhibitions { grid-template-columns: 1fr; }
  .caption p { font-size: 12px; }
  .caption h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-image img { transition: none; }
}
