* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #54263b;
  --paper: #fff5ed;
  --rose: #a33859;
  --line: #e9c9c9;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.85 system-ui, "Microsoft YaHei", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.shell {
  width: min(1160px, 92%);
  margin-inline: auto;
}
.header {
  border-bottom: 1px solid var(--line);
  background: #fffaf6;
}
.mast, .brand, .nav, .foot {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mast, .foot {
  justify-content: space-between;
  padding-block: 20px;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
}
.nav {
  flex-wrap: wrap;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.nav a[aria-current] {
  color: var(--rose);
  font-weight: bold;
  border-bottom: 2px solid currentColor;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 54px 0;
}
.hero h1 {
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.4;
  margin: 14px 0;
}
figure {
  margin: 0;
}
.hero figure {
  background: #54263b;
  padding: 14px;
  color: #fff5ed;
  border-radius: 160px 160px 8px 8px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 150px 150px 0 0;
}
figcaption, .eyebrow, .edition {
  font-size: 13px;
  letter-spacing: 1px;
}
figcaption {
  padding: 8px;
}
.eyebrow {
  color: var(--rose);
  font-weight: 700;
}
.cta {
  display: inline-block;
  background: var(--ink);
  color: white;
  padding: 10px 22px;
  border-radius: 3px;
}
.section-head {
  border-top: 2px solid var(--ink);
  padding: 18px 0;
}
h2 {
  font-size: 29px;
  line-height: 1.5;
}
h3 {
  font-size: 22px;
  line-height: 1.5;
}
.chapter {
  display: grid;
  grid-template-columns: 65px 280px 1fr;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.number {
  font: 45px Georgia, serif;
  color: #a33859;
}
.photo img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}
.chapter-copy h3, .chapter-copy p {
  margin: 5px 0;
}
.read {
  color: var(--rose);
  font-weight: 700;
}
.notes {
  background: #f1d5d4;
  padding: 30px;
  margin: 30px 0 48px;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.detail, .related {
  max-width: 780px;
  margin: 36px auto;
}
.detail figure img {
  width: 100%;
}
footer {
  background: var(--ink);
  color: #fff5ed;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  z-index: 2;
  background: white;
  padding: 10px;
}
@media (max-width: 760px) {
  .hero, .note-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 20px;
    padding-block: 25px;
  }
  .chapter {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }
  .chapter-copy {
    grid-column: 2;
  }
  .mast, .foot {
    flex-wrap: wrap;
  }
  .edition {
    display: none;
  }
  .hero img {
    aspect-ratio: 4/3;
  }
}

/* Narrow-screen safeguards */
.chapter-copy, .hero-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .notes {
    padding: 18px;
  }
  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }
}
