/* The homepage is an exhibit label beside one documented object. */
body[data-page="home"] {
  --home-edge: max(5%, calc((100% - 1280px) / 2));
  --home-surface: #18221d;
  --home-line: #323e36;
  --home-ink: #ede8dc;
  --home-secondary: #bcc1b8;
  --home-muted: #a0aba1;
  --home-bronze: #d5bc94;
  --home-ui: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.home-reading { max-width: none; margin: 0; padding: 0; }

body[data-page="home"] .site-bar {
  padding-inline: var(--home-edge);
  border-color: var(--home-line);
}
body[data-page="home"] .site-bar .brand-name small { display: none; }
body[data-page="home"] .site-bar .primary-nav {
  gap: 16px;
}
body[data-page="home"] .site-bar .primary-nav a,
body[data-page="home"] .guide-open {
  font: 400 13px/20px var(--home-ui);
  letter-spacing: 0;
}
body[data-page="home"] .guide-open {
  min-height: 44px;
  gap: 8px;
  padding: 8px 12px;
  border-color: var(--home-line);
}
body[data-page="home"] .guide-intro p,
body[data-page="home"] .guide-links small {
  font-family: var(--home-ui);
  font-size: 13px;
  letter-spacing: 0;
}

.home-reading .home-hero {
  display: block;
  min-height: 0;
  padding: 48px var(--home-edge) 40px;
  color: var(--home-ink);
}
.home-hero .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}
.home-hero .hero-copy { max-width: none; margin: 0; padding: 0; }
.home-hero .hero-copy .hero-eyebrow {
  margin: 0 0 24px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--home-bronze);
  color: var(--home-bronze);
  font: 400 13px/20px var(--home-ui);
  letter-spacing: .04em;
}
.home-hero .hero-copy h1 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(64px, 7.4vw, 112px);
  line-height: 1.04;
  letter-spacing: 0;
}
.home-title-sub {
  display: block;
  margin-top: 12px;
  font-size: .53em;
  line-height: 1.25;
}
.home-hero .hero-copy p.hero-description {
  max-width: 27em;
  margin: 24px 0;
  color: var(--home-secondary);
  font: 400 16px/28px var(--home-ui);
  letter-spacing: 0;
}
.home-hero .hero-actions {
  justify-content: flex-start;
  gap: 12px;
}
.home-hero .hero-actions a,
.specimen-caption a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-ink);
  font: 400 14px/20px var(--home-ui);
  letter-spacing: 0;
  text-decoration: none;
  transition: color .16s ease-out, background-color .16s ease-out, border-color .16s ease-out;
}
.home-hero .hero-actions .hero-explore {
  border-color: var(--home-bronze);
  background: var(--home-bronze);
  color: #171914;
}
.home-hero .hero-actions .hero-secondary { background: transparent; }
.home-hero .hero-actions svg, .specimen-caption svg { width: 16px; height: 16px; flex: 0 0 16px; }

.home-specimen {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #101815;
  font-family: var(--home-ui);
}
.specimen-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 20px;
}
.specimen-plate span:last-child {
  color: var(--home-bronze);
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.home-hero .home-specimen .relic-window {
  width: 100%;
  height: clamp(272px, 32vw, 456px);
  aspect-ratio: auto;
  clip-path: none;
  border: 0;
  border-block: 1px solid var(--home-line);
  background: var(--home-surface);
}
.home-hero .home-specimen .relic-image { object-fit: cover; object-position: 50% 29%; }
.specimen-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--home-line);
}
.specimen-caption h2 {
  margin: 0;
  color: var(--home-ink);
  font: 400 24px/32px "JiaGu XinTi", "SimSun", serif;
}
.home-hero .specimen-caption p,
.home-hero .specimen-controls .specimen-note p {
  max-width: none;
  margin: 0;
  color: var(--home-muted);
  font: 400 12px/20px var(--home-ui);
  letter-spacing: 0;
}
.specimen-caption a { padding-inline: 8px; border-color: transparent; font-size: 13px; }
.specimen-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 4px 16px;
}
.specimen-controls .relic-play {
  min-height: 44px;
  padding: 8px 0;
  color: var(--home-bronze);
  font: 400 13px/20px var(--home-ui);
}

.home-reading #excavation-shelf { scroll-margin-top: 0; }

.home-index {
  margin: 0 var(--home-edge) 24px;
  padding-block: 16px 24px;
  border-block: 1px solid var(--home-line);
}
.home-index h2 {
  margin: 0 0 12px;
  color: var(--home-muted);
  font: 400 13px/20px var(--home-ui);
}
.home-index .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  border: 0;
}
.home-index .stats a { min-width: 0; color: var(--home-secondary); text-decoration: none; }
.home-index .stats b {
  display: block;
  margin-bottom: 4px;
  color: var(--home-ink);
  font: 400 28px/32px var(--home-ui);
  font-variant-numeric: tabular-nums;
}
.home-index .stats span { color: inherit; font: 400 13px/20px var(--home-ui); }
body[data-page="home"] .rel-launch {
  min-height: 44px;
  border-color: var(--home-line);
  box-shadow: none;
  font-family: var(--home-ui);
  letter-spacing: 0;
}

@media (hover: hover) and (pointer: fine) {
  .home-hero .hero-actions .hero-explore:hover { background: #e2cba5; }
  .home-hero .hero-actions .hero-secondary:hover,
  .specimen-caption a:hover { background: var(--home-surface); border-color: var(--home-line); }
  .specimen-controls .relic-play:hover,
  .home-index .stats a:hover { color: var(--home-bronze); }
}
@media (max-width: 740px) {
  html:has(body[data-page="home"]) { --site-bar-height: 68px; }
  body[data-page="home"] { --home-edge: 20px; }
  body[data-page="home"] .site-bar {
    display: flex;
    min-height: var(--site-bar-height);
    padding-block: 8px;
    justify-content: space-between;
    gap: 8px;
  }
  body[data-page="home"] .site-bar .hero-brand { gap: 8px; }
  body[data-page="home"] .site-bar .brand-name { font-size: 15px; letter-spacing: 0; }
  body[data-page="home"] .site-bar .primary-nav { display: none; }
  .home-reading .home-hero { padding-block: 28px 24px; }
  .home-hero .hero-content { grid-template-columns: 1fr; gap: 24px; }
  .home-hero .hero-copy .hero-eyebrow { margin-bottom: 12px; }
  .home-hero .hero-copy h1 { font-size: clamp(48px, 13vw, 72px); }
  .home-title-sub { margin-top: 4px; font-size: .64em; }
  .home-hero .hero-copy p.hero-description {
    max-width: 21em;
    margin-block: 12px 16px;
    font-size: 15px !important;
    line-height: 24px;
  }
  .home-hero .hero-actions { gap: 8px; }
  .home-hero .hero-actions a { padding-inline: 12px; }
  .home-hero .home-specimen .relic-window { height: clamp(240px, 72vw, 400px); }
  .home-hero .home-specimen .relic-image { object-position: 50% 33%; }
  .specimen-caption, .specimen-plate, .specimen-controls { padding-inline: 12px; }
  .home-index {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }
  .home-index h2 { margin: 0; }
  .home-index > .rel-dock:has(.rel-launch:not([hidden])) { position: static; }
  .home-index .rel-launch { touch-action: pan-y; }
  .home-index .stats { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-actions a, .specimen-caption a { transition: none; }
}
.motion-reduced .home-hero .hero-actions a,
.motion-reduced .specimen-caption a { transition: none; }
