:root {
  --header-height: 56px;
  --unit: 8px;
  --content-width: 960px;
  --sidebar-width: 260px;
  --transition-duration: 250ms;
}

body, html {
}

a {
  text-decoration: none;
  color: var(--accent9);
}

a:hover {
  color: var(--accent14);
  text-decoration: none;
}

table {
  border-collapse: collapse;
}

table td,
table th {
  border: none;
}

hr {
    border: 0;
    height: 1px;
    background: var(--z4);
}

samp, kbd, code {
  font-size: 0.8em;
  padding: var(--x1) var(--x2);
  border-radius: var(--x1);
  color: var(--z10);
  margin-right: var(--x1);
}

samp, code {
  background-color: var(--z0);
  box-shadow: inset 0 -1px 0 var(--z3);
}

kbd {
  background: var(--z3);
  box-shadow: inset 0 -1px 0 var(--z0), inset 0 1px var(--z6), 0 var(--x1) var(--x8) rgba(0,0,0,0.3);
}

time {
  color: var(--z5);
  white-space: nowrap;
}

ul li {
  color: var(--z12);
  padding-left: var(--x2);
  display: list-item;
}

ol, ul {list-style: none; padding: 1em;}

ol  {
  counter-reset: the-counter;
}

ol li::before, ul li:before {
  color: var(--z6);
  display: inline-block; 
  width: 1em; 
  margin-left: -1.5em;
  margin-right: 1em; 
  text-align: right; 
  direction: rtl;
  margin-left: -2em;
}

ol li::before { 
  content: counter(the-counter);
  counter-increment: the-counter;
  font-size: 0.8em;
  position: absolute;
}

ol.expanded li::before {
 
}

ul li::before { 
  content: "•"; 
}

.expanded li {
  padding: var(--x2) 0;
}

.inverted samp, .inverted code {
   background-color: var(--z2);
   box-shadow: inset 0 -1px 0 var(--z0), inset 0 1px 0 var(--z3);
}

.inverted kbd {
  background: var(--z1);
  box-shadow: inset 0 1px 0 var(--z0), inset 0 -1px var(--z3), 0 var(--x1) var(--x4) rgba(0,0,0,0.1);
}

.fitVids-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.fitVids-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

code, kbd, samp, pre {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
}

pre.code {
  white-space: pre-wrap;
  background-color: var(--z2);
  color: var(--z12);
  padding: var(--x6) var(--x8);
}

.pad {
  padding: calc(var(--unit)*2);
}

.header{
  transition: transform var(--transition-duration) ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--z1);
  border-bottom: solid var(--z2)  1px;
  z-index: 10;
}

.header-unpin{
  transform: translateY(-100%);
}

.header-pin{
  transform: translateY(0);
}

.brand {
  display: flex;
  align-items: stretch;
  height: var(--header-height);
  line-height: var(--header-height);
  margin: 0;
}

.brand .logo {
  padding-left: var(--header-height);
  position: relative;
  font-size: 0;
  color: transparent;
  border-right: solid var(--z2) 1px;
  transition: all var(--transition-duration) ease-out;
  margin: 0;
}

.brand .logo:active,
.brand .logo.active {
  background-color: var(--z4);
}

.brand .logo:before,
.brand .logo:after {
  position: absolute;
  bottom: 40%;
  left: 50%;
  content: '';
  display: inline-block;
  border: solid var(--x2) transparent;
  margin-left: calc(var(--x2)*-1);
}

.brand .logo:active:before,
.brand .logo.active:before {
  border-left-color: var(--a3);
  border-bottom-color: var(--a3);
}

.brand .logo:before {
  border-left-color: var(--comp6);
  border-bottom-color: var(--comp6);
}

.brand .logo:after {
  border-right-color: var(--accent6);
  border-bottom-color: var(--accent6);
}

.brand .name {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8em;
  color: var(--z13);
  flex: 1;
  padding-left: var(--x5);
}

.prev-next {
  text-align: center;
  color: var(--z5);
  padding: var(--x6) 0 var(--x2);
}

