:root {
  --text-color: #1e1e1d;
  --description-color: #b8b6b2;
  --bg-color: #faf9f4;
  --bg-set-in-color: #e9e8e1;
  --link-color: #00a6a8;
  --text-selection-color: #d2f4f3;
  --inline-code-color: #e34361;
  --pic-frame: white;
  --hr-color: #e6e3d8;

  --code-comment: #878e8e;
  --code-keyword: #cf222e;
  --code-namespace: var(--text-color);
  --code-primitive: #0a3069;
  --code-decorator: #673eb3;
  --code-interpol: #00bf58;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #d1d0cc;
    --description-color: #6a6766;
    --bg-color: #1e1e1d;
    --bg-set-in-color: #141413;
    --link-color: #008c8d;
    --text-selection-color: #005e5f;
    --inline-code-color: #e16a97;
    --pic-frame: var(--description-color);
    --hr-color: var(--description-color);

    --code-comment: #565a5a;
    --code-keyword: #e16a97;
    --code-primitive: #90c9ed;
    --code-decorator: #e4a9f0;
    --code-interpol: #61ec81;
  }
}

@view-transition {
  navigation: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0rem;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter'), url('/static/fonts/Inter-Regular.woff2') format('woff2');
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Inter'), url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
  text-rendering: optimizeLegibility;
}

