:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --paper-deep: #e8e1d4;
  --ink: #1f2321;
  --muted: #666963;
  --line: #cbc5ba;
  --red: #c9483e;
  --red-dark: #9f312b;
  --teal: #176b68;
  --blue: #315a79;
  --mustard: #d2a328;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(31, 35, 33, 0.14);
  --content: min(1180px, calc(100vw - 48px));
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 107, 104, 0.32);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
}

.skip-link:focus {
  top: 16px;
}

.content-width {
  width: var(--content);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 241, 234, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: var(--content);
  min-height: 72px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-mark {
  width: 50px;
  height: 40px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  font-variant-numeric: lining-nums;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding-block: 27px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.shelf-buttons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reading-list-button {
  min-width: 98px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.reading-list-button:hover {
  background: var(--ink);
  color: var(--white);
}

.reading-list-button strong {
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: white;
  font-size: 10px;
}

.today-band {
  min-height: min(660px, calc(100vh - 72px));
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.today-grid {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: 80px;
  padding-block: 48px 56px;
}

.today-copy {
  max-width: 650px;
}

.today-copy h1 {
  max-width: 12em;
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.12;
}

.today-lead {
  max-width: 590px;
  margin: 26px 0 0;
  color: #454944;
  font-size: 17px;
  line-height: 1.9;
}

.today-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.today-meta span {
  display: inline-flex;
  align-items: center;
}

.today-meta span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline: 11px;
  background: var(--muted);
  border-radius: 50%;
}

.today-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-width: 132px;
  height: 44px;
  border-radius: 2px;
  padding-inline: 22px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
}

.primary-button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.secondary-button {
  border: 1px solid var(--ink);
  background: transparent;
}

.secondary-button:hover,
.secondary-button.saved {
  background: var(--ink);
  color: var(--white);
}

.today-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.today-visual::before,
.today-visual::after {
  content: "";
  position: absolute;
}

.today-visual::before {
  width: 420px;
  height: 420px;
  background: var(--teal);
  transform: rotate(7deg);
}

.today-visual::after {
  width: 310px;
  height: 420px;
  border: 1px solid rgba(255, 253, 248, 0.42);
  transform: translate(46px, 18px) rotate(-4deg);
}

.featured-cover {
  position: relative;
  z-index: 2;
  width: 245px;
  margin: 0;
  transform: rotate(-3deg);
  box-shadow: var(--shadow);
}

.featured-cover img {
  width: 245px;
  aspect-ratio: 0.66;
  object-fit: cover;
  background: white;
}

.featured-cover figcaption {
  padding: 13px 15px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.issue-stamp {
  position: absolute;
  z-index: 3;
  right: 2px;
  top: 22px;
  width: 88px;
  height: 88px;
  padding: 11px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.issue-stamp span {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.issue-stamp small {
  font-size: 7px;
  font-weight: 900;
  line-height: 1.15;
}

.latest-section {
  padding-block: 82px 96px;
  background: #f8f5ee;
  border-bottom: 1px solid var(--line);
}

.latest-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 72px;
}

.latest-heading h2 {
  max-width: 10em;
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 44px;
  line-height: 1.18;
}

.latest-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.collection-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--ink);
}

.collection-stats div {
  min-height: 94px;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.collection-stats div:not(:last-child) {
  border-right: 1px solid var(--line);
}

.collection-stats strong {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.collection-stats span {
  color: var(--muted);
  font-size: 12px;
}

.latest-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.latest-item {
  min-width: 0;
  min-height: 290px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.latest-item:hover,
.latest-item:focus-visible {
  outline: 0;
  background: var(--ink);
  color: var(--white);
}

.latest-cover {
  width: 92px;
  height: 138px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 5px 7px 0 rgba(31, 35, 33, 0.12);
}

.latest-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.latest-meta {
  margin: 0 0 9px;
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-item:hover .latest-meta,
.latest-item:focus-visible .latest-meta {
  color: #f4c64a;
}

.latest-copy h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.latest-summary {
  margin: 14px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.latest-item:hover .latest-summary,
.latest-item:focus-visible .latest-summary {
  color: #c9ccc7;
}

.latest-copy footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.latest-copy footer span {
  color: var(--muted);
}

.latest-copy footer strong {
  white-space: nowrap;
  font-size: 11px;
}

.latest-item:hover footer span,
.latest-item:focus-visible footer span {
  color: #aeb1ad;
}

.library-section {
  padding-block: 84px 96px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2,
.method-title h2,
.reading-list-shell h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 42px;
  line-height: 1.15;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.library-stats {
  display: grid;
  justify-items: end;
}

.library-stats strong {
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.library-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.library-toolbar {
  margin-top: 38px;
  padding-block: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(480px, 1fr);
  align-items: end;
  gap: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.search-field {
  height: 44px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field > span[aria-hidden] {
  color: var(--muted);
  font-size: 25px;
  transform: rotate(-15deg);
}

.search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder {
  color: var(--muted);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.filter-row label {
  display: grid;
  gap: 6px;
}

.filter-row label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.filter-row select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding-inline: 10px 30px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.active-filters {
  min-height: 30px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.search-results {
  margin: 8px 0 34px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.search-results[hidden] {
  display: none;
}

.search-results-heading {
  min-height: 92px;
  padding: 20px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.search-results-heading .eyebrow {
  margin: 0 0 7px;
}

.search-results-heading h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 25px;
  line-height: 1.25;
}

.search-results-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.search-hit {
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr) 104px;
  align-items: start;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.search-hit:last-child {
  border-bottom: 0;
}

.search-hit-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.search-hit-issue {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.search-hit h4 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 19px;
  line-height: 1.35;
}

.search-hit-identity p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.search-hit-excerpts {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.search-hit-excerpt span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.search-hit-excerpt p {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 14px;
  line-height: 1.8;
}

.search-hit-excerpt mark {
  padding: 0 2px;
  background: #f1d58a;
  color: var(--ink);
}

.search-hit-open,
.search-results-more {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.search-hit-open:hover,
.search-hit-open:focus-visible,
.search-results-more:hover,
.search-results-more:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.search-results-more {
  width: 100%;
  margin: 0 0 22px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.book-card {
  min-width: 0;
  min-height: 400px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 126px 1fr auto;
  background: rgba(255, 253, 248, 0.36);
  transition: background 160ms ease, transform 160ms ease;
}

.book-card:hover {
  position: relative;
  z-index: 2;
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(31, 35, 33, 0.1);
}

.book-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.book-level {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
}

.book-cover-mini {
  align-self: center;
  width: 76px;
  height: 104px;
}

.book-cover-mini.has-cover {
  overflow: hidden;
  background: var(--white);
  box-shadow: 5px 7px 0 rgba(31, 35, 33, 0.13);
}

.book-cover-mini.has-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-mini.no-cover {
  width: auto;
  height: auto;
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.book-card-body {
  min-width: 0;
}

.book-discipline {
  margin: 8px 0 7px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
}

.book-card h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.book-author {
  min-height: 34px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.book-skills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.book-skills span {
  padding: 4px 6px;
  background: var(--paper-deep);
  color: #555953;
  font-size: 10px;
  line-height: 1;
}

.book-card-actions {
  height: 36px;
  display: grid;
  grid-template-columns: 1fr 36px 36px;
  gap: 7px;
}

.book-open-button,
.save-icon-button,
.read-icon-button {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.book-open-button:not(:disabled):hover,
.save-icon-button:hover,
.save-icon-button.saved,
.read-icon-button:hover,
.read-icon-button.read {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.book-open-button:disabled {
  color: #a4a39e;
  cursor: default;
}

.save-icon-button,
.read-icon-button {
  font-size: 18px;
}

.read-icon-button {
  font-size: 16px;
}

.load-more-button {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.load-more-button:hover {
  background: var(--ink);
  color: var(--white);
}

.load-more-button[hidden] {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 56px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.paths-section {
  padding-block: 82px 90px;
  background: var(--ink);
  color: var(--white);
}

.path-heading p:not(.eyebrow) {
  max-width: 380px;
  color: #b9bcb7;
}

.paths-section .eyebrow {
  color: #e66b61;
}

.path-list {
  margin-top: 44px;
  border-top: 1px solid #4a4e4b;
}

.path-row {
  min-height: 134px;
  padding-block: 22px;
  border-bottom: 1px solid #4a4e4b;
  display: grid;
  grid-template-columns: 70px minmax(250px, 0.9fr) minmax(0, 1.5fr) 40px;
  align-items: center;
  gap: 26px;
  cursor: pointer;
}

.path-row:hover {
  color: #f4c64a;
}

.path-number {
  font-family: Georgia, serif;
  font-size: 13px;
  color: #999e99;
}

.path-row h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
}

.path-row p {
  margin: 6px 0 0;
  color: #aeb1ad;
  font-size: 12px;
  line-height: 1.6;
}

.path-books {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.path-books span {
  color: #d9dcd7;
  font-size: 13px;
}

.path-books span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #707570;
}

.path-arrow {
  justify-self: end;
  font-family: Georgia, serif;
  font-size: 28px;
}

.method-section {
  padding-block: 86px 104px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
  gap: 80px;
}

.method-title h2 {
  max-width: 7em;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.method-steps li {
  min-height: 106px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px minmax(170px, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.method-steps span {
  font-family: Georgia, serif;
  color: var(--red-dark);
  font-size: 13px;
}

.method-steps strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 19px;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  padding-block: 38px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner strong {
  font-family: "Times New Roman", Times, serif;
  font-variant-numeric: lining-nums;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  width: 38px;
  height: 30px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

dialog {
  border: 0;
  padding: 0;
}

dialog::backdrop {
  background: rgba(20, 22, 21, 0.72);
  backdrop-filter: blur(7px);
}

.article-dialog {
  width: 100vw;
  max-width: none;
  height: var(--reader-viewport-height, 100dvh);
  max-height: var(--reader-viewport-height, 100dvh);
  margin: 0;
  background: var(--paper);
}

.dialog-shell {
  width: 100%;
  min-height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.96);
  backdrop-filter: blur(16px);
}

.dialog-header-inner {
  min-height: 72px;
}

.dialog-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-actions > button:first-child {
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding-inline: 12px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.dialog-actions > button:first-child.saved {
  background: var(--ink);
  color: var(--white);
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.article-layout {
  width: min(1080px, calc(100vw - 48px));
  margin-inline: auto;
  padding-block: 58px 96px;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 290px) minmax(0, 680px);
  gap: 74px;
  justify-content: center;
}

.article-footer {
  flex: 0 0 auto;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 104px;
}

.article-cover {
  width: 180px;
  box-shadow: var(--shadow);
}

.article-cover-placeholder {
  width: 180px;
  aspect-ratio: 0.66;
  padding: 24px 18px;
  display: grid;
  align-content: space-between;
  background: var(--teal);
  border-left: 12px solid rgba(0, 0, 0, 0.2);
  color: white;
  box-shadow: var(--shadow);
}

.article-cover-placeholder strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 24px;
  line-height: 1.25;
}

.article-aside-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.article-aside-meta a,
.article-section a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.article-body {
  min-width: 0;
}

.article-kicker {
  margin: 0;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
}

.article-body > h1 {
  margin: 13px 0 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 48px;
  line-height: 1.14;
}

.article-deck {
  margin: 22px 0 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
  color: #4e524d;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 19px;
  line-height: 1.8;
}

.article-section {
  scroll-margin-top: 84px;
  margin-top: 44px;
}

.article-section h2 {
  margin: 0 0 18px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
  line-height: 1.3;
}

.article-section p,
.article-section li {
  color: #353936;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 17px;
  line-height: 2;
}

.article-section p {
  margin: 0 0 19px;
}

.article-section ul,
.article-section ol {
  margin: 0 0 22px;
  padding-left: 1.4em;
}

.comments-section {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 3px solid var(--ink);
}

.comments-section h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
}

.comment-form {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  gap: 12px;
}

.comment-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px;
  background: var(--paper);
  color: var(--ink);
}

.comment-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.comment-form .website-field {
  position: absolute;
  left: -10000px;
}

.comment-form footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comment-form-status {
  color: var(--muted);
  font-size: 11px;
}

.comment-form button {
  min-width: 104px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.comment-list {
  margin-top: 26px;
  display: grid;
}

.comment-item {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.comment-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comment-item strong {
  font-size: 13px;
}

.comment-item time {
  color: var(--muted);
  font-size: 10px;
}

.comment-item p {
  margin: 9px 0 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
}

.comment-empty {
  padding-block: 30px;
  color: var(--muted);
  font-size: 12px;
}

/* Immersive reader: a full-viewport book spread with measured, paragraph-safe pages. */
.reader-shell {
  width: 100%;
  height: var(--reader-viewport-height, 100dvh);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) calc(58px + env(safe-area-inset-bottom, 0px));
  background: #f8f5ed;
  color: #20231f;
}

.reader-progress {
  min-width: 80px;
  position: relative;
  height: 1px;
  background: #c9c5bb;
  transition: opacity 220ms ease;
}

.reader-progress span {
  display: block;
  width: 0;
  height: 2px;
  margin-top: -1px;
  background: #424d38;
  transition: width 220ms ease;
}

.reader-chrome {
  z-index: 9;
  padding: 14px 30px 10px;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.reader-brand,
.reader-actions button,
.reader-page-controls button,
.reader-edge-tab,
.reader-drawer header button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reader-brand {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity 220ms ease;
}

.reader-brand img {
  width: 34px;
  height: 28px;
  object-fit: contain;
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 220ms ease;
}

.reader-actions button {
  min-height: 34px;
  padding-inline: 11px;
  color: #555950;
  font-size: 11px;
  font-weight: 800;
}

.reader-actions button:hover,
.reader-actions button.saved,
.reader-actions button.read {
  color: var(--red-dark);
}

.reader-spread {
  min-height: 0;
  position: relative;
  width: min(100%, 1480px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  touch-action: pan-y;
}

.reader-spread.reader-prev-zone {
  cursor: w-resize;
}

.reader-spread.reader-next-zone {
  cursor: e-resize;
}

.reader-spread.reader-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.reader-page {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  padding: 38px clamp(46px, 6.4vw, 98px) 24px;
  background: #f8f5ed;
}

.reader-page-right {
  border-left: 1px solid rgba(69, 65, 56, 0.18);
  box-shadow: inset 12px 0 20px -22px rgba(35, 32, 27, 0.7);
}

.reader-page-right:empty {
  border-left-color: transparent;
  box-shadow: none;
}

.reader-page-inner {
  height: 100%;
  overflow: hidden;
  transform: translateX(var(--reader-drag-x, 0));
  transition: transform 160ms ease;
}

.reader-dragging .reader-page-inner {
  transition: none;
}

.reader-intro {
  display: grid;
  align-content: start;
}

.reader-intro-top {
  display: grid;
  grid-template-columns: clamp(118px, 12vw, 166px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
}

.reader-cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  box-shadow: 7px 9px 18px rgba(44, 38, 31, 0.12);
}

.reader-kicker {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.reader-intro h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(29px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1.32;
}

.reader-deck {
  margin: 22px 0 0;
  color: #656960;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 16px;
  line-height: 1.85;
}

.reader-byline {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid #8d8b82;
  color: #656960;
  font-size: 11px;
}

.reader-intro > .reader-section-start {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #8d8b82;
}

.reader-intro > .reader-section-start > span {
  margin-bottom: 9px;
  font-size: 20px;
}

.reader-intro > .reader-section-start > h2 {
  margin-bottom: 12px;
  font-size: 25px;
}

.reader-intro > .reader-section-start p {
  font-size: 15px;
  line-height: 1.75;
}

.reader-flow {
  font-family: "Songti SC", "STSong", Georgia, serif;
}

.reader-unit {
  break-inside: avoid;
}

.reader-unit p,
.reader-unit li {
  color: #343831;
  font-size: 17px;
  line-height: 1.95;
}

.reader-unit p {
  margin: 0 0 18px;
}

.reader-unit ul,
.reader-unit ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

.reader-unit li {
  padding-left: 0.25em;
}

.reader-unit-continuation > ul,
.reader-unit-continuation > ol {
  list-style: none;
}

.reader-unit a {
  color: #465a4b;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.reader-section-start {
  margin-bottom: 10px;
  padding-top: 8px;
}

.reader-section-start > span {
  display: block;
  margin-bottom: 10px;
  color: #b33a31;
  font-family: Georgia, serif;
  font-size: 20px;
}

.reader-section-start > h2 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
}

.reader-unit-subheading h3 {
  margin: 14px 0 17px;
  padding-top: 15px;
  border-top: 1px solid #8d8b82;
  color: #4c583a;
  font-size: 20px;
  line-height: 1.5;
}

.reader-measure-page {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 50%;
  height: 100%;
  border-left: 1px solid transparent;
  visibility: hidden;
  pointer-events: none;
}

.reader-turning .reader-page-inner {
  animation: reader-page-in 220ms ease-out;
}

@keyframes reader-page-in {
  from { opacity: 0.25; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.reader-pagination {
  z-index: 8;
  padding: 0 32px calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  color: #a9342d;
  font-family: Georgia, serif;
  font-size: 15px;
}

.reader-page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #33372f;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  transition: opacity 220ms ease;
}

.reader-page-controls button {
  min-width: 48px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
}

.reader-page-controls button:disabled {
  opacity: 0.28;
  cursor: default;
}

.reader-folio:last-child {
  justify-self: end;
}

.reader-edge-tab {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 47%;
  width: 42px;
  min-height: 102px;
  border: 1px solid #9e9b91;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: #f8f5ed;
  color: #4f5644;
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 800;
  transition: opacity 220ms ease, transform 220ms ease;
}

.reader-idle .reader-brand {
  opacity: 0.48;
}

.reader-idle .reader-progress {
  opacity: 0.72;
}

.reader-idle .reader-actions {
  opacity: 0.34;
}

.reader-idle .reader-edge-tab,
.reader-idle .reader-page-controls {
  opacity: 0.25;
}

.reader-drawer-backdrop {
  position: absolute;
  z-index: 18;
  inset: 0;
  border: 0;
  background: rgba(30, 31, 28, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.reader-shell.drawer-open .reader-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.reader-drawer {
  position: absolute;
  z-index: 19;
  top: 0;
  bottom: 0;
  width: min(440px, calc(100vw - 32px));
  padding: 30px;
  overflow-y: auto;
  background: #f2eee4;
  box-shadow: 18px 0 44px rgba(35, 32, 27, 0.16);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms;
}

.reader-toc {
  left: 0;
  transform: translateX(-102%);
}

.reader-discussion {
  right: 0;
  transform: translateX(102%);
  box-shadow: -18px 0 44px rgba(35, 32, 27, 0.16);
}

.reader-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.reader-drawer > header {
  padding-bottom: 22px;
  border-bottom: 1px solid #97938a;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.reader-drawer header p {
  margin: 0 0 7px;
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 800;
}

.reader-drawer header h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 32px;
}

.reader-drawer header button {
  padding: 8px 0 8px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.reader-toc nav {
  display: grid;
}

.reader-toc nav button {
  min-height: 68px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid #d1ccc1;
  background: transparent;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.reader-toc nav button span {
  color: #9b3831;
  font-family: Georgia, serif;
  font-size: 12px;
}

.reader-toc nav button strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.reader-toc nav button.active strong,
.reader-toc nav button:hover strong {
  color: var(--red-dark);
}

.reader-discussion .comments-section {
  margin: 0;
  padding: 0;
  border: 0;
}

.reader-discussion .comments-section > h2 {
  display: none;
}

.reader-discussion .comment-form {
  margin-top: 24px;
  background: #fbf8f0;
}

@media (max-height: 900px) and (min-width: 761px) {
  .reader-page {
    padding-top: 24px;
    padding-bottom: 12px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .reader-page {
    padding-top: 16px;
    padding-bottom: 8px;
  }

  .reader-intro-top {
    gap: clamp(24px, 3vw, 42px);
  }

  .reader-cover {
    max-height: 220px;
  }

  .reader-intro h1 {
    font-size: clamp(26px, 2.35vw, 34px);
  }

  .reader-deck {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.7;
  }

  .reader-byline {
    margin-top: 18px;
    padding-top: 12px;
    line-height: 1.5;
  }
}

.reading-list-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  background: var(--paper);
  box-shadow: var(--shadow);
}

.reading-list-shell {
  padding: 30px;
}

.reading-list-shell > header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.reading-list-tabs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.reading-list-tabs button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.reading-list-tabs button + button {
  border-left: 1px solid var(--ink);
}

.reading-list-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.reading-list-content {
  display: grid;
}

.reading-list-item {
  min-height: 78px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.reading-list-item > span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 11px;
}

.reading-list-item h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 17px;
}

.reading-list-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.reading-list-item button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.reading-list-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --content: min(100% - 36px, 760px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .today-grid {
    grid-template-columns: 1fr 330px;
    gap: 38px;
  }

  .today-copy h1 {
    font-size: 48px;
  }

  .today-visual::before {
    width: 330px;
    height: 360px;
  }

  .featured-cover,
  .featured-cover img {
    width: 205px;
  }

  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .search-hit {
    grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr) 96px;
    gap: 20px;
  }

  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .latest-heading {
    gap: 36px;
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-row {
    grid-template-columns: 50px minmax(220px, 1fr) minmax(0, 1.3fr) 28px;
    gap: 16px;
  }

  .article-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --content: calc(100vw - 28px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 35px;
  }

  .reading-list-button {
    min-width: 84px;
    padding-inline: 8px;
    gap: 5px;
    font-size: 12px;
  }

  .today-band {
    min-height: auto;
  }

  .today-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 30px 34px;
  }

  .today-copy h1 {
    max-width: none;
    font-size: 36px;
    line-height: 1.16;
  }

  .today-lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .today-visual {
    min-height: 232px;
  }

  .today-visual::before {
    width: min(82vw, 330px);
    height: 205px;
  }

  .today-visual::after {
    width: 160px;
    height: 205px;
  }

  .featured-cover,
  .featured-cover img {
    width: 118px;
  }

  .featured-cover figcaption {
    display: none;
  }

  .issue-stamp {
    right: 8px;
    top: 12px;
    width: 62px;
    height: 62px;
    padding: 8px;
  }

  .issue-stamp span {
    font-size: 21px;
  }

  .latest-section,
  .library-section,
  .paths-section {
    padding-block: 62px 68px;
  }

  .latest-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .latest-heading h2 {
    font-size: 34px;
  }

  .collection-stats {
    margin-top: 30px;
  }

  .collection-stats div {
    min-height: 78px;
    padding: 14px 10px;
    display: grid;
    align-content: center;
    gap: 5px;
  }

  .collection-stats strong {
    font-size: 30px;
  }

  .collection-stats span {
    font-size: 10px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .latest-item {
    min-height: 224px;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 18px;
  }

  .latest-cover {
    width: 88px;
    height: 132px;
  }

  .latest-summary {
    -webkit-line-clamp: 3;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2,
  .method-title h2,
  .reading-list-shell h2 {
    font-size: 34px;
  }

  .library-stats strong {
    font-size: 38px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .search-results-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .search-hit {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .search-hit-open {
    width: 100%;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-card {
    min-height: 382px;
    padding: 14px;
  }

  .path-heading {
    display: grid;
  }

  .path-row {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
  }

  .path-books {
    grid-column: 2 / -1;
  }

  .path-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .method-section {
    padding-block: 62px 72px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .method-title h2 {
    max-width: none;
  }

  .method-steps li {
    grid-template-columns: 38px 1fr;
  }

  .method-steps p {
    grid-column: 2;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .article-layout {
    width: min(100% - 28px, 680px);
    padding-block: 34px 72px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: end;
  }

  .article-cover,
  .article-cover-placeholder {
    width: 110px;
  }

  .article-cover-placeholder {
    padding: 15px 10px;
    border-left-width: 8px;
  }

  .article-cover-placeholder strong {
    font-size: 16px;
  }

  .article-aside-meta {
    margin-top: 0;
  }

  .article-body > h1 {
    font-size: 38px;
  }

  .article-deck {
    font-size: 17px;
  }

  .article-section p,
  .article-section li {
    font-size: 16px;
    line-height: 1.95;
  }

  .reader-shell {
    grid-template-rows: 56px minmax(0, 1fr) calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .reader-progress {
    min-width: 36px;
  }

  .reader-chrome {
    padding: 8px 12px 6px;
    grid-template-columns: auto minmax(36px, 1fr) auto;
    gap: 7px;
  }

  .reader-brand span {
    display: none;
  }

  .reader-brand img {
    width: 30px;
    height: 25px;
  }

  .reader-actions button {
    min-height: 32px;
    padding-inline: 5px;
    font-size: 10px;
  }

  .reader-spread {
    grid-template-columns: minmax(0, 1fr);
  }

  .reader-page {
    padding: 20px 22px 14px;
  }

  .reader-page-right {
    display: none;
  }

  .reader-intro-top {
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
  }

  .reader-cover {
    max-height: 138px;
  }

  .reader-kicker {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .reader-intro h1 {
    font-size: 22px;
    line-height: 1.28;
  }

  .reader-deck {
    grid-column: 1 / -1;
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.68;
  }

  .reader-byline {
    margin-top: 18px;
    padding-top: 11px;
    font-size: 9px;
    line-height: 1.5;
  }

  .reader-intro > .reader-section-start {
    margin-top: 18px;
    padding-top: 13px;
  }

  .reader-intro > .reader-unit:not(.reader-section-start) p,
  .reader-intro > .reader-unit:not(.reader-section-start) li {
    font-size: 15px;
    line-height: 1.76;
  }

  .reader-intro > .reader-unit:not(.reader-section-start) p,
  .reader-intro > .reader-unit:not(.reader-section-start) ul,
  .reader-intro > .reader-unit:not(.reader-section-start) ol {
    margin-bottom: 12px;
  }

  .reader-unit p,
  .reader-unit li {
    font-size: 16px;
    line-height: 1.82;
  }

  .reader-unit p,
  .reader-unit ul,
  .reader-unit ol {
    margin-bottom: 14px;
  }

  .reader-section-start {
    padding-top: 2px;
  }

  .reader-section-start > span {
    margin-bottom: 7px;
    font-size: 18px;
  }

  .reader-section-start > h2 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.32;
  }

  .reader-unit-subheading h3 {
    margin: 8px 0 12px;
    padding-top: 11px;
    font-size: 18px;
  }

  .reader-measure-page {
    width: 100%;
    border-left: 0;
  }

  .reader-pagination {
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: 30px 1fr 30px;
    font-size: 12px;
  }

  .reader-page-controls {
    gap: 11px;
    font-size: 10px;
  }

  .reader-page-controls button {
    min-width: 44px;
    font-size: 10px;
  }

  .reader-edge-tab {
    display: none;
  }

  .reader-drawer {
    width: 100%;
    max-width: none;
    padding: 24px 20px;
  }
}

@media (max-width: 420px) {
  .today-copy h1 {
    font-size: 32px;
  }

  .today-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-button,
  .secondary-button {
    min-width: 0;
    padding-inline: 10px;
  }

  .section-heading {
    gap: 14px;
  }

  .library-stats span {
    font-size: 10px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-card {
    min-height: 390px;
    padding: 12px;
  }

  .book-card h3 {
    font-size: 18px;
  }

  .book-card-actions {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    gap: 5px;
  }

  .book-open-button {
    font-size: 11px;
  }

  .comment-form footer {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-form button {
    width: 100%;
  }

  .reading-list-shell {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
