/* Markdown */
@import url(webmention.css);
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,400;1,100&display=swap');

:root {
  --maincolor: #6B3FA0;
  --textcolor: #231B1B;
  --bordercl: #6B3FA0;
  --calloutcolor: #EAE2F3;
  --hovercolor: #6B3FA0;
  --darkMaincolor: #6B3FA0;
  --testColor: black;
}

html {
  color: var(--textcolor);
  background-color: #fafafa;
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.6em;
}

body {
  display: block;
  margin: 8px;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.goat {
  display: block;
  margin: 0 auto;
  border: solid var(--maincolor);
}

::selection {
  background: var(--maincolor);
  color: #fafafa;
}

p {
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  line-height: 1.5;
}

hr {
  border: 0;
  border-top: 3px dotted var(--bordercl);
  margin: 1em 0;
}

blockquote {
  border-left: 3px solid var(--bordercl);
  color: #737373;
  margin: 0;
  padding-left: 1em;
}

a {
  border-bottom: 2px solid var(--maincolor);
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  background-color: #fafafa;
  color: #fafafa;
}

.dream {
  font-family: 'Nice Dream Come True', "sans-serif"
}

a:hover {
  background-color: var(--hovercolor);
  color: #fafafa;
}

.posts {
  list-style: none;
  padding-left: 2ch;
}

.miniposts {
  text-indent: -2ch;
}

/* Images */
img {
  max-width: 100%;
}

main img:not(a img) {
  display: block;
  margin: 0 auto;
  border: solid var(--maincolor);
}

.loader {
  animation-name: spin;
  animation-duration: 5000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.logo img {
  border: none;
  opacity: 1;
}

.icon {
  max-height: 1.3em;
  border: none;
  display: inline-flex;
  position: relative;
  top: 7px;
}

.float {
  position: fixed;
  bottom: 70px;
  right: 20px;
}

.navbox {
  text-align: right;
  line-height: 2;
}

@media (max-width:500px) {
  .float {
    display: none;
  }

  .logo img {
    display: none;
  }

  .navbox {
    text-align: center;
    margin: auto;
  }
}

@media (max-width: 520px) {
  div#lbwrapper {
    display: none;
  }

  .weather {
    display: none;
  }

  .list-date {
    display: none;
  }
}

.logo img {
  max-width: 35%;
  border-bottom: 2px solid #fafafa;
}

.logo img:hover {
  margin-bottom: 0px;
  border-bottom: 2px solid var(--maincolor);
}

.logo a {
  border-bottom: none;
}

figure {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}

figure img {
  max-height: 500px;
}

@media screen and (min-width: 600px) {
  figure {
    padding: 0 40px;
  }
}

figure h4 {
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1em;
}

figure h4::before {
  content: "↳ ";
}

/* Code blocks */
code {
  background-color: #f1f1f1;
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  padding: 0.1em 0.2em;
}

pre {
  background-color: #ececec;
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}

.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 100%;
  padding: 0;
}

/* Containers */
.content {
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  position: relative;
  padding: 0 1ch;
  word-wrap: break-word;
}

/* Header */
header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 1em 0;
}

header .main {
  font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1.2rem;
  margin-top: 2em;
}

h1::before {
  color: var(--maincolor);
  content: "// ";
}

h2::before {
  color: var(--maincolor);
  content: "↳  ";
}

h3::before {
  color: var(--maincolor);
  content: "// ";
}

h4::before {
  color: var(--maincolor);
  content: "// ";
}

h5::before {
  color: var(--maincolor);
  content: "// ";
}

h6::before {
  color: var(--maincolor);
  content: "// ";
}

/* Footer */
footer {
  margin-top: 1em;
}

/* Common */
.title h1 {
  margin-bottom: 0;
}

time {
  color: grey;
}

/* Posts */
article .title {
  margin-bottom: 1em;
}

/* Paginator */
.page-next {
  float: right;
}

.page-prev {
  float: left;
}

.paginator {
  margin-top: 2em;
}

/* Callout */
.callout {
  background-color: var(--calloutcolor);
  color: var(--textcolor);
  padding: 0.1em;
  margin-top: 1em;
  text-align: center;
}

.callout p {
  font-family: "IBM Plex Mono", monospace;
  margin: 0;
}

.callout a {
  border-bottom: 3px solid var(--maincolor);
}

.callout a:hover {
  color: #fafafa;
  background-color: var(--maincolor);
}

