/* Stories 文章共用样式。正文、照片和视频使用同一条阅读栏。 */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300&display=swap");
main.story-detail {
  width: calc(100% - 40px);
  max-width: 860px;
  margin: clamp(28px, 5vw, 76px) auto clamp(64px, 8vw, 112px);
}

.story-detail article {
  font-family: "Manrope", "PingFang SC", sans-serif;
font-weight: 300;
  color: #e6e0d8;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.story-heading {
  margin-bottom: clamp(24px, 3vw, 34px);
  padding-bottom: clamp(18px, 2.6vw, 28px);
  border-bottom: 1px solid #3b3936;
}

.story-heading h1 {
  margin: 0;
  color: #f2ede6;
  font-family: "Montserrat", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.2;
}

.story-byline {
  margin: 12px 0 0;
  color: #beb8af;
  font-size: 14px;
  line-height: 1.5;
}

.story-detail article > p {
  margin: 0 0 1.15em;
}

.story-detail article > h2 {
  margin: 1.65em 0 .65em;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 500;
  line-height: 1.35;
}

/* 只有已有双语正文的文章才会渲染语言按钮。 */
.story-detail .language-switch {
  --switch-surface: #1b1b1b;
  --switch-ink: #ede6dd;
  --switch-border: #55514d;
  width: 84px;
  min-height: 36px;
  margin-bottom: 20px;
  border-radius: 3px;
}

.story-vocab {
  padding: 0 0 10px;
  margin: 0 0 28px;
  border-bottom: 1px solid #3b3936;
}

.story-vocab h2 {
  margin: 0 0 12px;
  font-size: 1em;
  font-weight: 500;
}

.story-vocab dl,
.story-vocab dd {
  margin: 0;
}

.story-vocab dl > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 0;
}

.story-vocab dd {
  color: #beb8af;
}

.story-figure,
.story-detail article > img {
  margin: clamp(24px, 4vw, 40px) 0;
}

.story-detail img,
.story-detail video {
  display: block;
  width: 100%;
  height: auto;
}

.story-detail iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.story-figure figcaption {
  margin: 8px auto 0;
  max-width: 65ch;
  color: #beb8af;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.story-back {
  display: block;
  margin-top: clamp(32px, 5vw, 52px);
  padding-top: 16px;
  border-top: 1px solid #3b3936;
  color: #beb8af;
  font-size: 14px;
  text-decoration: none;
}

.story-back:hover,
.story-back:focus-visible {
  color: #f2ede6;
  text-decoration: underline;
}
main.story-detail.story-wide-ending {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.story-wide-ending article {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 860px) minmax(20px, 1fr);
}

.story-wide-ending article > * {
  grid-column: 2;
}

.story-wide-ending article > .story-ending-photo {
  grid-column: 1 / -1;
  margin: 48px 0 0;
}

.story-ending-photo figcaption {
  width: calc(100% - 40px);
}

.story-wide-ending .story-back {
  margin: 0;
  padding: clamp(64px, 10vw, 160px) 20px;
  border: 0;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 300;
}
.story-wide-ending .story-back {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 30vw, 500px);
  box-sizing: border-box;
  margin: 0;
  padding: 0 20px;
}

.story-wide-ending + .site-footer {
  margin-top: 0;
}
.story-wide-ending article > p {
  line-height: 1.55;
}