:root {
  color-scheme: light;
  --paper: #f2eee5;
  --paper-deep: #e7e0d2;
  --cream: #fbf8f1;
  --ink: #171914;
  --ink-soft: #4f5048;
  --line: #cbc3b3;
  --bronze: #9a5c38;
  --bronze-dark: #673920;
  --moss: #4e5847;
  --night: #192025;
  --night-soft: #263138;
  --white: #fffdf8;
  --serif: "Iowan Old Style", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Georgia, serif;
  --sans: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --reader-size: 18px;
  --content-width: 1180px;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.17;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(83, 73, 55, 0.12) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 73% 62%, rgba(83, 73, 55, 0.08) 0 0.6px, transparent 0.7px);
  background-size: 9px 11px, 13px 15px;
  content: "";
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid #d98952;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 25px clamp(22px, 4vw, 64px);
  color: #eee9de;
}

.site-brand {
  width: max-content;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.site-header nav a {
  color: #bfc3be;
  text-decoration: none;
}

.site-header nav a:hover {
  color: #fff;
}

.header-reader-link {
  justify-self: end;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.book-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  min-height: 760px;
  overflow: hidden;
  padding: 130px max(24px, calc((100vw - var(--content-width)) / 2)) 90px;
  background:
    linear-gradient(110deg, rgba(19, 25, 28, 0.98) 0%, rgba(25, 32, 37, 0.97) 60%, rgba(31, 38, 38, 0.93) 100%);
  color: #f2eee4;
}

.book-hero::after {
  position: absolute;
  top: -22%;
  right: -12%;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(216, 189, 159, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(216, 189, 159, 0.025), 0 0 0 180px rgba(216, 189, 159, 0.018);
  content: "";
}

.hero-copy,
.cover-stage {
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 13px;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.book-hero .kicker {
  color: #d99a72;
}

.book-hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 7.6vw, 105px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.book-hero h1 em {
  color: #c98256;
  font-style: normal;
}

.hero-subtitle {
  margin: 30px 0 0;
  color: #e4ddd0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.42;
}

.hero-intro {
  max-width: 670px;
  margin: 19px 0 0;
  color: #b8bcb8;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: #c4774b;
  background: #b96d43;
  color: #fff;
}

.button.primary:hover {
  background: #c77d52;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #eee9df;
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.book-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 42px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.book-stats div {
  padding: 17px 20px 0 0;
}

.book-stats dt {
  color: #818b8b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-stats dd {
  margin: 5px 0 0;
  color: #d9d8d2;
  font-size: 13px;
  font-weight: 700;
}

.cover-stage {
  width: min(100%, 410px);
  justify-self: center;
  margin: 0;
  perspective: 1200px;
}

.cover-stage figcaption {
  margin-top: 17px;
  color: #8f9999;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.cover-shadow {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 6%;
  height: 11%;
  border-radius: 50%;
  background: #000;
  filter: blur(28px);
  opacity: 0.72;
}

.book-cover {
  position: relative;
  aspect-ratio: 152 / 225;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1b1c19;
  box-shadow: -7px 8px 0 #101516, 0 40px 70px rgba(0, 0, 0, 0.42);
  transform: rotateY(-6deg) rotateZ(1.1deg);
  transform-origin: center left;
}

.book-cover::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(224, 202, 176, 0.4);
  content: "";
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.75);
}

.cover-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 26, 28, 0.3), rgba(20, 20, 17, 0.07) 35%, rgba(20, 18, 14, 0.83));
  mix-blend-mode: multiply;
}

.cover-type {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12% 12% 10%;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.cover-type span {
  color: #e3a57f;
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.cover-type strong {
  margin-top: auto;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: clamp(33px, 4.4vw, 57px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.cover-type small {
  margin-top: 18px;
  color: #e3ddd1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.thesis-section,
.parts-section,
.contents-section,
.downloads-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: 24px;
}

.thesis-section {
  display: grid;
  grid-template-columns: 100px minmax(0, 880px);
  gap: clamp(28px, 6vw, 80px);
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(72px, 9vw, 126px);
}

.section-index {
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.section-index::after {
  display: block;
  width: 1px;
  height: 72px;
  margin: 17px 0 0 12px;
  background: var(--line);
  content: "";
}

.thesis-section blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4.2vw, 55px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.argument-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px clamp(90px, 10vw, 150px);
}

.argument-grid article {
  min-height: 330px;
  padding: 28px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--line);
}

.argument-grid article:last-child {
  border-right: 0;
}

.argument-grid span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--bronze-dark);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 800;
}

.argument-grid h2 {
  margin: 56px 0 15px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.argument-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.parts-section {
  padding-bottom: clamp(90px, 12vw, 160px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(35px, 8vw, 120px);
  align-items: end;
  margin-bottom: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.part-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.part-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.67);
}

.part-card:nth-child(4),
.part-card:nth-child(5) {
  grid-column: span 6;
}

.part-image {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: #222;
}

.part-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 13, 12, 0.72));
  content: "";
}

