:root {
  --display-zh: "STKaiti", "Kaiti SC", "KaiTi", "Noto Serif SC", serif;
  --display-en: "Cormorant Garamond", Georgia, serif;
  --reading: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --paper: #e4d3b7;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

body { font-family: var(--reading); }
body h1, body h2, .letter-lead, .wechat h3 { font-family: var(--display-zh); }
:lang(en) h1, :lang(en) h2, :lang(en) .letter-lead, :lang(en) .wechat h3 { font-family: var(--display-en); }
:lang(en) .hero .title-zh { font-family: var(--display-zh); }
.hero .title-zh {
  font-weight: 400;
  font-size: clamp(88px, 15vw, 207px);
  letter-spacing: .04em;
  line-height: .92;
  margin-inline-start: -.045em;
  color: #eadac1;
}
.hero .english {
  letter-spacing: .18em;
  font-size: clamp(21px, 3.2vw, 41px);
}
.hero-content p { max-width: 470px; font-weight: 400; }
.section h2 { font-weight: 400; }
.letter-paper .letter-lead { font-size: 24px; font-weight: 400; }
.nav .nav-booking { color: #f4d9b8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.text-link {
  color: inherit;
  background: none;
  border: 0;
  padding: 7px 0;
  text-decoration: underline;
  text-decoration-color: #b77561;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }
.hero-actions .text-link { font-size: 13px; }
.visit-times { margin-block-start: 26px; }

.archive {
  color: #30251e;
  background:
    radial-gradient(ellipse at 21% 15%, #f2e2c7aa, transparent 64%),
    linear-gradient(120deg, #d6c5a7, #d9c7aa 50%, #c5af91);
}
.archive-inner { max-width: 1250px; margin: auto; }
.archive-intro {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid #7a675950;
  padding-bottom: 18px;
  margin-bottom: clamp(22px, 5vw, 54px);
}
.archive-intro h2, .archive-intro p { margin: 0; }
.archive-intro p { font-size: 14px; color: #614637; line-height: 1.65; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3.3vw, 42px); }
.evidence {
  padding: 9px 9px 0;
  border: 1px solid #a59073;
  color: #32251a;
  background: #eddfc4;
  text-align: start;
  box-shadow: 2px 6px 14px #46311c37;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.evidence:nth-child(1) { rotate: -1.5deg; }
.evidence:nth-child(3) { rotate: 1.5deg; }
.evidence:hover { transform: translateY(-6px); box-shadow: 2px 11px 22px #46311c54; }
.evidence:focus-visible { outline-color: #7d2c23; }
.evidence img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #271e17; }
.evidence-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8px 16px;
  gap: 12px;
  font-family: var(--display-zh);
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.2;
}
:lang(en) .evidence-label { font-family: var(--display-en); font-weight: 600; }
.evidence-label > :last-child { color: #8d372b; font: 15px var(--reading); }

.evidence-dialog {
  padding: 0;
  width: min(970px, calc(100% - 34px));
  max-height: calc(100dvh - 34px);
  border: 1px solid #8b624a;
  color: var(--paper);
  background: #211a16;
  box-shadow: 0 24px 70px #0009;
}
.evidence-dialog[open] { animation: archive-open .27s var(--ease-out); }
.evidence-dialog::backdrop { background: #100c0bd6; }
@keyframes archive-open { from { opacity: 0; transform: translateY(12px); } }
.evidence-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.evidence-viewer { max-height: 64dvh; overflow: auto; background: #100d0b; }
.evidence-viewer img { display: block; width: 100%; height: auto; margin: auto; }
.evidence-viewer:not(.zoomed) img { max-height: 64dvh; object-fit: contain; }
.evidence-viewer.zoomed img { width: 160%; max-width: none; }
.evidence-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(18px, 3vw, 34px); }
.evidence-copy form { align-self: end; margin: 0; }
.evidence-copy button { color: var(--paper); }
.evidence-close, .evidence-controls button {
  background: none;
  border: 1px solid #725446;
  padding: 10px 14px;
  font-size: 12px;
}
.evidence-close:hover, .evidence-controls button:hover { background: #533027; }
.evidence-detail-main h2 { margin: 0; font-size: clamp(33px, 4vw, 49px); font-weight: 400; line-height: 1.08; }
.evidence-detail-main p { margin: 18px 0; font-size: 14px; line-height: 1.85; }
.evidence-controls { display: flex; justify-content: space-between; gap: 10px; }
.evidence-controls button:disabled { opacity: .38; cursor: default; }

@media (max-width: 700px) {
  .nav { gap: 13px; }
  .nav .nav-booking { display: inline; }
  .archive-intro { display: block; }
  .archive-intro p { margin-top: 6px; }
  .evidence-grid { gap: 8px; }
  .evidence { padding: 4px 4px 0; }
  .evidence-label { padding: 10px 3px 12px; gap: 3px; font-size: clamp(14px, 3.4vw, 20px); }
  .evidence-detail { grid-template-columns: minmax(0, 1fr); }
  .evidence-viewer, .evidence-viewer:not(.zoomed) img { max-height: 40dvh; }
  .evidence-copy { gap: 12px; }
  .evidence-detail-main p { margin: 8px 0; }
}
