:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #171815;
  --muted: #73746d;
  --line: #d7d7cf;
  --accent: #bd4d32;
  --serif: Georgia, "Noto Serif SC", "Songti SC", serif;
  --sans: "DM Sans", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

.site-header {
  height: 76px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark { display: inline-flex; gap: 12px; align-items: baseline; font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.wordmark span { color: var(--muted); font-size: 11px; font-weight: 400; }

.hero {
  max-width: 1440px;
  min-height: 530px;
  margin: 0 auto;
  padding: 82px 8.5% 68px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow, .collection-number, .collection-detail, .work-count, .dialog-kicker, .dialog-caption > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { margin: 0 0 26px; color: var(--accent); }
.hero h1 { margin: 0 0 60px -8px; font-family: var(--serif); font-size: clamp(100px, 18vw, 235px); font-weight: 400; letter-spacing: -.09em; line-height: .85; }
.hero-period { color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1fr minmax(280px, 470px); gap: 40px; align-items: end; }
.hero-role { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 35px); letter-spacing: -.03em; }
.hero-intro { max-width: 470px; margin: 0; color: #55564f; font-family: var(--serif); font-size: 15px; line-height: 1.9; }

.work { max-width: 1440px; margin: 0 auto; padding: 30px 5.5% 100px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 26px; border-top: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 45px); font-weight: 400; letter-spacing: -.05em; }
.work-count { color: var(--muted); }

.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.collection-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border: 0;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.collection-card:hover { filter: brightness(.92); }
.collection-card:focus-visible, .dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.collection-film { background: #263b39; }
.collection-writing { color: #f4f0e7; background: #282925; }
.collection-news { color: #21261f; background: #d7d5c7; }
.collection-number { opacity: .7; }
.collection-title { max-width: 90%; font-family: var(--serif); font-size: clamp(32px, 4vw, 55px); letter-spacing: -.055em; line-height: 1.1; }
.collection-detail { max-width: 78%; font-size: 9px; line-height: 1.7; opacity: .75; }
.collection-arrow { position: absolute; right: 23px; bottom: 20px; font-size: 21px; transition: transform 160ms ease; }
.collection-card:hover .collection-arrow { transform: translate(3px, -3px); }
.collection-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; top: 26%; border: 1px solid currentColor; border-radius: 50%; opacity: .13; pointer-events: none; }
.collection-card::before { content: ""; position: absolute; width: 120px; height: 120px; right: -45px; top: calc(26% + 35px); border: 1px solid currentColor; border-radius: 50%; opacity: .12; pointer-events: none; }

.site-footer {
  min-height: 76px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 5.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.site-footer a { color: var(--ink); font-weight: 600; }
.site-footer a span { padding-left: 5px; }
.site-footer p { margin: 0; letter-spacing: .1em; }

/* Work collection dialog */
.work-dialog {
  width: min(940px, calc(100% - 36px));
  max-width: none;
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .24);
}

.work-dialog::backdrop { background: rgba(18, 19, 17, .66); backdrop-filter: blur(3px); }
.dialog-shell { padding: clamp(22px, 5vw, 48px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.dialog-kicker { margin: 0 0 9px; color: var(--accent); }
.dialog-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); font-weight: 400; letter-spacing: -.05em; }
.dialog-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font-size: 27px; line-height: 1; }
.dialog-close:hover { color: var(--paper); background: var(--ink); }
.dialog-collection { padding-top: 26px; }
.dialog-collection[hidden] { display: none; }
.dialog-collection[data-panel="films"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dialog-collection[data-panel="films"][hidden] { display: none; }
.dialog-work { min-width: 0; }
.dialog-video { aspect-ratio: 16 / 9; background: #e7e5dd; }
.video-embed { display: block; width: 100%; height: 100%; border: 0; }
.video-embed[hidden], .video-launch[hidden] { display: none; }
.video-launch {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 0;
  color: #f5f4ef;
  background: #263b39;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dialog-work:nth-child(2) .video-launch { background: #282925; }
.play-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(245, 244, 239, .75);
  border-radius: 50%;
  font-size: 15px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.video-launch:hover .play-icon { color: var(--ink); background: var(--paper); transform: scale(1.06); }
.video-launch:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.dialog-caption { padding-top: 13px; }
.dialog-caption > span { color: var(--muted); font-size: 9px; }
.dialog-caption h3 { margin: 7px 0 0; font-family: var(--serif); font-size: clamp(20px, 2.7vw, 28px); font-weight: 400; line-height: 1.35; }

.writing-work { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; }
.writing-cover { min-height: 260px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: #f4f0e7; background: #282925; }
.writing-cover > span { color: #d0a28e; font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.writing-cover h3 { margin: 18px 0 8px; font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); font-weight: 400; letter-spacing: -.05em; }
.writing-cover p { margin: 0; color: #d5d3c9; font-family: var(--serif); font-size: 14px; }
.writing-work .dialog-caption { padding: 0; }
.writing-work .dialog-caption h3 { font-size: clamp(25px, 3.5vw, 36px); }
.dialog-description { margin: 11px 0; color: #5f6059; font-family: var(--serif); font-size: 14px; line-height: 1.8; }
.wechat-note { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-links a { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #c8c8bf; font-size: 10px; font-weight: 600; }
.dialog-links a:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 42px 1fr 40px; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-number { padding-top: 2px; color: var(--accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.news-item p { margin: 0 0 7px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.news-item h3 { margin: 0; font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); font-weight: 400; line-height: 1.4; }
.news-item span { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.news-item > a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 18px; transition: color 150ms ease, background 150ms ease; }
.news-item > a:hover { color: var(--paper); background: var(--ink); }

/* Long-form article */
.article-page { background: #f7f6f1; }
.article-nav { max-width: 1160px; height: 76px; margin: 0 auto; padding: 0 5.5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.article-nav a { font-size: 13px; }
.article-nav a:hover { color: var(--accent); }
.article-shell { max-width: 800px; margin: 0 auto; padding: 72px 32px 88px; }
.article-kicker { margin: 0 0 20px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.article-shell h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 6vw, 66px); font-weight: 400; letter-spacing: -.055em; line-height: 1.22; }
.article-deck { margin: 23px 0; color: #5f6059; font-family: var(--serif); font-size: 17px; line-height: 1.85; }
.article-byline { padding: 16px 0 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.9; }
.article-byline span { display: block; }
.article-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 13px; }
.article-options a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid #c8c8bf; font-size: 11px; transition: color 150ms ease, background 150ms ease, border-color 150ms ease; }
.article-options a:hover, .article-options a:first-child { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.article-body { color: #282924; font-family: var(--serif); font-size: 16px; line-height: 2.05; }
.article-body h2 { margin: 55px 0 22px; padding-left: 15px; border-left: 2px solid var(--accent); font-size: clamp(23px, 4vw, 30px); font-weight: 500; line-height: 1.55; }
.article-body p { margin: 0 0 19px; }
.article-body .editor-label { margin-bottom: 8px; color: #85857c; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.article-body .byline { margin-bottom: 5px; color: var(--muted); font-family: var(--sans); font-size: 12px; line-height: 1.8; }
.article-body figure { margin: 30px 0; text-align: center; }
.article-body figure img { width: auto; max-width: 100%; max-height: 680px; margin: 0 auto; object-fit: contain; }
.article-body figcaption { margin-top: 9px; color: #83837b; font-family: var(--sans); font-size: 11px; line-height: 1.6; }
.article-end { margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.article-end a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-end p { margin: 0 0 12px; }
.article-summary-en { margin-top: 42px; padding: 30px; border: 1px solid var(--line); font-family: var(--sans); }
.article-summary-en h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.article-summary-en h3 { margin: 24px 0 8px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.article-summary-en p, .article-summary-en li { color: #55564f; font-size: 13px; line-height: 1.8; }
.article-summary-en ul { margin: 0; padding-left: 20px; }

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 20px; }
  .hero { min-height: 440px; padding: 60px 20px 46px; }
  .hero h1 { margin: 0 0 54px -4px; font-size: clamp(84px, 20vw, 145px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 13px; }
  .hero-intro { max-width: 540px; font-size: 14px; }
  .work { padding: 20px 20px 70px; }
  .collection-grid { grid-template-columns: 1fr; gap: 12px; }
  .collection-card { min-height: 190px; padding: 19px; }
  .collection-title { font-size: clamp(34px, 9vw, 48px); }
  .dialog-shell { padding: 22px 18px; }
  .dialog-collection[data-panel="films"] { grid-template-columns: 1fr; gap: 27px; }
  .writing-work { grid-template-columns: 1fr; gap: 19px; }
  .writing-cover { min-height: 215px; }
  .news-item { grid-template-columns: 28px 1fr 34px; gap: 10px; padding: 19px 0; }
  .news-item > a { width: 32px; height: 32px; }
  .site-footer { min-height: 68px; padding: 18px 20px; }
  .article-nav { height: 64px; padding: 0 20px; }
  .article-shell { padding: 48px 20px 68px; }
  .article-deck { font-size: 15px; }
  .article-body { font-size: 15px; line-height: 1.95; }
  .article-body h2 { margin-top: 42px; }
  .article-options a { flex: 1 1 130px; justify-content: center; }
  .article-summary-en { padding: 22px; }
}

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