/* ============================================================
   读书人晚报 · PWA
   杂志红条风 / 米白纸感 / 黑色大标题 / 红色只做强调
   ============================================================ */

:root {
  --paper: #f6f1e5;
  --paper-raised: #fbf8f0;
  --paper-deep: #ece5d7;
  --ink: #15120e;
  --ink-soft: #2b261f;
  --ink-body: #332e26;
  --muted: #79705f;
  --faint: #9c927f;
  --red: #e22924;
  --red-deep: #b81b17;
  --hair: rgba(21, 18, 14, 0.16);
  --hair-soft: rgba(21, 18, 14, 0.09);
  --sans: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --topbar-h: 54px;
  --page-pad: 20px;
  --shadow-sheet: 0 -18px 50px rgba(21, 18, 14, 0.22);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(94, 76, 48, 0.042) 0.55px, transparent 0.7px),
    radial-gradient(rgba(94, 76, 48, 0.028) 0.55px, transparent 0.7px);
  background-size: 5px 5px, 11px 11px;
  background-position: 0 0, 3px 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.sheet-open {
  overflow: hidden;
}

::selection {
  background: rgba(226, 41, 36, 0.2);
  color: var(--ink);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.mini :focus-visible,
.mini :focus-visible {
  outline-color: #fff;
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 10px;
}

.noscript {
  margin: 40px 20px;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--hair);
  padding: 18px 0;
  font-size: 15px;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(246, 241, 229, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--hair-soft);
}

.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  min-height: var(--topbar-h);
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

body[data-route="reader"] .topbar-inner {
  max-width: 680px;
}

.topbar-word {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--ink);
}

.topbar-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.topbar-name {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.topbar-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.topbar-issue {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s var(--ease);
}

.icon-btn:hover {
  color: var(--red);
}

/* ---------- 通用页面 ---------- */

#main {
  outline: none;
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 64px;
}

.masthead {
  padding-top: 20px;
}

.edition-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 0 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: #4f473b;
  text-transform: uppercase;
  white-space: nowrap;
}

.edition-strip .edition-vol {
  color: var(--red);
  font-weight: 900;
}

.masthead h1 {
  margin: 18px 0 10px;
  font-size: clamp(46px, 13.6vw, 74px);
  line-height: 0.93;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-indent: -0.03em;
}

.masthead-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.masthead-sub .issue-no {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.masthead-rule {
  height: 7px;
  background: var(--red);
}

.masthead-en {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
}

.masthead-en .masthead-motto {
  letter-spacing: 0.16em;
  color: var(--faint);
}

.update-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.update-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 41, 36, 0.12);
  flex: none;
}

.update-line.is-stale .update-dot {
  background: var(--red);
  opacity: 0.75;
  box-shadow: none;
}

/* ---------- 首页 ---------- */

.home-lead {
  padding-top: 24px;
}

.label-red {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 4px 10px 5px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.focus-title {
  text-wrap: balance;
  margin: 14px 0 12px;
  font-size: clamp(26px, 7.4vw, 40px);
  line-height: 1.28;
  font-weight: 950;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.brief {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-body);
  overflow-wrap: anywhere;
}

.brief::first-letter {
  font-family: var(--serif);
  font-weight: 700;
}

.books-line {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hair-soft);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.books-line strong {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-right: 4px;
  font-size: 10px;
}

/* 巨大收听按钮 */
.listen-cta {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 88px;
  margin: 24px 0 0;
  padding: 14px 16px 16px 14px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.listen-cta:hover {
  background: #000;
}

.listen-cta:active {
  transform: scale(0.995);
}

.cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.18s var(--ease);
}

.listen-cta:hover .cta-icon {
  transform: scale(1.04);
}

.cta-icon .icon {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cta-copy strong {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.cta-copy small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #b8ad9a;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-side {
  text-align: right;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #b8ad9a;
  line-height: 1.5;
  white-space: nowrap;
}

.cta-side .cta-arrow {
  display: block;
  margin-left: auto;
  margin-top: 5px;
  width: 17px;
  height: 17px;
  color: #fff;
}

.cta-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(246, 241, 229, 0.16);
}

.cta-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.4s linear;
}

