@font-face {
  font-family: GalleryLatin;
  src: url("../../fonts/E.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: GalleryMono;
  src: url("../news-thoughts-mobile/fonts/dm-mono-regular.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #f3f0e8;
  --ink: #20251d;
  --muted: #5f6357;
  --rule: #cacbbe;
  --accent: #414c35;
  --mono: GalleryMono, monospace;
  --song: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 34px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.8 var(--song);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure,
p,
h1,
h2 {
  margin: 0;
}
h1,
h2 {
  font-weight: 400;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  background: var(--paper);
  z-index: 10;
  padding: 8px 16px;
}
.skip:focus {
  top: 10px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  padding: 25px 3.5vw;
  font: 14px/1 var(--mono);
  letter-spacing: 0.05em;
}
main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 3.5vw;
}
.hero {
  padding: 42px 0 34px;
}
.eyebrow,
.section-line,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.eyebrow {
  font-size: 14px;
  color: var(--muted);
}
.eyebrow [lang="en"],
.section-line > span,
.count {
  font: 11px/1.6 var(--mono);
  letter-spacing: 0.07em;
}
h1 {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--ink);
}
.title-en {
  display: block;
  font: clamp(56px, 12vw, 190px)/0.9 GalleryLatin, Arial, sans-serif;
  letter-spacing: -0.055em;
  margin-left: -0.025em;
}
.title-zh {
  display: block;
  font: clamp(27px, 3.1vw, 46px)/1.2 var(--song);
  letter-spacing: 0.14em;
  margin-top: 27px;
}
.hero-bottom {
  padding-top: 18px;
  font-size: 18px;
}
.count {
  color: var(--muted);
}
.section {
  padding-top: 110px;
}
.section-line {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 34px;
}
.section-line h2 {
  font-size: 17px;
  letter-spacing: 0.08em;
}

/* 图版:多栏瀑布流,横竖图都保持原比例 */
.plate-grid {
  columns: 3 300px;
  column-gap: 34px;
}
.plate {
  break-inside: avoid;
  margin-bottom: 46px;
}
.image-link {
  position: relative;
  display: block;
  background: #e6e2d6;
}
.image-link img {
  width: 100%;
  transition: opacity 0.2s ease;
}
.image-link:hover img {
  opacity: 0.88;
}
.enlarge {
  position: absolute;
  right: 10px;
  top: 8px;
  font: 14px/1 var(--mono);
  color: var(--paper);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.image-link:hover .enlarge,
.image-link:focus-visible .enlarge {
  opacity: 1;
}
.plate figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding-top: 12px;
}
.plate-title {
  font-size: 17px;
  line-height: 1.5;
}
.plate-title [lang="en"] {
  display: block;
  font: 12px/1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.plate-year {
  font: 12px/1.9 var(--mono);
  color: var(--muted);
}
.plate-note {
  grid-column: 1 / -1;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.plate-file {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font: 12px/1.6 var(--mono);
  letter-spacing: 0.03em;
  color: var(--muted);
}
.download {
  flex: none;
  color: var(--ink);
  font: 15px/1.6 var(--song);
}
.empty {
  padding: 60px 0;
  color: var(--muted);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  font-size: 16px;
}
.terms-grid a {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.english {
  font: 13px/1.75 var(--mono);
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 120px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
}
footer > span {
  font: 11px/2 var(--mono);
  letter-spacing: 0.07em;
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #eceae3;
  color: var(--ink);
}
.viewer[open] {
  display: flex;
  flex-direction: column;
}
.viewer::backdrop {
  background: #eceae3;
}
.viewer-bar,
.viewer-bottom {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  font-size: 13px;
}
.viewer-bar p {
  overflow-wrap: anywhere;
}
.viewer-bottom {
  border-top: 1px solid var(--rule);
}
.viewer-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.viewer button,
#viewer-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
}
#viewer-download {
  border-color: var(--ink);
}
.viewer button:disabled {
  opacity: 0.3;
  cursor: default;
}
.viewer-image {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0 20px 14px;
}
.viewer-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#viewer-count {
  font: 12px/1 var(--mono);
}
body.viewer-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .terms-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section {
    padding-top: 80px;
  }
}
@media (max-width: 520px) {
  .topbar,
  main,
  .viewer-bar,
  .viewer-bottom,
  .viewer-image {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding-top: 20px;
  }
  .hero-bottom {
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
  }
  .plate-grid {
    column-gap: 0;
  }
  .viewer-bar {
    align-items: flex-start;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .image-link img,
  .enlarge {
    transition: none;
  }
}
