@font-face {
  font-family: 'Valkyrie';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF;
  src: local('Valkyrie'), url(/fonts/valkyrie_t3_regular.woff) format('woff');
}

body {
  font-family: 'Valkyrie', serif;
  font-feature-settings: 'onum' 1;
  text-rendering: optimizeLegibility;
  background: #EEE;
  margin: 0;
  padding-top: 35px;
}

article {
  color: #000;
  line-height: 1.5em;
  background: white;
  box-shadow: 0 8px 10px -6px #777;
  min-height: 700px;
}

article a {
  text-decoration: underline;
}

.section-number {
  margin-right: .25em;
}

article ul li,
article ol li {
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

h1, h2, h3, h4 {
  color: #A31F34; /* maroon */
  font-weight: 100;
  font-variant: small-caps;
  margin: 60px 0 30px;
}

hr {
  border: 0;
  border-bottom: 1px solid #A31F34; /* maroon */
}

h1 {
  font-size: 1.7em;
  padding-top: 7px;
  border-top: 1px solid #A31F34; /* maroon */
}

h4 { margin-bottom: -1em; }

blockquote {
  margin-left: 1em;
  padding-left: 1em;
  border-left: 0.18em solid #ccc;
}

code {
  padding: 0 6px;
  background: #FCFCFC;
  border: 1px solid #BABABA;
  border-radius: 2px;
}

pre code {
  padding: 0;
  font-size: 0.8em;
  font-family: "DejaVu Sans Mono", Consolas, Monaco, 'Andale Mono', monospace;
  line-height: 1em;
  border: none;
  background: inherit;
}

abbr {
  font-size: 0.9em;
}

table {
  width: 100%;
}

th {
  text-align: left;
}

pre {
  margin-top: 1.2rem;
  margin-bottom: 1.6rem;
  border-top: 1px dotted #bfbfbf;
  border-bottom: 1px dotted #bfbfbf;
  padding: 12px;
}

nav {
  position: fixed;
  top: 0;
  background: white;
  width: 100%;
  height: 39px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px 0px;
}

nav p {
  display: inline;
}

.nav-logo {
  position: absolute;
  left: 15px;
  top: 7px;
}

.nav-items {
  list-style: none;
  margin: 0px;
  padding: 0px;
  text-align: center;
  margin-left: -1.7rem;
}

.nav-item {
  display: inline-block;
  margin-left: 1.7rem;
  padding-top: 7px;
  font-size: 18px;
}

.nav-item-icon {
  margin-right: 4px;
  vertical-align: text-bottom;
}

.about {
  position: absolute;
  right: 15px;
  top: 7px;
  font-size: 18px;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.published::before {
  content: "Published: "
}
.published {
  color: grey;
  font-size: .8rem;
}

.index {
  list-style-type: none;
  padding: 0px;
}

article .index-item {
  margin-bottom: 1rem;
  display: flex;
  text-decoration: none;
}

.index-item:hover {
  text-decoration: underline;
}

.index-item:hover .index-dots {
  color: white;
}

.index-item-title,
.index-item-date {
  flex: 1 0 auto;
}

.index-dots {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  color: grey;
  line-height: 2.5em;
  font-size: .7em;
}

footer {
  color: rgb(134, 134, 139);
  border-top: 1px solid #d2d2d7;
  text-align: center;
  padding-top: .7em;
}

.footer-link {
  display: inline-block;
  width: 6em;
}

.footer-link:first-child {
  border-right: 1px solid #d2d2d7;
}

.subscribe input {
  display: block;
  text-align: center;
  height: 2.5em;
  width: 25em;
  margin: 4em auto 1em;
  border: none;
  border-bottom: 1px solid #d2d2d7;
  box-sizing: border-box;
  padding-bottom: 0px;
}
.subscribe input:focus {
  outline: none
}
.subscribe button {
  display: block;
  margin: 0 auto 4em;
  height: 2.5em;
  width: 25em;
  border-radius: 0px;
  border: none;
  outline: none
}
.subscribe button:hover {
  text-decoration: underline;
}

@media print {
  @page {
    size: letter;
    margin: 2cm 2.5cm;
  }
  body {
    background: white;
  }
  nav {
    display: none;
  }
  article {
    display: block;
    font-size: 12pt;
    box-shadow: none;
  }
  pre, blockquote {
    page-break-inside: avoid;
  }
  footer {
    display: none;
  }
}

@media screen and (min-width: 970px) {
  article {
    width: 700px;
    font-size: 1.1em;
    padding: 50px 100px 120px;
    margin: 32px auto 48px;
    border: 1px solid #CCC;
  }
  footer {
    width: 825px;
    margin: 16px auto 64px;
  }
}

@media screen and (max-width: 969px) {
  article {
    font-size: 1.1em;
    padding: 30px 50px;
    margin: 0px auto 32px;
    border: 1px solid #CCC;
  }
  footer {
    margin: 16px auto 48px;
  }
  pre code {
    font-size: 14px;
    white-space: pre-line;
  }
}

@media screen and (max-width: 500px) {
  .index-item-date {
    display: none;
  }
}
