/*------------------Fonts---------------*/

@font-face {
  font-family: 'Bona Nova';
  src: url('../media/fonts/BonaNova-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

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

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

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

/*------------------basic---------------*/

html {
    background-color: #FFFCF5;
    font-family: "Bona Nova", serif;
    font-size: 17px;
    line-height: 1.5;
    color: #222;
}

@media (min-width: 700px) {
    html {
        font-size: 18px;
        line-height: 1.55;
    }
}

@media (min-width: 1000px) {
    html {
        font-size: 20px;
    }
}

p {
    max-width: 60ch;
    margin: 0 auto;
    padding: 10px;
    -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;
}

.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.container p {
  max-width: 450px;
}

.quote {
    font-family: "Compagnon";
    text-align: center;
    line-height: 1.6;
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
}

/*------------------flex grid---------------*/

.row {
    display: flex;
    align-content: space-between;
}

.column {
    flex-direction: column;
}

.item {
    align-items: center;
    flex-grow: 1;
    padding: 40px 0;
}

img {
    display: block;
    margin: 60px auto;
    pointer-events: none;
    max-width: 650px;
    width: 100%;
}

/*------------------nav---------------*/

nav {
  top: 10px;
}

nav, footer {
    font-family: "Compagnon";
    padding: 10px 40px;
}

footer {
    display: flex;
    justify-content: center;
    margin-top: 200px;
}

nav a, footer a {
    font-size: 26px;
    text-decoration: none;
    text-align: right;
    padding: 0 40px;
}

nav a:hover, footer a:hover {
    text-decoration: underline;
}

footer p{
    font-size: 16px;
    max-width: 600px;
}

@media screen and (max-width: 1000px) {

  p {
    max-width: 500px;
  }

  .quote {
    max-width: 500px;
  }

  .container {
    margin: 80px auto;
  }

  .container p {
    max-width: 500px;
  }
}