/*==================================TYPOGRAPHY==========================*/

@font-face {
  font-family: 'Academica';
  src: url('../media/fonts/Academica.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Academica';
  src: url('../media/fonts/Academica-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Academica';
  src: url('../media/fonts/Academica-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Preissig Antikva';
  src: url('../media/fonts/PreissigAntikva.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
    font-family: "Academica", serif;
    font-size: 17px;
    line-height: 1.55;
    padding-bottom: 100px;
    padding-top: 40px;
}

@media (min-width: 500px) {
    body {
        font-size: 18px;
        line-height: 1.58;
    }
}

@media (min-width: 1000px) {
    body {
        font-size: 20px;
        line-height: 1.6;
    }
}

p {
    -webkit-hyphens: auto;
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-after: 3;
    -webkit-hyphenate-limit-chars: 6 3 3;
    -webkit-hyphenate-limit-lines: 2;
    -webkit-hyphenate-limit-last: always;   
    -webkit-hyphenate-limit-zone: 8%;
    -moz-hyphens: auto;
    -moz-hyphenate-limit-chars: 6 3 3;
    -moz-hyphenate-limit-lines: 2;  
    -moz-hyphenate-limit-last: always;
    -moz-hyphenate-limit-zone: 8%;
    -ms-hyphens: auto;
    -ms-hyphenate-limit-chars: 6 3 3;
    -ms-hyphenate-limit-lines: 2;
    -ms-hyphenate-limit-last: always;   
    -ms-hyphenate-limit-zone: 8%;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    hyphenate-limit-lines: 2;
    hyphenate-limit-last: always;   
    hyphenate-limit-zone: 8%;
    font-variant-numeric: oldstyle-nums;
}

.numbers {
    letter-spacing: 1px;
}

nav {
  padding: 30px 40px;
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 25px;
  color: #000;
}

nav a {
  text-decoration: none;
  color: #000;
}


a, a:link {
  text-decoration: none;
  color: #000;
}


nav a:visited {
  color: #000;
}

nav a:hover {
  color: blue;
  text-decoration: underline;
}

/*==================================DROPCAPS==========================*/


.dropcaps:first-child:first-letter {
  float: left;
  font-family: "Preissig Antikva", serif;
  font-size: 100px;
  line-height: 60px;
  padding-top: 4px;
  padding-right: 8px;
  padding-left: 3px;
}

.smallcaps {
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: 1px;
}

/*=============================IMAGES===============================*/


img {
    margin: 0 auto;
    display: block;
    max-width: 600px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none;
}

/*==================================COLOPHON==========================*/

summary {
  font-weight: bold;
  max-width: 550px;
  margin: 60px auto 0 auto;
  text-align: left;
  user-select: none;
}

summary:focus {
  outline: none;
}

summary:hover {
  cursor: pointer;
}

#colophon {
    font-size: 18px;
    max-width: 600px;
    padding-left: 20px;
    padding-top: 20px;
    line-height: 1.7;
    margin: 0 auto;
}

table {
    font-size: 16px;
}

th {
    text-align: right;
    padding-right: 20px;
}

/*==================================WRAPPER/SECTION SPACING==========================*/

.wrapper {
    margin: 0 auto;
    padding: 100px 0 100px 0;
}

section {
    padding: 100px 20px;
}

.wrapper p {
    max-width: 550px;
    padding-left: 30px;
    margin: 0 auto;
}


/*==================================SECTION RULES==========================*/

#cover p {
    text-align: center;
    margin-top: -1em;
}

#s1 {
    background-color: #c9ced9;
}

#s1a {
    padding-left: 0; /*cancel out the padding on first paragraph. It looks weird for some reason*/
}

#s2 {
    background-color: #c5c9d2;
}

#s3 {
    background-color: #bfc3c9;
}

#s4 {
    background-color: #bbbcc1;
}

#s5 {
    background-color: #b7b7bb;
}

#s6 {
    background-color: #b0b1b3;
}

#s6 p {
    max-width: 525px;
}

#s7 {
    background-color: #aaaaab;
}

#s7 p {
    max-width: 500px;
}

#s8 {
    background-color: #a4a3a3;
    padding-bottom: 0;
}

#s8 .wrapper {
    padding-bottom: 0;
}

#s8 p {
    max-width: 475px;
}

#s9 {
    background-image: linear-gradient(-180deg, #A4A3A3 0%, #FFFFFF 86%);
    padding-top: 0;
    padding-bottom: 500px;
}

#s9 .wrapper {
    padding-top: 0;
}

#s9 p {
    max-width: 475px;
}

#s10a {
    margin-bottom: 50px
}

/*==================================PADDING==========================*/

.padding100 {
    padding: 100px 0 100px 0;
}

.padding200 {
    padding: 200px 0 200px 0;
}

/*==================================WIDTH==========================*/

.width600 {
    max-width: 300px;
}

.width600 {
    max-width: 600px;
}

.width800 {
    max-width: 800px;
}

.width1000 {
    max-width: 1000px;
}

@media screen and (max-width: 768px) {
  .wrapper p {
    padding-left: 10px;
    padding-right: 10px;
  }
}