:root {
  --background-color: #ffffff;
}


h1 {
  font-style: italic;
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.1em;
  margin-bottom: 0.6em;
  text-align: center;
}

/*  normalize */
ol, ul, h3, div, body {
  margin: 0;
}

ul {
  padding-left: 0.84em;
}

ol {
  padding-left: 1em;
}

body {
  color: #333333;
  background-color: var(--background-color);
  font-family: 'Calendas Plus', serif;
  font-size: 1.2em;
  line-height: 1.5em;
}

img {
  max-width: 100%;
}

.embed-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16/9 ratio */
  padding-top: 30px; /* IE6 workaround*/
  height: 0;
  overflow: hidden;
  margin-bottom: 1em;
  border: 0;
}

.embed-video-container iframe, .embed-video-container object, .embed-video-container embed {
  position: absolute;
  border: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* header */

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: bold;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 0.5em;
  padding-right: 0;
  margin-bottom: 2em;
  margin-top: 1em;
  margin-left: 1em;
  margin-right: 1em;
}

header .promo {
  display: none;
}

footer {
  border-top: 1px solid #d8d8d8;
  margin-top: 4em;
  padding-top: 1em;
  margin-left: 1em;
  margin-right: 1em;
  margin-bottom: 2em;
  font-size: 1em;
  line-height: 1.5em;
}

main {
  margin-left: 1em;
  margin-right: 1em;
}

h2 {
  margin-top: 2em;
  line-height: 1.2em;
}

a {
  color: #2266ee;
}

p code {
  color: #555;
  font-weight: normal;
  border: 1px solid #ddd;
  border-radius: 0.4em;
  display: inline-block;
  padding: 0em 0.3em;
  line-height: 1.5em;
}

code {
  font-family: CamingoCode, Monaco, "Courier New", Courier, monospace;
  font-size: 0.8em;
}

blockquote {
  border-left: 4px solid rgba(204, 204, 204, 0.5);
  padding-left: 1em;
  margin-left: 0;
  font-style: italic;
  line-height: 1.6em;
  margin-bottom: 2em;
  margin-right: 0;
}

.nav__link {
  text-decoration: none;
  font-weight: 500;
}

.nav__link:hover {
  text-decoration: underline;
}

/* header menu */

.nav__menu-state {
  display: none;
}

.nav__menu-label {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1em;
  display: block;
  margin-top: 4px;
  padding-top: 0;
  color: #666666;
}

.nav__menu-state ~ ol {
  display: none;
}

.nav__menu-state:checked ~ ol {
  display: block;
}

.nav__container {
  position: absolute;
  top: 16px;
  right: 1em;
  text-align: right;
  background-color: var(--background-color);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 6px;
  margin-right: -3px;
}

.nav__menu {
  list-style: none;
  padding-left: 0px;
}

.nav__menu-item {
  padding-left: 1em;
  padding-right: 4px;
  line-height: 2em;
}

.onework__title {
  margin-bottom: 0.2em;
}

.onework__company {
  font-style: italic;
  line-height: 1.4em;
  margin-bottom: 0;
  text-align: center;
}

.onework__keywords {
  margin-bottom: 2em;
  margin-top: 0.5em;
  text-align: center;
}

.footer__contact-links {
  list-style: none;
  padding-left: 0px;
  margin-top: 2em;
}

.footer__recentposts-title {
  margin: 0;
}

.footer__recentposts-list {
  list-style: none;
  padding-left: 0;
}

.footer__onerecentpost {
  display: flex;
  justify-content: space-between;
}

.footer__onerecentpost-title {
  margin-right: 2em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  min-width: 0;
  flex: auto;
}

.footer__onerecentpost-date {
  white-space: nowrap;
  font-style: italic;
  opacity: 0.8;
}

.works__list-item {
  margin-bottom: 2em;
}

.works__list-item__title {
  margin-bottom: 0;
}

.works__list-item__company {
  font-style: italic;
  line-height: 1.4em;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.works__list-item__excerpt {
  font-size: 0.8em;
  line-height: 1.4em;
}

.onepost__date {
  font-style: italic;
  line-height: 1.4em;
  margin-bottom: 2em;
  opacity: 0.8;
  text-align: center;
}

.onepost__title {
  margin-bottom: 0;
}

.posts__post-date {
  font-style: italic;
  line-height: 1.4em;
  opacity: 0.8;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.posts__post-excerpt {
  margin-top: 0;
  margin-bottom: 2em;
}

.highlight {
  margin: 0;
  padding: 0;
}

pre.highlight {
  padding: 1em;
  margin: 0;
  font-size: 0.8em;
  line-height: 1.4em;
}

div.highlighter-rouge {
  margin-bottom: 1em;
}

@media screen and (min-width: 56em) {
  footer {
    display: flex;
    justify-content: space-between;
    padding-top: 2em;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    max-width: 48em;
  }

  .footer__recentposts {
    margin-right: 4em;
    min-width: 0;
  }

  .footer__onerecentpost-title {
    max-width: 20em;
  }

  .footer__contact-links {
    margin-top: 1.5em;
  }

}

@media screen and (min-width: 640px) {

  body {
    font-size: 1.4em;
  }

  header .promo {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
  }

  h1 {
    font-size: 4rem;
    margin-bottom: 1em;
    line-height: 1.2em;
  }

  h2 {
    font-size: 2.4rem;
  }

  main {
    max-width: 32em;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1em;
    padding-right: 1em;
  }

  footer {
    font-size: 0.8em;
    line-height: 1.5em;
  }

  .nav__container {
    display: inline;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-right: 0;
  }

  .nav__menu-state ~ ol {
    display: inline;
  }

  .nav__menu-item {
    display: inline;
    padding-right: 0;
    line-height: 0;
  }

  .nav__menu-label {
    display: none;
  }

  header {
    margin-bottom: 4em;
  }

}