.cta-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 0 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.text-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.text-link .icon {
  width: 15px;
  height: 15px;
}

/* 过刊 */
.archive {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 3px solid var(--ink);
  padding-top: 13px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.section-head .en {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--faint);
  text-transform: uppercase;
}

.issue-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.issue-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 4px 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hair-soft);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.14s var(--ease);
}

.issue-row:hover {
  background: rgba(21, 18, 14, 0.035);
}

.issue-row:focus-visible {
  outline-offset: -2px;
}

.issue-date {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.issue-date strong {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.issue-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.issue-focus {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.issue-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}

.issue-sub .today-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 5px;
  vertical-align: 1px;
}

.issue-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.issue-end .icon {
  width: 17px;
  height: 17px;
  color: var(--ink);
  transition: transform 0.15s var(--ease);
}

.issue-row:hover .issue-end .icon {
  transform: translateX(2px);
  color: var(--red);
}

.tag-text {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 1px 5px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

/* 首页页脚 */
.paper-foot {
  margin-top: 46px;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.paper-foot .foot-brand {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.paper-foot p {
  margin: 0;
}

.paper-foot .foot-books {
  margin-top: 4px;
}

.paper-foot .foot-legacy {
  margin-top: 2px;
}

.foot-legacy a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.foot-legacy a:hover {
  color: var(--red);
  border-color: var(--red);
}

.foot-legacy .icon {
  width: 12px;
  height: 12px;
}

/* ---------- 阅读页 ---------- */

.reader {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 120px;
}

.issue-head {
  padding: 22px 0 20px;
  border-bottom: 3px solid var(--ink);
}

.issue-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
  color: var(--muted);
  text-transform: uppercase;
}

.issue-kicker .kicker-red {
  background: var(--red);
  color: #fff;
  padding: 3px 7px;
  letter-spacing: 0.14em;
}

.issue-title {
  text-wrap: balance;
  margin: 13px 0 10px;
  font-size: clamp(29px, 8.2vw, 42px);
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.issue-deck {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #665d4f;
  overflow-wrap: anywhere;
}

.issue-books {
  margin-top: 13px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.issue-books b {
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-right: 5px;
}

.reader-tools {
  position: sticky;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 calc(-1 * var(--page-pad));
  padding: 9px var(--page-pad);
  background: rgba(246, 241, 229, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--ink);
  padding: 2px;
  gap: 2px;
  background: transparent;
}

.segmented button {
  min-width: 62px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.segmented button[data-mode="follow"][aria-pressed="true"] {
  background: var(--red);
  color: #fff;
}

.reader-play {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.reader-play:hover {
  background: var(--ink);
  color: var(--paper);
}

.reader-play .icon {
  width: 15px;
  height: 15px;
}

.reader-follow-hint {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.18);
}

.audio-note {
  margin-top: 20px;
  border-top: 3px solid var(--red);
  background: var(--paper-deep);
  padding: 16px 17px 17px;
}

.audio-note strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.audio-note p {
  margin: 6px 0 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: #000;
  color: #fff;
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-deep);
  color: #fff;
}

/* 板块 */
.paper-section {
  margin-top: 34px;
}

.section-label-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.4;
  max-width: 100%;
}

.section-label .emoji {
  font-size: 14px;
  letter-spacing: 0;
}

.section-index {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--faint);
  white-space: nowrap;
}

.section-en {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--faint);
  text-transform: uppercase;
}

.paper-section.is-current .section-en {
  color: var(--red);
}

/* 新闻条目 */
.story {
  position: relative;
  padding: 24px 0 27px;
  border-bottom: 1px solid var(--hair);
  box-shadow: inset 0 0 0 transparent;
  transition: box-shadow 0.2s var(--ease);
}

.story:last-child {
  border-bottom: 0;
}

.story.is-current {
  box-shadow: inset 3px 0 0 var(--red);
}

.story.is-current .story-now {
  display: inline-flex;
}

.story-title {
  text-wrap: balance;
  margin: 0;
  font-size: clamp(24px, 6.8vw, 30px);
  line-height: 1.3;
  font-weight: 950;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--faint);
  text-transform: uppercase;
}

.story-meta .source {
  color: var(--muted);
}

.story-now {
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.story-now::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.story-media {
  position: relative;
  margin: 16px 0 0;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, #f1ebde, #f1ebde 13px, #e6dece 13px, #e6dece 26px);
  border: 1px solid rgba(21, 18, 14, 0.12);
  overflow: hidden;
}

.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.media-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: repeating-linear-gradient(45deg, #f1ebde, #f1ebde 13px, #e6dece 13px, #e6dece 26px);
  color: #8e8371;
  text-align: center;
}

.story-media.is-empty .media-fallback,
.story-media.is-broken .media-fallback {
  display: grid;
}

.story-media.is-empty img,
.story-media.is-broken img {
  display: none;
}

.media-fallback .emoji {
  font-size: 38px;
  line-height: 1;
  opacity: 0.6;
  letter-spacing: 0;
}

.media-fallback .cap {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.story-summary {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-body);
  overflow-wrap: anywhere;
}

.deep-box {
  margin: 18px 0 0;
  padding: 17px 17px 18px;
  background: var(--paper-deep);
  border-top: 3px solid var(--red);
}

.deep-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.deep-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(226, 41, 36, 0.25);
}

.deep-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: #262119;
  overflow-wrap: anywhere;
}

