﻿.cards {
  display: grid;
  grid-template-rows: auto;
  gap: 24px;
  padding: 12px 0
}

@media all and (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr))
  }
}

@media all and (max-width: 640px) {
  .cards {
    grid-template-columns: repeat(auto-fill, 1fr)
  }
}

.card {
  min-height: 100px;
  background: var(--bg-2);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden
}

.card-info {
  padding: 0 24px 24px 24px
}

.card-title {
  margin-top: .7em
}

.card-image {
  border: unset;
  width: 100%
}

.card-image-placeholder {
  height: 12px;
  width: 100%
}

.card-description {
  margin-top: .5em;
  overflow: hidden
}

@media all and (max-width: 720px) {
  .cards {
    gap: 18px
  }
}

code {
  background-color: var(--bg-1);
  padding: .1em .2em;
  border-radius: 5px;
  border: 1px solid var(--border-color)
}

pre {
  border-radius: 5px;
  border: 1px solid var(--border-color);
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em
}

pre code {
  background-color: rgba(0, 0, 0, 0);
  color: inherit;
  font-size: 100%;
  padding: 0;
  border: 0
}

pre {
  font-family: var(--code-font);
  position: relative;
  -webkit-overflow-scrolling: touch
}

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

pre code[class*=language-]::before {
  background: #000;
  border-radius: 0 0 .25rem .25rem;
  color: #fff;
  font-size: 12px;
  letter-spacing: .025rem;
  padding: .1rem .5rem;
  position: absolute;
  right: .1rem;
  margin-top: .1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0
}

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

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

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

pre code[class*=language-json]::before {
  content: "json";
  background: #1e90ff;
  color: #000
}

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

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

pre code[class*=language-go]::before {
  content: "Go";
  background: cyan;
  color: #4169e1
}

pre code[class*=language-md]::before, pre code[class*=language-md]::before {
  content: "Markdown";
  background: #4169e1;
  color: #f5f5f5
}

pre code[class*=language-rust]::before, pre code[class*=language-rs]::before {
  content: "rust";
  background: #fff8f6;
  color: #ff4647
}

.page-header {
  font-size: 2.5em;
  line-height: 100%;
  font-family: var(--header-font);
  margin: 0.8rem 0px 1rem 0px
}

.centered-header {
  font-family: var(--header-font);
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 4em
}

header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1em 0
}

header .main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.5rem;
  margin-bottom: 10px
}

.socials {
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 6px
}

.social {
  border-bottom: unset;
  background-image: unset;
  padding: 2px
}

.social>img {
  border: unset;
  width: 24px;
  height: 24px
}

.meta {
  color: #999;
  letter-spacing: -.5px
}

#dark-mode-toggle>img {
  display: none;
  width: 15px;
  height: 15px;
  border: unset
}

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

h1::before {
  color: var(--primary-color);
  content: "# "
}

h2::before {
  color: var(--primary-color);
  content: "## "
}

h3::before {
  color: var(--primary-color);
  content: "### "
}

h4::before {
  color: var(--primary-color);
  content: "#### "
}

h5::before {
  color: var(--primary-color);
  content: "##### "
}

h6::before {
  color: var(--primary-color);
  content: "###### "
}

img {
  border: 3px solid #ececec;
  max-width: 100%;
  transform: scale(1.6)
}

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: "↳ "
}

svg {
  max-height: 15px
}

.primary-color {
  color: var(--primary-color)
}

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

::-moz-selection {
  background: var(--primary-color);
  color: var(--hover-color);
  text-shadow: none
}

::selection {
  background: var(--primary-color);
  color: var(--hover-color)
}

p {
  line-height: 1.5
}

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

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

a {
  border-bottom: 3px solid var(--primary-color);
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 1
}

a:hover {
  background-color: var(--primary-color);
  color: var(--hover-color)
}

time {
  color: grey
}

.list>ul {
  margin: 0;
  padding: 1rem 0 0 0
}

.list-item {
  margin-bottom: 30px;
  list-style-type: none
}

@media all and (max-width: 640px) {
  .post-header {
    display: grid;
    grid-template-rows: auto 1fr
  }

  .post-header h1 {
    margin-top: 0
  }

  .post-header h1 a {
    border-bottom: none
  }
}

@media all and (min-width: 640px) {
  .post-header {
    display: grid;
    gap: 1rem;
    grid-row-gap: 1.5rem;
    grid-template-columns: auto 1fr
  }

  .post-header h1 {
    margin: 0;
    font-size: 130%
  }

  .post-header h1 a {
    border-bottom: none
  }
}

#dark-mode-toggle {
  border-bottom: none
}

#dark-mode-toggle:hover {
  background-color: rgba(0, 0, 0, 0)
}

table {
  border-spacing: 0;
  border-collapse: collapse
}

table th {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
  font-size: large
}

table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5
}

.tags ul {
  margin-left: 0;
  padding-left: 0
}

.tags li::before {
  content: "🏷 "
}

.tags li {
  list-style-type: none
}

.tags a {
  border-bottom: 3px solid var(--primary-color)
}

.tags a:hover {
  color: var(--hover_color);
  background-color: var(--primary-color)
}

:root {
  --border-color: var(--bg-1);
  --text-font: "Jetbrains Mono";
  --header-font: "Space Grotesk", "Helvetica", sans-serif;
  --code-font: "Jetbrains Mono"
}

html {
  background-color: var(--bg-0);
  color: var(--text-0);
  font-family: var(--text-font);
  line-height: 1.6em
}

.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  word-wrap: break-word
}

@media all and (min-width: 640px) {
  html {
    font-size: 16.5px
  }
}

@media all and (min-width: 720px) {
  html {
    font-size: 17px
  }
}

@media all and (min-width: 960px) {
  html {
    font-size: 18px
  }
}