/* Typography and the independently configurable light palette. */
:root{
--font-mono: 'Roboto Mono', monospace;
--font-body: 'Fira Sans', sans-serif;
--font-heading: var(--font-mono);
--font-callout: 'IBM Plex Mono', monospace;
--font-size-base: 15px;
--font-size-body: 1rem;
--font-size-nav: 1rem;
--font-size-heading: 1.2rem;
--font-size-site-title: 1.5rem;
--font-weight-base: 400;
--font-weight-body: 400;
--font-weight-nav: 400;
--font-weight-heading: 700;
--font-weight-site-title: 400;
--color-primary: #7700FF;
--color-secondary: #1C7344;
--page-background: #FFFFFF;
--page-text: #232333;
--heading-text: #232333;
--muted-text: #696974;
--surface-background: #ECECEC;
--code-background: rgba(28, 115, 68, 0.10);
--border-color: #D7D7DA;
--selection-background: rgba(28, 115, 68, 0.22);
--link-hover-color: var(--color-primary);
/* Keep the existing theme hooks available to custom styles. */
--maincolor: var(--color-primary);
--bordercl: var(--color-secondary);
--callouctcolor: color-mix(in srgb, var(--color-secondary) 12%, var(--page-background));
--hovercolor: var(--color-primary);
--darkMaincolor: var(--color-primary);
}
html {
  min-height: 100%;
  background-color: var(--page-background);
  color-scheme: light;
  color: var(--page-text);
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: 1.6em;
}
body{
  display: block;
  margin: 8px;
  background-color: var(--page-background);
  color: var(--page-text);
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

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

p {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: 1.5;
}

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

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

a {
  border-bottom: 0;
  color: inherit;
  text-decoration: none;
}
.content a {
  text-decoration: underline;
  text-decoration-color: var(--link-hover-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}
a:hover,
a:focus-visible {
  background-color: transparent;
  color: var(--link-hover-color);
}
a:focus-visible {
  outline: 2px solid var(--link-hover-color);
  outline-offset: 4px;
}

ul {
  list-style: none;
  padding-left: 2ch;
}
ul li {
  text-indent: -2ch;
}
ul > li::before {
  content: '* ';
  font-weight: bold;
}

/* Images */
img {
  border: 3px solid var(--border-color);
  max-width: 100%;
}

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: '↳ ';
}

/* Code blocks */
pre, code {
  font-family: var(--font-mono);
}

code {
  background-color: var(--code-background);
  color: inherit;
  padding: .1em .2em;
}

pre {
  background-color: var(--surface-background);
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 100%;
  padding: 0;
}

/* Containers */
.content {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: 0 1ch;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-text);
  font-family: var(--font-heading);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-heading);
  margin-top: 2em;
}

h1::before { color: var(--maincolor); content: '# '; }
h2::before { color: var(--maincolor); content: '## '; }
h3::before { color: var(--maincolor); content: '### '; }
h4::before { color: var(--maincolor); content: '#### '; }
h5::before { color: var(--maincolor); content: '##### '; }
h6::before { color: var(--maincolor); content: '###### '; }

.meta {
  color: var(--muted-text);
  letter-spacing: -0.5px;
}

.post-container {
  align-items: flex-start;
  display: flex;
  gap: 20px;
}

.post-content {
  flex: 3;
  min-width: 0;
}

.toc {
  background-color: var(--surface-background);
  border-radius: 5px;
  color: var(--page-text);
  flex: 0 0 auto;
  height: auto;
  margin-left: 20px;
  max-width: 300px;
  overflow-y: auto;
  padding: 10px;
  position: sticky;
  top: 20px;
}

/* Common */
.title h1 {
  margin-bottom: 0;
}

time {
  color: var(--muted-text);
}

/* Posts */
article .title {
  margin-bottom: 1em;
}


/* Callout */
.callout {
  background-color: var(--callouctcolor);
  color: var(--page-text);
  padding: 1em;
}

.callout p {
  font-family: var(--font-callout);
  margin: 0;
}

.callout-alert {
  color: inherit;
  background-color: transparent;
  border-width: 3px;
  border-style: solid;
  border-color: var(--color-primary);
}

.callout-custom {
  color: inherit;
}

.callout-tip {
  color: inherit;
  background-color: transparent;
  border-width: 3px;
  border-style: solid;
  border-color: var(--color-primary);
}

.callout-warning {
  color: inherit;
  background-color: transparent;
  border-width: 3px;
  border-style: solid;
  border-color: var(--color-secondary);
}

.callout-dragon {
  color: inherit;
  background-color: transparent;
  border-width: 3px;
  border-style: solid;
  border-color: var(--color-secondary);
}

.site-description {
  display: block;
}
.site-description p + p {
  margin-top: 1rem;
}
.tags li::before{
  content: "🏷 ";
}
svg{
  max-height: 15px;
}
.draft-label{ 
    color: var(--bordercl);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: color-mix(in srgb, var(--color-secondary) 12%, var(--page-background));
}
.highlight {
  background-color: var(--surface-background);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}
.highlight pre code[class*="language-"]::before {
  background: color-mix(in srgb, var(--color-primary) 16%, var(--page-background));
  border-radius: 0 0 0.25rem 0.25rem;
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0;
}

.highlight pre code[class=language-javaScript]::before,
.highlight pre code[class="language-js"]::before {
content: "js";
}
.highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before {
content: 'yaml';
}
.highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before {
content: 'shell';
}
.highlight pre code[class*='language-json']::before{
content: 'json';
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
content: 'py';
}
.highlight pre code[class*='language-css']::before{
content: 'css';
}
.highlight pre code[class*='language-go']::before{
content: 'Go';
}
.highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before{
content: 'Markdown';
}
.highlight pre code[class*='language-ts']::before{
  content: 'TS';
}

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

table th{
  padding: 6px 13px;
  border: 1px solid var(--border-color);
  font-size: large;
}

table td{
  padding: 6px 13px;
  border: 1px solid var(--border-color);
}

.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