.part-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.15) contrast(1.08);
  transition: transform 500ms ease;
}

.part-crop-lower .part-image img {
  object-position: center 72%;
}

.part-card:hover .part-image img {
  transform: scale(1.025);
}

.part-image span {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 17px;
  color: #fff;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 800;
}

.part-card-copy {
  padding: 23px;
}

.part-card-copy > p:first-child {
  margin: 0 0 9px;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.part-card-copy h3 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.part-card-copy h3 a {
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.part-card-copy h3 a:hover {
  text-decoration-color: var(--bronze);
}

.part-card-copy > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.timeline-section {
  padding: clamp(75px, 9vw, 120px) max(24px, calc((100vw - var(--content-width)) / 2));
  background: var(--night);
  color: #f0ece3;
}

.section-heading.inverse {
  border-color: rgba(255, 255, 255, 0.34);
}

.section-heading.inverse > p {
  color: #aeb4b2;
}

.section-heading.inverse .kicker {
  color: #d88d61;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  min-height: 205px;
  padding: 30px 20px 0 0;
  border-top: 1px solid #687174;
}

.timeline li::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #da8959;
  content: "";
}

.timeline time {
  display: block;
  color: #da8959;
  font-size: 12px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin: 33px 0 8px;
  padding-right: 15px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.timeline span {
  color: #929b9b;
  font-size: 12px;
}

.contents-section {
  padding-top: clamp(90px, 12vw, 160px);
  padding-bottom: clamp(90px, 12vw, 160px);
}

.search-field {
  position: relative;
  display: block;
  max-width: 680px;
  margin: 46px auto 8px;
}

.search-field > span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

.search-field input {
  width: 100%;
  min-height: 58px;
  padding: 12px 58px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
}

.search-field kbd {
  position: absolute;
  top: 14px;
  right: 15px;
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.search-status {
  min-height: 25px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.full-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 42px;
}

.toc-preface {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toc-preface a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 17px 2px;
  text-decoration: none;
}

.toc-preface a:hover strong {
  color: var(--bronze);
}

.toc-preface span {
  color: var(--bronze);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.toc-preface strong {
  font-family: var(--serif);
  font-size: 19px;
}

.toc-preface.conclusion {
  margin-top: 15px;
}

.toc-part {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.toc-part header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 65px;
}

.toc-part header span {
  flex: 0 0 auto;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 800;
}

.toc-part h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.toc-part ol {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.toc-part li {
  border-top: 1px solid rgba(115, 107, 93, 0.22);
}

.toc-part li a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 2px;
  text-decoration: none;
}

.toc-part li a:hover strong,
.toc-part li a:focus-visible strong {
  color: var(--bronze-dark);
}

.toc-part li span {
  color: #9e988c;
  font-family: var(--serif);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.toc-part li strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
}

.full-toc .appendix-toc {
  grid-column: 1 / -1;
  margin-top: 15px;
}

.full-toc .appendix-toc ol {
  columns: 2;
  column-gap: 42px;
}

.full-toc .appendix-toc li {
  break-inside: avoid;
}

.downloads-section {
  padding-bottom: clamp(90px, 11vw, 150px);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 50px;
  padding: clamp(30px, 5vw, 62px);
  background: var(--moss);
  color: #f5f0e7;
}

.download-panel .kicker {
  color: #e2ad88;
}

.download-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.download-panel p {
  margin: 17px 0 0;
  color: #ccd2c8;
  font-size: 14px;
}

.download-actions {
  display: grid;
  gap: 9px;
  align-content: center;
}

.download-button {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  min-height: 62px;
  border-color: rgba(255, 255, 255, 0.25);
  color: #f5f0e7;
  text-align: left;
}

.download-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.download-button small {
  color: #e7e0d7;
  font-size: 11px;
  font-weight: 700;
}

.download-button.is-available small {
  color: #f2c9ac;
}

.download-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.book-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: end;
  padding: 44px max(24px, calc((100vw - var(--content-width)) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 12px;
}

.book-footer p {
  margin: 7px 0 0;
}

.book-footer > div:nth-child(2) {
  display: flex;
  gap: 20px;
}

.book-footer > div:nth-child(2) a {
  text-decoration: none;
}

.book-footer > div:nth-child(2) a:hover {
  color: var(--bronze-dark);
}

.book-footer > p {
  justify-self: end;
}

/* Reader */

.reader-page {
  min-height: 100vh;
  background: #f5f1e8;
}

.reading-progress {
  position: fixed;
  z-index: 130;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bronze);
  transition: width 100ms linear;
}

.reader-header {
  position: sticky;
  z-index: 120;
  top: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  min-height: 72px;
  align-items: center;
  gap: 30px;
  padding: 10px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.96);
  backdrop-filter: blur(13px);
}

.reader-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  text-decoration: none;
}

.reader-brand strong {
  color: var(--bronze-dark);
  font-size: 18px;
}

.reader-current {
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reader-tools button,
.reader-tools a {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.reader-tools button:hover,
.reader-tools a:hover {
  border-color: var(--bronze);
  color: var(--ink);
}

.reader-tools kbd {
  margin-left: 4px;
  color: #625e55;
  font-size: 10px;
  font-weight: 700;
}

.reader-search {
  position: fixed;
  z-index: 150;
  top: 72px;
  right: 0;
  left: 0;
  max-height: calc(100vh - 72px);
  overflow: auto;
  padding: 24px max(24px, calc((100vw - 940px) / 2)) 34px;
  border-bottom: 1px solid #62665e;
  background: rgba(24, 29, 30, 0.985);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  color: #f3eee4;
}

.reader-search-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.reader-search-inner label {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
}

.reader-search-inner input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #626967;
  border-radius: 2px;
  background: #303738;
  color: #fff;
}

.reader-search-inner button {
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: #d2d3ce;
  cursor: pointer;
}

.reader-search-status {
  margin: 16px 0 9px;
  color: #aeb6b3;
  font-size: 12px;
}

.reader-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reader-search-results button {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #444c4b;
  background: #252c2d;
  color: #daddd8;
  cursor: pointer;
  text-align: left;
}

.reader-search-results button:hover {
  border-color: #b87048;
}

.reader-search-results strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
}

.reader-search-results span {
  display: -webkit-box;
  overflow: hidden;
  color: #aeb5b1;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reader-search-results mark {
  background: #7c492f;
  color: #fff;
}

.reader-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 780px) minmax(90px, 180px);
  gap: clamp(28px, 5vw, 72px);
  width: min(100% - 42px, 1380px);
  margin: 0 auto;
}

