* {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

body {
    background: #292929;
    color: #f3f3f3bd;
    font-family: "EB Garamond", serif;
    font-size: 20px;
    height: 100vh;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.chapter-art {
    margin: 24px auto;
    max-width: 640px;
    width: min(66%, 640px);
    text-align: center;
}

.chapter-art img {
    display: block;
    width: 100%;
    height: auto;
    border: 3px solid #3a3a3a;
    background: #2a2a2a;
    image-rendering: pixelated;
    position: relative;
}

.scrollable-content {
    bottom: 60px;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 32px;
    position: fixed;
    right: 0;
    top: 60px;
}

.table-of-contents a:hover {
    font-weight: bold;
}

.toc-body .scrollable-content {
    top: 0;
}

.content-inner {
    margin: 0 auto;
    max-width: 960px;
}

.container {
    margin: 0 auto;
    max-width: 960px;
    min-width: 60px;
    padding: 0 32px;
}

header {
    margin: 0 auto;
    padding: 80px 0 40px 0;
}

.site-footer {
    background-color: #1F1F1F;
    bottom: 0;
    color: #f3f3f3ce;
    font-size: 20px;
    font-variant: small-caps;
    height: 60px;
    left: 0;
    line-height: 1.5;
    position: fixed;
    right: 0;
}

.footer-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 960px;
    padding: 20px 32px;
}

.site-navbar {
    background-color: #1F1F1F;
    color: #f3f3f3ce;
    font-size: 20px;
    font-variant: small-caps;
    height: 60px;
    line-height: 1.5;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 2;
}

.navbar-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 960px;
    padding: 20px 32px;
}

.site-navbar a {
    text-decoration: none;
}

a {
    color: #f3f3f3bd;
}

a:visited {
    color: #f3f3f3bd;
}

h1 {
    color: #e9f2f6dc;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 32px 0;
    text-align: center;
}

h1 br {
    line-height: 0.5;
}

h2 {
    color: #f6f2e9e0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.4;
}

p {
    line-height: 1.7;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: justify;
}

main {
    margin-bottom: 32px;
}

main::after {
    clear: both;
    content: "";
    display: table;
}

section {
    margin-bottom: 32px;
}

section::after {
    clear: both;
    content: "";
    display: table;
}

.royalties {
    line-height: 1.7;
    list-style-position: inside;
    list-style-type: circle;
    margin: 16px 0;
    padding-left: 24px;
}

.book-description {
    line-height: 1.7;
    list-style-position: inside;
    margin: 16px 0;
    padding-left: 24px;
}

.arrow-left,
.arrow-right {
    text-decoration: none;
}

.arrow-left:hover,
.arrow-right:hover,
.navbar-container a:hover {
    font-weight: bold;
}

.comparison-table {
    border-collapse: collapse;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.5;
    margin: 32px auto;
    width: 100%;
}

.company-names {
    background-color: grey;
    border: 1px solid #ddd;
    color: white;
    font-size: 20px;
    font-variant: small-caps;
    font-weight: 600;
    padding: 12px 16px;
    text-align: center;
}

th {
    background-color: grey;
    border: 1px solid #ddd;
    color: white;
    font-weight: 600;
    padding: 12px 16px;
    text-align: center;
}

td {
    border: 1px solid #ddd;
    line-height: 1.5;
    padding: 12px 16px;
    text-align: left;
}

caption {
    font-size: 22px;
    font-variant: small-caps;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.comparison-filters {
    background-color: grey;
    color: white;
    font-size: 20px;
    font-variant: small-caps;
    font-weight: 600;
    padding: 12px 16px;
    text-align: center;
}

.toc-body {
    background: #292929;
    color: #f3f3f3bd;
    margin: 0;
    min-height: 100vh;
    padding: 0 0 120px 0;
}

.toc-heading {
    align-content: center;
    background-color: #1F1F1F;
    color: #f3f3f3bd;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 auto;
    padding: 24px 0;
}

.table-of-contents {
    background-color: #1F1F1F;
    font-size: 20px;
    line-height: 1.6;
    list-style-type: none;
    margin: 0;
    padding: 20px 20px 32px 20px;
}

.table-of-contents ol {
    padding-left: 40px;
}

.table-of-contents li>a {
    align-items: end;
    display: grid;
    grid-template-columns: auto max-content;
    text-decoration: none;
}

.table-of-contents li>a>.page {
    font-variant-numeric: tabular-nums;
    min-width: 16px;
    text-align: right;
}

.table-of-contents li>a>.title {
    overflow: hidden;
    position: relative;
}

.table-of-contents li>a .leaders::after {
    content: " . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . ";
    padding-left: 0.25px;
    position: absolute;
    text-align: right;
}

.subsection {
    font-size: 18px;
    line-height: 1.6;
    list-style-type: lower-roman;
    margin-bottom: 8px;
}

.visually-hidden {
    clip-path: inset(0 100% 100% 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.page {
    margin-right: 10px;
}

sup {
    font-size: 14px;
    vertical-align: super;
}

.citation-entry {
    line-height: 32px;
    padding-left: 20px;
    text-indent: -20px;
}

.citation-entry cite {
    font-style: normal;
}

p+p {
    text-indent: 24px;
}

.footnotes-container::before {
    border-top: 1px solid #f3f3f3ce;
    content: '';
    display: inline-block;
    font-size: 16px;
    width: 20%;
}

.footnote {
    margin-bottom: 16px;
    text-indent: 20px;
}

.footnotes .footnote {
    font-size: 16px;
    margin-top: 16px;
}