/* ================== Common =========================*/
html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #666;
  max-width: 1200px;
  margin: auto;
}

.wrapper-global {
  margin: 1em;
  display: grid;
  column-gap: 1em;
  row-gap: 1em;
}

.wrapper-global figcaption {
  text-align: center;
  line-height: 1.3em;
  font-size: 1em;
}

.projects {
   font-size: 1em;
   line-height: 1.6em;
}

.projects section {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1em;
  padding: 0 1em;
  align-self: center;
}

.projects-header h3 {
  font-size: 1.5em;
  color: #333;
}

.projects section:last-child {
  margin-bottom: 0;
}

.projects-one {
  grid-row: 2;
}

.projects-two {
  grid-row: 3;
}

.projects-three {
  grid-row: 4;
}

.projects-four {
  grid-row: 5;
}

.projects a, .projects a:link {
  text-decoration: none;
    color: #004c4c;
}

.projects a:hover, .projects a:active {
  color: #333;
}

.cta {
  text-transform: uppercase;
}

.cta a {
  color: #fff;
  text-decoration: none;
  padding: .75em 1em;
  border-radius: 6px;
  display: inline-grid;
  font-size: 1em;
  margin-bottom: 1em;
}

.cta a:first-child {
  margin-right: 20px;
}

.cta a:link {
  background-color: #004c4c;
  color: #fff;
}

.cta a:hover, .cta a:active {
  background-color: #b2d8d8;
  color: #004c4c;
}

.copyright {
  font-size: .75em;
  text-align: center;
  margin: 2em 0 1em;
}

/* ================== Index page =========================*/

.wrapper-index {
  grid-template-columns: repeat(3, 1fr);
}

.intro {
  grid-column: 1 / 4;
  grid-row: 1;
}

.intro h1 {
   color: #333;
   font-size: 2.25em;
}

.intro h2 {
  font-weight: 300;
  font-size: 1.3em;
  line-height: 1.5em;
}

.photo {
  grid-column: 1 / 4;
  grid-row: 2;
  align-self: center;
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.wrapper-index .projects {
   grid-column: 1 / 4;
}

.projects h5 {
  font-size: 1em;
  font-weight: 400;
  color: #333;
  margin-bottom: 0;
}

.projects-one {
  grid-row: 2;
}

.projects-two {
  grid-row: 3;
}

.projects-three {
  grid-row: 4;
}

.projects-four {
  grid-row: 5;
}

.projects-five {
  grid-row: 6;
}

.wrapper-index .cta {
  grid-column: 1 / 4;
  grid-row: 7;
}

.wrapper-index .copyright {
  grid-column: 1 / 4;
  grid-row: 8;
}

/* ================== About page =========================*/

.wrapper-about {
  grid-template-columns: repeat(4, 1fr);
}

.wrapper-about .projects {
  grid-column: 1 / 5;
}

.about-header {
  grid-column: 1 / 5;
  grid-row: 1;
}

.about-header h1 {
   font-size: 2.25em;
   margin-bottom: 0;
}

.about-header h2 {
  font-weight: 300;
  font-size: 1.3em;
  line-height: 1.25em;
  margin: 0 0 1.5em;
}

.about-header a, .about-header a:link {
  color: #333;
  text-decoration: none;
}

.about-header a:hover, .about-header a:active {
  color: #004c4c;
}

.images {
 margin: 0;
}

.images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.images {
  margin-bottom: 1em;
}

.images-one {
  grid-column: 1 / 3;
}

.images-two {
  grid-column: 3 / 5;
}

.images-three {
  grid-column: 1 / 3;
  grid-row: 3;
}

.images-four {
  grid-column: 3 / 5;
  grid-row: 3;
}

.wrapper-about .cta {
  grid-column: 1 / 5;
  grid-row: 6;
}

.wrapper-about .copyright {
  grid-column: 1 / 5;
  grid-row: 7;
}

/* ================== Responsive =========================*/

@media all and (min-width: 768px) and (min-device-width: 768px) {
  .intro h2 {
    font-size: 1em;
    line-height: 1.4em;
  }

  .about-header h1 {
     font-size: 3em;
  }

  .projects-header h3 {
    font-size: 2.25em;
  }

  .images-one {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .images-two {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .images-three {
    grid-column: 3 / 4;
    grid-row: 2;
  }

  .images-four {
    grid-column: 4 / 5;
    grid-row: 2;
  }

  .intro {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 2rem;
  }

  .photo {
    grid-column: 3 / 4;
    grid-row: 1;
    align-self: center;
  }
}
