@import url("https://cdn.jsdelivr.net/npm/modern-normalize@3.0.1/modern-normalize.min.css");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  color-scheme: light dark;
  --font-size-body: 18px;
  --font-size-small: calc(var(--font-size-body) * 0.85);
  --font-size-code: calc(var(--font-size-body) * 0.9);
  --font-size-h1: calc(var(--font-size-body) * 1.75);
  --font-size-h2: calc(var(--font-size-body) * 1.4);
  --font-size-h3: calc(var(--font-size-body) * 1.2);
  --font-size-h4: var(--font-size-body);
  --font-size-h5: var(--font-size-body);
  --font-size-h6: var(--font-size-body);
  --rhythm: 26px;
  --line-height-body: var(--rhythm);
  --line-height-small: var(--line-height-body);
  --line-height-code: var(--rhythm);
  --space-1: calc(var(--rhythm) / 6);
  --space-2: calc(var(--rhythm) / 3);
  --space-3: calc(var(--rhythm) / 2);
  --space-4: calc(var(--rhythm) * 2 / 3);
  --space-6: var(--rhythm);
  --space-12: calc(var(--rhythm) * 2);
  --bg-color: light-dark(#f5f5f5, #0a0a0a);
  --text-color: light-dark(#333333, #dddddd);
  --link-color: light-dark(#0077cc, #ffb600);
  --link-hover-color: light-dark(#005fa3, #ff8c00);
  --title-color: light-dark(#000000, #ffffff);
  --border-color: light-dark(#dddddd, #333333);
  --code-bg-color: light-dark(#fefefe, #24292e);
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html {
  scrollbar-gutter: stable;
  font-size: 16px;
}

html,
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Open Sans", Verdana, sans-serif;
  padding: 0 4px;
}

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

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

a[target="_blank"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.14em;
  font-family: system-ui, sans-serif;
  font-size: 0.66em;
  font-weight: 800;
  line-height: 0;
  vertical-align: 0.08em;
  opacity: 0.72;
}

a[target="_blank"]:hover::after {
  opacity: 1;
}

.social-share a[target="_blank"]::after {
  content: none;
}

time {
  white-space: nowrap;
}

pre {
  --copy-code-gutter: calc(var(--line-height-body) + var(--space-2));
  padding: var(--space-3) var(--copy-code-gutter) var(--space-3) var(--space-2);
  font-size: var(--font-size-code);
  line-height: var(--line-height-code);
  font-family: "JetBrains Mono", monospace;
  position: relative;
  border: 0;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--border-color);
}

pre code {
  width: 100%;
  display: block;
  overflow-x: auto;
  scrollbar-width: none;
}

pre .copy-code {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--line-height-body);
  width: var(--line-height-body);
  padding: 0;
  margin: 0;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: none;
  color: var(--text-color);
}

pre .copy-code svg {
  width: 18px;
  height: 18px;
}

pre .copy-code:hover {
  color: var(--link-color);
}

pre .copy-code.copied {
  color: green !important;
}

p > code,
li > code {
  background-color: var(--code-bg-color);
  font-size: var(--font-size-code);
  padding: 0 var(--space-1);
  border-radius: var(--space-1);
  line-height: 1;
  vertical-align: -0.04em;
  white-space: nowrap;
}

td > code,
th > code {
  display: inline-block;
  height: var(--line-height-body);
  line-height: var(--line-height-body);
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6,
.zola-anchor {
  color: var(--title-color);
  margin: 0;
  padding: 0;
}

h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-6);
  line-height: var(--space-12);
}

article h1 {
  font-size: var(--font-size-h1);
  line-height: var(--space-12);
}

.zola-anchor {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.zola-anchor:hover {
  color: inherit;
  text-decoration: none;
}

.zola-anchor::before {
  content: "§";
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  color: var(--link-color);
  opacity: 0.64;
  visibility: hidden;
}

.zola-anchor:hover::before {
  visibility: visible;
}

body {
  margin: 0 auto;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: round(up, 100vh, var(--line-height-body));
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

button i,
button svg,
button svg *,
a i,
a svg,
a svg * {
  pointer-events: none;
}

body > header {
  display: flex;
  justify-content: space-between;
  padding: var(--space-6) 0;
  margin-bottom: var(--line-height-body);
}

body > main {
  flex: 1;
}

body > footer {
  box-shadow: inset 0 1px 0 var(--text-color);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  margin-top: var(--space-6);
  padding: var(--space-6) 0;
  text-align: center;
}

body > header > div {
  display: flex;
  gap: 1.5rem;
}

body > header a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  box-shadow: inset 0 -2px 0 transparent;
}

body > header a:hover,
body > header a.current {
  color: var(--title-color);
  box-shadow: inset 0 -2px 0 var(--link-color);
  text-decoration: none;
}

@media (max-width: 560px) {
  body > header {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  body > header > div {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 var(--space-4);
    line-height: var(--line-height-body);
  }
}

main > h2 {
  font-size: var(--font-size-h2);
  line-height: var(--space-12);
  margin: var(--line-height-body) 0 0;
}

main > h2:first-child {
  margin-top: 0;
}

.error-page {
  margin: calc(var(--line-height-body) * 5) auto 0;
  text-align: center;
}

main p,
main ul,
main ol,
main pre,
main blockquote,
main table {
  margin-top: 0;
  margin-bottom: var(--line-height-body);
}

article h2,
article h3,
article h4,
article h5,
article h6 {
  line-height: var(--space-12);
  margin: var(--line-height-body) 0 0;
}

article h2 {
  font-size: var(--font-size-h2);
}

article h3 {
  font-size: var(--font-size-h3);
}

article h4,
article h5,
article h6 {
  font-size: var(--font-size-h4);
}

article h5 {
  font-size: var(--font-size-h5);
}

article h6 {
  font-size: var(--font-size-h6);
}

article h2 > .zola-anchor,
article h3 > .zola-anchor,
article h4 > .zola-anchor,
article h5 > .zola-anchor,
article h6 > .zola-anchor {
  font-size: inherit !important;
  line-height: inherit;
}

/*  */

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

.posts-list > li {
  display: flex;
  justify-content: space-between;
  padding: 0;
  line-height: var(--line-height-body);
}

article > header {
  margin-bottom: var(--space-6);
}

article img,
article svg {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 0 auto;
}

article > img {
  margin-bottom: var(--line-height-body);
}

article > .rhythm-media {
  margin-bottom: var(--line-height-body);
}

article > .rhythm-media > img,
article > .rhythm-media > svg {
  margin-bottom: 0;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

hr {
  height: var(--line-height-body);
  border: 0;
  margin: var(--line-height-body) 0 0;
  background: linear-gradient(var(--text-color), var(--text-color)) top / 100% 1px no-repeat;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-collapse: collapse;
  border-spacing: 0;
  line-height: var(--line-height-body);
}

table::-webkit-scrollbar {
  display: none;
}

th,
td {
  padding: 0 var(--space-2);
  vertical-align: top;
  box-shadow: inset 0 -1px 0 var(--border-color);
}

th {
  color: var(--title-color);
  font-weight: 700;
}

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

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

th[align="right"],
td[align="right"] {
  text-align: right;
}

.post {
  padding-bottom: var(--line-height-body);
  box-shadow: inset 0 -1px 0 var(--text-color);
}

.post > :last-child {
  margin-bottom: 0;
}

.post > header > h1 {
  margin-bottom: 0;
}

.post-meta {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}

.post-meta > div {
  vertical-align: middle;
}

.post-meta i {
  margin: 0 0.15rem;
}

a.post-edit {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.75;
}

a.post-edit:hover {
  text-decoration: underline;
}

.post blockquote {
  border-left: 2px solid var(--link-color);
  padding-left: var(--space-4);
  margin: 0 0 var(--line-height-body);
  font-style: italic;
}

.post hr:last-of-type + ol {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}

.post hr:last-of-type + ol a {
  color: var(--text-color);
}

.post hr:last-of-type + ol a:hover {
  color: var(--link-hover-color);
}

.social-share {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  justify-items: center;
  justify-content: center;
  height: var(--line-height-body);
  line-height: var(--line-height-body);
  margin: var(--line-height-body) 0;
}

.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--line-height-body);
  height: var(--line-height-body);
  text-decoration: none;
  color: var(--text-color);
  padding: 0;
}

.social-share a:hover {
  color: var(--link-hover-color);
}

/*  */

.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects-list li {
  display: flex;
  justify-content: space-between;
  margin: 0;
  line-height: var(--line-height-body);
}

.project-langs {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: var(--line-height-body);
  line-height: var(--line-height-body);
  vertical-align: top;
}

.project-langs > div {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  line-height: calc(var(--line-height-body) / 1.5);
  border-radius: 0.25rem;
  padding: 0rem 0.25rem;
  background-color: var(--bg-color);
}

.wallets-list {
  font-size: 1.25rem;
  line-height: var(--space-12);
  font-family: monospace;
}

.wallets-list code {
  cursor: pointer;
  font-size: 1.15rem;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition:
    border-color 3s ease,
    color 0.15s ease;
}

.wallets-list code:hover {
  color: var(--link-color);
}

.wallets-list code.copied {
  border-color: green;
  transition:
    border-color 0s,
    color 0.15s ease;
}

.wallets-list li:last-child code {
  font-size: 13px;
}
