@charset "utf-8"; 

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

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

@page :first {
  @bottom-center {
    content: none;
  }
}

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

@font-face {
    font-family: Director-Regular;
    src: url(https://chatty-pub-files.hackersanddesigners.nl/files/2/d2/T7cPNlPHYfJD7uGerSbUl2zH/Director-Regular.otf);
}


@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"
);
}

@font-face {
    font-family: Latitude;
    src: url(https://chatty-pub-files.hackersanddesigners.nl/files/2/f8/52Q5ce2-rtPtoRRQpZrwp0X_/Latitude-Regular.otf);
}

body{
    font-family: EBGaramond08-Regular;
    font-size: 13px;
    line-height: 1.5;
    color: #822b01;
    --paged-layout: booklet 5 13; 
}

/* 
TODO: move this to octomode stylesheet 
*/
.pagedjs_pagebox > .pagedjs_area {
    overflow: hidden;
}

/* ------------------------------------ cover */

@page:first {    
    color: white;
    background-size: cover;   
    background-repeat: no-repeat; 
    filter: hue-rotate(17deg);
}
    
.cover{
    break-after: always;
    font-family: WorkSans;
    margin-top: 50px; 
    padding: 15px;
    background:  #822b01;
    background-clip: border-box;  
    
}

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

.cover h2 {
    font-family: WorkSans;
    font-size: 200%;
}

/* ------------------------------------ main */


h1 {
    font-family: WorkSans;
    font-size: 500%;
    line-height: 1.2em;
}

section#main pre{
    color: black;
}

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

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

/* 
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: 100%;
    page-break-after: always;
    page-break-before: always;
}

/*
*** 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;
}

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

