/* Design tokens */
:root {
  --ink: #0f1923;
  --paper: #faf8f5;
  --warm: #f4f1ec;
  --surface: #ffffff;
  --text: #1a2a3a;
  --muted: #4a5568;
  --heading: #0f1923;
  --gold: #7d6430;
  --gold-light: #c9a961;
  --teal: #2a7f8a;
  --border: #e0ddd7;
  --plurality-red: #D64933;
  --plurality-orange: #FBB03B;
  --plurality-green: #39B54A;
  --plurality-cyan: #0EB1D2;
  --serif: 'Lora', Georgia, serif;
  --display-serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --content-max: 1200px;
  --reading-max: 720px;
  --pad-h: clamp(24px, 5vw, 80px);
  --radius: 4px;
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 72px;
  --nav-bg: rgba(250, 248, 245, 0.96);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #080d12;
  --paper: #111820;
  --warm: #161e28;
  --surface: #1c2535;
  --text: #d4d0c8;
  --muted: #9ca8b8;
  --heading: #e8e4dc;
  --gold: #c9a961;
  --gold-light: #ddc07a;
  --teal: #4bc3d4;
  --border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(17, 24, 32, 0.96);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
:lang(zh) {
  --serif: 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', Georgia, serif;
  --display-serif: 'Noto Serif TC', 'Songti TC', Georgia, serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  font-synthesis: none;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display-serif); color: var(--heading); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin-bottom: 1.2em; }
a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--teal) 35%, transparent);
  transition: color 0.2s;
}
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--teal) 20%, transparent); }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.4em; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); margin: 3em 0; }
blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 2em 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}
blockquote:lang(zh), em:lang(zh) { font-style: normal; }
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  padding: 8px 16px; background: var(--ink); color: #fff;
  font-size: 0.85rem; border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
}
.skip-link:focus { top: 0; }
.section-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1rem;
}
:lang(zh) .section-label, :lang(zh) .book__section-label, :lang(zh) .book__toc-heading,
:lang(zh) .book__toc-section, :lang(zh) .chapter-group__title, :lang(zh) .book__nav-label { letter-spacing: 0.1em; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height); display: flex; align-items: center;
  padding: 0 var(--pad-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--content-max); margin: 0 auto; }
.nav__logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--heading); text-decoration: none; letter-spacing: -0.01em; }
.nav__logo:hover { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav__links li { margin: 0; }
.nav__link { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--text); text-decoration: none; }
.nav__link:hover { color: var(--teal); }
.nav__link--active { color: var(--gold); }
.theme-toggle {
  display: inline-flex; align-items: center; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 12px; color: var(--text); cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--gold-light); color: var(--gold); }
.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: inline; }
@media (max-width: 600px) { .nav__links { gap: 16px; } }

/* Language switch */
.lang-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-family: var(--sans); font-size: 0.78rem; }
.lang-bar__current { color: var(--heading); font-weight: 600; padding: 3px 10px; background: var(--warm); border-radius: var(--radius); }
.lang-bar__link { color: var(--teal); text-decoration: none; padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s, background 0.2s; }
.lang-bar__link:hover { border-color: var(--teal); background: var(--warm); }
.lang-bar--missing { opacity: 0.45; }

