@import url(./font-merriweather.css);

html {
  background: #f7f6f0;
  color: #000;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 300;
  font-style: normal;
  line-height:1.7em;
  font-size: 16px;
}

body {
  margin: 0 auto;
  max-width: 1024px;
  padding:1rem;
}

img {
  max-width:100%;
}
figcaption {
  font-size: 0.9em;
}


.site-header {
  position:sticky;
  top: 0;
  display:block;
  backdrop-filter: blur(5px);  
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid #ccc;
  margin: 0 0 2rem;
  padding: 0 0 1em;

  .site-title {
    border:none;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;

    span {
      opacity: 0.5;
      color: #B59F78;
      font-size: 1rem;
    }
  }

  nav {
    margin: 0;
    padding: 0;
    text-transform: lowercase;

    ul {
      margin: 0;
      padding: 0;
      display:flex;
      list-style-type: none;
      column-gap:2em;
    }
    a {
      text-decoration: none;
      color: #7469B6;

      &:hover {
        color: #AD88C6;
      }
    }
  }
}


footer {
  margin-top: 40px;
  text-align: center;
  padding: 1em;
  border-top: 2px solid #aaa;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2em;
  padding: 0.5em 0;
  border-bottom: 1.5px solid #111;
}

h1 {
  font-size: 2rem;
  margin-top: 2rem;
  line-height: 1.4em;
}

a {
  color: #133E87;

  &:hover {
    color: #608BC1;
  }
}

.metadata {
  display:block;
  font-size: 0.9em;
  color: #B59F78;

  time {
  }

  .tags {
  }
}

.tagline {
  font-size: 1.3em;
  font-style:italic;
  opacity: 0.5;
}

strong {
  font-weight:700;
}

pre {
  background: rgb(48, 10, 36);
  padding: 1em;
  border-radius:1px;
}

code {
  font-family: monospace;
  background: #e1e1e1;
  color: #000;
  word-wrap: break-word;
  box-decoration-break: clone;
  padding: .1rem .3rem .2rem;
  border-radius: .2rem;
}

pre code {
  color: #fff;
  font-size: 0.9em;
  display: block;
  background: none;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  overflow-x: scroll;
  max-width: 100%;
  min-width: 100px;
  padding: 0;
}

main {
  width: 100%;

  article {
    aside.sidenote {
      margin-bottom: 1em;
      color: #333;
      font-size: 0.8em;
      padding: 1em;
      border: 1px solid #aaa;
      border-radius:5px;
    }
  }
}

.tldr {
  padding: 2em;
  border-radius: 5px;
  background: #eeeeee;
  border: 1px solid #ccc;
  box-shadow: 0px 2px 2px #bbb;
}


#archive {
  a {
    text-decoration:none;
  }
}

@media screen and (min-width: 650px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }
}

/*Medium devices (like tablets)*/
@media screen and (min-width: 760px) {
  article {
    width: 65%;

    .metadata {
      display:flex;
      justify-content: space-between;

      .tags {
        margin-left: 1em;
      }
    }
    aside.sidenote {
      display: block;
      /*position:relative;*/
      /*float: right;*/
      /*width: 45%;*/
      /*top:-1rem;*/
      /*margin-right: -52%;*/
    }
  }

  .md-2-columns {
    column-count:2;
    column-gap:4em;

    section, article {
      break-inside:avoid;
    }
  }
  #education .md-2-columns article { 
    break-inside: auto;
  }
}

/*Large devices (like laptops)*/
@media screen and (min-width: 1024px) {
  .md-2-columns {
    column-gap: 8em;
  }
  .lg-2-columns {

  }
}

/*For printing*/
@media print {
  @page { margin: 1em; }

  main header nav {
    display:none;
  } 
  .md-2-columns {
    column-count:2;
    column-gap:2em;

    article header {
      break-inside:avoid;
    }
  }
}
