/* ================================================
   bgreen.lol stylesheet
   Migrated from Blot theme to static CSS
   ================================================ */

/* Font face - Golos Text from Google Fonts loaded via <link> in head */

:root {
  --text-color: #000000;
  --bg-color: #FFFFFF;
  --accent-color: #200220;
  --text-rgb: 0, 0, 0;
  --accent-rgb: 32, 2, 32;
  --link-color: #1565C0;
  --muted-color: #aeaeae;
  --max-width: 800px;
  --font-stack: 'Golos Text', sans-serif;
  --mono-stack: Consolas, monaco, monospace;
  --scrollbar-width: 0px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #ffffff;
    --bg-color: #10100a;
    --accent-color: #8e93ae;
    --text-rgb: 255, 255, 255;
    --accent-rgb: 142, 147, 174;
    --link-color: #8e93ae;
    --muted-color: #aeaeae;
  }
}

/* Syntax highlighting (stackoverflow-light) */
.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-attr,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-section,.hljs-selector-tag{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-number,.hljs-quote,.hljs-selector-id,.hljs-template-tag,.hljs-type{color:#b75501}.hljs-selector-class{color:#015692}.hljs-link,.hljs-regexp,.hljs-selector-attr,.hljs-string,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-literal,.hljs-title{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}pre code.hljs{display:block;overflow:auto;padding:1em;margin:1em 0;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}.hljs,code.hljs{padding:0;margin:0}

.clWrap{
	width:80%;
	margin:0 auto;
	overflow:hidden;
}
iframe {
	padding:0;
	width:100%;
	overflow:hidden;
	border:none;
}

.fa-brands, .fa-solid {
	font-size:22px;
    padding: 10px 10px 0 0;
    color: var(--text-color);
}

html {
  font-family: var(--font-stack);
  font-size: 18px;
  line-height: 1.6em;
  text-rendering: optimizeLegibility;
}

body {
  color: var(--text-color);
  background: var(--bg-color);
  word-wrap: break-word;
  margin: 0;
  position: relative;
  min-height: 100vh;
  padding: 0;
}

/* :: Navigation */

.navigation {
  padding: 2em 0 0;
  background: var(--bg-color);
  box-sizing: border-box;
  z-index: 100;
}

.navigation .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}

.navigation a {margin-right: 1.1em;color: var(--text-color);text-decoration: none; font-weight: normal;}
.navigation .links a {color: var(--text-color);}
.navigation a:last-child {margin-right: 0}
.navigation a {opacity: 0.9;transition: opacity,color 0.2s ease; font-size:1em; line-height: 1.5em;}
.navigation:hover a {opacity: 1}
.navigation a:hover {color: var(--text-color);}

.navigation .links {
  display: flex;
  margin: 0;
  align-content: baseline;
  flex-wrap: wrap;
}

.links a {
  order: 1;
  font-size: 16px;
}

img[src*='#release'] {
	float: right;
    width: 200px;
    margin-left: 20px;
}

td img {
    width: 40em;
    text-align:center;
}

#logo {
  color: var(--text-color);
  flex-shrink: 0;
  margin-right: 2em;
  font-weight: 400;
  line-height: 1.8em;
  font-size: 1.65em;
}

#logo:hover {opacity: 0.8}

/*  :: General layout */

.main {max-width: var(--max-width);margin: 0 auto;margin-top: 2em}

.container {
  box-sizing: border-box;
  max-width: var(--max-width);
  padding-left: 1em;
  padding-right: 1em;
  margin: 0 auto;
}

.entry {margin: 0 0 2em}

/* :: Post and page layout */

/* Used underneath the entry */
.left-label {padding-left: 140px;padding-top: 1rem;font-size:0.875em;position: relative}
.post-meta {padding-bottom: 1rem;}
.left-label .tag {margin:0 1rem 0 0; font-size: inherit;}
.left-label .rounded-link {font-size: inherit;}
.footnotes > ol:before,
.left-label h5 {font-size: 0.875em;font-weight: 600;color:rgba(var(--text-rgb), 0.5);margin-bottom: 24px;}
.left-label h5 {margin-top: 1em;position: absolute;top: 0;left: 0}

/* Used for backlinks and next/previous links */
.rounded-link {
  border:0px solid rgba(var(--text-rgb), 0.1);
  text-decoration: none;color:inherit;display: block;padding-bottom: 1rem;
  border-radius: 0;padding:0;font-size:0.9em
}
.rounded-link + .rounded-link {margin-top: 1em}
.rounded-link .title {display: block;color:var(--accent-color);}
.rounded-link .summary {opacity: 0.8;line-height:1.5em;display: block;margin-top: 0.5em;font-weight:normal;}
.rounded-link .summary:empty {display: none}
.rounded-link:hover {border-color: var(--accent-color);opacity: 1}

