@charset "utf-8"; 

/* ***************************************
Load the fonts 
*/

@font-face {
    font-family: "abordage";
    src: url( https://chatty-pub-files.hackersanddesigners.nl/files/2/99/nMPuQi6bsXWzzHQcKzByuHnk/abordage-regular.woff );
}

@font-face { 
  font-family: "EBGaramond08-Regular"; 
  src: url( "https://chatty-pub-files.hackersanddesigners.nl/files//2/fb/xTyeQzGWAfUTDQ6v3H6aS6Ve/EBGaramond08-Regular.otf" ); 
}

@font-face { 
  font-family: "WorkSans"; 
  src: url( "https://chatty-pub-files.hackersanddesigners.nl/files//2/e0/txPeHFxmUhxrYcnBlpFfkImX/WorkSans-Bold.otf"
);
}

/* ***************************************
Setup variables for the fonts used 
*/

:root {
     --headline-font: "WorkSans";
     --body-font: "EBGaramond08-Regular";
     --accent-font: "abordage";
     --text-color: #000;
     --accent-color: #000;
	--paged-note-style: "footnotes"; /* This is a custom property, could also be "endnotes" */
}

/* ***************************************
Pagedjs specific styles
*/

@page {
    size: A5;
    margin: 10mm 15mm 20mm 15mm;

    @bottom-center{
        content: counter(page);
        font-family: var(--accent-font);
        font-size: 150%;
    }
}

@page:first {    
    color: white;
    background-size: cover;   
    background-repeat: no-repeat; 
}

/* 
Remove page number from first page
*/
@page :first {
  @bottom-center {
    content: none;
  }
}

/*
Remove page number from last page
*/
.pagedjs_page.pagedjs_last_page .pagedjs_margin-bottom-center > .pagedjs_margin-content::after {
    content: none;
}



/* ***************************************
General styling
*/

body{
    font-family: var(--body-font);
    font-size: 13px;
    line-height: 1.5;
}

h1 {
    font-family:  var(--headline-font);;
    font-size: 500%;
    line-height: 1.2em;
}

blockquote{
   margin-right: 0; 
   font-family: abordage;
   font-size: 140%;
   line-height: 1.2em;
   font-style: italic;
   text-align: right;
}

/*
*** alone on a line in markdown will be turned into a <hr>
we use this a way to force a page break, and hide the hr itself.
*/

hr {
    break-after: page;
    border: none;
    margin: 0;
    height: 0;
}

.footnotes hr {
    break-after: unset;
    border: revert;
}

.divider {
    background-color: white;
    height: .5em;
    display: block;
}




/* ***************************************
Cover page specific styles
*/

.cover{
    break-after: always;
    font-family: var(--headline-font);
    margin-top: 50px; 
    padding: 15px;
    background-color:  var(--accent-color);
    background-clip: border-box;  
    
}

.cover h1 {
    font-family:  var(--headline-font);;
    font-size: 500%;
    line-height: 1.2em;
    margin: 2rem 0 1rem;
}

.cover h2 {
    font-family:  var(--headline-font);;
    font-size: 200%;
}

/* ****************************************************
Main section specific styles
*/

.main pre{
    color: black;
}

.main h2 {
    /*font-family: abordage;*/
    font-size: 180%;
    line-height: 1.2em;
}

/* 
Images are always grayscale in the main content and 
are alone on a page
*/
.main img {
    display: block;
    filter: grayscale(100%);
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 90%;
    page-break-after: always;
    page-break-before: always;
}

/* ***************************************
Custom sections. 
You can define your own sections by creating Markdown blocks:
    
::: block-name

your content

:::

which will get converted to <section class="block-name"></section>
and you can target by using .block-name
*/

@page { 
    @footnote { float: bottom; }
}

.pagedjs-end-to-footnote {
  float: footnote;
}

.pagedjs-end-to-footnote > p {
    display: inline;
}

#footnotes {
    display: none;
}

.pagedjs_pagebox > .pagedjs_area {
    overflow: hidden;
}