.related {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(21, 18, 14, 0.12);
  font-size: 17px;
  line-height: 1.75;
  color: #5d5548;
  overflow-wrap: anywhere;
}

.related .book-mark {
  color: var(--red);
  font-size: 14px;
  line-height: 1.8;
  flex: none;
}

.story-link {
  margin-top: 16px;
}

.story-link a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.story-link a:hover {
  background: var(--ink);
  color: var(--paper);
}

.story-link .icon {
  width: 14px;
  height: 14px;
}

.story-link .domain {
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-link a:hover .domain {
  color: rgba(246, 241, 229, 0.6);
}

/* 跟读视图 */
.follow-block {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--hair);
}

.follow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.follow-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 3px 7px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.follow-block.kind-section .follow-tag {
  background: var(--ink);
}

.follow-block.kind-intro .follow-tag,
.follow-block.kind-outro .follow-tag {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.follow-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.follow-block.kind-section .follow-title {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.follow-block.is-current .follow-tag {
  background: var(--red);
  color: #fff;
}

.sentences {
  margin: 0;
  font-size: 17px;
  line-height: 2.05;
  color: #2b261f;
  overflow-wrap: anywhere;
}

.sent {
  padding: 2px 1px;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.sent:hover {
  background: rgba(21, 18, 14, 0.055);
}

.sent.is-current {
  background: rgba(226, 41, 36, 0.11);
  border-bottom-color: var(--red);
  color: var(--ink);
}

.sent:focus-visible {
  outline-offset: 1px;
}

/* 加载 / 错误 / 空状态 */
.skeleton-page {
  padding-top: 20px;
}

.sk {
  background: linear-gradient(100deg, #e9e1d1 30%, #f3ede1 42%, #e9e1d1 54%);
  background-size: 300% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 1px;
}

.sk-masthead {
  height: 62px;
  margin: 20px 0 12px;
  width: 74%;
}

.sk-rule {
  height: 7px;
  background: #d9d0bf;
  margin-bottom: 22px;
}

.sk-line {
  height: 15px;
  margin-bottom: 12px;
}

.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-line.w90 { width: 90%; }
.sk-block {
  height: 88px;
  margin-top: 22px;
}

.loading-note {
  margin-top: 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.state-panel {
  margin: 32px 0 12px;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--hair);
  padding: 26px 0 28px;
}

.state-kicker {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
}

.state-panel h1 {
  margin: 10px 0 10px;
  font-size: clamp(27px, 7.5vw, 36px);
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.state-panel p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.state-detail {
  margin: 14px 0 18px;
  padding: 10px 12px;
  background: var(--paper-deep);
  border-left: 2px solid var(--red);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-all;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.empty-archive {
  margin-top: 8px;
  padding: 26px 18px;
  border: 1px dashed rgba(21, 18, 14, 0.24);
  text-align: center;
  color: var(--muted);
}

.empty-archive strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.empty-archive p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- 迷你播放器 ---------- */

.mini {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #171410;
  color: var(--paper);
  border-top: 3px solid var(--red);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -10px 30px rgba(21, 18, 14, 0.14);
}

.mini-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 7px 10px 8px 12px;
}

.mini-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.mini-play:hover {
  background: #f03933;
}

.mini-play .icon {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.mini-play.is-playing .icon {
  margin-left: 0;
}

.mini-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  padding: 0 2px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mini-kicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #b9ae9a;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-time {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #b9ae9a;
  white-space: nowrap;
}

.mini-up {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: #e7dfd0;
  cursor: pointer;
}

.mini-up .icon {
  width: 20px;
  height: 20px;
}

.mini-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(246, 241, 229, 0.18);
}

.mini-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.25s linear;
}

body.has-mini #main {
  padding-bottom: 78px;
}

body.sheet-open .mini {
  visibility: hidden;
}

/* ---------- 全屏 / 侧栏播放器 ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 13, 9, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fade-in 0.22s var(--ease);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  background-image:
    radial-gradient(rgba(94, 76, 48, 0.035) 0.55px, transparent 0.7px);
  background-size: 5px 5px;
  overflow: hidden;
  animation: sheet-up 0.3s var(--ease);
}

@keyframes sheet-up {
  from { transform: translateY(4%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 6px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 4px;
  flex: none;
}

.sheet-kicker {
  text-align: center;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-head-spacer {
  width: 44px;
}

.sheet-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.cover {
  position: relative;
  width: min(76vw, 300px);
  aspect-ratio: 1 / 1;
  margin: 8px auto 22px;
  background: #171410;
  color: var(--paper);
  overflow: hidden;
  border: 1px solid #000;
  box-shadow: 0 18px 44px rgba(21, 18, 14, 0.24);
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(0.6) contrast(1.08);
}

.cover-inner {
  position: absolute;
  inset: 0;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
}

.cover.has-image .cover-inner {
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.84) 0%, rgba(10, 8, 6, 0.42) 55%, rgba(10, 8, 6, 0.86) 100%);
}

.cover-kicker {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.28em;
  opacity: 0.62;
}

.cover-masthead {
  margin-top: 13px;
  font-size: clamp(34px, 11vw, 44px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.cover-rule {
  height: 6px;
  background: var(--red);
  margin: 14px 0 12px;
}

.cover-focus {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.58;
  text-transform: uppercase;
}

.sheet-meta {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.sheet-issue {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

.sheet-title {
  text-wrap: balance;
  margin: 7px 0 6px;
  font-size: clamp(21px, 5.6vw, 27px);
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.sheet-sub {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.speech-note {
  margin: 16px 0 0;
  border-top: 3px solid var(--red);
  background: var(--paper-deep);
  padding: 14px 15px;
}

.speech-note strong {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.speech-note p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.seek-block {
  margin-top: 20px;
}

.seek {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  --pct: 0%;
}

.seek::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--red) 0 var(--pct), rgba(21, 18, 14, 0.18) var(--pct) 100%);
  border-radius: 0;
}

.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--red);
}

.seek::-moz-range-track {
  height: 3px;
  background: rgba(21, 18, 14, 0.18);
}

.seek::-moz-range-progress {
  height: 3px;
  background: var(--red);
}

.seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--red);
}

.seek:disabled {
  cursor: default;
  opacity: 0.4;
}

.seek-times {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 6px 0 10px;
}

.tbtn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.tbtn:hover {
  color: var(--red);
}

.tbtn:active {
  transform: scale(0.94);
}

.tbtn .icon {
  width: 27px;
  height: 27px;
}

.play-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(226, 41, 36, 0.3);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.play-big:hover {
  background: #f03933;
}

.play-big:active {
  transform: scale(0.96);
}

.play-big .icon {
  width: 31px;
  height: 31px;
  margin-left: 3px;
}

.play-big.is-playing .icon {
  margin-left: 0;
}

.rate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}

.rate-label {
  flex: none;
  width: 32px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.rates {
  display: flex;
  flex: 1;
  border: 1px solid var(--hair);
  min-width: 0;
}

.rates button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hair);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.rates button:last-child {
  border-right: 0;
}

.rates button:hover {
  background: rgba(21, 18, 14, 0.05);
}

.rates button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.sheet-utils {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.sheet-utils button,
.sheet-utils a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  padding: 0 2px;
  background: none;
  border: 0;
  border-right: 1px solid var(--hair-soft);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.sheet-utils > :last-child {
  border-right: 0;
}

.sheet-utils button:hover,
.sheet-utils a:hover {
  color: var(--red);
}

.sheet-utils button[aria-expanded="true"] {
  color: var(--red);
}

.sheet-utils .icon {
  width: 15px;
  height: 15px;
}

.chapter-list {
  max-height: min(31vh, 280px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--hair);
}

.chapter {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 47px;
  padding: 5px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hair-soft);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.chapter:last-child {
  border-bottom: 0;
}

.chapter:hover .chapter-name {
  color: var(--red);
}

.chapter-time {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.chapter-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: color 0.15s var(--ease);
}

.chapter.kind-section .chapter-name {
  font-weight: 900;
  letter-spacing: 0.03em;
}

.chapter.kind-section .chapter-name::before {
  content: "§ ";
  color: var(--red);
  font-weight: 900;
}

.chapter.kind-intro .chapter-name,
.chapter.kind-outro .chapter-name {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.chapter.is-current .chapter-time,
.chapter.is-current .chapter-name {
  color: var(--red);
  font-weight: 900;
}

.sleep-panel {
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--hair);
}

.sleep-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.sleep-title span {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--faint);
  margin-left: 4px;
}

.sleep-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 11px;
}

.sleep-options button {
  min-height: 44px;
  padding: 0 2px;
  border: 1px solid var(--hair);
  background: none;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.sleep-options button:hover {
  border-color: var(--ink);
}

.sleep-options button[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.sleep-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sleep-off {
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--hair);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* 阅读 / 跟读 切换 */
#readView[hidden],
#followView[hidden] {
  display: none !important;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  transform: translate(-50%, 12px);
  max-width: min(88vw, 420px);
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
  text-align: center;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 桌面 ---------- */

@media (min-width: 900px) {
  :root {
    --page-pad: 32px;
  }

  .topbar-inner {
    max-width: 1000px;
  }

  body[data-route="reader"] .topbar-inner {
    max-width: 680px;
  }

  .page {
    max-width: 1000px;
    padding-bottom: 80px;
  }

  .masthead h1 {
    font-size: 86px;
  }

  .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.95fr);
    column-gap: 44px;
    align-items: start;
  }

  .home-lead {
    padding-top: 28px;
  }

  .focus-title {
    font-size: 42px;
  }

  .archive {
    margin-top: 28px;
    border-left: 1px solid var(--hair);
    padding-left: 32px;
    min-height: 420px;
  }

  .archive .section-head {
    border-top-width: 4px;
  }

  .issue-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .issue-focus {
    font-size: 13px;
  }

  .paper-foot {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .reader {
    padding-bottom: 140px;
  }

  .reader-tools {
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1000px) {
  .sheet {
    left: auto;
    right: 0;
    width: 420px;
    border-left: 3px solid var(--ink);
    box-shadow: -24px 0 60px rgba(21, 18, 14, 0.16);
    animation: sheet-in 0.28s var(--ease);
  }

  @keyframes sheet-in {
    from { transform: translateX(4%); opacity: 0.6; }
    to { transform: translateX(0); opacity: 1; }
  }

  .sheet-backdrop {
    background: rgba(16, 13, 9, 0.32);
  }

  .sheet-scroll {
    padding-left: 26px;
    padding-right: 26px;
  }

  .cover {
    width: 290px;
  }

  .mini-inner {
    max-width: 1000px;
  }
}

@media (max-width: 359px) {
  :root {
    --page-pad: 16px;
  }

  .masthead h1 {
    font-size: 43px;
  }

  .edition-strip {
    letter-spacing: 0.12em;
    font-size: 8.5px;
  }

  .listen-cta {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .cta-side {
    display: none;
  }

  .cta-icon {
    width: 46px;
    height: 46px;
  }

  .transport {
    gap: 20px;
  }

  .issue-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .topbar,
  .mini,
  .sheet,
  .sheet-backdrop,
  .toast,
  .reader-tools,
  .story-link,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .reader {
    max-width: none;
    padding: 0;
  }

  .story {
    break-inside: avoid;
  }
}