.clear {width: 100%;clear: both;float: none;display: block;height: 0}

.margin {
  position: absolute;
  box-sizing: border-box;
  width: 33%;
  left: 100%;
  padding-left: 2em;
}

.margin blockquote {margin: 3px 0;padding: 3px 6px;font-size: .875em;line-height:18px;}
.margin blockquote p {margin: 0}

.margin p,
.column p {margin-top: 0}

.margin img,
.column img {margin-top: 6px}

.column {text-align: center;margin:0px auto;}

.margin p {font-size: 0.8em;color:rgba(var(--text-rgb), 0.5);}

.wide {
    width: calc(100vw - var(--scrollbar-width) - 2em);
    margin-left: calc((100vw - var(--scrollbar-width) - var(--max-width)) * -0.5);
    margin-right: 0;
}

.wide img {display: block;margin-left: auto;margin-right: auto;}

@media screen and (max-width: 1146px) {
  .wide {
    margin-left: -2em;
  }
}

.wide.left, .wide.right {
  width: calc(100vw - var(--scrollbar-width) - 2em);
  margin-left: calc((100vw - var(--scrollbar-width) - var(--max-width)) * -0.5);
  margin-right: -25%;
  float: none;
  overflow: auto;
}

.column {
  box-sizing: border-box;
  float: left;
}

.column .caption {margin-bottom: 6px}

.column.two + .column.two {
  padding: 0 0 0 0px;
  text-align: center;
}

.column.three {width: 33.333333%;padding: 0 16px 0 0;}
.column.three + .column.three {padding: 0 8px}
.column.three + .column.three + .column.three {padding: 0 0 0 16px}

.column.four {width: 25%;padding-right: 18px;}
.column.four + .column.four {padding: 0 12px 0 6px;}
.column.four + .column.four + .column.four {padding: 0 6px 0 12px;}
.column.four + .column.four + .column.four + .column.four {padding: 0 0 0 18px;}

.column h1,
.column h2 {margin-bottom: -12px}

.right {float: right;}
.left {float: left;}

/* :: Typography */

p, li {
  position: relative;
  margin: 1.666em 0;
  line-height: 1.5em;
}

h1 {font-size: 1.5625em;line-height: 36px;font-weight: 600;margin-bottom: 24px;text-wrap:balance}

h1.entries {margin-top:0px;}

h2, h3, h4, h5, h6 {font-size: 1.25em;font-weight: bold;line-height: 24px;margin: 24px 0 24px;text-wrap:balance}

blockquote {
  padding: 0 0 0 12px;
  color: var(--text-color);
  opacity: 0.666;
}

.small, .caption {font-size: 1rem;color: var(--text-color);font-weight: 400;opacity:0.9}

.caption {
  display: block;
  margin: 1rem auto 1.6666rem;
  max-width: var(--max-width);
  font-style: normal;
  text-align: center;
}

big {color: var(--text-color);font-size: 2em;line-height: 48px;display: block;}

/* LINKS */

a, a.small {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  opacity: 0.75;
	text-decoration: underline;
}

a::selection {
  background: #b3d4fd;
}

a::-moz-selection {
  background: #b3d4fd;
}

a:active {
  opacity: 0.5
}

a:focus {
  background: rgba(var(--accent-rgb), 0.1);
  text-decoration: underline;
}

a.tag {
  margin-right: 1.33em;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 400;
}

a.small {
	font-size:14px;
}

/* RULE */

hr {width: 100%;opacity:0.1;margin: 24px auto -1px;border: none;border-bottom: 3px double var(--text-color); padding-bottom: 1.4em;text-shadow: none;box-shadow: none;}

/* CODE */

code {
  font-family: var(--mono-stack);
  margin: 0;
  font-size: 0.85em;
  background: rgba(0,0,0,.03);
  border-radius: 3px;
  line-height: 24px;
}

p code {
  line-height: 1em;
  padding: 2px;
  margin-left: -2px;
  display: inline-block;
}

pre code {
  display: block;
  white-space: pre-wrap;
}

pre code {
  display: block;padding: 12px 18px;
  margin: 0 0 0 0;
  background-color: rgba(0,0,0,.02);
}

/* TABLES */

table {
  margin-top: 1.5em;
  margin-bottom: 2.5em;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 90%;
  border-top: 1px solid rgba(var(--text-rgb), 0.1);
}

tr {border-bottom: 0px solid rgba(var(--text-rgb), 0.1)}

th {
  text-align: left;
  font-weight: 600;
  padding: 0.5em 1em 0.5em 0;
}

