/* Reset */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 16px;
}

/* Variables */
:root {
    --link-color: limegreen;
    --text-color: silver;
    --terminal-background-color: black;
    --terminal-border-color: limegreen;
    --code-color: lime;
    --title-color: white;
    --gap: 0.5rem;
}

/* Layout */
body {
    margin: 0;
    padding: 0.5rem;
    line-height: 1.4rem;
    background-color: black;
    color: silver;
    font-family: Georgia 'Book Antiqua' serif;
    font-size: 1rem;
    hyphens: auto;
    border: none;
}

.book-page,
.site-page {
    margin: 0.5rem;
}

.header {
    padding: 0.5rem;
    background-color: black;
    max-width: 780px;
    margin: 0 auto;
}

.header .book-title {
    float: right;
    font-size: 1.1rem;
    line-height: 1.5rem;
    margin: 0.2rem 2.8px auto;
}

.site .header {
    font-family: monospace;
}
        
.site .header .book-subtitle {
    font-size: 0.9rem;
}

.main-links {
    font-family: monospace;
    margin: auto;
    text-align: center;
}

.footer {
    font-family: monospace;
    margin: auto;
    text-align: center;
    font-size: 0.9rem;
}

.main {
    padding: 0.5rem;
    margin: 0 auto;
    max-width: 780px;
    width: 100%;
    clear: both;
}

.pagination,
.site-links {
    display: block;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.site-links {
    text-align: center;
    margin: 0 auto;
    font-style: normal;
    padding: 0.5rem;
    max-width: 780px;
}

.site-links p {
    margin: 0.5rem 0; 
    line-height: 1.2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    color: white;
    font-weight: 400;
}

/* Headings */
h1 {
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: lime;
}

h2 {
    margin: 1rem 0 0;
    font-size: 1.3rem;
    line-height: 1.4rem;
}

h3 {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    line-height: 1.4rem;
}

h4,
h5 {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.4rem;
}

.header h1 {
    display: inline;
    text-decoration: none;
    margin: 0;
}

.header h1 a {
    text-decoration: none;
}

/* Inline elements */
a {
    color: limegreen;
    text-decoration: none;
}

strong {
    font-weight: bold;
    color: silver;
}

em {
    font-style: italic;
    color: silver;
}

/* Lists */
ul {
    padding-inline-start: 1rem;
}

li {
    list-style-type: '– ';
    margin: 0.5rem 0;
    line-height: 1.8rem;
}

hr {
    border: none;
    border-top: 1px solid limegreen;
    margin: 0.5rem 0;
}

/* Code */
pre {
    margin: 0.5rem;
    white-space: pre-wrap;
    font-family: monospace;
}

code {
    color: lime;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.2rem;
}

p {
    line-height: 1.8rem;
}

blockquote {
    margin: 0.5rem;
    padding: 0 0.5rem;
    line-height: 1.8rem;
    font-style: italic;
}

/* Navigation */
.pagination table {
    width: 100%;
    border-collapse: collapse;
}

.pagination td {
    width: 33%;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-toc {
    text-align: center;
}

.center-text {
    margin: auto;
    text-align: center;
}

/* Book components */
.book-title {
    text-align: right;
    display: block;
}

.book-subtitle {
    font-size: 1.1rem;
    line-height: 1.5rem;
    font-style: italic;
    margin: 0.2rem auto;
}

.title {
    font-size: 1.2rem;
    line-height: 1.4rem;
    margin: 0.2rem auto;
    font-weight: bold;
}

.subtitle {
    font-size: 1rem;
    font-style: italic;
}

.author {
    font-size: 0.9rem;
}

.scene {
    color: lime;
    font-size: 1rem;
    line-height: 1.2rem;
}

.code-hero {
    color: lime;
    font-size: 3rem;
    line-height: 3rem;
    margin: 16px;
}

.poster {
    max-width: 320px;
    margin: auto;
    text-align: center;
    border: 1px solid limegreen;
}
