@font-face {
  font-family: "Source Code Pro";
  src: url("../assets/fonts/SCP/SourceCodePro-Light.otf.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../assets/fonts/SCP/SourceCodePro-Regular.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../assets/fonts/SCP/SourceCodePro-It.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Fira Code VF";
  src: url("../assets/fonts/FC/FiraCode-VF.woff2") format("woff2");
  font-weight: 100 900;
}
:root {
  --bg: #FFE3F0;
  --fg: #5D5D5D;
  --fg-strong: #1D1D1D;
  --fg-muted: #C3C3C3;
  --accent: #C082A2;
  --border-brand: rgba(192, 130, 162, 0.2);
  --border-light: #C3C3C3;
  --link-hover: #5D5D5D;
  --code-inline-bg: #F7D9EA;
  --code-inline-border: #D09BB8;
  --table-text: #8B8B8B;
  --table-row-even-bg: #D2D2D2;
  --table-th-bg: #CBCBCB;
  --table-th-border: #B9B9B9;
  --table-th-border-b: #A4A4A4;
}

[data-theme=dark] {
  --bg: #1C1218;
  --fg: #BFB0BC;
  --fg-strong: #E8DDE5;
  --fg-muted: #6A5F68;
  --accent: #C082A2;
  --border-brand: rgba(192, 130, 162, 0.18);
  --border-light: rgba(255, 255, 255, 0.1);
  --link-hover: #BFB0BC;
  --code-inline-bg: rgba(192, 130, 162, 0.12);
  --code-inline-border: rgba(192, 130, 162, 0.28);
  --table-text: #A09898;
  --table-row-even-bg: rgba(255, 255, 255, 0.05);
  --table-th-bg: rgba(255, 255, 255, 0.08);
  --table-th-border: rgba(255, 255, 255, 0.12);
  --table-th-border-b: rgba(255, 255, 255, 0.18);
}

body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

body {
  font: 400 16px/1.5 "Source Code Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--fg);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure {
  margin-bottom: calc(30px / 2);
}

main {
  display: block;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

figure > img {
  display: block;
}

figcaption {
  font-size: 14px;
}

ul, ol {
  margin-left: 30px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.social-media-list a:hover {
  text-decoration: none;
}
.social-media-list a:hover .username {
  text-decoration: underline;
}

blockquote {
  color: var(--fg);
  border-left: 4px solid var(--border-light);
  padding-left: calc(30px / 2);
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic;
}
blockquote > :last-child {
  margin-bottom: 0;
}

.wrapper {
  max-width: calc(800px - 30px * 2);
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}
.wrapper:after {
  content: "";
  display: table;
  clear: both;
}
@media screen and (max-width: 800px) {
  .wrapper {
    max-width: calc(800px - 30px);
    padding-right: calc(30px / 2);
    padding-left: calc(30px / 2);
  }
}

.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: var(--fg);
  padding-right: 5px;
  vertical-align: text-top;
}

.social-media-list li + li {
  padding-top: 5px;
}

table {
  margin-bottom: 30px;
  width: 100%;
  text-align: left;
  color: var(--table-text);
  border-collapse: collapse;
  border: 1px solid var(--border-light);
}
table tr:nth-child(even) {
  background-color: var(--table-row-even-bg);
}
table th, table td {
  padding: calc(30px / 3) calc(30px / 2);
}
table th {
  background-color: var(--table-th-bg);
  border: 1px solid var(--table-th-border);
  border-bottom-color: var(--table-th-border-b);
}
table td {
  border: 1px solid var(--border-light);
}

.site-header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-brand);
}
.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-title, .site-title:visited {
  color: var(--fg-strong);
}
.site-title:hover {
  color: var(--fg-strong);
  text-decoration: none;
}

.site-logo {
  height: 36px;
  width: 36px;
  border-radius: 6px;
  vertical-align: middle;
  display: inline-block;
}

.site-nav .trigger {
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-nav .page-link {
  color: var(--fg);
  line-height: 1.5;
  text-decoration: none;
}
.site-nav .page-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  font-family: "Source Code Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.theme-toggle:hover {
  color: var(--fg);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border-brand);
}

