* { margin: 0; padding: 0; box-sizing: border-box; }

.name, .features h2, .fancy {
  font-family: 'Rochester', cursive;
  font-weight: 400;
  color: darkslategray;
}

p, li, h1, h2, h3, h4, header a, a:hover, a:visited, button {
  color: black;
  text-decoration: none;
  font-family: 'Montserrat', sans-sans-serif;
}

a:hover {
  background-color: #fff67c;
  border-bottom: 2px solid #ccc;
}

header {
  padding: 1% 2%;
}

section {
  padding: 2%;
  clear: both;
}

#intro img {
  max-height: 400px;
  border: 25px solid white;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.4);
  transform: rotate(3deg);
}

.lemons, .flowers {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('img/lemons.jpg');
  background-repeat: repeat;
  opacity: 0.2;
  z-index: -1000;
}

.flowers {
  background-image: url('img/flowers.jpg');
}

.gray-bottom-border, header, #intro, .features {
  border-bottom: 2px solid #ccc;
}

.publication-title {
  font-style: italic;
}

.article-list {
  margin-bottom: 2em;
}

.article-list li {
  line-height: 2em;
  font-size: 1.2em;
}

.read-more a {
  text-decoration: none;
  background-color: #ffdab9;
  border-radius: 20px;
  padding: 0.5em;
}

.publication-date {
  display: none;
  font-size: 0.8em;
  color: #666;
  margin-bottom: 1%;
}

#featured-on {
  background-color: #d0e2d1;
}

#contact {
  background-color: #eafffc;
  background-color: #b5daf5;
  background-color: #d5efd5;
  background-color: #ffe6e4;
}

#letter {
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 20px;
  padding: 2em;
  margin: 0 auto;
}

#letter p {
  line-height: 1.4em;
  margin-bottom: 1.5em;
}

footer {
  background-color: darkslategray;
  text-align: center;
  padding: 2%;
}

footer p, footer a, footer a:visited {
  text-decoration: none;
  color: white;
}

footer #social img {
  margin: 0 2%;
}

footer a:hover {
  background-color: darkslategray;
  border-bottom: 2px solid #ccc;
}

footer p {
  margin: 2%;
}

#credits a, #credits a:visited {
  color: #133;
}

/*

  LARGER LAYOUTS

*/

@media (min-width: 650px) {
  header {
    display: grid;
    grid-template-columns: 49.5% 49.5%;
    grid-column-gap: 1%;
  }

  #intro {
    display: grid;
    grid-template-columns: 50% 45%;
    grid-column-gap: 5%;
  }

  .feature {
    display: grid;
    grid-template-columns: 30% 65%;
    grid-column-gap: 5%;
  }

  header .name {
    grid-column: 1 / 1;
    align-self: center;
    justify-self: start;
  }

  header nav {
    grid-column: 2 / 2;
    align-self: center;
    justify-self: end;
  }

  header nav ul {
    list-style-type: none;
  }

  header nav li {
    display: inline;
    padding-right: 0.75em;
    padding-left: 0.75em;
  }

  header nav li:last-child {
    padding: 0;
    margin: 0;
    border-right: 0;
  }

  header nav a:hover {
    border-bottom: 2px solid #aaa;
  }

  #intro {
    position: relative;
  }

  #intro img {
    grid-column: 2 / 2;
    grid-row: 1 / 1;
    align-self: center;
    justify-self: start;
  }

  #intro .content {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    align-self: center;
    justify-self: end;
    text-align: right;
  }

  .lemons, .flowers {
    background-size: 60%;
    background-position-y: center;
  }

  .features h2 {
    text-align: center;
  }

  .feature {
    clear: both;
    margin-bottom: 3%;
    padding-top: 3%;
    border-top: 1px dotted #ccc;
  }

  .feature:first-of-type {
    border-top: none;
  }

  .publication-logo {
    grid-column: 1 / 1;
    max-width: 100%;
    max-height: 100px;
  }

  .feature .content {
    grid-column: 2 / 2;
  }

  .feature .thumbnail {
    float: left;
    max-width: 30%;
    margin-right: 2%;
    margin-bottom: 2%;
  }

  .feature .thumbnail img {
    max-width: 100%;
  }
  
  #letter {
    max-width: 1000px;
  }
  
  #letter .fancy {
    font-size: 2.5em;
    margin-bottom: 0;
  }

  footer #social img {
    max-width: 30px;
    margin: 1%;
  }

}