.reader-sidebar,
.reader-margin {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
  scrollbar-width: thin;
}

.reader-sidebar {
  padding: 22px 5px 50px 0;
}

.reader-sidebar nav > .front-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.26);
  text-decoration: none;
}

.reader-sidebar nav > .front-link.conclusion {
  margin-top: 20px;
}

.front-link span {
  color: var(--bronze);
  font-size: 9px;
  font-weight: 900;
}

.front-link strong {
  font-family: var(--serif);
  font-size: 12px;
}

.reader-sidebar .toc-part {
  padding-top: 14px;
}

.reader-sidebar .toc-part + .toc-part {
  margin-top: 18px;
}

.reader-sidebar .toc-part header {
  min-height: auto;
  margin-bottom: 7px;
}

.reader-sidebar .toc-part h3 {
  font-size: 13px;
}

.reader-sidebar .toc-part li a {
  grid-template-columns: 24px 1fr;
  gap: 7px;
  padding: 7px 5px;
}

.reader-sidebar .toc-part li strong {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.reader-sidebar .toc-part a.is-active,
.reader-sidebar .front-link.is-active {
  background: #e6ddd0;
  color: var(--bronze-dark);
}

.reader-document {
  min-width: 0;
  padding: 0 0 100px;
}

.js .reader-document .chapter:not(.is-active) {
  display: none;
}

.chapter {
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 7vw, 92px) 0 80px;
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.js .chapter + .chapter {
  border-top: 0;
}

.chapter-header {
  margin-bottom: 48px;
  padding-bottom: 31px;
  border-bottom: 1px solid var(--line);
}

.chapter-part {
  margin: 0 0 13px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chapter-part span {
  margin: 0 6px;
  color: var(--line);
}

.chapter-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(39px, 5.4vw, 62px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.12;
  text-wrap: balance;
}

.chapter-meta {
  display: flex;
  gap: 20px;
  margin-top: 21px;
  color: #625e55;
  font-size: 11px;
  font-weight: 600;
}

.chapter-figure {
  margin: 0 0 55px;
}

.chapter-figure img {
  display: block;
  width: 100%;
  max-height: 430px;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: grayscale(1) sepia(0.08) contrast(1.04);
}

.chapter-body {
  font-family: var(--serif);
  font-size: var(--reader-size);
  letter-spacing: -0.012em;
  line-height: 1.92;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.chapter-body > p {
  margin: 0 0 1.1em;
}

.chapter-body .manuscript-list {
  margin: 0 0 1.55em;
  padding-left: 1.55em;
}

.chapter-body .manuscript-list li {
  padding-left: 0.2em;
}

.chapter-body .manuscript-list li + li {
  margin-top: 0.72em;
}

.chapter-body ul.manuscript-list li::marker {
  color: var(--bronze);
}

.chapter-body ol.manuscript-list li::marker {
  color: var(--bronze-dark);
  font-family: var(--sans);
  font-size: 0.78em;
  font-weight: 800;
}

.chapter-body > p:first-child {
  font-size: calc(var(--reader-size) * 1.08);
  font-weight: 600;
}

.chapter-body > p:first-child::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--bronze-dark);
  font-size: 3.1em;
  font-weight: 700;
  line-height: 0.82;
}

.chapter-body h3 {
  margin: 3.3em 0 1em;
  padding-top: 0.65em;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: calc(var(--reader-size) * 1.47);
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.chapter-body h4 {
  margin: 2.6em 0 0.8em;
  color: var(--bronze-dark);
  font-size: calc(var(--reader-size) * 1.15);
  line-height: 1.45;
}

.chapter-body code {
  padding: 0.08em 0.3em;
  border-radius: 3px;
  background: #e5ded1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
}

.citation {
  position: relative;
  top: -0.1em;
  margin-left: 0.08em;
  font-family: var(--sans);
  font-size: 0.57em;
  font-weight: 800;
}

.citation a {
  color: var(--bronze-dark);
  text-decoration: none;
}

.chapter-references {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.chapter-references h3 {
  margin: 0 0 25px;
  font-family: var(--serif);
  font-size: 24px;
}

.chapter-references ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-references li {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.chapter-references li:target {
  margin: -8px;
  padding: 8px;
  background: #e8ddcc;
}

.reference-number {
  color: var(--bronze);
  font-family: var(--serif);
  font-weight: 800;
}

.source-link,
.back-to-text {
  color: var(--bronze-dark);
  font-weight: 800;
  text-underline-offset: 2px;
}

.back-to-text {
  margin-left: 6px;
  color: #625e55;
  font-size: 11px;
}

.reference-missing {
  color: #9c3d2d;
}

.chapter-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 70px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.chapter-direction {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 19px;
  text-decoration: none;
}

.chapter-direction.next {
  justify-content: flex-end;
}

.chapter-direction small {
  font-size: 11px;
  font-weight: 800;
}

.chapter-direction:hover {
  border-color: var(--bronze);
  color: var(--bronze-dark);
}

.chapter-direction[aria-disabled="true"] {
  visibility: hidden;
}

.reader-margin {
  margin-top: 48px;
  padding: 17px 0;
  border-top: 1px solid var(--ink);
  color: #89857b;
  font-size: 10px;
}

.reader-margin p {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 800;
}

.reader-margin span {
  display: block;
  margin-bottom: 18px;
}

.reader-margin a {
  color: var(--bronze-dark);
  font-weight: 800;
}

.mobile-reader-nav {
  display: none;
}

.noscript-note {
  margin: 20px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--cream);
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .book-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.66fr);
    min-height: 720px;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 0;
  }

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

  .reader-layout {
    grid-template-columns: 210px minmax(0, 740px);
    justify-content: center;
  }

  .reader-margin {
    display: none;
  }
}

@media (max-width: 820px) {
  .book-hero {
    grid-template-columns: 1fr;
    padding-top: 128px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .cover-stage {
    width: min(75vw, 380px);
    margin-top: 20px;
  }

  .thesis-section {
    grid-template-columns: 50px 1fr;
  }

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

  .argument-grid article {
    min-height: auto;
    border-right: 0;
  }

  .argument-grid h2 {
    margin-top: 35px;
  }

  .section-heading,
  .download-panel {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .part-card,
  .part-card:nth-child(4),
  .part-card:nth-child(5) {
    grid-column: span 6;
  }

  .full-toc {
    grid-template-columns: 1fr;
  }

  .full-toc .appendix-toc ol {
    columns: 1;
  }

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

  .reader-current,
  .reader-tools [data-font] {
    display: none;
  }

  .reader-layout {
    display: block;
    width: min(100% - 36px, 760px);
  }

  .reader-sidebar {
    display: none;
  }

  .mobile-reader-nav {
    position: sticky;
    z-index: 110;
    top: 72px;
    display: block;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 241, 232, 0.98);
  }

  .mobile-reader-nav summary {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 18px;
    color: var(--bronze-dark);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-reader-nav summary span {
    overflow: hidden;
    color: var(--ink-soft);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-reader-nav nav {
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 10px 18px 30px;
  }

  .mobile-reader-nav .toc-part {
    margin-top: 14px;
    padding-top: 10px;
  }

  .mobile-reader-nav .toc-part header {
    min-height: auto;
  }

  .mobile-reader-nav .toc-part h3 {
    font-size: 15px;
  }

  .mobile-reader-nav .toc-part li a {
    padding: 8px 2px;
  }

  .mobile-reader-nav .toc-part li strong {
    font-family: var(--sans);
    font-size: 12px;
  }

  .mobile-reader-nav .front-link {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
  }

  .reader-search-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 590px) {
  .site-header {
    padding: 19px 18px;
  }

  .header-reader-link {
    font-size: 11px;
  }

  .book-hero {
    min-height: auto;
    padding: 108px 20px 70px;
  }

  .book-hero h1 {
    font-size: 52px;
  }

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

  .book-stats div {
    display: grid;
    grid-template-columns: 75px 1fr;
    padding-top: 11px;
  }

  .book-stats dd {
    margin: 0;
  }

  .cover-stage {
    width: min(82vw, 340px);
  }

  .thesis-section {
    display: block;
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .section-index {
    margin-bottom: 38px;
  }

  .section-index::after {
    display: none;
  }

  .thesis-section blockquote {
    font-size: 30px;
  }

  .argument-grid article {
    padding-inline: 6px;
  }

  .part-card,
  .part-card:nth-child(4),
  .part-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline li {
    min-height: 150px;
  }

  .full-toc {
    gap: 35px;
  }

  .toc-preface a {
    grid-template-columns: 80px 1fr;
  }

  .download-panel {
    padding: 28px 19px;
  }

  .download-button {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .book-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .book-footer > div:nth-child(2) {
    flex-direction: column;
    gap: 6px;
  }

  .book-footer > p {
    justify-self: start;
  }

  .reader-brand span {
    display: none;
  }

  .reader-tools a {
    display: none;
  }

  .reader-search {
    padding-inline: 14px;
  }

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

  .reader-search-inner label {
    grid-column: 1 / -1;
  }

  .chapter {
    padding-top: 48px;
  }

  .chapter-header h2 {
    font-size: 39px;
  }

  .chapter-body {
    font-size: clamp(17px, var(--reader-size), 20px);
    line-height: 1.88;
    word-break: normal;
  }

  .chapter-meta {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .reader-header,
  .reader-sidebar,
  .reader-margin,
  .mobile-reader-nav,
  .reader-search,
  .reading-progress,
  .chapter-pagination,
  .back-to-text {
    display: none !important;
  }

  body,
  .reader-page {
    background: #fff;
  }

  .reader-layout {
    display: block;
    width: auto;
  }

  .reader-document .chapter,
  .js .reader-document .chapter:not(.is-active) {
    display: block;
    min-height: 0;
    break-before: page;
  }

  .chapter-body {
    font-size: 11pt;
  }

  .chapter-references {
    break-inside: avoid;
  }
}
