:root {
  --light-blue: #75f4ff;
  --blue: #00ace9;
  --dark-blue: #003eaa;
  --lighter-grey: #f0f0f4;
  --light-grey: #ededf0;
  --med-grey: #949999;
  --dark-grey: #5b5b66;
  --charcoal: #1b1b1b;
  --off-black: #15141a;
  --off-black2: #101414;
  --yellow: #e9ba00b0;
}

@font-face {
  font-family: 'Iosevka Web';
  font-display: swap;
  font-weight: 400;
  font-stretch: normal;
  font-style: normal;
  src: url('../../vendor/iosevka/Iosevka-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Iosevka Web';
  font-display: swap;
  font-weight: 400;
  font-stretch: normal;
  font-style: italic;
  src: url('../../vendor/iosevka/Iosevka-Italic.woff2') format('woff2');
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #fff;
  }
}

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

body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100vw;
  height: 100vh;

  font-family: "Iosevka Web", monospace;
  font-size: 1.3125em;
  line-height: 1.5;
  background-color: var(--charcoal);
  cursor: default;
}

*::selection {
  background-color: var(--dark-blue) !important;
}

body, a { color: var(--light-grey) }
a:hover, a:active { color: var(--light-blue) }
a {
  color: var(--blue);
  cursor: pointer;
}

header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 2rem;
}

header .toggle-effects { flex-shrink: 0 }

main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  overflow-y: auto;
}

.toggle-effects {
  background-color: var(--blue);
  width: 2.3rem;
  height: 2.3rem;
  color: var(--light-grey);
  border-color: var(--blue);
  font-weight: bold;
}

.content {
  width: 55vw;
}

.content p {
  text-indent: 3rem;
  margin: 1.5rem 0;
}

pre > code.hljs {
  border: 0.9rem solid var(--med-grey);
}

h1, h3, h5 { color: var(--blue) }
h2, h4, h6 { color: var(--yellow) }

h1 {
  font-size: 2.5em;
  margin: 0.5em 0;
}
.content h1:first-of-type { margin-top: 0 }

h2 {
  font-size: 2em;
  margin: 1em auto;
  text-align: center;
}

h3 {
  font-size: 1.5em;
  margin: 1.3333em auto;
  text-align: center;
}

h4 {
  font-size: 1.25em;
  font-style: italic;
  margin: 1.875em auto;
  text-align: center;
}

h5 {
  font-size: 1em;
  font-style: italic;
  margin: 2em auto;
  text-align: center;
}

h6 {
  font-size: 0.875em;
  font-style: italic;
  margin: 2.25em auto;
  text-align: center;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

.flex { flex: 1 1 auto }

.content h1:first-of-type { margin-top: 0 }

.post-list {
  margin: 1em 0;
  list-style: none;
}

.post-list:hover .post-link, .post-list:focus-within .post-link {
  opacity: 0.6;
}

.post-list li {
  margin-bottom: 1em;
}

.post-list .post-link {
  display: flex;
  color: var(--light-grey);
  flex-direction: column-reverse;
  text-decoration: none;
  padding: 0.25em;
  transition: opacity 0.125s ease-in-out;
}

.post-list .post-link > h1 {
  font-size: 1em;
  font-weight: normal;
  margin-bottom: 0;
  margin-top: 0;
  padding-right: 3rem;
}

.post-list .post-link:hover, .post-list .post-link:focus {
  opacity: 1 !important;
}

.post-list .post-link > h1 {
  color: inherit;
}

.post-title {
  text-align: center;
}

.post-date {
  color: var(--dark-grey);
  display: block;
  font-size: 0.825em;
  white-space: nowrap;
  text-transform: uppercase;
}
.post-link .post-date {
  padding: 0.5em 0;
}

.post-meta {
  margin-top: 2.5rem;
  text-align: right;
}

#socials {
  text-align: center;
  padding: 30px 0px;
  font-size: 1rem;
}

#socials > li {
  display: inline-block;
  padding: 0 5px;
}

#socials > li > a {
  color: var(--med-grey);
  text-decoration: none;
}

@media (max-width: 768px) {
  .content {
    width: 90vw;
  }
  .invisible-small { display: none }
}

@media (min-width: 768px) {
  .post-list .post-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}
