.story-page {
  --paper: #f8faf7;
  --wash: #eef6ee;
  --deep: #123b33;
  --on-deep: #f5fbf1;
  --ink: #132f28;
  --header-height: 72px;
  --chapter-bar: 61px;
  color: var(--ink);
  background: var(--paper);
}
.story-funnytomato {
  --paper: #fffaf3; --wash: #fbefdc; --deep: #493223;
  --on-deep: #fff8ed; --ink: #34291e; --accent: #734021;
}
.story-funnytrans {
  --paper: #f7f9fa; --wash: #eaf1f5; --deep: #172e40;
  --on-deep: #f1f8fb; --ink: #162d3a; --accent: #20546c;
}
.story-page .shell { width: min(1248px, calc(100% - clamp(36px, 10vw, 160px))); }
.story-page .top { min-height: var(--header-height); position: absolute; z-index: 6; top: 0; inset-inline: 0; }
.story-page .top nav a { white-space: nowrap; }
.story-hero { --mo-light: var(--wash); }
.story-hero-inner {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-block: calc(var(--header-height) + clamp(24px, 3.6svh, 54px)) clamp(18px, 3.2svh, 36px);
  gap: clamp(20px, 3.4svh, 38px);
}
.hero-copy { text-align: center; width: 100%; }
.hero-product { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; }
.hero-product img { width: 32px; height: 32px; border-radius: 8px; }
.hero-product .platform { border-left: 1px solid currentColor; padding-left: 10px; font-size: 13px; font-weight: 500; }
.story-page .hero h1 {
  max-width: 21ch; margin: clamp(13px, 2.1svh, 23px) auto 11px;
  color: var(--ink); font-size: clamp(42px, 5.25vw, 80px); line-height: 1.04; letter-spacing: -.055em;
}
.story-page:lang(zh-Hans) .hero h1 { max-width: 17em; line-height: 1.12; }
.story-page .hero__lead { max-width: 63ch; margin: 0 auto; color: var(--ink); opacity: .84; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.55; }
.story-page:lang(zh-Hans) .hero__lead { max-width: 39em; }
.hero-actions { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: clamp(14px, 2.3svh, 24px); }
.story-page .download { margin: 0; min-height: 46px; gap: 12px; }
.jump-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 14px; }
.jump-link:hover, .chapter-nav a:hover { text-decoration: underline; text-underline-offset: .32em; }
.hero-art {
  width: min(100%, 116svh); border-radius: 14px;
  background: var(--wash); overflow: hidden;
}
.hero-art picture, .hero-art img { width: 100%; height: auto; display: block; }
.chapter-nav {
  position: sticky; top: 0; z-index: 5; background: var(--paper);
  margin-bottom: calc(-1 * var(--chapter-bar) - 2px);
  border-block: 1px solid color-mix(in srgb, var(--ink) 17%, transparent);
}
.chapter-nav-inner { min-height: var(--chapter-bar); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.chapter-nav a { color: var(--ink); min-height: 44px; }
.chapter-home { font-weight: 650; }
.chapter-links { display: flex; align-items: center; column-gap: clamp(18px, 3.3vw, 54px); }
#heading, .story-chapter { scroll-margin-top: calc(var(--chapter-bar) + 3px); }
.chapter-nav + .story-chapter { scroll-margin-top: 0; }
.story-chapter { display: grid; align-items: center; min-height: 100svh; padding-block: clamp(50px, 7.5svh, 100px); }
.chapter-split { background: var(--wash); }
.chapter-spread { color: var(--on-deep); background: var(--deep); }
.chapter-reverse { background: var(--paper); }
.chapter-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 24px; }
.chapter-inner > .chapter-copy { grid-column: span 5; }
.chapter-inner > :is(.chapter-art,.chapter-media) { grid-column: span 7; }
.chapter-reverse .chapter-copy { grid-column: 8 / -1; grid-row: 1; }
.chapter-reverse :is(.chapter-art,.chapter-media) { grid-column: 1 / 8; grid-row: 1; }
.chapter-copy h2 {
  font-weight: 640; font-size: clamp(40px, 4vw, 63px); line-height: 1.08; letter-spacing: -.05em;
  margin: 0; text-wrap: balance;
}
.story-page:lang(zh-Hans) .chapter-copy h2 { line-height: 1.18; letter-spacing: -.045em; }
.chapter-copy p { font-size: clamp(16px, 1.24vw, 20px); line-height: 1.7; margin: 20px 0 0; opacity: .9; max-width: 47ch; }
.chapter-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.chapter-art { position: relative; display: block; width: fit-content; max-width: 100%; justify-self: center; cursor: zoom-in; }
.chapter-art img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(65svh, 720px); border-radius: 8px; }
.chapter-media video { width: 100%; height: auto; display: block; border-radius: 8px; }
.still-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: .25em; }
.chapter-spread a:focus-visible { outline-color: var(--on-deep); }
.zoom-mark { position: absolute; bottom: 12px; right: 12px; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: #fcfffc; color: #19332c; border: 1px solid #ccd6d0; font-size: 21px; transition: transform .18s ease; }
.chapter-art:hover .zoom-mark, .chapter-art:focus-visible .zoom-mark { transform: translate(1px,-2px); }
.chapter-spread.image-landscape .chapter-inner { grid-template-columns: 1fr; gap: clamp(22px, 3.3svh, 42px); }
.chapter-spread.image-landscape .chapter-inner > * { grid-column: 1 / -1; }
.chapter-spread.image-landscape .chapter-copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 24px; }
.chapter-spread.image-landscape .chapter-copy h2 { grid-column: span 5; }
.chapter-spread.image-landscape .chapter-copy p { margin: 0; grid-column: span 7; }
.chapter-spread.image-landscape .chapter-art img { max-height: min(63svh, 680px); }
.story-page .bottom { margin-block: 0; }