/* Read-aloud player */
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 2.5rem; padding: 12px 16px; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius); }
.listen[hidden] { display: none; }
.listen__label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.65rem; color: var(--gold); }
.listen__buttons { display: flex; gap: 6px; }
.listen__button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font: inherit; font-weight: 600; color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.listen__button:hover:not(:disabled) { border-color: var(--teal); }
.listen__button:disabled { opacity: 0.45; cursor: default; }
.listen__button--play { color: #fff; background: var(--teal); border-color: var(--teal); }
.listen__button svg { width: 12px; height: 12px; fill: currentColor; }
.listen__icon[hidden] { display: none; }
.listen__field { display: inline-flex; align-items: center; gap: 6px; }
.listen__field select { font: inherit; color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 6px; max-width: 12rem; }
.listen__progress { margin-left: auto; font-variant-numeric: tabular-nums; }
.listen__status { flex-basis: 100%; }
.listen__status:empty { display: none; }
.listen__bar { flex-basis: 100%; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.listen__bar span { display: block; height: 100%; width: 0; background: var(--teal); transition: width 0.3s; }
.listen-current { background: color-mix(in srgb, var(--teal) 12%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 12%, transparent); border-radius: 2px; }
@media (max-width: 600px) { .listen__progress { margin-left: 0; } }

/* Read index */
.read-page { max-width: var(--content-max); margin: 0 auto; padding: calc(var(--nav-height) + 60px) var(--pad-h) 80px; }
.read-page h1 { margin-bottom: 0.5rem; }
.read-page__intro { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 60ch; }
.read-page .lang-bar { justify-content: flex-start; margin-bottom: 2.5rem; }
.chapter-group { margin-bottom: 3rem; }
.chapter-group__title {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--heading); padding-bottom: 8px; margin-bottom: 16px; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.chapter-group__accent { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.chapter-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.chapter-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chapter-card__number { display: block; font-family: var(--display-serif); font-size: 2rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.chapter-card__title { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--heading); }

/* Book reader */
.book { display: flex; max-width: var(--content-max); margin: 0 auto; padding: calc(var(--nav-height) + 32px) 24px 60px; min-height: 100vh; }
.book__toc {
  position: sticky; top: calc(var(--nav-height) + 32px); width: 230px; min-width: 230px;
  max-height: calc(100vh - var(--nav-height) - 64px); overflow-y: auto; align-self: flex-start;
  padding-right: 24px; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.book__toc-toggle {
  display: none; width: 100%; padding: 12px 16px; background: var(--warm); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--heading);
  cursor: pointer; text-align: left; align-items: center; gap: 10px;
}
.book__toc-toggle-icon { display: inline-block; width: 16px; height: 12px; position: relative; }
.book__toc-toggle-icon::before, .book__toc-toggle-icon::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--muted); border-radius: 1px; }
.book__toc-toggle-icon::before { top: 0; }
.book__toc-toggle-icon::after { top: 5px; }
.book__toc-heading { font-family: var(--sans); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 16px; }
.book__toc-section { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin: 14px 0 4px; padding-left: 14px; }
.book__toc-section:first-of-type { margin-top: 0; }
.book__toc-list { list-style: none; padding: 0; }
.book__toc-list li { margin: 0; }
.book__toc-list a {
  display: block; padding: 3px 0 3px 14px; font-family: var(--sans); font-size: 0.78rem; line-height: 1.35;
  color: var(--muted); text-decoration: none; border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.book__toc-num { color: var(--gold-light); font-size: 0.7rem; margin-right: 2px; }
.book__toc-list a:hover, .book__toc-list a.active { color: var(--teal); border-left-color: var(--teal); }

.book__page {
  flex: 1; width: 100%; min-width: 0; max-width: var(--reading-max); margin: 0 auto; position: relative; overflow-x: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 2px 6px 6px 2px; padding: 56px 56px 48px;
  box-shadow:
    -4px 0 8px rgba(0, 0, 0, 0.04),
    2px 0 0 var(--border),
    4px 0 0 color-mix(in srgb, var(--surface) 90%, var(--border)),
    5px 0 0 var(--border),
    7px 0 0 color-mix(in srgb, var(--surface) 85%, var(--border)),
    8px 0 0 var(--border),
    12px 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] .book__page {
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15), 2px 0 0 var(--border), 4px 0 0 color-mix(in srgb, var(--surface) 90%, var(--border)),
    5px 0 0 var(--border), 12px 8px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.book__page-curl {
  position: absolute; bottom: 0; right: 0; width: 24px; height: 24px; pointer-events: none; opacity: 0.5;
  background: linear-gradient(-135deg, var(--warm) 0%, var(--warm) 42%, var(--border) 44%, var(--surface) 46%, var(--surface) 100%);
  border-radius: 0 0 6px 0;
}
.book__header { margin-bottom: 3rem; padding-bottom: 2rem; text-align: center; }
.book__section-label { font-family: var(--sans); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 1rem; }
.book__title { font-family: var(--display-serif); font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 400; line-height: 1.2; color: var(--heading); margin-bottom: 0.75rem; }
.book__header .lang-bar { margin-top: 14px; }
.book__header-ornament { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 2rem; }
.book__header-ornament span { display: block; width: 4px; height: 4px; background: var(--gold-light); border-radius: 1px; transform: rotate(45deg); }
.book__header-ornament span:nth-child(2) { width: 6px; height: 6px; }

.book__body {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.85; color: var(--text);
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; word-break: break-word;
}
.book__body:lang(zh) { hyphens: none; line-break: strict; word-break: normal; }
.book__body--dropcap > p:first-of-type::first-letter {
  float: left; font-family: var(--display-serif); font-size: 3.6em; line-height: 0.8;
  padding-right: 10px; padding-top: 6px; color: var(--gold);
}
.book__body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2em 0 0.6em; padding-bottom: 10px; text-align: left; border-bottom: 1px solid var(--gold-light); }
.book__body h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; text-align: left; }
.book__body h4 { font-size: 1.05rem; margin: 1.4em 0 0.3em; text-align: left; }
.book__body p { margin: 0 0 0.3em; text-indent: 1.5em; }
.book__body > p:first-of-type, .book__body h2 + p, .book__body h3 + p, .book__body h4 + p,
.book__body blockquote + p, .book__body ul + p, .book__body ol + p, .book__body figure + p,
.book__body hr + p, .book__body .table-scroll + p { text-indent: 0; }
.book__body hr { margin: 1.5em 0; }
.book__body blockquote { margin: 1em 0 1em 1em; padding: 0.3em 0 0.3em 1.5em; font-size: inherit; text-align: left; }
.book__body blockquote p { text-indent: 0; margin-bottom: 0.4em; }
.book__body--endorsements blockquote { border-left: none; margin: 0.5em 0; padding-left: 0; }
.book__body img { border-radius: var(--radius); border: 1px solid var(--border); margin: 2em auto; }
.book__body figure { margin: 2em 0; text-align: center; }
.book__body figure img { margin: 0 auto 0.8em; }
.book__body figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); text-align: center; line-height: 1.5; text-indent: 0; }
.book__body ul, .book__body ol { text-align: left; margin: 1em 0; }
.book__body li { text-indent: 0; }
.book__body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
.book__body pre { overflow-x: auto; background: var(--warm); padding: 1em; border-radius: var(--radius); margin: 1.5em 0; text-align: left; }
.table-scroll { overflow-x: auto; margin: 1.5em 0; }
.book__body table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.85rem; text-align: left; }
.book__body th, .book__body td { border: 1px solid var(--border); padding: 0.5em 0.7em; vertical-align: top; }
.book__body th { background: var(--warm); }
.book__body sup { line-height: 0; }
.footnote-ref a { text-decoration: none; font-family: var(--sans); font-size: 0.75em; }
.book__body .footnotes { margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--border); font-size: 0.88rem; line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
.book__body .footnotes-sep { display: none; }
.book__body .footnotes ol { padding-left: 1.5em; }
.book__body .footnotes p { text-indent: 0; margin-bottom: 0.5em; }
.footnote-backref { text-decoration: none; }

