@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/noto-serif-sc-500.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-500.woff2") format("woff2");
}

:root {
  --ink: #0e0d0b;
  --ink-2: #171410;
  --panel: #100e0c;
  --paper: #f4efe6;
  --paper-dim: #cfc4b4;
  --quiet: #b3a696;
  --gold: #c6a36a;
  --gold-2: #ead7b0;
  --line: rgba(198, 163, 106, 0.32);
  --line-strong: rgba(198, 163, 106, 0.55);
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Instrument Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --measure: 68ch;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1180px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(198, 163, 106, 0.09), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold-2);
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.95rem var(--pad);
  background: rgba(14, 13, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  margin-right: auto;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand__kind {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper-dim);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav a[aria-current="page"] {
  color: var(--paper);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lang a {
  text-decoration: none;
  color: var(--quiet);
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang a[aria-current="true"] {
  color: var(--gold-2);
}

.lang__slash {
  color: var(--line-strong);
}

.hero {
  padding: clamp(4.5rem, 12vh, 8.5rem) 0 clamp(3rem, 7vh, 5rem);
}

.kicker {
  margin: 0 0 1.25rem;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1,
.page-head h1,
.play-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 9vw, 7.4rem);
}

.hero h1 em,
.page-head h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  max-width: 42rem;
  margin: 1.6rem 0 0;
  color: var(--paper-dim);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.rule {
  width: min(100%, 12rem);
  height: 1px;
  margin: 2rem 0 0;
  background: var(--gold);
  border: 0;
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: 4rem;
}

.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: stretch;
}

.exhibit:nth-child(even) .plate {
  order: 2;
}

.plate {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(198, 163, 106, 0.08), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.plate svg {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
}

.exhibit__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.4rem 0;
}

.exhibit__index {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.exhibit h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.exhibit__note {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--paper-dim);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--quiet);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.enter {
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font: 500 0.95rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

a.enter:hover,
button.enter:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.page-head {
  padding: clamp(3.2rem, 8vh, 5.5rem) 0 1.5rem;
}

.page-head h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.prose {
  max-width: var(--measure);
  padding-bottom: 3rem;
}

.prose h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose p,
.prose li {
  color: var(--paper-dim);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--gold-2);
}

.play-head {
  padding: clamp(2.4rem, 6vh, 4rem) 0 1.2rem;
}

.play-head h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.stage-scroll {
  background: #050403;
  border: 1px solid var(--line-strong);
  overflow: auto;
}

.stage-scroll iframe {
  display: block;
  width: 100%;
  min-width: var(--stage-min, 0);
  height: var(--stage-h, 72vh);
  border: 0;
  background: #000;
}

.play-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: 2.5rem;
  padding: 2.4rem 0 0;
}

.play-copy h2 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.play-copy p {
  margin: 0;
  color: var(--paper-dim);
}

.controls {
  margin: 0;
}

.controls div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.controls dt {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.controls dd {
  margin: 0;
  color: var(--paper-dim);
}

.credits {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.credits p,
.credits li {
  color: var(--paper-dim);
}

.credits ul {
  padding-left: 1.15rem;
}

.ad-gap {
  height: 160px;
}

.ad-slot {
  margin: 0 auto 3rem;
  max-width: 728px;
  min-height: 120px;
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--line-strong);
  background: transparent;
}

.ad-slot__label {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ad-slot__note {
  margin: 0.45rem 0 0;
  color: var(--quiet);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem var(--pad) 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer a {
  color: var(--paper-dim);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.gate h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  margin: 0 0 0.6rem;
}

.gate p {
  color: var(--paper-dim);
  margin: 0 0 1.5rem;
}

.gate__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.gate__links a {
  min-width: 8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-lang="en"] [data-only="zh"],
html[data-lang="zh"] [data-only="en"] {
  display: none;
}

@media (max-width: 860px) {
  .exhibit,
  .exhibit:nth-child(even) .plate,
  .play-copy {
    display: block;
  }

  .exhibit:nth-child(even) .plate {
    order: 0;
  }

  .plate {
    margin-bottom: 1.25rem;
  }

  .controls div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .mast {
    padding-inline: 1rem;
  }

  .brand {
    margin-right: 0;
  }

  .lang {
    margin-left: auto;
  }

  .nav {
    width: 100%;
    padding-bottom: 0.2rem;
  }
}
