@font-face {
  font-family: 'Menlo Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Menlo Regular'), url('/Menlo-Regular.woff') format('woff');
}

:root {
  /* Landing Page Variables */
  --primary-color: #818cf8;
  --primary-hover: #4f46e5;
  --background-dark: #0f172a;
  --background-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-glow: rgba(99, 102, 241, 0.5);
  --font-family: 'Outfit', sans-serif;
  --transition-speed: 0.3s;

  /* Mappings to existing Blog variables */
  --color-dark: var(--text-main);
  --color-grey: var(--text-muted);
  --table-border-color: #334155;
  --tr-even-background-color: var(--background-card);
  --color-light-grey: #334155;
  --color-light: var(--background-dark);
  --code-bg: var(--background-card);
  --font-sans: var(--font-family);
  --font-mono: 'Menlo Regular', monospace;
  --font-serif: serif;
  --font-size: 1rem;
  --font-size-large: 1.125rem;
  --border: #334155;
  --margin: 0 0 1rem;
  --breakpoint-sm: 800px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--background-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: var(--font-size);
}

@media screen and (min-width: var(--breakpoint-sm)) {
  html {
    font-size: var(--font-size) -large;
  }
}

body {
  line-height: 1.6;
  background-color: var(--background-dark);
  color: var(--text-main);
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

h1,
p,
figure,
pre,
blockquote {
  margin: var(--margin);
  margin-bottom: 30px;
}

hr {
  display: block;
  width: 100%;
  height: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--color-grey);
}

p,
ol,
ul {
  font-weight: 400;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.8;
}

ol,
ul {
  font-family: var(--font-mono);
}

p {
  font-family: var(--font-mono);
}

.post-header p {
  font-family: var(--font-mono);
}

figure .representation {
  display: block;
  margin: 0 0 .5rem;
}

figcaption {
  padding: 0 .5rem .5rem;
  font-size: .8125rem;
  text-align: right;
}

figcaption .original::before {
  content: ' ';
  display: block;
}

img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

blockquote {
  padding: 1rem;
  border-left: 5px solid var(--color-light-grey);
  color: var(--color-grey);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

blockquote cite {
  display: block;
  margin: 1rem 0 0;
  font-size: .875rem;
  text-align: right;
}

a {
  border-bottom: none;
  color: currentColor;
  text-decoration: none;
}

a:hover {
  border-bottom-color: currentColor;
  color: var(--color-grey);
}

ol,
ul {
  margin: 0 0 2rem 1.25rem;
  padding: 0;
  list-style-position: outside;
}

ol ol,
ol ul,
ul ol,
ul ul {
  margin-bottom: 0;
}

li {
  margin: 0;
}

li:not(last-of-type) {
  margin-bottom: .4rem;
}

abbr {
  border-bottom: 1px dashed currentColor;
  text-decoration: none;
  cursor: help;
}

kbd,
code,
pre {
  font-family: var(--font-mono), monospace;
}

pre {
  max-width: 100%;
}

kbd,
code {
  margin: 0;
  padding: .125rem .25rem 0;
  background-color: var(--color-light-grey);
}

article,
section {
  display: block;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-family: var(--font-sans);
  line-height: 1.3em;
  word-break: break-word;
}

h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .5rem;
  font-family: var(--font-sans);
  word-break: break-word;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 15px;
}

@media screen and (min-width: var(--breakpoint-sm)) {
  .container {
    padding: 1rem 0;
  }
}

.site-header,
.site-nav {
  margin-bottom: 2rem;
}

.site-header h1,
.site-nav h1 {
  margin-bottom: .5rem;
}

.site-header {
  margin-top: 30px;
}

.site-nav a::before {
  content: '\2190';
  margin-right: .25rem;
}

.list {
  margin: 0;
}

.list li {
  display: inline-block;
  margin: 10px 20px 10px 0;
  font-weight: 500;
}

.list li a:not(.term) {
  display: block;
  padding: 3px 10px;
  background: rgb(214 214 214);
  border: none;
}

.page-header {
  margin-bottom: -5px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
}

.page-header #header-content {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-family);
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  background: linear-gradient(to right, var(--text-main), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 1rem;
}

.page-header a {
  margin: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-family: var(--font-mono);
  line-height: 1.3em;
}

.page-header a:hover {}

.page-header img {
  width: 50px;
}

.site-footer {
  margin: 3rem 0 0;
  font-size: 16px;
  border-top: 1px solid #e0e0e0;
  padding-top: 30px;
  font-family: var(--font-mono);
}