.book__nav { display: flex; justify-content: space-between; align-items: stretch; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); gap: 16px; }
.book__nav-link {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--warm); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; transition: all 0.3s var(--ease-out); max-width: 48%;
}
.book__nav-link:hover { border-color: var(--gold-light); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); transform: translateY(-1px); }
.book__nav-link--next { margin-left: auto; text-align: right; }
.book__nav-arrow { font-size: 1.5rem; color: var(--gold); line-height: 1; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.book__nav-link--prev:hover .book__nav-arrow { transform: translateX(-4px); }
.book__nav-link--next:hover .book__nav-arrow { transform: translateX(4px); }
.book__nav-info { display: flex; flex-direction: column; gap: 2px; }
.book__nav-label { font-family: var(--sans); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.book__nav-title { font-family: var(--serif); font-size: 0.95rem; color: var(--heading); line-height: 1.3; }
.book__page-number { text-align: center; margin-top: 3rem; font-family: var(--serif); font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; opacity: 0.6; }

/* Landing page */
.home { max-width: var(--content-max); margin: 0 auto; padding: calc(var(--nav-height) + 80px) var(--pad-h) 100px; text-align: center; }
.home__glyph { font-family: var(--serif); font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--gold-light); margin-bottom: 1rem; }
.home__title { font-size: clamp(2.8rem, 6vw, 4.5rem); }
.home__title .c-r { color: var(--plurality-red); }
.home__title .c-o { color: var(--plurality-orange); }
.home__title .c-g { color: var(--plurality-green); }
.home__title .c-c { color: var(--plurality-cyan); }
.home__title .c-h { color: var(--heading); }
.home__subtitle { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); margin: 0.5rem auto 0.5rem; max-width: 40ch; }
.home__authors { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 3rem; }
.edition-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 900px; margin: 1rem auto 0; text-align: left; }
.edition-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gold-light);
  border-radius: var(--radius); padding: 28px 24px; text-decoration: none; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.edition-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.edition-card__title { display: block; font-family: var(--display-serif); font-size: 1.9rem; color: var(--heading); line-height: 1.1; margin-bottom: 6px; }
