/* MARK: - Base style */

@font-face {
  font-family: Jetbrains;
  src: url(/fonts/JetBrainsMono.woff2);
}
@font-face {
  font-family: Inter;
  src: url(/fonts/Inter-Regular.woff2);
}
@font-face {
  font-family: Inter;
  src: url(/fonts/Inter-Bold.woff2);
  font-weight: bold;
}

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

body {
  background: #fff;
  color: #000;
  font-family: Inter, Arial;
  text-align: center;
}

.readable-width {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px;
  text-align: left;
}

header {
  background-color: #e5f5fc;
}

header .readable-width {
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

header a {
  text-decoration: none;
}

header .site-name {
  font-size: 1.5em;
  color: #000;
  font-weight: bold;
}

nav {
  margin-top: 12px;
}

nav li {
  display: inline-block;
  margin: 0 7px;
  line-height: 1.5em;
}

nav li a.selected {
  text-decoration: underline;
}

h1 {
  margin: 20px 12px;
  font-size: 2em;
}

h2 {
	margin: 20px 8px;
}

h3 {
	margin: 12px 8px;
}

h4 {
	margin: 12px 8px;
}

h5 {
	margin: 12px 0;
}

h6 {
	margin: 12px 0;
}

p {
  margin-bottom: 10px;
  line-height: 1.6em;
}

blockquote {
	border-left: 2px solid #32ade6;
	margin: 1.5em 10px;
	padding: 0.5em 10px;
}

blockquote p {
	display: inline;
}

ul,
ol {
	margin-left: 1.5em;
	padding-left: 0.5em;
  line-height: 1.6em;
}

a {
  color: inherit;
}

.social-icon {
  margin-right: 4px;
  height: 32px;
  width: 32px;
}

a:hover,
a p:hover {
  opacity: 70%;
}

a img:hover {
  opacity: 90%;
}

article img {
  max-width: 90%;
  min-height: 100px; /* Used to show Alt Text in Safari in more cases*/
  max-height: 800px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  margin-bottom: 16px;
}

hr {
  border: 0px;
  border-top: 1px solid #000;
  padding-top: 20px;
  width: 40%;
  min-width: 100px;
  margin: 0 auto;
  margin: 0 auto;
}

.item-list > li {
  display: block;
  padding: 20px;
  border-radius: 20px;
  background-color: #cceaf9;
  margin-bottom: 20px;
}

.item-list > li:last-child {
  margin-bottom: 0;
}

.item-list h1 {
  margin-bottom: 15px;
  font-size: 1.3em;
}

.item-list p {
  margin-bottom: 0;
}

.tag-list {
  margin-bottom: 15px;
	margin-left: 0px;
	padding-left: 0px;
}

.tag-list li,
.tag {
  display: inline-block;
  background-color: #32ade6;
  color: #000;
  padding: 4px 6px;
  border-radius: 5px;
  margin-right: 5px;
}

.tag-list a,
.tag a {
  text-decoration: none;
}

.item-page .tag-list {
  display: inline-block;
}

.content {
  margin-bottom: 40px;
}

.browse-all {
  display: block;
  margin-bottom: 30px;
}

.all-tags li {
  font-size: 1.4em;
  margin-right: 10px;
  padding: 6px 10px;
}

footer {
  color: #8a8a8a;
}

/* MARK: - Dark Mode */
@media (prefers-color-scheme: dark) {
	blockquote {
		border-left: 2px solid #64d2ff;
	}

  code {
    background-color: #565657;
    color: #000;
  }
  img.social-icon {
    filter: invert(100%);
  }
  hr {
    border-top: 1px solid #ddd;
  }
  .tag {
    background-color: #64d2ff;
  }
  body {
    background-color: #222;
  }

  body,
  header .site-name {
    color: #ddd;
  }

  .item-list > li {
    background-color: #324e59;
  }

  header {
    background-color: #000;
  }
}

/* MARK: - iPhone */
@media (max-width: 600px) {
  article img {
    max-width: 100%;
    max-height: 450px;
  }
  .readable-width {
    padding: 40px 20px;
  }
}

/* MARK: - Header style */
.column {
  float: left;
  padding-right: 20px;
  padding-left: 20px;
}
.column:after {
  float: left;
  text-align: left;
  width: 50%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* MARK: - Code style */

code {
  font-family: Jetbrains, monospace;
  font-size: 0.95em;
  margin-bottom: 1.5em;
  background-color: #d9d9d9;
  padding: 1px 4px;
  border-radius: 8px;
  tab-size: 2;
}

pre {
  margin-bottom: 1.5em;
  background-color: #1a1a1a;
  padding: 8px;
  border-radius: 16px;
}

pre code {
  display: block;
  padding: 8px 12px;
  color: #a9bcbc;
  margin-bottom: 0;
  background-color: #1a1a1a;
  line-height: 1.4em;
  font-size: 0.95em;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

pre code .keyword {
  color: #e73289;
}

pre code .type {
  color: #8281ca;
}

pre code .call {
  color: #348fe5;
}

pre code .property {
  color: #21ab9d;
}

pre code .number {
  color: #db6f57;
}

pre code .string {
  color: #fa641e;
}

pre code .comment {
  color: #6b8a94;
}

pre code .dotAccess {
  color: #92b300;
}

pre code .preprocessing {
  color: #b68a00;
}
