:root {
  color-scheme: light dark;
  --ink: #181713;
  --paper: #f1eee7;
  --paper-deep: #e5e0d6;
  --muted-ink: #716d65;
  --line: rgba(24, 23, 19, .22);
  --glass: rgba(18, 18, 16, .52);
  --white: #fffdf8;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }

body {
  background: #10100e;
  color: var(--white);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { color: inherit; font: inherit; }
button, [tabindex] { outline: none; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  padding: 12px 18px; background: var(--white); color: #111; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.app-shell, .view { width: 100%; height: 100%; min-height: 100dvh; }

.view {
  position: fixed; inset: 0; visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .42s var(--ease), visibility .42s;
}
.view.is-active { visibility: visible; opacity: 1; pointer-events: auto; }

.home-view { overflow: hidden; background: #111; }
.hero-video { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; }
.video-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,6,.2), rgba(7,7,6,.05) 42%, rgba(7,7,6,.78));
}

.site-header {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) clamp(24px, 4vw, 64px) 0;
}

.brand-button { min-height: 48px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.brand-name { display: block; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 23px; letter-spacing: .18em; }
.brand-subtitle { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .32em; opacity: .66; }

.hero-content {
  position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center;
  padding: 90px 24px 220px; text-align: center;
}
.eyebrow, .article-kicker { margin: 0 0 22px; font-size: 11px; font-weight: 600; letter-spacing: .38em; }
.hero-content h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-weight: 400; line-height: .88; }
.hero-content h1 span { display: block; font-size: clamp(72px, 10vw, 160px); letter-spacing: .08em; }
.hero-content h1 em { display: block; margin-top: 16px; font-size: clamp(32px, 4.4vw, 72px); font-weight: 400; letter-spacing: .2em; }
.outline-action {
  min-width: 148px; min-height: 48px; margin-top: 44px; padding: 0 24px;
  border: 1px solid rgba(255,255,255,.72); background: rgba(0,0,0,.14); cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .25em;
  transition: background .2s, color .2s;
}
.outline-action:hover { background: var(--white); color: #111; }

.reader-view {
  color: var(--ink); background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.82), transparent 32%),
    linear-gradient(135deg, var(--paper), var(--paper-deep));
}
.reader-view, .reader-view * { animation: none !important; transition: none !important; }
.reader-header { color: var(--ink); }
.reading-status { display: flex; align-items: center; min-height: 44px; gap: 12px; color: var(--muted-ink); font-size: 11px; letter-spacing: .16em; }
.status-divider { width: 28px; height: 1px; background: var(--line); }

.reader-layout {
  height: 100%; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(320px, 1fr);
  align-items: center; gap: clamp(40px, 8vw, 140px);
  max-width: 1180px; margin: 0 auto; padding: 120px 92px 150px;
}
.article-heading { align-self: center; }
.article-kicker { color: var(--muted-ink); }
.article-heading h1 {
  margin: 0; font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(58px, 6vw, 98px); font-weight: 400; line-height: 1.06; letter-spacing: .08em;
}
.article-author { margin: 28px 0 0; color: var(--muted-ink); font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 17px; letter-spacing: .18em; }
.article-stage {
  position: relative; align-self: center; width: 100%; height: min(58vh, 570px);
  overflow: hidden; contain: paint; touch-action: none; overscroll-behavior: contain;
}
.article-page {
  position: absolute; inset: 0; overflow: hidden; transform: translate3d(0, 0, 0);
  will-change: transform;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(17px, 1.25vw, 20px); line-height: 1.95; letter-spacing: .035em;
  text-align: justify; text-justify: inter-ideograph;
}
.reader-view .article-page.is-sliding {
  transition: transform 280ms cubic-bezier(.22, .8, .28, 1) !important;
}
.article-page-clone { pointer-events: none; }
.article-page p { margin: 0 0 1.1em; text-indent: 2em; }
.article-page p:first-child { text-indent: 0; }
.article-page p:first-child::first-letter { float: left; margin: .08em .12em 0 0; font-size: 3.7em; line-height: .78; }

