:root {
  --color-page: #f7f8f5;
  --color-paper: #ffffff;
  --color-ink: #111827;
  --color-text: #23313d;
  --color-muted: #667482;
  --color-border: #dde3e0;
  --color-border-strong: #b9c5c1;
  --color-accent: #1f6f78;
  --color-accent-dark: #164f56;
  --color-copper: #a65f2b;
  --color-wine: #8b3f4d;
  --color-sage: #60745f;
  --max-width: 1160px;
  --header-height: 72px;
  --page-height: calc(100svh - var(--header-height));
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-subtle: 0 18px 40px rgba(17, 24, 39, 0.07);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
}

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

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-padding-top: var(--header-height);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  padding-top: var(--header-height);
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #fbfcfa 0, var(--color-page) 540px, #f3f5f1 100%);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

[data-lang] {
  display: none;
}

.hero-copy h1 [data-lang] {
  display: none;
}

html[data-language="zh"] [data-lang="zh"],
html[data-language="en"] [data-lang="en"] {
  display: inline;
}

html[data-language="zh"] .hero-copy h1 [data-lang="zh"],
html[data-language="en"] .hero-copy h1 [data-lang="en"] {
  display: block;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(31, 111, 120, 0.055) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.24;
  pointer-events: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(31, 111, 120, 0.28);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
dl,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  margin-bottom: 42px;
  font-size: 56px;
  line-height: 1.13;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
}

html[data-language="en"] .section-heading h2,
html[data-language="en"] .review-copy h2 {
  font-size: 30px;
}

#review-title [data-lang="zh"] {
  word-break: keep-all;
  overflow-wrap: normal;
}

h3 {
  font-size: 23px;
}

.wrapper {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(221, 227, 224, 0.92);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.header-inner {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.site-mark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
}

.site-mark a:hover {
  text-decoration: none;
}

.site-mark-home {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
}

.site-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-mark strong {
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.1;
}

.site-mark-separator,
.site-mark-oxelra {
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.1;
}

.site-mark-oxelra:hover {
  color: var(--color-accent-dark);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.header-link {
  min-height: 36px;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
}

.site-nav a:hover,
.header-link:hover {
  background: #eef5f3;
  color: var(--color-accent-dark);
  text-decoration: none;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  border: 1px solid var(--color-border);
  padding: 8px 14px;
}

.header-link__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 30px;
}

.header-tools .header-link {
  justify-self: auto;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  padding: 2px;
}

.language-switch button {
  position: relative;
  appearance: none;
  min-height: 32px;
  border: 0;
  border-radius: calc(var(--radius-sm) - 1px);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  padding: 7px 10px;
}

.language-switch button + button::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -2px;
  width: 1px;
  background: var(--color-border);
}