@media (min-width: 1000px) {
  header .name {
    font-size: 2em;
  }

  #intro {
    grid-template-columns: 55% 40%;
    max-height: 500px;
  }

  #intro .name {
    font-size: 6em;
  }

  #intro p {
    font-size: 2.5em;
  }

  .features {
    padding-left: 10%;
    padding-right: 10%;
  }

  .features h2 {
    margin-bottom: 2%;
    font-size: 3em;
  }

}

@media (min-width: 1800px) {
  header .name {
    font-size: 3em;
  }

  header li {
    font-size: 1.5em;
  }

  #intro {
    grid-template-columns: 50% 45%;
    max-height: 700px;
  }

  #intro img {
    max-height: 600px;
  }

  #intro .name {
    font-size: 8em;
  }

  #intro p {
    font-size: 3.5em;
  }

  .features {
    padding-left: 10%;
    padding-right: 10%;
  }

  .features h2 {
    margin-bottom: 2%;
    font-size: 5em;
  }

  .features h3 {
    font-size: 2.5em;
  }

  .features p {
    font-size: 1.75em;
  }

  .features .publication-logo {
    max-width: 70%;
    justify-self: end;
  }
  
  footer #social img {
    max-width: 60px;
    margin: 0.5%;
  }

  footer p {
    font-size: 1.5em;
  }

  footer {
    padding: 0.5%;
  }

}

@media (min-width: 650px) and (max-width: 999px) {
  #intro {
    max-height: 400px;
  }

  #intro .name {
    font-size: 3.5em;
  }

  #intro p {
    font-size: 1.75em;
  }

  #intro img {
    max-height: 300px;
    max-width: 95%;
    border: 20px solid white;
  }

  .features {
    padding-left: 5%;
    padding-right: 5%;
  }

  .features h2 {
    margin-bottom: 2%;
    font-size: 3em;
  }
  
  .read-more a {
    font-size: 1.25em;
  }
}

@media (max-width: 649px) {
  header {
    text-align: center;
  }

  header .name {
    font-size: 3em;
  }

  nav li {
    margin-bottom: 0.75em;
  }

  header .name, nav {
    margin-bottom: 3%;
  }

  #intro {
    position: relative;
    text-align: center;
  }

  #intro .name {
    font-size: 3.5em;
  }

  #intro p {
    font-size: 1.75em;
  }

  #intro img {
    max-width: 60%;
    border: 20px solid white;
    margin: 3% auto;
  }

  .lemons, .flowers {
    background-size: 100%;
  }

  .features {
    padding-left: 5%;
    padding-right: 5%;
  }

  .features h2 {
    margin-bottom: 2%;
    font-size: 3em;
  }

  .features h2 {
    text-align: center;
  }

  .feature {
    clear: both;
    margin-bottom: 3%;
    padding-top: 3%;
    border-top: 1px dotted #ccc;
    text-align: center;
  }

  .feature .content {
    text-align: left;
  }

  .feature:first-of-type {
    border-top: none;
  }

  .publication-logo {
    max-width: 50%;
    margin-bottom: 5%;
    margin-top: 3%;
    max-height: 100px;
  }
  
  .publication-name {
    font-size: 2em;
  }

  .feature .thumbnail {
    background-image: url('img/flowers-pattern.jpg');
    text-align: center;
    padding: 3%;
    margin-bottom: 3%;
  }

  #blogging .feature:nth-child(even) .thumbnail {
    background-position: top right;
  }

  .feature .thumbnail img {
    border: 25px solid white;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.4);
    transform: rotate(3deg);
    max-width: 65%;
  }

  #blogging .feature:nth-child(even) .thumbnail img {
    background-position: top right;
    transform: rotate(-3deg);
  }

  footer #social img {
    max-width: 7%;
  }

  footer #social img:hover {
    max-width: 9%;
    margin: 1%;
  }

}