td {
  padding: 0.5em 1em 0.5em 0;
  line-height: 1.3;
}

/* LISTS */

ul, ol {
  margin-left: 0;
  padding-left: 1.25em;
  list-style-position: outside;
  margin-bottom: 1.6667em;
}

li {padding-left: 0.75em}

ul {list-style: square;}

ul.task-list { list-style-type: none; }

ul ul, ol ul, ol ol, ul ol {margin-bottom: 0}

li {margin: 0}

/* IMAGES */

img {vertical-align: middle;max-width: 100%;height: auto;}

.image {
  position: relative;
  height: 0;
  padding: 0 0 35.504201681%;
  max-width: 100%;margin: 0 auto;display: block;
}

.image img {width: 100%}

.image_container {display: block}

.wide .image_container {margin: 0 auto}
.wide p {margin-top: 0}

/* VIDEOS & tweets */

iframe {width: 100%;}

/* Only apply vertical margin to direct descendants */
.entry > iframe {margin: 24px 0!important;}

/* MATH */
.has-katex {text-align: center;}
.katex {font-size: 1.05em;}

.date {margin-top: 10px;text-decoration: none;}
.date:empty {display: none;}

/* Post rows - hanging indent for long titles */
.post-row {
  margin-left: 1.5em;
  text-indent: -1.5em;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 3em 0 3em;
  font-size: .875em;color: var(--text-color);opacity:0.5
}

.pagination a {margin: 0 1em;background: none}

/* Footnotes */
.entry.on-index-page {margin: 0}
.entry.on-index-page .footnotes {display: none;}

.footnotes > ol:before {
     content: "Footnotes";
     position: absolute;
     top: 0;
     left: 0;
}

.footnotes {
    margin-top: 4rem
}

.footnotes > ol {
    position:relative;
    padding: 0;
    font-size: 0.875em;
    opacity: 0.8;
    padding-left: 110px
}
.footnotes > ol li {
    margin-left: 20px;
    padding-left: 10px
}
.footnotes > ol li::marker {
     color: var(--text-color);
}
 .footnote-back {text-decoration: none;margin-left: 0.5em}
 .footnote-back:before {
    content: "["
}
 .footnote-back:after {
    content: "]"
}
 .footnote-ref {
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
 .footnote-ref sup {
    line-height: 0
}
 .footnote-ref sup:before {
     content: "["
}
 .footnote-ref sup:after {
     content: "]"
}

/* The fixed header interferes with the correct scroll offset for footnotes */
.entry [id] {
  scroll-margin-top: 8rem;
}

hr.minimal, .footnotes hr {border:none;border-bottom:1px solid rgba(var(--text-rgb), 0.15);margin-top: 1.5em;margin-bottom: 1.5em;padding-bottom:0;opacity:1;}

/* :: Search */

form[action="/search"] input {
  font-size: 16px;
  font-family: var(--font-stack);
  padding: .5em 1em;
  border-radius: 0.5em;
  width: 100%;
  color: var(--accent-color);
  box-sizing: border-box;
  background: var(--bg-color);
  margin: 0;
  border: 0.12em solid rgba(var(--text-rgb), 0.25);
}

form[action="/search"] input:focus {
  outline: none;
  border-color: var(--accent-color);
}

::placeholder {
  color: rgba(var(--text-rgb), 0.5);
}

/* search results */

a.full-line {
  display: block;
  color: inherit;
  text-decoration: none;
  padding-bottom: 8px;
}

a.full-line em {
  color: var(--accent-color);
  font-style: normal;
  text-decoration: none;
  padding-bottom:1.5em;
}

/* subscribe form */

input[type="email"],
input[type="submit"] {
  font:inherit;
  font-size:16px;padding: 6px 20px;
  margin: 1em 0 0;
  margin-right: 0px;
  border: 1px solid #333;
}

input[type="email"] {
  background: none;
  max-width: 100%;
  min-width: 120px;
  box-shadow: inset 0 1px 2px 0 rgba(0,0,0,.075);
  color: var(--text-color);
}

input[type="submit"] {
  padding: 6px 12px;
  color: #333;
  background-color: #e0e0e0;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}

iframe {
	border: 0px;
}

@media (prefers-color-scheme: dark) {
  hr {color: #aeaeae; border-bottom-color: #aeaeae;}
  .footnotes>ol:before, .left-label h5, ::placeholder {color: #aeaeae;}
  code {background: rgba(255,255,255,.08);}
  pre code {background-color: rgba(255,255,255,.05);}
  input[type="submit"] {
    color: var(--text-color);
    background-color: #333;
    border-color: #555;
  }
  input[type="email"] {
    border-color: #555;
  }
}