.site-footer [itemprop="sameAs"]+[itemprop="sameAs"] {
  margin-left: .4rem;
}

@media screen and (min-width: var(--breakpoint-sm)) {
  .site-footer {
    margin-bottom: .5rem;
  }
}

.posts ol {
  margin-left: 0;
  list-style: none;
}

.posts li {
  margin-bottom: .5rem;
}

@media screen and (min-width: var(--breakpoint-sm)) {
  .posts li {
    display: flex;
    flex-direction: row;
  }
}

.posts time {
  display: block;
}

@media screen and (min-width: var(--breakpoint-sm)) {
  .posts time {
    flex: 0 0 5rem;
  }
}

.posts time+a {
  margin-left: 1rem;
}

@media screen and (min-width: var(--breakpoint-sm)) {
  .posts time+a {
    margin-left: 2rem;
  }
}

.post .post-header {
  margin-bottom: 3rem;
}

.post .post-date {
  display: block;
  margin: var(--margin);
  text-align: right;
}

.post p a,
.post ul a,
.post table a,
.breadcrumbs a {
  color: var(--primary-color);
  margin: 0 1px;
  font-size: 1.05em;
  transition: all .3s ease-in-out;
}

.link {
  border-bottom: none;
  display: inline-block;
  color: var(--primary-color);
  font-size: 1.05em;
  transition: all .3s ease-in-out;
  font-weight: 600;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  margin-bottom: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

.social-icons a:hover {
  color: var(--primary-color);
}

.social-icons a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.post p a:hover,
.post ul a:hover,
.post table a:hover,
.posts ol li a:hover,
.breadcrumbs a:hover {
  color: #54b3d6;
}

.article-tags a,
.article-category a,
.term {
  text-transform: none;
  text-decoration: none;
  padding: 5px 10px;
  margin-right: 10px;
  display: inline-block;
  margin-bottom: 5px;
  border: 1px solid var(--border);
  background: var(--code-bg);
  border-radius: 8px;
}

.article-tags {
  margin: 60px 0 50px;
  font-family: var(--font-sans);
  font-weight: bold;
}

.table-wrapper {
  padding: 0 var(--card-padding);
  overflow-x: auto;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 1.5em;
  font-size: 0.96em;
}

th,
td {
  text-align: left;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--table-border-color);
}

td {
  vertical-align: top;
}

tr:nth-child(even) {
  background-color: var(--tr-even-background-color);
}

#post-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  font-weight: bold;
  font-family: var(--font-sans);
}

#post-details time {
  margin: 0;
}

#post-details .article-category {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: calc(100% - 100px);
  flex-wrap: wrap;
}

.breadcrumbs {
  margin: 15px 0;
}

h2,
h3,
h4,
h5 {
  margin: 60px 0 30px;
  line-height: 1.3em;
}

.posts ol li a {
  text-decoration: none;
  border-bottom: none;
  display: inline-block;
  color: var(--primary-color);
  font-size: 1.05em;
  transition: all .3s ease-in-out;
}

.toc {
  margin: 0 2px 40px 2px;
  border: 1px solid var(--border);
  background: var(--code-bg);
  border-radius: 8px;
  padding: 15px;
}

.toc details summary {
  cursor: zoom-in;
  margin-inline-start: 20px;
}

.toc details[open] summary {
  cursor: zoom-out;
}

.toc .details {
  display: inline;
  font-family: var(--font-sans);
  font-weight: bold;
}

.toc .inner {
  margin: 0 20px;
  padding: 10px 20px;
}

.toc li ul {
  margin-inline-start: var(--gap);
}

.toc ul ul {
  margin-left: 15px;
}

.toc summary:focus {
  outline: 0;
}

/* Dropdown Button */
.dropbtn {
  border: none;
}

.dropbtn:after {
  content: '';
  border: 5px solid transparent;
  border-top: 8px solid #434343;
  margin-left: 6px;
  margin-bottom: -5px;
  display: inline-block;
  vertical-align: bottom;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: flex;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  right: 0;
  top: 100%;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  font-size: 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/* Author Card */
.author-card {
  display: flex;
  align-items: center;
  background-color: var(--background-card);
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.author-card-image {
  flex: 0 0 80px;
  margin-right: 1.5rem;
}

.author-card-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--text-main);
}

.author-card-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

@media screen and (max-width: 600px) {
  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .author-card-image {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}