body, h1, h2, h3, p, ul, ol, li {
   font-family: "Hanken Grotesk", sans-serif;
   font-optical-sizing: auto;
   margin: 0;
   padding: 0;
   background-color: #F0F0F0
}
#hero {
    width: 100%;
    height: 400px;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-origin: border-box;
    background-position: top 25% center;
    background-repeat: no-repeat;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #d2d2d2;
}
img, iframe {
   max-width: 100%;
}

#canvas {
  width: auto;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  background-color: #F0F0F0;
  box-shadow: 0 0 40px rgba(0,0,0,.05);
}

a:hover {
    color: #666;
}
/* Header styles */
header {
  padding: 20px;
}

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

header h1 {
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 2.5em;
  font-weight: 400;
}

/* Navigation styles */
nav {
  padding: 10px;
}

nav a {
  color: #333;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0 10px;
  font-size: 1em;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
  width: 80px;
  text-align: center;
}
nav {
    display: block;
    position: absolute;
    right: 40px;
    top: 30px;
}
/* Main content styles */
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.meta a {
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 3em;
  color: #888888;
  text-decoration: none;
}

article {
  margin: 20px 40px;
  max-width: 800px;
}

article h1 {
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  color: #333;
  font-size: 2em;
}

article h1 a {
  color: #333;
  text-decoration: none;
}

article h2 {
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 300;
  margin-top: 1em;
  font-size: 1.5em;
}

article p {
  line-height: 1.5;
  font-size: 1.1em;
}

article a {
  color: #000099;
  text-decoration: none;
}

article .img-right, article .img-left {
    float: right; 
    margin: 0;
    border-radius: 5px;
    width: 40%;
    height: auto;
    margin: 10px 0px 10px 10px;
}

article .img-left {
    float: left; 
    margin: 10px 10px 10px 0;
}
article figure img {
    width: 100%;
    height: auto;  
}

footer {
  padding: 20px;
  text-align: center;
}

footer a.social {
  display: inline-block;
  width: 30px;  
  height: 30px;  
  background-size: cover;
  background-origin: border-box;
  background-position: top 25% center;
  background-repeat: no-repeat;
}
footer #mastodon {
  background-image:  url('../images/mastodon.webp');
}
footer #linkedin {
  background-image:  url('../images/linkedin.webp');
}


/* Responsive design */
@media only screen and (max-width: 600px) {
  #canvas {
    width: 100%;
  }

  #hero {
    height: 200px;  
  }

  article .img-right, article .img-left {
    float: none; 
    width: 100%;
  }

  header h1 {
    font-size: 2em;
    margin-top: 1em;
  }

  article h1 {
    font-size: 1.6em;
  }
  
  article h2 {
    font-size: 1.2em;
  }
  
  header nav {
    top:0;
    right: 0;
    
  }

  nav a {
    font-size: 1.2em;
  }
}
