html
{
-webkit-text-size-adjust: 100%;
}

body
{
margin: 0;
font: 17px/1.4 "Cormorant", "Times New Roman", serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

@font-face
{
font-family: 'Elephant Italic';
src: url('elephant-italic.TTF') format('truetype');
}

@font-face
{
font-family: 'Goudy Initialen';
src: url('goudy-initialen.ttf') format('truetype');
}

@font-face
{
font-family: 'Neoclassic Fleurons';
src: url('neoclassic-fleurons.otf') format('opentype');
}

a, b, strong
{
font-weight: bold;
color: #000;
font-family: "Playfair Display", "Cormorant", "Times New Roman", serif;
}

header
{
height: 84vh;
background: #000 none no-repeat fixed bottom center;
background-size: cover;
border: 8vh solid #fff;
}

#header-inner
{
text-align: center;
font: 115px/1 "Elephant Italic", cursive;
letter-spacing: -5px;
color: #fff;
width: 100%;
padding: 30vh 0 0 0;
margin: 0;
}

#subheader-1, #subheader-2, h1 span
{
text-align: center;
font-family: "Cormorant", "Times New Roman", serif;
text-transform: uppercase;
width: 42%;
margin: 0 auto;
}

#subheader-1
{
border-top: 1px solid;
font-size: 12px;
letter-spacing: 2px;
padding-top: 1em;
}

#subheader-2
{
margin-top: .4em;
font-size: 14px;
letter-spacing: 8px;
}

header .deco
{
font-size: 60px;
}

#main
{
padding: 5% 5% 0;
width: 40%;
margin: 0 auto;
}

#main > p:first-of-type:first-letter, p.dropcap:first-letter
{
font-family: "Goudy Initialen";
font-size: 7.5em;
float: left;
margin: .05em .05em .05em 0;
line-height: .8; /* matters to Chrome */
}

.deco
{
text-align: center;
font-family: "Neoclassic Fleurons";
font-size: 5em;
}

/**** HEADINGS *****/

h1, h2, h3
{
text-align: center;
font-family: "Elephant Italic", cursive;
line-height: 1;
font-weight: normal;
}

h1
{
letter-spacing: -5px;
font-size: 5em;
width: 75vw;
margin: 0 0 0 -18vw;
}


h1 span
{
display: block;
font-size: 14px;
letter-spacing: 1px;
margin-top: 1em;
width: 50%;
}

h2
{
font-size: 4em;
letter-spacing: -3px;
margin-top: 1.75em;
}

#main > h3
{
font-size: 2em;
margin-top: 2em;
}

/**** SHARED THINGS WITH INVERTED COLORS AND BORDERS ****/

figure, blockquote, #levelups li
{
color: #fff;
background-color: #000;
}

figure.comparison-box, blockquote, .large-figure, figure.right, figure.left, #levelups li
{
border: 5px solid black;
outline: 5px solid black;
outline-offset: 5px;
}

/***** FIGURES ******/

figure
{
display: inline-block;
}

figure.comparison-box
{
margin: 0 -1em 1em -1em;
padding: 1em;
}

.large-figure
{
margin: 0 -1.5em 1.5em -1.5em;
padding: 1.5em;
}

.large-figure + .large-figure
{
margin-top: 1em;
}

.right
{
float: right;
}

.left
{
float: left;
}

.right, .left
{
width: 30%;
}

p + .comparison-box
{
margin-top: 1em;
}

p + .comparison-box.heading-like
{
margin-top: 4em;
}

p + .large-figure
{
margin-top: 1.5em;
}

figure figure
{
float: left;
max-width: 45%;
padding: 3% 2.5% 0;
margin: 0;
text-align: center;
}

.comparison-box figure:only-of-type
{
max-width: 100%;
}

figure img
{
width: 100%;
}

figcaption, blockquote dt
{
text-transform: uppercase;
font-size: .725em;
}

blockquote dt
{
margin-top: .35em;
}

figcaption
{
text-align: center;
}

figcaption a
{
color: #fff;
font-weight: bold;
font-style: italic;
font-family: "Cormorant", "Times New Roman", serif;
}

figure h3
{
font-family: "Cormorant", "Times New Roman", serif;
text-transform: uppercase;
letter-spacing: 5px;
margin: 0 0 .5em;
}

figure h3:before, figure h3:after
{
font-family: "Neoclassic Fleurons";
font-size: 1.5em;
padding: .25em;
}

figure h3:before
{
content: "4";
}

figure h3:after
{
content: "3";
}

/*** BLOCKQUOTES ****/

blockquote
{
margin: 3em 0;
padding: 1em 2em;
font-style: italic;
}

blockquote:first-child
{
margin-top: 0;
margin-bottom: 4em;
}

blockquote figcaption:before
{
content: " ― ";
}

blockquote figcaption
{
text-align: right;
margin-top: 1em;
}

/* REFERENCES LIST */

.references-list
{
column-count: 2;
margin: 1.5em 0;
}

.references-list.one-col
{
column-count: 1;
}

.references-list:last-of-type, .index-last {
    padding-bottom: 3em;
}
/***** LEVEL-UP QUOTES ******/

#levelups
{
padding: 0;
list-style-type: none;
counter-reset: li +1;
font-size: .9em;
text-align: center;
margin-top: 3em;
margin-left: -20vw;
width: 80vw;
}

#levelups li
{
display: inline-flex;
flex-direction: column;
width: 10vw;
margin: 1vw;
padding: 1.1vw;
min-height: 13em;
}

#levelups li:before
{
content: 'Level ' counter(li);
counter-increment: li;
font-family: "Cormorant", "Times New Roman", serif;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: bold;
font-size: 1.1em;
padding-bottom: 1em;
}

/**** COLLAPSIBLE TABLE OF CONTENTS ******/

#section-toc
{
position: sticky;
bottom: 1em;
left: 0;
font-size: .6em;
margin-left: -73%;
width: 12vw;
}

#slickbox
{
display: none;
}

#section-toc h2
{
font-size: 1.5em;
letter-spacing: 0px;
}

#section-toc h2, #section-toc h3
{
text-align: left;
}

#section-toc ul, #section-toc ol
{
padding-left: 1.25em;
}

#section-toc > h2 a:after
{
content: '\25B2';
padding-left: .5em;
text-decoration: none;
display: inline-block;
}

#section-toc > h2 a.active::after
{
content: '\25BC';
}


/***** TABLE OF CONTENTS ON THE FRONT PAGE *****/

#toc-heading
{
margin-top: 1.25em;
}

#toc
{
list-style-type: none;
padding-left: 0;
font-size: .85em;
margin: -2em 0 2em;
}

#toc li
{
margin: 0;
}

#toc b
{
font-family: "Playfair Display", "Cormorant", "Times New Roman", serif;
font-size: 1.75em;
color: #fff;
}

#toc a
{
-webkit-transition: all 0.15s ease-out; 
-moz-transition: all 0.15s ease-out; 
-o-transition: all 0.15s ease-out; 
transition: all 0.15s ease-out;
}

#toc a
{
display: block;
background-color: #000;
padding: 1em 2em;
color: #eee;
background-color: #000;
text-decoration: none;
font-family: "Cormorant", "Times New Roman", serif;
font-weight: normal;
}

#toc li:before
{
-webkit-transition: all 0.3s ease-out; 
-moz-transition: all 0.3s ease-out; 
-o-transition: all 0.3s ease-out; 
transition: all 0.3s ease-out;
font-family: "Neoclassic Fleurons";
content: '6';
display: block;
font-size: 5em;
line-height: 0;
position: absolute;
margin-left: -.5em;
opacity: 0;
}

#toc li:hover:before
{
opacity: 1;
margin-top: .5em;
}

#toc li:hover a, #toc li:hover b
{
color: #000;
}

#toc li:hover a
{
background-color: #fff;
}

#toc li.inactive, #toc li.inactive a, #toc li.inactive a b
{
color: #555;
}

#toc li.inactive:hover a, #toc li.inactive:hover b
{
color: #aaa;
}

#toc li.inactive:hover:before
{
opacity: 0;
}

#toc li.inactive a:hover:after
{
content: "Coming soon";
text-transform: uppercase;
font-style: italic;
display: block;
float: right;
margin-top: -1.25em;
position: relative;
text-align: right;
width: 100%;
color: #000;
}

/***** FOOTER ******/

footer
{
background-color: #000;
color: #fff;
padding: 1em;
font-size: .8em;
}

footer div
{
width: 25vw;
margin: 0 3vw;
display: inline-flex;
flex-direction: column;
}

footer b, footer a
{
color: #fff;
}

footer h2
{
font-size: 1.75em;
letter-spacing: 0px;
font-family: "Playfair Display", "Cormorant", "Times New Roman", serif;
text-align: left;
}

#bottom-toc
{
padding-left: 0;
list-style-type: none;
margin-top: 3em;
}

#bottom-toc a
{
display: inline-block;
color: #fff;
font-weight: normal;
font-family: "Cormorant", "Times New Roman", serif;
text-decoration: none;
margin-bottom: 1em;
}

#bottom-toc b
{
color: #fff;
text-transform: uppercase;
}


#bottom-toc #current a
{
border-left: 20px solid;
padding-left: 1em;
cursor: default;
}

#bottom-toc #current a:hover
{
margin-left: 0;
}

#bottom-toc a:hover
{
margin-left: 20px;
-webkit-transition: all 0.3s ease-out; 
-moz-transition: all 0.3s ease-out; 
-o-transition: all 0.3s ease-out; 
transition: all 0.3s ease-out;
}

#bottom-toc li.inactive
{
opacity: .3;
}

#bottom-toc li.inactive a:hover
{
margin-left: 0;
}

footer img
{
max-width: 100%;
opacity: .5;
-webkit-transition: all 0.3s ease-out; 
-moz-transition: all 0.3s ease-out; 
-o-transition: all 0.3s ease-out; 
transition: all 0.3s ease-out;
}

footer img:hover
{
opacity: 1;
}

/*** ADAPTATIONS ***/

@media screen and (max-width: 1000px) {
#main
{
width: 60%;
}

h1
{
margin: 0 0 0 -7vw;
}

#levelups
{
margin-left: -5vw;
}
}

@media screen and (max-width: 1000px) {
#main
{
width: 75%;
}

h1
{
margin: 0 auto;
}

#section-toc
{
display: none;
}

header
{
border: 4vh solid #fff;
margin-bottom: 5vh;
height: 84vh;
}


#subheader-1, #subheader-2, h1 span
{
width: 70vw;
}

#subheader-2
{
    letter-spacing: 1vw;
}


#toc li::before
{
margin-left: -9vw;
}

footer div
{
    display: block;
width: 80%;
margin: 0 auto;
}

footer h2 {
    margin-bottom: 7vw;
}

#bottom-toc {
    margin-top: 0;
}





.large-figure {
    width: auto;
    margin: 0 auto 1.5em;
}

#levelups li {
    width: 100%;
    min-height: 0;
    margin-bottom: 2em;
    padding-bottom: 2vh;
}

figure.comparison-box {
    margin: 0 -1em 1em -1em;
    padding: 1em;
}

figure h3::after, figure h3::before {
    content: none;
}

ol {
    padding-left: 0;
}

}

@media screen and (max-device-width: 1000px) and (orientation:portrait)
{

body
{
font-size: 3.5vw;
}

#header-inner
{
font-size: 16vw;
letter-spacing: -1vw;
}

h1 {
    font-size: 16vw;
    margin: 0;
    letter-spacing: -.8vw;
}

h1 span, #subheader-1, #subheader-2 {
font-size: 3vw;
}


h2 {
    font-size: 12vw;
    letter-spacing: -.5vw;
    margin-bottom: 13vw;
}


#header-inner
{
padding-top: 35vh;
}

}