.language-switch button.is-active {
  background: #fff;
  color: var(--color-ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.hero-section {
  display: flex;
  min-height: var(--page-height);
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fff 0, #fbfcfa 100%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-layout {
  display: flex;
  width: min(100% - 48px, 1320px);
  justify-content: center;
  padding: 92px 0 104px;
  text-align: center;
}

.hero-copy {
  max-width: 1240px;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.26;
}

html[data-language="en"] .hero-copy h1 {
  max-width: 1240px;
}

.section-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero-copy .section-kicker {
  margin-bottom: 88px;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:first-child {
  white-space: normal;
}

.hero-lede {
  max-width: 820px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--color-text);
  font-size: 19px;
  line-height: 2.12;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 76px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  gap: 68px;
  margin-top: 96px;
  margin-right: auto;
  margin-left: auto;
}

.hero-actions .button {
  min-width: 154px;
  min-height: 46px;
  justify-content: center;
  border-color: rgba(31, 111, 120, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(31, 111, 120, 0.055);
  color: var(--color-accent-dark);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 18px 10px 22px;
  box-shadow: none;
}

.hero-actions .button::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  background: rgba(31, 111, 120, 0.55);
}

.hero-actions .button::after {
  content: "›";
  margin-left: 10px;
  color: var(--color-copper);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 650;
  line-height: 0.8;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.hero-actions .button:hover {
  border-color: rgba(31, 111, 120, 0.34);
  background: rgba(31, 111, 120, 0.09);
  color: var(--color-accent-dark);
  box-shadow: none;
}

.hero-actions .button:hover::after {
  color: #8c4a20;
  transform: translateX(2px);
}

.detail-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  border-color: #1b6b73;
  background: var(--color-accent);
  color: #fff;
  box-shadow: none;
}

.button-primary:hover {
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.button-secondary:hover {
  border-color: var(--color-accent);
  background: rgba(31, 111, 120, 0.055);
  color: var(--color-accent-dark);
  box-shadow: none;
}

.book-meta div,
.meta-list div {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

.book-meta div:first-child,
.meta-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.book-meta dt,
.meta-list dt {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-meta dd,
.meta-list dd {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.book-card .book-meta dd {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.42;
}

.books-section,
.review-section,
.hero-section,
.detail-section {
  scroll-margin-top: var(--header-height);
}

.books-section,
.review-section {
  display: flex;
  min-height: var(--page-height);
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding: clamp(72px, 9svh, 112px) 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.detail-section {
  padding: 82px 0;
}

.section-heading,
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 410px) minmax(0, 1fr);
  column-gap: 70px;
  row-gap: 22px;
  align-items: start;
  border-top: 1px solid var(--color-border);
  padding-top: 46px;
}

.section-heading .section-kicker,
.review-copy .section-kicker,
.section-heading h2,
.review-copy h2 {
  align-self: start;
  margin-bottom: 0;
}

.section-heading .section-kicker,
.section-heading h2,
.section-heading p,
.review-copy .section-kicker,
.review-copy h2,
.review-copy p {
  grid-column: 1;
}

.section-heading {
  margin-bottom: 48px;
}

.books-section .section-heading {
  margin-bottom: 96px;
}

.section-heading p:not(.section-kicker),
.review-copy p:not(.section-kicker) {
  align-self: start;
  grid-column: 2;
  margin-bottom: 5px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.86;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 14px;
}

.book-card {
  position: relative;
  display: flex;
  min-height: 384px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(185, 197, 193, 0.72);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 253, 251, 0.94) 100%);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.045);
  padding: 24px 22px 20px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.book-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-copper), transparent 76%);
  opacity: 0.72;
}

.book-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.075);
  transform: translateY(-2px);
}

.book-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.book-number {
  display: inline-flex;
  min-width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(166, 95, 43, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(166, 95, 43, 0.07);
  color: var(--color-copper);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.book-field {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(96, 116, 95, 0.16);
  border-radius: 999px;
  background: rgba(96, 116, 95, 0.08);
  color: var(--color-sage);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  padding: 6px 11px;
}

.book-card-body {
  display: grid;
  grid-template-columns: minmax(128px, 31%) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  flex: 1;
}

.book-card-info {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.book-cover {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(185, 197, 193, 0.68);
  border-radius: var(--radius-sm);
  background: #f2f3f0;
  padding: 10px;
}

.book-cover:hover {
  text-decoration: none;
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  transition: transform 180ms ease;
}

.book-cover:hover img {
  transform: translateY(-2px);
}
.book-card h3 {
  max-width: 520px;
  margin-bottom: 12px;
  min-height: 2.16em;
  font-size: 23px;
  line-height: 1.08;
}

html[data-language="en"] .book-card h3 {
  min-height: 2.2em;
  font-size: 21px;
  line-height: 1.1;
}

.book-card p {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.64;
}

.book-card-info > p {
  min-height: 6.56em;
}

html[data-language="en"] .book-card-info > p {
  min-height: 9.84em;
}

.book-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(221, 227, 224, 0.76);
  border-radius: var(--radius-sm);
  background: rgba(247, 248, 245, 0.76);
  margin: 18px 0 0;
  padding: 10px;
}

.book-meta div {
  border-top: 0;
  padding-top: 0;
}

.book-meta div + div {
  border-left: 1px solid var(--color-border);
  padding-left: 10px;
}

.book-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.82fr) minmax(0, 1.2fr);
  gap: 9px;
  margin-top: 18px;
}

.book-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 111, 120, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(31, 111, 120, 0.065);
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.3;
  padding: 7px 7px;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.book-actions a::after {
  content: "›";
  flex: 0 0 auto;
  margin-left: 7px;
  color: var(--color-copper);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 650;
  line-height: 0.8;
}