.prev-next a:hover {
  text-decoration: none;
  color: var(--accent14);
}

.prev-next a:first-child:before {
  content: '←';
  padding-right: var(--x4);
  color: var(--z5);
}

.prev-next a:not(:first-child):last-child:before {
  content: '|';
  padding: 0 var(--x4);
  color: var(--z5);
}

.prev-next a:not(:first-child):last-child:after {
  content: '→';
  padding-left: var(--x4);
  color: var(--z5);
}

.content {
  margin-top: calc(var(--header-height) + var(--x2));
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer {
  border-top: solid var(--runge-n3) 1px;
}

.footer a {
  text-decoration: none;
  display: inline-block;
  margin: 0 32px 0 0;
}


/* POST */


.article {
  color: var(--z10);
  position: relative;
  font-size: 1.2em;
  max-width: 806px;
  margin: 0 auto;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5  {
  color: var(--z14);
}

.article:after {
  content: "";
  display: table;
  clear: both;
}

.article .img-left {
  display: block;
  float: left;
  margin: 1em 2em 0 0;
}


.article .category-title {
  margin: 0;
}

.article .category-title span {
  color: var(--comp4);
  padding-left: var(--x2);
}

.article .category-title a:hover {
  text-decroation: none;
  color: var(--comp12);
}

.article table td,
.article table th {
  text-align: left;
  padding: 8px 16px 8px 0;
  border: none;
}

.article table th {
  font-weight: 500;
}


.article h1 {
  letter-spacing: -0.01em;
  line-height: 120%;
  font-weight: 600;
  font-size: 2.4em;
  margin: 0;
  color: var(--z15);
}

.article h1 a {
  color: var(--z15);
}

.article .bleed {
  padding: calc(var(--unit)*2) calc(var(--unit)*4);
  margin: 0 calc(var(--unit)*-4);
}

.article-header {
  border-bottom: solid var(--z2) 1px;
  padding-bottom: var(--x8);
  margin-bottom: var(--x8);
}

.article-body a {
  border-bottom: solid var(--runge-c0n3) 2px;
  transition: border-color var(--transition-duration) ease-out;
}

.article-body a:hover {
  text-decoration: none;
  border-color: var(--runge-c0n1);
  transition: none;
}

.article-body .letter {
  background-color: var(--z0);
  color: var(--z12);
  font-family: var(--mono);
  font-size: 0.8em;
}

.article-body a:visited {
  border-color: var(--runge-n4);
}

.footer .container {
  max-width: 806px;
  border-top: solid var(--z3) 1px;
  margin-top: var(--x12);
}

.toc {
  font-size: 1.2em;
  padding: var(--x1) var(--x15);
}

.toc a:before {
  content: attr(data-date);
  color: var(--z6);
  display: inline-block;
  width: 160px;
  text-align: right;
  padding-right: 1em;
}

.full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

video {
width: 100%;
}

.compare {
  position: relative;
}

.compare img:nth-child(2) {
  display: none;
}

.compare:hover img:nth-child(1) {
  display: none;
}

.compare:hover img:nth-child(2) {
  display: block;
}

.full-width {
      margin-top: 64px;
    }
    .full-width + h3 {
      background-color: var(--z1); 
      margin: -80px -48px 0 -48px; 
      padding: 32px 48px 16px 48px; 
      position: relative;
      border-radius: var(--x2);
      font-size: 1.8em;
    }

    h3 {
      margin-top: 2em;
    }

    img.vertical {
      width:70%; 
      display:block; 
      margin: 32px auto;
    }

    .caption {
      display: inline-block; 
      margin-top: 1em; 
      color: var(--z6); 
      font-size: 14px;
    }

    body {
      overflow-x: hidden;
    }

@media (max-width:600px) {
  .toc {
    font-size: 1.2em;
    padding: var(--x2) var(--x1) var(--x2) var(--x4);
  }
  .toc a:before {
    font-size: 0.8em;
    display: block;
    text-align: left;
  }
}