/* =========================
   Base reset & defaults
   ========================= */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #1f2933;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}


/* =========================
   Layout
   ========================= */

.container {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}


/* =========================
   Site title
   ========================= */

.site-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* =========================
   Social links
   ========================= */

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-left: 1rem;
}

.social-links a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #6b7280;
  transition: color 0.15s ease;
}

.social-links a:hover {
  color: #2563eb;
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* =========================
   Post GitHub link
   ========================= */

.post-github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  font-size: 0.95rem;
  color: #374151;
  text-decoration: none;
}

.post-github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.post-github-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* =========================
   Post previews
   ========================= */

.preview {
  display: block;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;

  border: 1px solid #e5e7eb;
  border-radius: 6px;

  text-decoration: none;
  color: inherit;

  transition: background-color 0.15s ease,
              border-color 0.15s ease;
}

.preview:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.preview-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2563eb;
}

.preview-body {
  margin: 0;
  color: #374151;

  display: -webkit-box;
  -webkit-line-clamp: 3;       /* number of lines shown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2563eb;
}

.preview:hover .read-more {
  text-decoration: underline;
}

/* =========================
   Back to home link
   ========================= */

.back-link {
  display: inline-block;

  text-decoration: none;
  color: #2563eb;
}

.back-link:hover {
  text-decoration: underline;
}

/* =========================
   Post pages (shared styles)
   ========================= */

h1 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

p {
  margin: 1rem 0;
}

a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}


/* =========================
   Code blocks
   ========================= */

pre {
  background: #f3f4f6;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;

  border-radius: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo,
               Monaco, Consolas, "Liberation Mono",
               "Courier New", monospace;
  font-size: 0.95rem;
}

/* =========================
   Figures & images
   ========================= */

.post-figure {
  margin: 2rem 0;
  text-align: center;
}

.post-figure img {
  max-width: 100%;
  height: auto;

  border-radius: 6px;
}

.post-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* =========================
   Small screens
   ========================= */

@media (max-width: 600px) {
  .container {
    margin: 2.5rem auto;
  }

  .site-title {
    font-size: 1.9rem;
  }
}

/* PrismJS 1.30.0
https://prismjs.com/download#themes=prism-okaidia&languages=clike+csharp */
/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	background: none;
	text-shadow: 0 1px rgba(0, 0, 0, 0.3);
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
	border-radius: 0.3em;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #272822;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #8292a2;
}

.token.punctuation {
	color: #f8f8f2;
}

.token.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #f92672;
}

.token.boolean,
.token.number {
	color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a6e22e;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #e6db74;
}

.token.keyword {
	color: #66d9ef;
}

.token.regex,
.token.important {
	color: #fd971f;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}