:root {
  color-scheme: light;
  --ground: #deded4;
  --paper: #eeede5;
  --ink: #23241f;
  --soft: #4e5044;
  --olive: #4c5b30;
  --highlight: #c9d0ad;
  --rule: #858779;
  --display: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  --text: Baskerville, "Palatino Linotype", Palatino, serif;
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 20px; line-height: 1.6; }
main, article, aside, section, nav, div { min-width: 0; }
p, ul, ol, dl { max-width: 66ch; }
p { margin: 0 0 1.3rem; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { margin: 0 0 1.5rem; font-size: clamp(2.5rem, 4.5vw, 3.9rem); }
h2 { margin: 0 0 1.1rem; font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
h3 { margin: 1.5rem 0 .8rem; font-size: 1.55rem; }
ul, ol { margin: .5rem 0 1.5rem; padding-left: 1.3rem; }
li { padding-left: .25rem; margin: 0 0 .75rem; }
li > p { margin: 0; }
li::marker { color: var(--olive); }
a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--olive);
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
a:hover { text-decoration-thickness: 3px; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
button, input, textarea { font: inherit; color: inherit; border-radius: 0; }
button { min-height: 48px; min-width: 48px; max-width: 100%; padding: .65rem 1rem; cursor: pointer; border: 2px solid var(--olive); background: var(--olive); color: var(--paper); font-weight: 700; line-height: 1.4; }
button:hover { background: var(--ink); border-color: var(--ink); }
button:disabled { cursor: default; background: var(--ground); border-color: var(--rule); color: var(--soft); }
input, textarea { display: block; width: 100%; min-height: 48px; border: 1px solid var(--rule); border-bottom: 2px solid var(--olive); padding: .65rem .75rem; background: var(--paper); margin: .35rem 0 1.3rem; }
textarea { resize: vertical; }
fieldset { min-width: 0; border: 1px solid var(--rule); padding: 1.25rem; margin: 0; background: var(--paper); }
legend { padding: 0 .5rem; color: var(--olive); font-style: italic; font-weight: 700; }
label { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
img { display: block; max-width: 100%; }
figure { margin: 2rem 0; }
figcaption { padding: .8rem 0; line-height: 1.5; color: var(--soft); font-size: 1.1rem; font-style: italic; }
::selection { background: var(--highlight); color: var(--ink); }

.cmp-skip { position: fixed; top: .5rem; left: .5rem; z-index: 10; min-height: 48px; padding: .75rem; background: var(--paper); border: 2px solid var(--olive); transform: translateY(-180%); }
.cmp-skip:focus { transform: translateY(0); }
.cmp-masthead { max-width: 1344px; margin: 0 auto; padding: 1.3rem 3rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; border-bottom: 4px double var(--ink); }
.cmp-name { min-height: 48px; gap: .85rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.cmp-name b { font-family: var(--text); font-size: 1.05rem; font-weight: 400; color: var(--soft); }
.cmp-channels { display: flex; width: 30px; height: 38px; flex-direction: column; justify-content: center; gap: 5px; flex: none; transform: rotate(-9deg); }
.cmp-channels i { display: block; width: 27px; height: 4px; background: var(--olive); border-radius: 45% 20% 40% 20%; }
.cmp-channels i:nth-child(2) { width: 21px; margin-left: 3px; }
.cmp-channels i:nth-child(3) { width: 25px; margin-left: 1px; }
.cmp-masthead nav, .cmp-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.cmp-masthead nav a, .cmp-footer nav a { min-height: 48px; padding: .5rem 0; font-size: 1.1rem; }
.cmp-layout { max-width: 1344px; margin: 0 auto; padding: 0 3rem; display: grid; grid-template-columns: 224px minmax(0, 1fr); column-gap: 3.5rem; align-items: start; }
.cmp-layout > main { grid-column: 2; grid-row: 1; padding-top: 3rem; }
.cmp-index { grid-column: 1; grid-row: 1; position: sticky; top: 1rem; padding: 2.8rem 0 1.5rem; max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule) var(--ground); }
.cmp-index h2 { font-size: 1.85rem; margin: 0 0 1.25rem; }
.cmp-index-label { color: var(--soft); font-size: 1.05rem; font-style: italic; margin: 1.5rem 0 .4rem; line-height: 1.5; }
.cmp-index ul { list-style: none; padding: 0; margin: 0; }
.cmp-index li { margin: 0; padding: 0; }
.cmp-index a { display: flex; min-height: 46px; gap: .65rem; padding: .5rem .5rem .5rem .2rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); font-size: 1.08rem; line-height: 1.35; }
.cmp-letter { width: 1.25rem; flex: none; color: var(--olive); font-style: italic; font-size: 1.1rem; text-align: center; }
.cmp-index a[aria-current="page"] { background: var(--highlight); text-decoration-color: var(--olive); font-weight: 700; }
.cmp-index a:hover { background: var(--paper); }
.cmp-label { font-size: 1.1rem; font-style: italic; line-height: 1.5; color: var(--olive); margin: 0 0 1.2rem; }
.cmp-opener { max-width: 66ch; padding: 0 0 2rem; border-bottom: 2px solid var(--ink); }
.cmp-opener > p:last-child { margin-bottom: 0; font-size: 1.4rem; line-height: 1.5; }
.cmp-opener-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .44fr); gap: 2rem; max-width: none; padding-bottom: 2.5rem; }
.cmp-opener-home h1 { font-size: clamp(2.8rem, 4.25vw, 3.65rem); line-height: 1.04; }
.cmp-opener-copy > .cmp-label { width: fit-content; padding-bottom: .4rem; position: relative; }
.cmp-opener-copy > .cmp-label::after { content: ""; position: absolute; bottom: 0; left: 0; width: 94%; height: .35rem; border-bottom: 3px solid var(--olive); border-radius: 50%; transform: rotate(-1.5deg); }
.cmp-opener-copy > p:not(.cmp-label) { font-size: 1.3rem; line-height: 1.55; }
.cmp-opener-copy .cmp-chapter-part { padding-top: 1rem; }
.cmp-opener-copy h2 { display: inline; font-size: 1.85rem; line-height: 1.3; background: linear-gradient(177deg, transparent 62%, var(--highlight) 63%, var(--highlight) 90%, transparent 91%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cmp-opener-copy h2 + p { margin-top: .85rem; }
.cmp-opener-copy .cmp-route { width: 100%; }
.cmp-reading { max-width: 66ch; }
.cmp-chapter-part { padding: 2.5rem 0 0; }
.cmp-chapter-part + .cmp-chapter-part { margin-top: .5rem; }
.cmp-route { display: flex; justify-content: space-between; gap: 1rem; width: fit-content; min-height: 50px; padding: .65rem 1rem; margin: .75rem 0 1.1rem; border: 2px solid var(--olive); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 1.18rem; line-height: 1.4; text-decoration-color: var(--olive); }
.cmp-route span { color: var(--olive); flex: none; font-size: 1.4rem; }
.cmp-route:hover { background: var(--highlight); }
li .cmp-route { width: 100%; margin: 0; }
.cmp-atmosphere { max-width: 560px; background: transparent; }
.cmp-atmosphere img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 3.5rem; background: var(--paper); color: var(--ink); font-size: 1rem; }
.cmp-atmosphere-hero { margin: 3.2rem 0 0; align-self: start; }
.cmp-atmosphere-hero img { aspect-ratio: 1; object-position: 50% 42%; border-radius: 50%; }
.cmp-atmosphere-hero figcaption { text-align: center; }
.cmp-atmosphere-hero::after { content: ""; display: block; width: 60%; height: .65rem; margin: -.5rem auto 0; border-bottom: 3px solid var(--olive); border-radius: 50%; transform: rotate(-4deg); }
.cmp-recap { margin: 3rem 0; padding: 1.6rem 1.8rem 1.6rem 2rem; background: var(--paper); border-left: 5px solid var(--olive); position: relative; }
.cmp-recap::before { content: ""; position: absolute; top: -.3rem; right: 1.5rem; width: 3.5rem; height: .7rem; background: var(--highlight); transform: rotate(3deg); }
.cmp-recap h2 { font-size: 1.9rem; text-decoration: underline wavy var(--olive) 1.5px; text-underline-offset: .2em; }
.cmp-recap p { margin: 0; }
.cmp-endnotes { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.cmp-endnotes h2 { font-size: 1.9rem; }
.cmp-endnotes ul { list-style: none; padding: 0; margin-bottom: 1rem; }
.cmp-endnotes li { margin: 0; padding: 0; }
.cmp-endnotes a { display: flex; min-height: 48px; padding: .65rem 0; border-bottom: 1px solid var(--rule); font-size: 1.12rem; }
.cmp-turn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 2rem 0 3.5rem; }
.cmp-turn a { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem; min-height: 100px; padding: 1.1rem; border-top: 3px solid var(--olive); background: var(--paper); color: var(--ink); }
.cmp-turn .cmp-label { margin: 0; font-size: 1rem; }
.cmp-turn a:hover { background: var(--highlight); }
.cmp-footer { margin: 0 auto; max-width: 1344px; border-top: 4px double var(--ink); padding: 2rem 3rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.cmp-footer p { max-width: 54ch; margin: 0; color: var(--soft); font-size: 1.1rem; }
.cmp-comparison { border-top: 3px solid var(--olive); border-bottom: 3px solid var(--olive); padding: 1rem 0; }
.cmp-comparison dl { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); margin: 0 0 1rem; }
.cmp-comparison dt, .cmp-comparison dd { border-bottom: 1px solid var(--rule); padding: .85rem .75rem; margin: 0; font-size: 1.18rem; }
.cmp-comparison dt { font-weight: 700; background: var(--highlight); }
.cmp-comparison dd { background: var(--paper); }
.cmp-comparison > p { margin: .5rem .75rem; }
.cmp-notes { margin: 2rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cmp-note-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.cmp-note-status { grid-column: 1 / -1; margin: .3rem 0 0; color: var(--soft); }
.cmp-erase { background: var(--paper); color: var(--olive); }
.cmp-erase:hover { background: var(--highlight); color: var(--ink); }
.cmp-notes noscript { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .cmp-layout { column-gap: 2rem; grid-template-columns: 200px minmax(0, 1fr); padding: 0 2rem; }
  .cmp-masthead, .cmp-footer { padding-left: 2rem; padding-right: 2rem; }
  .cmp-opener-home { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .cmp-atmosphere-hero { width: 220px; max-width: 70%; margin: .5rem 0 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 19px; }
  .cmp-masthead { padding: 1rem 1.25rem; gap: .75rem; flex-wrap: wrap; }
  .cmp-masthead nav { gap: 1.2rem; }
  .cmp-layout { display: flex; flex-direction: column; padding: 0 1.25rem; }
  .cmp-layout > main { width: 100%; padding-top: 2rem; }
  h1, .cmp-opener-home h1 { font-size: clamp(2.55rem, 10.8vw, 3.6rem); line-height: 1.08; }
  h2 { font-size: 1.9rem; }
  .cmp-opener { padding-bottom: 1.8rem; }
  .cmp-opener > p:last-child, .cmp-opener-copy > p:not(.cmp-label) { font-size: 1.3rem; }
  .cmp-opener-home { gap: 1rem; padding-bottom: 2rem; }
  .cmp-atmosphere-hero { width: 190px; }
  .cmp-atmosphere img { border-radius: 2.5rem; }
  .cmp-atmosphere-hero img { border-radius: 50%; }
  .cmp-index { position: static; width: 100%; max-height: none; overflow: visible; border-top: 3px solid var(--olive); padding: 2rem 0; }
  .cmp-index a { min-height: 50px; padding: .7rem; gap: 1rem; }
  .cmp-index-label { margin-top: 1.8rem; }
  .cmp-reading { width: 100%; }
  .cmp-chapter-part { padding-top: 2rem; }
  .cmp-turn { gap: .75rem; padding-bottom: 2.5rem; }
  .cmp-turn a { padding: .85rem; }
  .cmp-footer { display: block; padding: 2rem 1.25rem; }
  .cmp-footer nav { margin-top: 1rem; gap: 1.3rem; }
  .cmp-notes { grid-template-columns: minmax(0, 1fr); }
  .cmp-recap { padding: 1.4rem; }
  .cmp-comparison dl { grid-template-columns: minmax(0, 1fr); }
  .cmp-comparison dt { border-bottom: none; padding-bottom: .35rem; }
  .cmp-comparison dd { padding-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