body {
  max-width: 32rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body * {
  position: relative;
}

::selection {
  background-color: var(--text-selection-color);
  color: inherit;
}

::-moz-selection {
  background-color: var(--text-selection-color);
  color: inherit;
}


p,
ol,
ul,
ol,
blockquote {
  line-height: 1.6;
}

p {
  margin-top: 0.5rem;
}

p.message {
  margin-top: 0rem;
  margin-bottom: 1px;
  background-color: var(--bg-set-in-color);
  padding: 0.6rem 1rem;
  border-radius: 1.3rem;
  max-width: 65%;
  position: relative;
  margin-left: auto;
  z-index: 0;
}

p.message a {
  color: inherit;
  text-decoration: underline;
}

p.message:last-of-type {
  border-radius: 1rem 1rem 0.2rem 1rem;
  margin-bottom: 1rem;
}

p.message.loud {
  animation: loud 1.2s cubic-bezier(.67, -0.62, .18, 1.44) 0.5s;
  transform-origin: center;
  box-shadow: inset 0 0 0 2px var(--bg-color);
  z-index: 1;
}

@keyframes loud {
  0% {
    transform: rotate(0deg) translateY(0px) scale(1);
  }

  50% {
    transform: rotate(2deg) translateY(-1px) scale(1.1);
  }

  100% {
    transform: rotate(0deg) translateY(0px) scale(1);
  }
}

a {
  text-decoration: none;
  color: var(--link-color);
  display: inline-block;
}

a:visited {
  color: var(--link-color);
}

a:hover {
  text-decoration: underline;
}

a:active {
  transform: translateY(1px);
}

nav {
  margin-bottom: 2rem;
}

time {
  color: var(--description-color);
}

hr {
  margin: 2rem 0;
}

footer {
  display: block;
  align-self: bottom;
  color: var(--description-color);
  padding: 2rem 0;
  width: 100%;
  text-align: center;
}

footer a,
footer a:visited {
  color: inherit;
}

hr {
  border: 0.5px solid var(--hr-color);
  outline: none;
}

ul li,
ol li {
  margin-bottom: 0.4rem;
}

img,
video {
  max-width: calc(100% + 12px);
  box-sizing: border-box;
  border: 6px solid var(--pic-frame);
  border-radius: 8px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 0, 0, 0.1);
  margin-left: -6px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.no_frame,
img.no-frame,
video.no_frame,
video.no-frame {
  border: none;
  box-shadow: none;
}

figcaption {
  color: var(--description-color);
  font-style: italic;
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

blockquote {
  margin: 0.5rem 0;
  padding: 0 1.25rem;
  border-left: 0.25rem solid var(--description-color);
  margin-bottom: 1rem;
}

blockquote a,
blockquote a:visited {
  color: inherit;
  text-decoration: underline;
}

blockquote.callout {
  padding-top: 1.5rem;
}

blockquote.callout:before {
  content: '';
  display: block;
  position: absolute;
  top: -2px;
  left: 9px;
  width: 1.5rem;
  height: 1.5rem;
  background-color: currentColor;
  mask: url('Push%20Pin.svg') no-repeat center / contain;
}

blockquote.callout.note::before {
  background-image: url('Push%20Pin.svg');
}

pre {
  line-height: 1.6rem;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: scroll;
  background-color: var(--bg-set-in-color);
}

span.icon:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
  margin-top: -2px;
  /* Nudged up by 2px */
  width: 1.5rem;
  height: 1.5rem;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-size: contain;
}

span.icon.rss:before {
  mask-image: url('RSS.svg');
}

span.icon.email:before {
  mask-image: url('Email.svg');
}

span.icon.site:before {
  mask-image: url('Site.svg');
}

p code,
a code,
li code {
  font-family: monospace;
  color: var(--inline-code-color);
  font-size: 0.9rem;
  background-color: var(--bg-set-in-color);
  border-radius: 0.25rem;
  padding: 0.2rem 0.4rem;
}

a code {
  text-decoration: underline;
}

span.message {
  color: var(--description-color);
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

table th,
table td {
  padding: 0.5rem;
  border: none;
  border-bottom: 1px solid var(--hr-color);
  vertical-align: top;
}

table th:first-child,
table td:first-child {
  padding-left: 0;
}

table th:last-child,
table td:last-child {
  padding-right: 0;
}

table th {
  text-align: left;
}

table tr:last-child td {
  border-bottom: none;
}

.tag {
  color: var(--description-color);
  display: inline-block;
  margin: 0 0.25rem 0rem 0.25rem;
  text-transform: capitalize;
}

.tag:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
  width: 1rem;
  /* Adjusted for icon size */
  height: 1rem;
  /* Adjusted for icon size */
  background-color: currentColor;
  mask-image: url('Tag.svg');
  mask-repeat: no-repeat;
  mask-size: contain;
}

a.tag {
  color: var(--description-color);
}

a.tag:hover {
  text-decoration: underline;
}

ul.post-tags {
  list-style-type: none;
  /* Removes default list styling */
  padding: 0;
  /* Removes default padding */
  margin: 0.5rem 0 0 0;
  /* Removes default margin */
  display: flex;
  /* Makes the list horizontal */
  flex-wrap: wrap;
  /* Allows list items to wrap if they exceed the container width */
}

ul.post-tags li {
  margin-right: 0.5rem;
  /* Adds spacing between tags */
}

ul.post-tags .tag:first-child {
  margin-left: 0;
  /* Removes left margin for the first tag */
}

article header h1 {
  text-align: center;
}

article header {
  text-align: center;
  width: 100%;
  margin-bottom: 2rem;
}

article header h1 {
  font-size: 3rem;
  text-wrap: balance;
}

article header .post-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.post_preview {
  margin: 0 0 2rem 0;
  box-shadow: 0 1px 0 var(--hr-color);
}

.post_preview h2 {
  margin-top: 0.4rem;
}

.post_preview p {
  margin-bottom: 0.5rem;
}

.post_preview .post-tags {
  margin: 0 0 0.5rem 0;
}

a.footnote-ref {
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color);
  background-color: var(--text-color);
  padding: 0.2rem 0.3rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  width: 0.6rem;
  height: 0.5rem;
  text-align: center;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}

a.footnote-ref:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
}

.footnote {
  color: var(--text-color);
  font-size: 0.8rem;
}

.footnote ol {
  margin-left: 0rem;
  padding-left: 1.25rem;
}

.footnote a {
  color: var(--text-color);
  text-decoration: underline;
}

.codehilite .c {
  color: var(--code-comment);
  font-style: italic
}

/* Comment */
.codehilite .k {
  color: var(--code-keyword);
  font-weight: bold
}

/* Keyword */
.codehilite .o {
  color: var(--code-primitive)
}

/* Operator */
.codehilite .ch {
  color: var(--code-comment);
  font-style: italic
}

/* Comment.Hashbang */
.codehilite .cm {
  color: var(--code-comment);
  font-style: italic
}

/* Comment.Multiline */
.codehilite .cpf {
  color: var(--code-comment);
  font-style: italic
}

/* Comment.PreprocFile */
.codehilite .c1 {
  color: var(--code-comment);
  font-style: italic
}

/* Comment.Single */
.codehilite .cs {
  color: var(--code-comment);
  font-style: italic
}

/* Comment.Special */
.codehilite .ge {
  font-style: italic
}