html[data-language="en"] .book-actions a {
  min-height: 38px;
  padding-right: 6px;
  padding-left: 6px;
}

.book-actions a:hover {
  border-color: rgba(31, 111, 120, 0.3);
  background: rgba(31, 111, 120, 0.1);
  color: var(--color-accent);
  text-decoration: none;
}

.review-section {
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.48);
}

.review-copy {
  display: contents;
}

.revision-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 64px 0 0;
  padding: 0;
}

.revision-card {
  position: relative;
  display: flex;
  min-height: 264px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid rgba(185, 197, 193, 0.72);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 253, 251, 0.94) 100%);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.045);
  color: var(--color-text);
  padding: 26px 22px 128px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.revision-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-copper), transparent 76%);
  opacity: 0.72;
}

.revision-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.075);
}

.revision-card > span {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 22px;
}

.revision-card > div {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-rows: auto 96px auto;
  width: 100%;
}

.revision-card h3 {
  margin-bottom: 12px;
  color: var(--color-ink);
  font-size: 23px;
  line-height: 1.22;
}

html[data-language="en"] .revision-card h3 {
  font-size: 20px;
  line-height: 1.2;
}

.revision-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

.revision-card__links {
  position: absolute;
  top: 214px;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
  width: auto;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  padding-top: 18px;
}

.revision-card__links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-start;
  border-radius: var(--radius-sm);
  background: rgba(31, 111, 120, 0.07);
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 7px 10px;
  width: 100%;
}

.revision-card__links a:hover {
  background: rgba(31, 111, 120, 0.12);
  color: var(--color-accent);
  text-decoration: none;
}

.hero-section + .books-section,
.books-section + .review-section {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-muted);
  font-size: 14px;
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 36px;
}

.footer-inner a {
  color: var(--color-muted);
}

.detail-hero {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.detail-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 56px;
  align-items: start;
  padding: 74px 0;
}

.crumb {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-copy h1 {
  max-width: 820px;
  font-size: 44px;
}

.detail-copy p {
  max-width: 740px;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.86;
}

.detail-cover-panel {
  display: flex;
  justify-content: flex-start;
  padding-top: 42px;
}

.detail-cover {
  width: min(260px, 100%);
}

.detail-cover img {
  width: 100%;
}

.meta-panel,
.review-note {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
}

.meta-panel h2,
.review-note h2 {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  padding-bottom: 12px;
  font-size: 20px;
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.meta-list {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 70px;
  align-items: start;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}

.content-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  padding: 26px;
}

.chapter-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border-strong);
  list-style: none;
}

.chapter-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}

.chapter-list span {
  color: var(--color-copper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 850;
}

.chapter-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 760;
}

.chapter-list p,
.review-note p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
}

.review-note .detail-actions {
  margin-top: 22px;
}

@media (max-width: 960px) {
  :root {
    --header-height: 120px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-link {
    grid-column: 2;
    grid-row: 1;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .section-heading,
  .review-layout,
  .detail-hero-layout,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-layout {
    min-height: 0;
    padding: 44px 0;
  }

  .hero-copy h1 span:first-child {
    white-space: normal;
  }

  .section-heading p,
  .review-copy p:not(.section-kicker),
  .revision-grid {
    grid-column: 1;
  }

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

  .review-copy,
  .review-note,
  .detail-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .wrapper {
    width: min(100% - 32px, var(--max-width));
  }

  .site-mark small {
    display: none;
  }

  .header-link {
    padding: 8px 11px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-lede,
  .detail-copy p {
    font-size: 16px;
  }

  .book-meta {
    grid-template-columns: 1fr;
  }

  .book-meta div + div {
    border-top: 1px solid var(--color-border);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .book-card,
  .content-card,
  .meta-panel,
  .review-note {
    padding: 18px;
  }

  .book-card-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .book-cover {
    width: min(210px, 72%);
    justify-self: center;
  }

  .book-meta {
    grid-template-columns: 1fr;
  }

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

  .chapter-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .revision-card {
    min-height: 0;
  }

  .detail-section {
    padding: 58px 0;
  }

  .books-section,
  .review-section {
    min-height: auto;
    padding: 58px 0;
  }
}
