
* {
  box-sizing: border-box;
    word-wrap: break-word;
  overflow-wrap: break-word;

-webkit-hyphens: auto;
   -moz-hyphens: auto;
        hyphens: auto;
}

@charset "UTF-8";

@font-face {
  font-family: serif-font;
  src: url(fonts/vermiglione.ttf);
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: serif-font;
  src: url(fonts/EBGaramond-Bold.ttf);
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: serif-font;
  src: url(fonts/EBGaramond-Italic.ttf);
  font-style: italic;
  font-weight: normal;
}

@font-face {
  font-family: nav_font;
  src: url(fonts/Raleway-Regular.ttf);
}

@font-face {
    font-family: heading-font;
    src: url(fonts/EBGaramond-Regular.ttf);
}


:root {
    --bg-body:#fff;
    --bg-body-link-hover:#003060;
    --bg-nav:#003060;
    --bg-nav-hover:#68BBE3;
    --bg-wrapper:#eee;
    --bg-content:#fff;

    --color-body:white;
    --color-body-link:#055C9D;
    --color-body-link-hover:#68BBE3;
    --color-nav:;
    --color-nav-link:#ddd;
    --color-nav-link-hover:#68BBE3;
    --color-content:#222;
    --color-heading:#055C9D;
    --color-post-date:#055C9D;

    --border-nav:#003060;

}


html {
    width: 100vw;
    height: 100vh;

}

body {
    font-size: 20px;
    width: 100vw;
    height: 100vh;
    margin:0;
    font-family: serif-font;
    background-color: #fffff8;
    color: #111;
    counter-reset: sidenote-counter;
}

h1, h2, h3 {
    width: 500px;
    max-width: 100%;
    font-family: heading-font;
}

h1 {
    xfont-weight: normal;
    xmargin-top: 4rem;
    xmargin-bottom: 1.5rem;
    xfont-size: 3.2rem;
    xline-height: 1;
}

h2 {
    xfont-style: italic;
   x font-weight: 400;
    margin-top: 2.1rem;
    margin-bottom: 1.4rem;
   x font-size: 2.2rem;
    line-height: 1;
}

h3 {
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 1.4rem;
    line-height: 1;
}

hr {
    display: block;
    height: 1px;
    width: 55%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

p.subtitle {
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    xfont-size: 1.8rem;
    display: block;
    line-height: 1;
}

.numeral {
    font-family: et-book-roman-old-style;
}

.danger {
    color: red;
}

article {
    padding: 5rem 0rem;
}

section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

p, li, .list_item_wrap {
/*    width: 60ch;
    max-width: 60%;*/
    margin-left:1.4rem;
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    padding-right: 40%;
    vertical-align: baseline;
}

nav p, nav ul, nav li {
    width: initial;
    max-width: initial;
    padding: initial;
    margin: 0;

}


figure {
    padding: 0;
    border: 0;
    /*font-size: 100%;*/
    font: inherit;
    vertical-align: baseline;
    max-width: 55%;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 0 3em 0;
}

figure img {
    width: 50%;
}

figcaption {
    display: inline-block;
    /*float: right;
    clear: right;*/
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 10px;
    /*font-size: 1.1rem;*/
    /*line-height: 1.6;*/
    vertical-align: baseline;
    position: relative;
    max-width: 40%;
    font-style: oblique;
    font-size: 90%;
}


a:link,
a:visited {
    color: inherit;
    text-underline-offset: 0.1em;
    text-decoration-thickness: 0.05em;
}

/* Sidenotes, margin notes, figures, captions */
img {
    max-width: 100%;
}

.sidenote,
.marginnote, blockquote .sidenote {
    float: right;
    clear: right;
    margin-right: -55%;
    width: 50%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    font-size: .9rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
    border-left: 1px black dotted;
    padding: 5px;
    padding-top: 10px;

}

.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    xfont-size: 1rem;
    top: -0.5rem;
    left: 0.1rem;
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    xfont-size: 1rem;
    top: -0.5rem;
}

/*blockquote .sidenote,
blockquote .marginnote {
    margin-right: -82%;
    min-width: 59%;
    text-align: left;
}*/


input.margin-toggle {
    display: none;
}

label {
    font-size: initial;
}


label.sidenote-number {
    display: inline-block;
    max-height: 2rem; /* should be less than or equal to paragraph line-height */
}

label.margin-toggle:not(.sidenote-number) {
    display: none;
}


/* CUSTOM SHIT */

.page { 

    margin-left:250px;

}

.post, .home {
        padding: 5vw;
        padding-top: initial;

}



.post li {
   xwidth: 60ch;
   xmax-width: 85%;
}

.post li p {
    max-width: 95%;
}

.post a:link {
    background-color: lightblue;
    text-decoration: none;
}

.post a:hover {
    text-decoration: underline;
    xbackground-color: white;
}

blockquote p {
/*    width: 50ch;
    max-width: 50%;*/
    font-style: oblique;
            font-family: nav_font;
font-size: 90%;
}


nav {
    position: fixed;
    font-family: nav_font;
    top:0;
    left:0;
    height: 100vh;
    background-color: var(--bg-nav);
    width: 250px;
    text-transform: capitalize;
    text-align: left;
    font-size: .9em;
}