.tags a {
  border-bottom: 3px solid var(--maincolor);
}

.tags a:hover {
  color: white;
  background-color: var(--hovercolor);
}

.feather {
  max-height: 15px;
}

applause-button svg {
  max-height: none;
}

.soc:hover {
  color: white;
}

.draft-label {
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 6px;
  background-color: #f9f2f4;
}

.highlight {
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"]::before {
  background: black;
  border-radius: 0 0 0.25rem 0.25rem;
  color: white;
  font-size: 12px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0;
}

.highlight pre code[class="language-javaScript"]::before,
.highlight pre code[class="language-js"]::before {
  content: "js";
  background: #f7df1e;
  color: black;
}

.highlight pre code[class*="language-yml"]::before,
.highlight pre code[class*="language-yaml"]::before {
  content: "yaml";
  background: #f71e6a;
  color: white;
}

.highlight pre code[class*="language-shell"]::before,
.highlight pre code[class*="language-bash"]::before,
.highlight pre code[class*="language-sh"]::before {
  content: "shell";
  background: green;
  color: white;
}

.highlight pre code[class*="language-json"]::before {
  content: "json";
  background: dodgerblue;
  color: #000000;
}

.highlight pre code[class*="language-python"]::before,
.highlight pre code[class*="language-py"]::before {
  content: "py";
  background: blue;
  color: yellow;
}

.highlight pre code[class*="language-css"]::before {
  content: "css";
  background: cyan;
  color: black;
}

.highlight pre code[class*="language-go"]::before {
  content: "Go";
  background: cyan;
  color: royalblue;
}

.highlight pre code[class*="language-md"]::before,
.highlight pre code[class*="language-md"]::before {
  content: "Markdown";
  background: royalblue;
  color: whitesmoke;
}

.smalltext {
  font-size: 11px;
  text-align: right;
}

/* Wine Stuff */
.wine-label {
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  background-color: #f9f2f4;
}

.wine-header::before {
  color: var(--maincolor);
  content: "";
}

.slug {
  font-style: italic;
}

/* Forms */

input[type=email] {
  width: 80%;
  padding: 0.2rem;
  border: 2px solid black;
}

input[type=submit] {
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  width: 10%;
  border: none;
  background: none;
  border-bottom: 2px solid var(--maincolor);
  background-color: none;
  color: black;
}

input[type=submit]:hover {
  background-color: var(--maincolor);
  color: #fafafa;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: none;
}

/* CSS extracted from inline styles */
#split-mini {
  display: flex;
  flex-wrap: wrap;
}

.introduction {
  float: left;
  width: 45%;
}

.indiewebMain {
  float: right;
  padding-bottom: 1rem;
  width: 55%;
}

/* Extension for smaller viewports */
@media screen and (max-width: 800px) {
  #split-mini {
    flex-direction: column;
  }

  .introduction,
  .indiewebMain {
    width: 100%;
    float: none;
  }

  #cal-box {
    display: none;
  }
}

.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

#cal-box {
  border: solid var(--maincolor);
  text-align: center;
  width: 50%;
  margin: 20px auto;
}

#cal-box #calendar-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#cal-box input[type="button"] {
  background-color: none;
  background: none;
  color: black;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 5px 10px;
}

#cal-box table {
  width: 100%;
  table-layout: fixed;
}

#cal-box th,
#cal-box td {
  padding: 5px;
  text-align: center;
  width: calc(100% / 10);
  /* Equal width for 10 columns */
  box-sizing: border-box;
}

#cal-box th {
  font-size: 22px;
}

#cal-box td {
  font-size: 18px;
}

#cal-box td:hover::after {
  content: attr(data-gregorian);
  position: absolute;
  background-color: #fff;
  padding: 2px;
  font-size: 18px;
}

#cal-box .current-day {
  text-decoration: underline 2px rebeccapurple;
  color: rebeccapurple
}

#cal-box .fixed-box {
  position: relative;
  text-align: center;
  left: 10rem;
  width: 300px;
  outline: solid 2px rebeccapurple;
}

#cal-box .fixed-box.collapsed {
  height: 0;
  overflow: hidden;
}

sup,
sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}

sub {
  top: 0.4em;
}

a.footnote-ref::before {
  content: '[';
}

a.footnote-ref::after {
  content: ']';
}

.footnotes hr {
  display: none
}
