:root {
  --light: #f4f4f4;
  --cyan: #509c93;
  --light-gray: #eee;
  --medium-gray: #ddd;
  --gray: #6a6a6a;
  --dark: #444;
  --darker: #222;
}

html {
  background: var(--light);
  -webkit-text-size-adjust: none;
}

::selection {
  background: var(--medium-gray);
  opacity: 0.3;
}

del {
  text-decoration: line-through !important;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

main, footer {
  font-family: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
  font-size: 1rem;
  padding: 0;
  line-height: 160%;
}

main article, table {
  min-width: 0;
}

main h1, h2, h3 {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
  font-weight: 500;
}

strong {
  font-weight: 500;
}

main h1 {
  font-size: 20px;
  padding: 10px 0 10px 0;
}

main h2 {
  font-size: 18px;
}

main h2, h3 {
  padding: 20px 0 5px 0;
}

.logo img {
  max-height: 2.5rem;
  max-width: 2.5rem;
  vertical-align: middle;
  transform: translateY(-5%);
}

.logo  {
  text-decoration: none;
  border-bottom: unset;
  background: unset !important;
}

.logo:hover {
  border-bottom: unset;
}

.footimgs a {
  all: unset !important;
}

.footimgs img {
  max-height: 2.5rem;
  max-width: 2.5rem;
  display: inline-block;
  vertical-align: middle;
  image-orientation: from-image;
  padding: 0 0 5px 5px;
  cursor: pointer;
}

a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  word-wrap: break-word;
}

main a {
  color: var(--darker);
  border-bottom: 1.5px solid var(--medium-gray);
}

a:hover {
  border-bottom: 1.5px solid var(--gray);
}

.footer {
  column-count: 2;
}

body {
  max-width: 655px;
  padding: 0 13px;
  margin: 40px auto;
}

main article img {
  max-width: 100%;
  width: 100%;
  display: block;
  margin: 10px auto 4px auto;
}

main ul, main ol {
  margin: 0 30px 7px 30px;
}

main ul ul {
  margin-bottom: 0
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 0.5rem 0.5rem 0;
}

.subtitle {
  font-style: italic;
  font-weight: normal;
  font-variant: unset;
  color: var(--dark);
  padding: 0 0 20px 0;
}

.muted {
  color: var(--gray);
}
.muted a {
  color: var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
}

article p {
  padding: 7px 0 7px 0;
}

article a {
  color: var(--dark);
}

.tagline {
  padding: 50px 0 50px 0;
}

pre {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
  min-width: 0;
  background-color: var(--light-gray) !important;
  margin-bottom: 10px;
}

code {
  font-size: 0.9rem;
  background-color: var(--light-gray);
}

.post-date {
  color: var(--gray);
  text-transform: lowercase;
}

table {
  table-layout: fixed;
  width: 100%;
}

table a {
  text-decoration: none;
}

td {
  padding: 7px 11px 7px 11px;
}

td p#subtitle {
  color: var(--gray);
}

td:first-child {
  padding-left: 0;
}

td:last-child {
  padding-right: 0;
}

.index-date {
  white-space: nowrap;
  vertical-align: baseline;
  color: var(--gray);
  text-transform: lowercase;
}

header {
  padding-bottom: 20px;
}

hr {
  max-width: 100%;
  text-align: left;
  margin: 20px 0 20px 0;
}

footer {
  padding-top: 30px;
}


blockquote {
  margin: 7px 0 7px 0;
}

blockquote p {
  font-style: italic;
  color: var(--darker);
  padding-left: 20px;
  border-left: 1.5px solid var(--medium-gray);
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  padding-bottom: 20px;
}

nav ul li {
  padding-right: 10px;
  display: inline-block;
}


ol {
  list-style: none;
  counter-reset: counter;
}
ol li {
  counter-increment: counter;
}
ol li:not(.footnotes)::before {
  content: counter(counter);
  border-radius: 50%;
  text-align: center;
  line-height: 1.2rem;
  color: var(--darker);
  background: var(--medium-gray);
  width: 18px;
  height: 18px;
  font-size: 11px;
  margin-right: .5rem;
  box-sizing: content-box;
  display: inline-block;
  transform: translate(-1.9rem, 0.7rem);
  position: absolute;
}

.footnote-ref a {
  text-decoration: none;
  color: var(--light);
  border-radius: 50%;
  text-align: center;
  line-height: 0.8rem;
  background: var(--cyan);
  width: 0.8rem;
  height: 0.8rem;
  font-size: 0.6rem;
  display: inline-block;
}

.footnotes > ol li::before {
  content: counter(counter);
  border-radius: 50%;
  text-align: center;
  line-height: 1.2rem;
  color: var(--light);
  background: var(--cyan);
  width: 18px;
  height: 18px;
  font-size: 11px;
  margin-right: .5rem;
  box-sizing: content-box;
  display: inline-block;
  position: relative;
  transform: unset;
}

.footnotes ol li:not(:last-child) {
  padding-bottom: 2rem;
}

@media (max-width: 385px) {
  .footer {
    column-count: 1;
  }

  table, thead, tbody, th, td, tr { 
    display: block; 
  }
  td {
    padding: 0;
    text-align: left;
  }
  tr {
    padding: 10px 0 10px 0;
  }
}

