html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
               -webkit-font-smoothing: antialiased;
}

/* Layouts */
/* Scale text depending on screen size */
.container {
  display: grid;

  padding: 20px;
  margin:  0 auto;
}

/* Defaults */
.content img {
  max-width: 800px;
  max-height: 600px;
}

figure {
  margin: 1.5em auto;
  text-align: center;
}

figure img {
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

figcaption {
  margin-top: 0.8em;
  font-size: 0.9em;
  font-style: italic;
  color: #666;
  line-height: 1.4;
}

@media screen and (min-width: 1600px) {
  html {
    font-size: 16px;
  }

  .container {
    width: 1600px;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    grid-template-areas:   "header  header"
                           "sidebar content"
                           "footer  footer";
    grid-template-rows:    auto 1fr auto;
    grid-template-columns: auto 1fr;
  }
}

@media screen and (max-width: 1200px) {
  .container {
    width: 1200px;
  }
}

/* Mobile */
@media screen and (max-width: 1080px) {
  html {
    font-size: 16px;
  }

  .container {
    width: 100%;
    grid-template-areas:   "header"
                           "content"
                           "sidebar"
                           "footer";
    grid-template-rows:    auto 1fr auto auto;
    grid-template-columns: 1fr;
  }

  .nav {
    text-align: center;
    padding-top: 50px !important;
    border-top: 3px solid #F07171;
    font-size: 1rem !important;
    border-right: 0 !important;
  }

  .nav .main-pages-nav h2 {
    font-size: 1rem !important;
  }

  .nav > ul {
    max-width: 400px;
    margin: 0 auto !important;
  }

  .content {
    max-width: 100% !important;
    overflow: scroll !important;
    padding: 0 !important;
  }

  .header {
    padding: 0 !important;
  }

  .header .logo {
    display: flex;
    align-items: center;
    width: 100px !important;
  }

  .header .logo img {
    width: 100px !important;
  }

  .header h1 {
    font-size:   2.5rem !important;
    line-height: 150px !important;
  }

  .content img {
    /* width: 100%; */
    max-width: 300px;
    max-height: 280px;
  }

  .content .date {
    position: relative !important;
    margin-top: -2px !important;
    font-size: 0.8rem;
  }
}

/* Reset header text styles */
html h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color:  #F07171;
}

a {
  color: #FFAA33;
  text-decoration: none;
}

.header {
  display:    flex;
  grid-area:  header;

  padding-top:    30px;
  padding-bottom: 0px;
  margin-bottom:  40px;

  border-bottom:  3px solid #F07171;
}

.header h1 {
  font-size:   5rem;
  line-height: 300px;
}

.header .logo {
  width: 300px;
}

.header .logo img {
  display: block;
  width:   230px;

  margin: 0 auto;
}

.nav {
  grid-area: sidebar;

  padding:      20px;
  min-width:    330px;
  border-right: 2px solid #e6e6e6;
}

.nav ul {
  margin: 0;
}

.nav ul.sub-nav {
  margin: 10px 0 80px 0;
}

.nav ul.sub-nav .sub-nav-item {
  display: flex;
  justify-content: space-between;
}

.nav ul.sub-nav .sub-nav-item .item-date {
  color:     #9ba3ab;
  font-size: 0.7rem;
  font-style: italic;
  align-content: center;
}

.nav a.item {
  color: black;
  margin-left: 0px;
}

.nav a.item:hover {
   text-decoration: underline;
}

.nav .main-pages-nav h2 {
  font-size: 1rem;
}

.nav .main-pages-nav h2:hover {
  text-decoration: underline;
}

.content {
  position: relative;
  grid-area: content;

  padding: 10px 20px 0 50px;
}

.content h1:not(:first-child) {
  margin-top: 30px;
}

.content h2 {
  margin-top: 35px;
}

.content .date {
  position: absolute;
  top: 0;
  right: 0;
  color: #808080;
  padding-top: 3px;
}

.footer {
  grid-area: footer;
  
  padding: 20px;
  margin-top:    40px;
  margin-bottom: 20px;

  border-top: 3px solid #F07171;
}

.footer p {
  text-align: center;
}

/* Code */
pre.highlight {
  padding: 10px;
  border:  1px dashed black;
  border-radius: 5px;
}

p code {
  background-color: #778899;
  border:        1px solid #909090;
  border-radius: 3px;
  padding:       1px 3px;
  color:         #F8F8F8;
}

li code {
  background-color: #778899;
  border:        1px solid #909090;
  border-radius: 3px;
  padding:       1px 3px;
  color:         #F8F8F8;
}

/* Quote */
blockquote {
  background-color: rgba(192,91,77,.05);
  margin-inline-start: 0;
  padding: 10px 30px;
  border-left: 3px solid #F07171;
}

blockquote p {
  margin: 10px 0;
}

blockquote p:not(:last-child) {
  margin: 10px 0 30px 0;
}