.footer-heading {
  font-size: 18px;
  margin-bottom: calc(30px / 2);
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 15px;
  color: var(--fg);
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.page-content {
  padding: calc(30px * 1.75) 0 calc(30px * 2);
  flex: 1;
}

.page-heading {
  font-size: 32px;
}

.post-list-heading {
  font-size: 28px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}
.post-list > li {
  border-left: 3px solid var(--accent);
  padding: 18px 0 18px 20px;
  margin-bottom: 8px;
}
.post-list > li:hover {
  border-color: var(--fg);
}

.post-meta {
  font-size: 14px;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}

.post-description {
  font-size: 14px;
  color: var(--fg);
  margin: 0;
  line-height: 1.5;
}

.post-link {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
}

.post-header {
  margin-bottom: calc(30px * 2);
}

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: calc(30px / 2);
}
@media screen and (max-width: 800px) {
  .post-title {
    font-size: 36px;
  }
}

.post-content {
  margin-bottom: 30px;
  line-height: 1.75;
}
.post-content strong {
  color: var(--fg-strong);
  font-weight: 400;
}
.post-content p {
  margin-bottom: calc(30px * 0.8);
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  width: 50%;
  margin: calc(30px * 1.75) auto;
}
.post-content h2 {
  font-size: 32px;
}
@media screen and (max-width: 800px) {
  .post-content h2 {
    font-size: 28px;
  }
}
.post-content h3 {
  font-size: 26px;
}
@media screen and (max-width: 800px) {
  .post-content h3 {
    font-size: 22px;
  }
}
.post-content h4 {
  font-size: 20px;
}
@media screen and (max-width: 800px) {
  .post-content h4 {
    font-size: 18px;
  }
}

code, pre {
  font-family: "Fira Code VF", "Fira Code", monospace;
}

code {
  font-size: 15px;
  padding: 2px 6px;
  border: 1px solid var(--code-inline-border);
  border-radius: 5px;
  background-color: var(--code-inline-bg);
}

pre {
  font-size: 15px;
  line-height: 1.6;
  padding: 14px 18px;
  overflow-x: auto;
  border: none;
}
pre > code {
  border: 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.highlight {
  background: #1c2a3c;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: calc(30px / 2);
}
.highlight pre {
  background-color: #1c2a3c;
  border-radius: 9px;
  color: #e0dfe8;
  margin-bottom: 0;
}
.highlight .hll {
  background-color: #253448;
}
.highlight .c, .highlight .cm, .highlight .c1 {
  color: #7a8fa0;
  font-style: italic;
}
.highlight .cp, .highlight .cs {
  color: #ff7070;
  font-weight: bold;
}
.highlight .k, .highlight .kc, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt, .highlight .nt, .highlight .ow {
  color: #b388ff;
  font-weight: bold;
}
.highlight .kp {
  color: #b388ff;
}
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd,
.highlight .se, .highlight .sh, .highlight .si, .highlight .sr, .highlight .ss {
  color: #ffd080;
}
.highlight .sx {
  color: #ffaa44;
}
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .mo, .highlight .il {
  color: #6ddd6d;
}
.highlight .na, .highlight .ne {
  color: #c0c0d8;
}
.highlight .nb, .highlight .bp {
  color: #4ecfdf;
}
.highlight .nc, .highlight .nn {
  color: #7ab8ff;
  text-decoration: underline;
}
.highlight .nf {
  color: #7ab8ff;
}
.highlight .no, .highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi {
  color: #80dcff;
}
.highlight .nd {
  color: #ffaa44;
}
.highlight .err {
  color: #ff5f5f;
}
.highlight .gd, .highlight .gr, .highlight .gt {
  color: #ff7070;
}
.highlight .ge {
  font-style: italic;
}
.highlight .gh {
  color: #ffffff;
  font-weight: bold;
}
.highlight .gi {
  color: #78e878;
}
.highlight .go {
  color: #aaaaaa;
}
.highlight .gp {
  color: #7a8fa0;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .gu {
  color: #ffffff;
  text-decoration: underline;
}
.highlight .w {
  color: #5a6a7a;
}