nav a:link, nav a:visited {
    color: white;
    text-decoration: none;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

nav ul, nav ol {
      list-style-type: none;
  margin: 0;
  padding: 2ch;
}

nav li {
    border-top: white 1px dotted;
    padding:2px 0;
}


footer {
    position: fixed;
    font-family: nav_font;
    left:0;
    bottom: 0px;
    color: #8098b0;
    padding: 5px;
    margin: 0;
    text-indent: ;
    background-color: var(--bg-nav);
    width: 250px;
    max-width: 100%;
    text-align: center;
    font-size: .5em;
    vertical-align: bottom;

}

footer p {
    margin: 0;
    padding: 10px;
    max-width: initial;
    font-size: .75rem;
    line-height: 1;
    vertical-align: bottom;
}

.copyright {
    width: 100%;
}

footer img {
    position: relative;
    display: inline;
    float:left;
}

.list_item_header h2 {
    margin: 0;
}

.post_date {
    font-size: .9em;
    font-style: oblique;
    margin-bottom: 10px;
}

.list_item_desc a {
    text-decoration: none;
}

.glossary_item_link a:link {
    background-color: white;
    border: 1px black solid;
    padding:2px;
    border-radius: 5px;
    text-decoration: none;
}
.glossary_item_link a:hover {
    background-color: lightblue;
}

.glossary_item_wrap {
        margin-bottom: 5px;
        margin-left:25px;

}

@media (max-width: 799px) {

    html, body {
        padding: 0;
        margin: 0;
        width: 100vw;
        height: 100vh;
    }

    .header_title {
        display: none;
    }

     .page {
        padding: 0%;
        margin: 0 auto;
     }

/*     .site_title, nav {
        margin-top: 1ch;
    }*/

    nav ul {
        margin: 0;
         padding: 0;
         padding-left: 2ch;
         width: 50%;
         list-style-type: none;
         vertical-align: middle;
        }

    nav li {

         margin: 0 5px ;
        padding: 0 5px;
         /*background-color: var(--green-dark);*/
         border-left: 10px solid var(--green-dark);
         text-decoration: none;
         color: white;
         border-radius:3px;
         text-align: left;
         width: 1ch;
         hyphens: none;
         padding-left: .5ch;
        }

    nav li a {
    text-decoration: none;
        }


    nav li a:hover {
    text-decoration: underline;
    text-decoration-color: var(--green-dark);
        }

     nav {

        position: relative;
         width:100%;
        display:block;
        text-align: right;
         }

    nav ul {
        width: 100%;
    }
         
    nav ul li {
            padding: 5px; text-align: right;
        }

     label.margin-toggle:not(.sidenote-number) {

      display: none;
        
     }

     .update_wrap {
        max-width: 100%;

     }

    input.margin-toggle {

     display: inline-block;
        
    }

    label.sidenote-number {

     display:inherit;
        
     max-height: 2rem;
        
    }

     .sidenote,

     .marginnote {

      display: none;
      border-left: 2px dotted var(--orange);
        
     }

     .margin-toggle:checked + .sidenote,
     .margin-toggle:checked + .marginnote {

      display: block;
      float: left;
      left: 1rem;
      clear: both;
      width: 95%;
      margin: 2ch 0;
      vertical-align: baseline;
      /*position: relative;*/
      padding-left: 1ch;
     }


     label {

      cursor: pointer;
        
     }

     div.table-wrapper,

     table {

      width: 85%;
        
     }

     img {

      width: 100%;
        
     }

     figure img {
        width: 100%;
     }

     h1, h2, h3 {
        text-align: center;
     }

     p {
        width: initial;
        max-width: initial;
        line-height: initial;
        padding:initial;
        margin: 5px;
        text-indent: 2ch;
     }

     .post li {
                width: initial;
        max-width: initial;
        line-height: initial;
        padding:initial;
     }

     .post ol, .post ul {
        list-style-position: outside;
        padding: 0;
     }

     figure {
        max-width: initial;
        margin: initial;
     }

     figcaption {
        font-size: 80%;
        width: initial;
        max-width: initial;
        float: initial;
     }

    footer {
        position: relative;
        width: 100%;
        height: 85px;
        display: block;
        margin-top: 100px;
    }

    footer img {
        width: 75px;
        display: block;
    }

    nav {
        text-align: center;
        height: initial;
        padding-bottom: 25px;
    }

    nav ul li {
        width: initial;
        padding: 0;
        text-align: center;
    }

    html body div.page main.post figure figcaption a:visited, figure a:link, figure a:visited {
        color: var(--green);
    }

     blockquote p {
        /*font-family: body_font;*/
        text-align: center;
        margin: 0;
        width: 100%;
        max-width: initial;
        font-style: initial;
        text-indent: 0;
     }

    html body div.page main.post blockquote p span.sidenote-wrapper span.sidenote {
        float: none;
    }

}
/*
@media (max-width: 760px) {
  
    body {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }

    hr,
    section > p,
    section > footer,
    section > table {
        width: 100%;
    }
    p {
        width: 100%;
    }

    pre > code {
        width: 97%;
    }

    section > dl,
    section > ol,
    section > ul {
        width: 90%;
    }

    figure {
        max-width: 90%;
    }

    figcaption,
    figure.fullwidth figcaption {
        margin-right: 0%;
        max-width: none;
    }

    blockquote {
        margin-left: 1.5em;
        margin-right: 0em;
    }

    blockquote p,
    blockquote footer {
        width: 100%;
    }

    label.margin-toggle:not(.sidenote-number) {
        display: inline;
    }

    .sidenote,
    .marginnote {
        display: none;
    }

    .margin-toggle:checked + .sidenote,
    .margin-toggle:checked + .marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
    }

    label {
        cursor: pointer;
    }

    div.table-wrapper,
    table {
        width: 85%;
    }

    img {
        width: 100%;
    }
}
*/