.edition-card__subtitle { display: block; font-family: var(--serif); font-size: 0.95rem; color: var(--text); margin-bottom: 10px; }
.edition-card__meta { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }

/* Footer */
.footer { background: var(--ink); padding: 60px var(--pad-h); text-align: center; }
.footer__brand { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.footer__brand .c-r { color: var(--plurality-red); }
.footer__brand .c-o { color: var(--plurality-orange); }
.footer__brand .c-g { color: var(--plurality-green); }
.footer__brand .c-c { color: var(--plurality-cyan); }
.footer__brand .c-w { color: #fff; }
.footer__links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 2rem; list-style: none; padding: 0; }
.footer__links li { margin: 0; }
.footer__link { font-family: var(--sans); font-size: 0.85rem; color: var(--gold-light); text-decoration: none; }
.footer__link:hover { color: #fff; text-decoration: underline; }
.footer__sep { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); margin: 0 auto 1.5rem; }
.footer__authors { font-family: var(--sans); font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.5rem; }
.footer__license { font-family: var(--sans); font-size: 0.8rem; color: rgba(255, 255, 255, 0.35); }

/* Responsive */
@media (max-width: 1024px) {
  .book { flex-direction: column; padding: calc(var(--nav-height) + 16px) 16px 40px; }
  .book__toc { position: static; width: 100%; min-width: 0; max-height: none; padding-right: 0; margin-bottom: 16px; }
  .book__toc-toggle { display: flex; }
  .book__toc-nav { display: none; margin-top: 12px; padding: 16px; background: var(--warm); border-radius: var(--radius); }
  .book__toc.open .book__toc-nav { display: block; }
  .book__page { padding: 40px 32px 36px; border-radius: var(--radius); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04); }
}
@media (max-width: 768px) {
  .book__page { padding: 32px 20px 28px; }
  .book__body { font-size: 1.05rem; text-align: left; hyphens: none; }
  .book__body p { text-indent: 0; margin-bottom: 1em; }
  .book__body--dropcap > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
  .book__nav { flex-direction: column; }
  .book__nav-link { max-width: 100%; }
  .book__nav-link--next { text-align: left; flex-direction: row-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .nav, .footer, .book__toc, .book__nav, .theme-toggle, .skip-link, .lang-bar, .listen { display: none !important; }
  body { background: #fff; color: #000; }
  .book { padding: 0; }
  .book__page { box-shadow: none; border: none; padding: 0; max-width: 100%; }
}
