/* Base styles */
:root {
  --red: #C5004A;
  --darkred: #7F0036;
  --lightgray: #e0e0e0;
  --gray: #C0C0C0;
  --navy: #17050F;
  --blue: #082840;
  --white: #fff;

  --text-color: hsla(0,0%,0%,0.8);
  --base-font-size: 18px;
  --base-line-height: 1.65rem;

  --article-width: 41.111em; /* 740px */
  --mobile-break: 550px;

  --brand-color-lightest: #8CDC8C;
  --brand-color-lighter: #5CC45C;
  --brand-color: #39A939;
  --brand-color-dark: #1F911F;
  --brand-color-darker: #0A730A;
  --brand-color-darkest: #073907;
}
@media all and (max-width: 41.111em) {
  :root {
    --article-width: calc(100vw - 2em);
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  font-family: Roboto,sans-serif;
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  color: var(--text-color);
  background-color: var(--brand-color-darkest);
  height: 100%;
  display: flex;
  flex-direction: column;
}
main {
  min-width: var(--article-width);
  max-width: calc(var(--article-width) + 2em);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--white);
  flex: 1;
}
p:last-child {
  margin-bottom: 0;
}
h1, h2, h3 {
  padding: 0;
  margin: 0;
  font-family: Fjalla One,sans-serif;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}
h1 {
  line-height: 1.25em;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.5em;
  margin-bottom: 0;
}
h3 {
  font-size: 1.25em;
  line-height: 1.25em;
}
a {
  text-decoration: none;
  color: var(--brand-color);
}
a:hover {
  color: var(--brand-color-lighter);
  text-decoration: underline;
}
a:active {
  color: var(--brand-color-lightest);
}
a:visited {
  color: var(--brand-color-darker);
}
pre,
code {
  font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
  line-height: 1.5;
  background-color: var(--lightgray);
}
pre {
  font-size: 14px;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1em;
  margin: .5em 0;
  background-color: #f6f6f6;
}
blockquote {
  border-left: solid 4px hsla(0,0%,0%,0.4);
  margin-left: 0;
  padding-left: var(--base-line-height);
  color: hsla(0,0%,0%,0.4);
}
blockquote > p {
  color: hsla(0,0%,0%,0.4);
}
.highlight-line {
  display: block;
  padding: 0.125em 1em;
  text-decoration: none; /* override del, ins, mark defaults */
  color: inherit; /* override del, ins, mark defaults */
}
/* allow highlighting empty lines */
.highlight-line:empty:before {
  content: " ";
}
/* avoid double line breaks when using display: block; */
.highlight-line + br {
  display: none;
}
.highlight-line-isdir {
  color: #b0b0b0;
  background-color: #222;
}
.highlight-line-active {
  background-color: #444;
  background-color: hsla(0, 0%, 27%, .8);
}
.highlight-line-add {
  background-color: #45844b;
}
.highlight-line-remove {
  background-color: #902f2f;
}
.datetime {
  font-size: .75em;
  color: hsla(0,0%,0%,0.6);
}

/* Header */
header {
  background-color: var(--brand-color);
  color: var(--white);
  display: flex;
}
header:after {
  content: "";
  display: table;
  clear: both;
}
header {
  color: var(--white);
}
.header-title {
}
.header-links {
  flex: 1;
}
.header-social {
  margin-right: 1em;
  display: flex;
  align-items: center;
}
@media all and (max-width: 550px) {
  .header-title {
    flex: 1;
  }
  .header-links {
    position: absolute;
    margin-top: 38px;
    background: var(--brand-color-dark);
    width: 100%;
  }
}
.home {
  padding: 0 1rem;
  margin: .25rem 0; /* 16px /16 */
  font-size: 1em; /* 16px /16 */
  display: flex;
  color: var(--white);
}
.home:visited {
  color: var(--white);
}
.home img {
  border-radius: 50%;
  height: 1.5em;
  margin-right: .5em;
}
.home :link:not(:hover) {
  text-decoration: none;
}

/* Nav */
.nav {
  padding: 0;
  list-style: none;
  margin: .25rem;
  margin-left: 1em;
}
.nav-item {
  display: inline-block;
  margin-right: 1em;
}
.nav-item a {
  color: var(--white);
}
.nav-item a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  font-weight: 700;
  text-decoration: underline;
}

/* Social */
.social-icon {
  fill: var(--white);
  height: 1.5em;
}
.social-link {
  height: 1.5em;
  width: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background-color: var(--brand-color);
  color: var(--white);
  padding: 1em;
  height: 75px;
}
footer:after {
  content: "";
  display: table;
  clear: both;
}
.license-container {
  display: flex;
  justify-content: center;
  /* margin-top: var(--base-line-height); */
  font-size: 0.7em;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
.cc-badge {
  align-self: center;
}
.cc-badge img {
  margin-bottom: 0;
}
.license {
  color: #fff;
}
.license a {
  color: #fff;
}
.licenses {
  line-height: calc(var(--base-line-height) / 1.75);
  margin-left: 8px;
  color: #fff;
}
.licenses a {
  color: #fff;
}

/* Posts list */
.home-postlist {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--lightgray);
}
.home-postlist-link {
  font-size: 1.1875em;
  font-weight: 700;
}
.home-postlist-readmore {
  display: block;
  text-align: right;
  margin-top: -1em;
  margin-bottom: 1em;
}
.postlist {
  list-style: none;
  padding: 0;
  line-height: 1.25em;
}
.postlist-item {
  margin-bottom: 1em;
}
.postlist-link {
  display: block;
}

/* Post */
.tmpl-post,
.tmpl-home {
  padding: 1em;
}
@media all and (max-width: 550px) {
  .tmpl-post,
  .tmpl-home {
    padding-top: 1.5em;
  }
}
.tmpl-post h1 {
  margin-bottom: .3em;
}
.tmpl-post img,
.tmpl-home img {
  max-width: var(--article-width);
}
.inline-image {
  float: left;
  margin-right: 1em;
  margin-top: 1em;
}
.image-group {
  width: min-content;
  margin: 0 auto;
}
.image-group > * {
  margin-bottom: 1.2em;
}
.center-image {
  text-align: center;
}
.captioned-image p:last-of-type {
  font-size: .8em;
  line-height: 1.5;
  margin: 0;
}
.photo-credit {
  font-size: 12px;
  margin-top: 15px;
}
.post-datetime {
  display: block;
}

/* Tags */
.post-tag {
  text-transform: uppercase;
  font-size: .75em;
  margin-left: 0.8em; /* 8px /10 */
}
.post-tags {
  border-top: 1px solid var(--lightgray);
  padding-top: .5em;
}
.post-tag-title {
  font-weight: bold;
}

/* Direct Links / Markdown Headers */
.direct-link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-anchor,
.header-anchor:visited {
  font-weight: bold;
  color: transparent;
}
h2 + .header-anchor {
  font-size: 1.5rem;
}
h2 + .header-anchor:focus,
h2 + .header-anchor:focus:visited,
:hover > h2 + .header-anchor,
:hover > h2 + .header-anchor:visited {
  color: #aaa;
}
h3 + .header-anchor {
  font-size: 1.25em;
}
h3 + .header-anchor:focus,
h3 + .header-anchor:focus:visited,
:hover > h3 + .header-anchor,
:hover > h3 + .header-anchor:visited {
  color: #aaa;
}
.direct-link .direct-link-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