.page-controls {
  position: fixed; z-index: 20; right: clamp(24px, 4vw, 64px); top: 50%; transform: translateY(-50%);
  display: grid; justify-items: center; gap: 12px;
}
.page-button, .utility-button {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.page-button:disabled { opacity: .22; cursor: default; }
.page-button svg, .utility-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.page-track { width: 1px; height: 92px; overflow: hidden; background: var(--line); }
.page-track span { display: block; width: 100%; height: 100%; background: currentColor; transform-origin: top; transform: scaleY(0); }
.swipe-hint { position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%); margin: 0; color: var(--muted-ink); font-size: 10px; letter-spacing: .24em; }

.utility-controls {
  position: fixed; z-index: 80; left: 50%; bottom: max(30px, env(safe-area-inset-bottom));
  display: flex; transform: translateX(-50%); gap: 2px;
}
.utility-button { width: 44px; height: 44px; color: rgba(255,255,255,.82); }
.utility-button .icon-sound-on { display: none; }
.utility-button.is-sounding .icon-sound-on { display: block; }
.utility-button.is-sounding .icon-sound-off { display: none; }

.bottom-navigation {
  position: fixed; z-index: 70; left: 50%; bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
  width: min(350px, calc(100vw - 48px)); transform: translateX(-50%);
}
.navigation-labels { display: flex; justify-content: space-between; }
.nav-button {
  min-width: 88px; min-height: 44px; padding: 0; border: 0; background: transparent;
  color: rgba(255,255,255,.56); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .3em;
}
.nav-button:last-child { text-align: right; }
.nav-button.is-active { color: var(--white); }
.navigation-line { position: relative; height: 1px; margin: 5px 4px 0; background: rgba(255,255,255,.3); }
.navigation-fill { display: block; height: 1px; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .42s var(--ease); }
.navigation-dot { position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); transform: translateY(-50%); }
.dot-start { left: 0; }.dot-end { right: 0; }

body.reader-active .bottom-navigation { color: var(--ink); }
body.reader-active .nav-button { color: rgba(24,23,19,.46); }
body.reader-active .nav-button.is-active { color: var(--ink); }
body.reader-active .navigation-line { background: var(--line); }
body.reader-active .navigation-fill, body.reader-active .navigation-dot { background: var(--ink); }
body.reader-active .navigation-fill { transform: scaleX(1); }
body.reader-active .utility-button { color: var(--ink); }
body.reader-active #mute-button { visibility: hidden; }

body.reader-dark { --ink: #eee9df; --paper: #171714; --paper-deep: #10100e; --muted-ink: #aaa49a; --line: rgba(255,255,255,.22); }

@media (max-width: 760px) {
  .site-header { padding: max(22px, env(safe-area-inset-top)) 24px 0; }
  .brand-name { font-size: 19px; }
  .hero-content { padding-bottom: 210px; }
  .hero-content h1 span { font-size: clamp(66px, 22vw, 100px); }
  .hero-content h1 em { margin-top: 12px; font-size: clamp(28px, 9vw, 44px); }
  .reading-status { gap: 7px; font-size: 9px; }
  .status-divider { width: 14px; }
  .reader-layout { display: block; max-width: none; padding: 112px 58px 155px 24px; }
  .article-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
  .article-kicker { display: none; }
  .article-heading h1 { font-size: 34px; letter-spacing: .06em; white-space: nowrap; }
  .article-author { margin: 0; font-size: 13px; letter-spacing: .1em; }
  .article-stage { height: calc(100dvh - 294px); }
  .article-page { font-size: 16px; line-height: 1.85; }
  .page-controls { right: 8px; }
  .page-track { height: 64px; }
  .swipe-hint { bottom: 125px; width: 100%; text-align: center; }
  .bottom-navigation { bottom: max(78px, calc(env(safe-area-inset-bottom) + 62px)); }
  .utility-controls { bottom: max(24px, env(safe-area-inset-bottom)); }
}

@media (max-height: 700px) and (min-width: 761px) {
  .reader-layout { padding-top: 96px; padding-bottom: 130px; }
  .article-stage { height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reader-view .article-page.is-sliding { transition: none !important; }
}
