@font-face {
  font-family: Instrument;
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: StudioSong;
  src: url("assets/noto-serif-sc.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --ink: #212433;
  --night: #191c29;
  --paper: #f4eddd;
  --sepia: #78684c;
  --line: #c6b99e;
  --gold: #edbc76;
  --song: StudioSong, "Songti SC", SimSun, serif;
}
*,
*::before,
*::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body, h1, h2, h3, p, figure { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid #b76929; outline-offset: 4px; }
::selection { color: #151825; background: #efbe82; }
.wrap { width: min(88%, 78rem); margin-inline: auto; }
.skip { position: fixed; z-index: 9; padding: .5em 1em; background: var(--paper); top: .25rem; left: .25rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { background: #f9f3e5; border-bottom: 1px solid #c2af8c; }
.masthead-inner, .footer-inner, nav, .brand { display: flex; align-items: center; }
.masthead-inner, .footer-inner { justify-content: space-between; }
.masthead-inner { min-height: 4.5rem; }
.brand { gap: .65rem; font: 400 1.85rem/1 Instrument, Georgia, serif; }
.brand img { width: 52px; }
nav { gap: clamp(.9rem, 3.2vw, 2.9rem); font-size: .91rem; }
nav a, footer a { display: inline-grid; align-items: center; min-height: 44px; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .4em; }
.hero { position: relative; isolation: isolate; color: #fff1d9; background: var(--night); }
.stage { position: absolute; inset: 0; z-index: -2; overflow: hidden; container-type: size; }
.scene {
  position: absolute; inset: 0; overflow: hidden;
  transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(1.016);
}
@supports (width: 100cqh) {
  .scene {
    inset: 50% auto auto 50%;
    width: max(100cqw, 250.1cqh); aspect-ratio: 1983 / 793;
    transform: translate(calc(-50% + var(--pan-x, 0px)), calc(-50% + var(--pan-y, 0px))) scale(1.016);
  }
}
.scene picture, .scene img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #171b2bc9 0%, #171b2b95 28%, #171b2b15 50%, transparent 70%);
}
.lamplight {
  position: absolute; left: 72.3%; top: 55.5%; width: 12%; aspect-ratio: 1.5;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse, #ffc26467, #ffb04c21 40%, transparent 70%);
  mix-blend-mode: screen;
}
.glint {
  position: absolute; width: clamp(5px, .55vw, 10px); aspect-ratio: 1; opacity: .75;
  background: #fff1c0;
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
}
.glint-one { left: 66.4%; top: 14.8%; }
.glint-two { left: 77.35%; top: 26.2%; width: 6px; }
.glint-three { left: 56.7%; top: 22.9%; }
.hero-inner { min-height: clamp(32.5rem, 42vw, 44rem); display: grid; align-items: center; padding-block: 3.5rem; }
.hero-copy { width: fit-content; max-width: 52%; }
.hero-kicker, .bio-label { display: flex; align-items: center; gap: .7rem; letter-spacing: .17em; font-size: .9rem; }
.hero-kicker { color: #f9d7a0; }
.hero-kicker span[aria-hidden] { width: 2.4rem; height: 1px; background: var(--gold); }
h1 { margin: 1.25rem 0 1rem; }
h1 span { display: block; font: 400 clamp(4.7rem, 7.5vw, 8.7rem)/.99 Instrument, Georgia, serif; letter-spacing: -.038em; }
h1 em { color: #f5c485; }
h1 b { display: block; margin-top: .45rem; font: 600 clamp(2.05rem, 3.4vw, 3.7rem)/1.42 var(--song); letter-spacing: .15em; }
.intro { color: #eee5d7; }
.explore {
  margin-top: 1.7rem; display: inline-flex; align-items: center; gap: .8em;
  padding: .52rem 1.05rem; min-height: 45px; border: 1px solid #c89f69;
  border-radius: 2px; background: #1a1c28a3; color: #fff1d3; font-size: .92rem;
}
.explore:hover { background: #f1c789; color: #282232; }
.star { font: 1.05rem Georgia, serif; }

.hero:lang(en) h1 { margin-block: clamp(.75rem, 1.9vw, 1.6rem) clamp(.9rem, 1.5vw, 1.3rem); }
.hero:lang(en) h1 b { display: none; }
.hero:lang(en) .intro {
  max-width: 32ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  text-wrap: balance;
}

.work-section {
  padding: clamp(3.5rem, 6.3vw, 6rem) 0 clamp(4.2rem, 7vw, 7rem);
  background-color: var(--paper);
  background-image: radial-gradient(#84715616 .7px, transparent .8px);
  background-size: 5px 5px;
}
.section-title { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
h2, h3 { font-family: var(--song); font-weight: 600; line-height: 1.33; }
h2 { font-size: clamp(2.55rem, 4vw, 4.2rem); letter-spacing: .05em; }
.rule { height: 1px; background: var(--line); flex: 1; position: relative; }
.rule i { position: absolute; right: 0; top: -3px; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid #967745; background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.4vw, 3.4rem); }
.work { min-width: 0; }
.art-plate {
  display: flex; aspect-ratio: 1.65; overflow: hidden; position: relative;
  gap: 3px; padding: 5px; background: #faf5e9; border: 1px solid var(--line);
  box-shadow: 0 5px 12px -7px #4b413566;
}
.plate-panel { position: relative; min-width: 0; overflow: hidden; }
.plate-panel.primary { flex: 3.1; }
.plate-panel.secondary { flex: 1; }
.show-secondary .primary { flex: 1; }
.show-secondary .secondary { flex: 3.1; }
.plate-panel > img { width: 100%; height: 100%; object-fit: cover; }
.mine > img { object-position: center 58%; }
.forest > img { object-position: 46% 47%; }
.village > img { object-position: 47% 59%; }
.digsite img, .mine-scene {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: pixelated; object-position: 14% center;
}
.mine-scene { position: absolute; inset: 0; pointer-events: none; }

.work-info { display: flex; justify-content: space-between; gap: .75rem; align-items: center; margin: 1rem 0 .4rem; }
h3 { font-size: clamp(1.45rem, 2.25vw, 2.2rem); }
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; color: #545660; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.soon { color: #8e471e; }
.soon::before { background: currentColor; }
.work-controls { display: flex; gap: 1.15rem; border-top: 1px solid var(--line); margin-top: .8rem; }
.work-controls button { position: relative; min-height: 44px; padding: .45rem 0; background: none; border: none; font-size: .875rem; color: #686257; }
.work-controls button[aria-pressed=true] { color: #3e3529; font-weight: 650; }
.work-controls button::before { content: ""; position: absolute; inset: -1px 0 auto; height: 2px; background: #90612c; transform: scaleX(0); }
.work-controls button[aria-pressed=true]::before { transform: scaleX(1); }
.work-controls button:hover { color: #79421d; }
html[lang="en"] .work-info,
html[lang="en"] .work-controls { flex-wrap: wrap; }
html[lang="en"] .work-controls { row-gap: 0; }

.about { color: var(--paper); background: radial-gradient(ellipse at 20% 50%, #38323d, transparent 66%), #222330; overflow: hidden; }
.about-inner { display: flex; position: relative; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3.4rem, 6.1vw, 6.5rem); }
.portrait { width: clamp(6.6rem, 12vw, 11.5rem); flex: none; padding: .35rem; border: 1px solid #c2a372; transform: rotate(-4deg); background: #f4e3bd; box-shadow: 5px 6px 0 #12151b8f; }
.portrait img { width: 100%; }
.bio { max-width: 34rem; }
.bio-label { color: #ddb77e; }
.bio h2 { color: #faead0; margin-block: .1em .2em; }
.bio > p:last-child { color: #e2d9d2; }
.lunar-seal { flex: none; pointer-events: none; position: relative; margin: 0 1% 0 auto; width: clamp(85px,12vw,180px); aspect-ratio: 1; border: 1px solid #a880514e; border-radius: 50%; display: grid; place-items: center; transform: rotate(-30deg); }
.lunar-seal::before, .lunar-seal::after { content: ""; position: absolute; border: 1px solid #b48f5b85; border-radius: 50%; }
.lunar-seal::before { inset: 3% 24%; }
.lunar-seal::after { inset: 25% -5%; }
.lunar-seal i { position: absolute; inset: 16%; border: 1px dashed #be9e6a6b; border-radius: 50%; }
.lunar-seal span { font: 2.2rem Georgia, serif; color: #e6c28a; }
footer { background: #1b1d28; color: #e0d5c5; }
.footer-inner { padding-block: .7rem; min-height: 4.5rem; }
footer small, footer a { font-size: .875rem; }

.animated { scroll-behavior: smooth; }
.animated .scene { transition: transform .6s ease-out; }
.animated .lamplight { animation: lamplight 5s ease-in-out infinite alternate; }
.animated .glint { animation: glimmer 4.8s ease-in-out infinite; }
.animated .glint-two { animation-delay: -3s; }
.animated .glint-three { animation-delay: -1.6s; }
.animated .hero-copy { animation: entrance .8s ease-out both; }
.animated .arrive { animation: entrance .65s ease-out both; }
.animated .plate-panel { transition: flex .7s cubic-bezier(.22,.68,.18,1); }
.animated .work-controls button::before { transition: transform .3s ease; }
.animated .explore { transition: background-color .2s, color .2s; }
@keyframes lamplight { from { opacity: .3; } to { opacity: 1; } }
@keyframes glimmer { 0%, 100% { opacity: .23; transform: scale(.65); } 48% { opacity: 1; transform: scale(1.24); } }
@keyframes entrance { from { opacity: .3; transform: translateY(11px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .gallery { grid-template-columns: 1fr; gap: 2.1rem; }
  .lunar-seal { display: none; }
}
@media (max-width: 700px) {
  .masthead-inner { min-height: 3.85rem; }
  .brand { gap: .35rem; font-size: 1.45rem; }
  .brand img { width: 40px; }
  nav { gap: 1.05rem; }
  .hero { display: flex; flex-direction: column; }
  .stage { position: relative; z-index: 0; inset: auto; height: clamp(15.5rem, 70vw, 25.5rem); }
  .scene { inset: 50% auto auto 50%; width: max(100%, 137.55cqh); aspect-ratio: 872 / 634; transform: translate(-50%, -50%) scale(1.008); }
  .stage::after { background: linear-gradient(0deg, var(--night), #191c2955 18%, transparent 49%); }
  .lamplight { left: 55%; }
  .glint-one { left: 44%; } .glint-two { left: 64%; } .glint-three { left: 27%; }
  .hero-inner { min-height: 0; padding: 0 0 2.6rem; margin-top: -1.2rem; z-index: 1; }
  .hero-copy { max-width: 100%; }
  .hero-kicker { color: #edc993; font-size: .86rem; }
  h1 { margin: .7rem 0; }
  h1 span { font-size: clamp(3.7rem, 13.5vw, 6rem); }
  h1 b { font-size: clamp(1.75rem, 6.4vw, 2.4rem); }
  .intro { font-size: 1rem; }
  .explore { margin-top: 1.1rem; }
  .section-title { gap: 1.2rem; margin-bottom: 1.25rem; }
  .work-section { padding-block: 2.6rem 3.5rem; }
  .about-inner { align-items: flex-start; gap: 1.25rem; }
  .portrait { width: clamp(5.2rem, 19vw, 8rem); }
  .bio h2 { font-size: 2.2rem; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 1.6rem); }
  nav { gap: .75rem; }
  .brand { font-size: 1.3rem; }
}