/* Generic.Emph */
.codehilite .kc {
  color: var(--code-primitive);
  font-weight: bold
}

/* Keyword.Constant */
.codehilite .kd {
  color: var(--code-keyword);
  font-weight: bold
}

/* Keyword.Declaration */
.codehilite .kn {
  color: var(--code-keyword);
  font-weight: bold
}

/* Keyword.Namespace */
.codehilite .kp {
  color: var(--code-keyword)
}

/* Keyword.Pseudo */
.codehilite .kr {
  color: var(--code-keyword);
  font-weight: bold
}

/* Keyword.Reserved */
.codehilite .s {
  color: var(--code-keyword)
}

/* Literal.String */
.codehilite .nb {
  color: var(--code-keyword)
}

/* Name.Builtin */
.codehilite .nc {
  color: var(--code-namespace);
  font-weight: bold
}

/* Name.Class */
.codehilite .nd {
  color: var(--code-decorator)
}

/* Name.Decorator */
.codehilite .nf {
  color: var(--code-namespace)
}

/* Name.Function */
.codehilite .nn {
  color: var(--code-namespace);
  font-weight: bold
}

/* Name.Namespace */
.codehilite .nt {
  color: var(--code-keyword);
  font-weight: bold
}

/* Name.Tag */
.codehilite .ow {
  color: var(--code-primitive);
  font-weight: bold
}

/* Operator.Word */
.codehilite .mb {
  color: var(--code-primitive)
}

/* Literal.Number.Bin */
.codehilite .mf {
  color: var(--code-primitive)
}

/* Literal.Number.Float */
.codehilite .mh {
  color: var(--code-primitive)
}

/* Literal.Number.Hex */
.codehilite .mi {
  color: var(--code-primitive)
}

/* Literal.Number.Integer */
.codehilite .mo {
  color: var(--code-primitive)
}

/* Literal.Number.Oct */
.codehilite .sa {
  color: var(--code-keyword)
}

/* Literal.String.Affix */
.codehilite .sb {
  color: var(--code-keyword)
}

/* Literal.String.Backtick */
.codehilite .sc {
  color: var(--code-keyword)
}

/* Literal.String.Char */
.codehilite .dl {
  color: var(--code-keyword)
}

/* Literal.String.Delimiter */
.codehilite .sd {
  color: var(--code-primitive);
  font-style: italic
}

/* Literal.String.Doc */
.codehilite .s2 {
  color: var(--code-primitive)
}

/* Literal.String.Double */
.codehilite .se {
  color: var(--code-interpol);
  font-weight: bold
}

/* Literal.String.Escape */
.codehilite .sh {
  color: var(--code-keyword)
}

/* Literal.String.Heredoc */
.codehilite .si {
  color: var(--code-interpol);
  font-weight: bold
}

/* Literal.String.Interpol */
.codehilite .sx {
  color: var(--code-keyword)
}

/* Literal.String.Other */
.codehilite .sr {
  color: var(--code-interpol)
}

/* Literal.String.Regex */
.codehilite .s1 {
  color: var(--code-keyword)
}

/* Literal.String.Single */
.codehilite .bp {
  color: var(--code-keyword)
}

/* Name.Builtin.Pseudo */
.codehilite .fm {
  color: var(--code-namespace)
}

/* Name.Function.Magic */
.codehilite .il {
  color: var(--code-primitive)
}

/* Literal.Number.Integer.Long */

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.step::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--text-color);
  color: var(--bg-color);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.link_preview {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
  border-radius: 1.5rem;
  background-color: var(--bg-set-in-color);
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link_preview:visited {
  color: var(--text-color);
}

.link_preview:hover,
.link_preview:focus-visible {
  text-decoration: none;
}

.link_preview:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 3px;
}

.link_preview:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.12);
}

.link_preview_icon {
  grid-row: 1 / span 2;
  align-self: start;
  width: 48px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: none;
  box-shadow: none;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.link_preview_title,
.link_preview_description {
  display: block;
}

.link_preview_title {
  font-weight: 600;
  font-size: 1.1rem;
}

.link_preview_description {
  font-size: 0.95rem;
  line-height: 1.4;
}

.link_preview:hover .link_preview_title,
.link_preview:focus-visible .link_preview_title {
  text-decoration: none;
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.1rem 0.25rem;
  margin: 0 0.12rem;
  border-radius: 0.3rem;
  background-color: var(--bg-set-in-color);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}