@media (max-width: 800px) {
  .story-page { --header-height: 66px; --chapter-bar: 52px; }
  .story-page .shell { width: calc(100% - clamp(36px, 8vw, 64px)); }
  .hero-art { width: 100%; }
  .story-hero-inner { padding-block: calc(var(--header-height) + clamp(22px, 4.2svh, 48px)) clamp(22px, 4.2svh, 48px); justify-content: space-evenly; }
  .chapter-inner, .chapter-reverse .chapter-inner { grid-template-columns: 1fr; gap: clamp(26px, 4.4svh, 58px); }
  .chapter-inner > :is(.chapter-copy,.chapter-art,.chapter-media) { grid-column: 1 / -1; grid-row: auto; }
  .chapter-copy { align-self: end; }
  .chapter-copy h2 { font-size: clamp(35px, 5.7vw, 51px); }
  .chapter-copy p { max-width: 52ch; margin-top: 13px; }
  .chapter-spread.image-landscape .chapter-copy { display: block; }
  .chapter-spread.image-landscape .chapter-copy p { margin-top: 13px; }
  .chapter-art img { max-height: 52svh; }
}
@media (max-width: 640px) {
  .story-page { --header-height: 60px; --chapter-bar: 49px; }
  .hero-product { font-size: 14px; }
  .hero-product img { width: 28px; height: 28px; }
  .story-page .hero h1 { font-size: clamp(36px, 9.3vw, 52px); }
  .hero-art { border-radius: 10px; }
  .story-hero-inner { gap: 22px; }
  .hero-actions { gap: 7px 16px; }
  .story-page .download { font-size: 14px; padding-inline: 17px; }
  .chapter-home { display: none; }
  .chapter-links { width: 100%; gap: 8px; justify-content: space-between; }
  .chapter-links a { font-size: 13px; font-weight: 550; }
  .story-chapter { padding-block: calc(var(--chapter-bar) + 18px) 42px; }
  .chapter-copy h2 { font-size: clamp(30px, 7.5vw, 43px); }
  .chapter-actions { margin-top: 16px; }
  .zoom-mark { bottom: 8px; right: 8px; width: 30px; height: 30px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .zoom-mark { transition: none; }
}
