@font-face {
    font-family: 'Source Serif Pro';
    font-weight: 400;
    src: local('Source Serif Pro'), local('SourceSerifPro-Regular'), url(fnt/sserifpro400.woff2) format('woff2');
}

@font-face {
    font-family: 'Source Serif Pro';
    font-weight: 600;
    src: local('Source Serif Pro Semibold'), local('SourceSerifPro-Semibold'), url(fnt/sserifpro600.woff2) format('woff2');
}

@font-face {
    font-family: 'Source Code Pro';
    src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url(scodepro400.woff2) format('woff2');
}

html{
    font-family: 'Source Serif Pro';
    font-size: 16px;
    line-height: 1.5rem;
    color: #222;
    background-color: #f2f2f2;
}

@media (max-width: 600px) {
    html{
       	font-size: 14px;
    }
}
@media (min-width: 2000px) {
    html{
       	font-size: 20px;
    }
}

body{
    margin: 0 auto;
    max-width: 90ch;
    
    padding: 1rem;
}

section{
    margin: 2rem 0;
}

a{
    text-decoration: none;
    color: #ff2a2a;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
}

a:hover{
    border-bottom: 3px solid #ff2a2a;
}

b{
	font-weight: 600;
}

.fleuron{
	font-size: 1.5rem;
	text-align: center;
	margin: 2rem;
}

p{
    text-align: justify;
    hyphens: auto;
}

code{
    font-family: 'Source Code Pro', monospace;
    background-color: #333;
    color: #fff;
    padding: 0.1rem 0.2rem;
}

center{
    font-style: italic;
}

h1{
    margin: 0;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 3rem;
    font-variant: small-caps;
    text-align: center;
	color: #c00;
}

h2{
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #333;
    font-variant: small-caps;
}

h3{
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem;
    padding-top: 1.5rem;
    padding-bottom: 0.0rem;
}

.chapter_heading{
    text-align: center;
    font-size: 1.4rem;
    line-height: 2rem;
    font-variant: small-caps;
    margin: 1.5rem 0 0.5rem 0;
}

figure{
    margin: 2rem auto;	
}

figure>img{
    display: block;
	max-width: 100%;
	margin: 0 auto;
}
figure>figcaption{
	margin: 0.8rem 0;
	color: #666;
	text-align: center;
}

section>pre{
    font-family: 'Source Code Pro', monospace;
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    font-size: 0.8rem;
    white-space: pre-wrap;
}

@media (prefers-color-scheme: dark) {
    html{
        background-color: #1c1c1c;
        color: #fff;
    }
    h2{
        border-bottom: 2px solid #999;
    }
}
