


:root {
   /* light.css */ 
    --font-color: #333;
    --bg-color: #fff;

    --link-color:#1d60a3;
    --link-state-color:#a31d1d;
    --link-state-border-color: rgba(163, 29, 29, .5);

    --thead-bg-color: lightgrey;
    --table-border-color: lightgrey;

    --nav-bg-color: #fafafa;
    --nav-link-color: #696969;

    --pre-color: #f8f8f2;
    --pre-bg-color: #272822;

    --bq-color: #ccc;
    --hr-color: #ccc;

    --pagination-bg-color: #fafafa;
    --pagination-link-color: #696969;

    --post-info-color: grey;

    --switcher-color: #fff;
    --switcher-bg-color: #333; 

    --svg-color: #333;
    --svg-state-color: #a31d1d;
}



[data-theme="dark"] {
    /* dark.css */ 
--font-color: #eee;
--bg-color: #212121;

--link-color:#599ada;
--link-state-color:#ff5858;
--link-state-border-color: rgba(238, 54, 54, 0.5);

--thead-bg-color: #343a40;
--table-border-color: lightgrey;

--nav-bg-color: #242424;
--nav-link-color: #b6b6b6;

--pre-color: #f8f8f2;
--pre-bg-color: #272822;

--bq-color: #ccc;
--hr-color: #333;

--pagination-bg-color: #373737;
--pagination-link-color: #b6b6b6;

--post-info-color: grey;

--switcher-color: #333;
--switcher-bg-color: #fff;

--svg-color: #ccc;
--svg-state-color:#ff5858;

}


/* Basic */
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    /* 1 */
    -ms-text-size-adjust: 100%;
    /* 2 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
}

body {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    color: var(--font-color);
    background: var(--bg-color);
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
    display: block;
}

.container {
    max-width: 42em;
    margin: 0 auto;
}

main {
    outline:none;
}

/* Headers */
h1 {
    font-size: 1.35em;
}

h2 {
    font-size: 1.2em;
}

h3 {
    font-size: 1.1em;
}

/* Links */

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

a:hover,
a:focus,
a:active {
    color: var(--link-state-color);
    border-bottom: 1px solid var(--link-state-border-color);
}

a:active,
a:hover {
    outline: 0;
}

a:active {
    opacity: 0.9;
}

a.skip-main {
    left:-999px;
    position:absolute;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
    z-index:-999;
}

a.skip-main:focus,
a.skip-main:active {
    left: auto;
    top: 0px;
    width: auto;
    height: auto;
    overflow:auto;
    z-index:999;
    padding: 4px 6px 4px 6px;
    text-decoration: underline;
    border: none;
}

/* Table */
thead {
    background: var(--thead-bg-color);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    max-width: 100%;
    border-spacing: 0;
}


th, td {
    padding: 0.5em 1em;
    border: 1px double var(--table-border-color);
}

/* Code */
pre {
    padding: 1em;
    max-width: 100%;
    overflow: auto;
}

code,
pre,
kbd {
    color: var(--pre-color);
    background-color: var(--pre-bg-color);
    font-family: monospace;
    font-size: 0.90em;
    line-height: 154%;
}

pre code, pre kbd {
    color: inherit;
    background-color: inherit;
}

/* Styles */

blockquote {
    border-left: 2px solid var(--bq-color);
    padding: 0.1em 1em;
    margin-left: 0.75em;
}

p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

hr {
    color: var(--hr-color);
    background-color: var(--hr-color);
    border: none;
    height: 1px;
}

/* Header */

.common-header {
    padding-bottom: 1.5em;
    border-bottom: thin solid var(--hr-color);
}

header a {
    color: var(--font-color);
}

header h1 {
    font-size: 1em;
    margin-top: 1em;
    margin-bottom: 0;
    font-weight: normal;
}

header h2 {
    font-size: 1em;
    margin: 0;
    font-weight: normal;
}

.header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    vertical-align: middle;
}

.site-title {
    white-space: nowrap;
}

header nav:not(:empty){
    background: var(--nav-bg-color);
    margin-top: 1em;
    max-width: 100%;
    text-align: center;
    padding: 0.5em 0;
}

header nav a {
    display: inline-block;
    margin: 0 2.5%;
}

/* Social icons */
.social-icons {
    margin-top: 1em;
    margin-bottom: 0;
    padding: 0;
    list-style-type: none;
}

.social-icons li {
    display: inline;
}

.social-icons li:not(:first-of-type) {
    margin-left: 0.5em;
}

.social-icons a:hover,
.social-icons a:focus,
.social-icons a:active {
    color: inherit;
    border-bottom: none;
    text-decoration: none;
}

.inline-svg {
    display: inline-block;
    height: 1.15rem;
    width: 1.15rem;
    top: 0.15rem;
    position: relative;
}


/* Pages */
main h1 {
    margin-top: 1em;
    font-weight: normal;
    line-height: 1.1em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.post-short-list:first-of-type {
    margin-top: 1em;
}

/* Articles */

.post-header {
    margin-top: 1em;
    line-height: 1.1em;
    margin-bottom: 1em;
}

.post-header header {
    display: inline;
}

.post-navigation {
    background: var(--nav-bg-color);
    text-align: center;
    margin-top: 1em;
    max-width: 100%;
    padding: 0.5em 0;
}

.post-navigation a:first-of-type {
    margin-left: 0;
}

.post-navigation a {
    color: var(--nav-link-color);
    margin-left: 2em;
}

.post-navigation a:hover,
.post-navigation a:focus,
.post-navigation a:active {
    color: var(--link-state-color);
}

.post-short-list .post-title {
    display: inline;
}

.post-title.favorite::after {
    content: "☆";
    display: inline-block;
    margin-left: 0.2em;
}

.post-title.draft::after {
    content: "✎";
    display: inline-block;
    margin-left: 0.2em;
}

.post-title.favorite.draft::after {
    content: "☆ ✎";
    display: inline-block;
    margin-left: 0.2em;
}

article:not(:last-of-type) {
    border-bottom: thin solid var(--hr-color);
    padding-bottom: 2em;
}

article header h1 {
    font-size: 1.35em;
    line-height: 1.1em;
    margin-bottom: 0.5em;
    font-weight: 600;
    display: inline;
}

article header h1 a {
    color: var(--font-color);
    border: none;
    text-decoration: none;
}

.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
    position: relative;
}

.post h1 a,
.post h2 a,
.post h3 a,
.post h4 a,
.post h5 a,
.post h6 a {
    opacity: 0;
    position: absolute;
    left: -1.2rem;
}

.post h1:hover a,
.post h2:hover a,
.post h3:hover a,
.post h4:hover a,
.post h5:hover a,
.post h6:hover a {
    opacity: 1;
    border-bottom: none;
}

.post h1 a:hover,
.post h1 a:focus,
.post h1 a:active,
.post h2 a:hover,
.post h2 a:focus,
.post h2 a:active,
.post h3 a:hover,
.post h3 a:focus,
.post h3 a:active,
.post h4 a:hover,
.post h4 a:focus,
.post h4 a:active,
.post h5 a:hover,
.post h5 a:focus,
.post h5 a:active,
.post h6 a:hover,
.post h6 a:focus,
.post h6 a:active {
    border-bottom: none;
}

.post h1 svg,
.post h2 svg,
.post h3 svg,
.post h4 svg,
.post h5 svg,
.post h6 svg {
    stroke: var(--svg-color);
}

.post h1 svg:hover,
.post h1 svg:focus,
.post h1 svg:active,
.post h2 svg:hover,
.post h2 svg:focus,
.post h2 svg:active,
.post h3 svg:hover,
.post h3 svg:focus,
.post h3 svg:active,
.post h4 svg:hover,
.post h4 svg:focus,
.post h4 svg:active,
.post h5 svg:hover,
.post h5 svg:focus,
.post h5 svg:active,
.post h6 svg:hover,
.post h6 svg:focus,
.post h6 svg:active {
    stroke: var(--svg-state-color);
}

.post-info {
    color: var(--post-info-color);
    font-size: 0.75em;
    margin-top: 1em;
}

.post-info a {
    color: var(--post-info-color);
}

.post-info a:hover {
    color: var(--link-state-color);
}

.post-short-list .post-info {
    margin-top: 0;
    margin-bottom: 1.5em;
}

.post-taxonomies {
    display: inline;
}

.post-hidden-url {
    display: none;
}

.post-hidden-author {
    display: none;
}

.post-date {
    white-space: nowrap;
}

.post-categories {
    display: inline;
    list-style-type: none;
    padding: 0;
}

.post-categories li {
    display: inline;
    margin-right: 1em;
}

.post-tags {
    display: inline;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.post-tags li {
    display: inline;
    margin-right: 1em;
}

article img {
    max-width: 100%;
    display: block;
    height: auto;
    margin: 0 auto .5em;
}

article figcaption {
    color: grey;
    text-align: center;
    font-size: 0.85em;
    margin-bottom: 2em;
}

.read-more {
    margin: 1em 0;
}

.divider {
    border-top: thin solid var(--hr-color);
    display: block;
    height: 1px;
    border: 0;
    width: 25%;
    margin: 1em auto;
}

.post-summary {
    margin-top: 0.5em;
    display: block;
}

.post-summary > p {
    display: block;
}

.post-translations {
    margin-left: 0.5em;
    list-style: none;
    padding: 0;
    display: inline;
    font-size: 14px;
}

.post-translations > li {
    display: inline;
}

.post-translations > li:not(:last-child)::after {
    content: "|";
    display: inline-block;
}

.post-translations > li a {
    color: var(--link-color);
}

.post-translations > li a:hover,
.post-translations > li a:focus {
    color: var(--link-state-color);
}

.read-next-title {
    margin-bottom:  0;
}

.read-next-posts {
    margin-top:  5px;
    list-style-type:"- ";
    padding-inline-start: 20px;
}

/* Other pages */
.terms {
    list-style-type: none;
    padding: 0;
    line-height: 2em;
}

/* Pagination */

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 3em;
    text-align: center;
}

.pagination-item {
    background: var(--pagination-bg-color);
    padding: 0.75em 0.75em;
}

.pagination-item a {
    color: var(--pagination-link-color);
}

.pagination-item a:hover,
.pagination-item a:focus {
    color: var(--link-state-color);
}

.disabled {
    visibility: hidden;
}

.pagination-item a:hover, .pagination-item a:focus {
    border-bottom: 0;
}

.post-pagination .pagination-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 16em;
}

/* Footer */

.common-footer {
    border-top: thin solid var(--hr-color);
    padding-top: 1.5em;
    margin-top: 3em;
    font-size: 16px;
}

.common-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

ul.language-select, ul.footer-menu {
    padding-left: 0;
    list-style: none;
    display: flex;
}

ul.language-select > li, ul.footer-menu > li {
    margin-right: 1em;
}

.theme-switcher {
    color: var(--switcher-color);
    background: var(--switcher-bg-color);
    padding: 0.5em 1em;
    font-size: 16px;
    border: none;
    margin-bottom: 1em;
}

.h-card {
    display: none;
}

/* Copy code  */
.highlight {
    position: relative;
    overflow: auto;
}
.highlight pre {
    padding-right: 75px;
}

.highlight:hover .highlight-copy-btn {
    display: inline-block;
    border: 1px solid var(--bg-color);
}

.highlight-copy-btn {
    display: none;
    position: absolute;
    top: 18px;
    right: 2px;
    border: 0;
    border-radius: 4px;
    padding: 1px;
    font-size: 0.7em;
    line-height: 1.8;
    color: #fff;
    background-color: #777;
    min-width: 25px;
    text-align: center;
    border-radius: 5px;
}
.highlight-copy-btn:hover {
    transition-duration: .1s;
    background-color: #666;
    border: 1px solid var(--bq-color) !important;
    cursor: pointer;
}

.highlight-copy-btn,
.highlight-copy-btn svg {
    vertical-align: middle;
    margin: 8px;
}

/* Media Queries */

@media (max-width: 840px) {
    .main-wrapper {
        margin: 0;
        max-width: none;
        overflow-x: hidden;
        padding-left: 25px;
        padding-right: 25px;
    }

    .container {
        max-width: 90%;
        margin: 0 auto;
        word-wrap: break-word;
    }

    .pagination-item {
        padding: 0.5em 0.5em;
        font-size: 14px;
    }

    .post-navigation {
        background: var(--pagination-bg-color);
        text-align: center;
        padding: 0.5em 0;
    }

    .post-navigation a {
        margin-left: 0.5em;
    }

    .post-pagination .pagination-item {
        max-width: 10em;
    }
}


    
    /* * Global style */
:root {
  --body-background: #f5f5fa;
  --accent-color: #34495e;
  --accent-color-darker: #2c3e50;
  --accent-color-text: #fff;
  --body-text-color: #555;
  --tag-border-radius: 4px;
  --section-separation: 40px;
}
@media (min-width: 813px) {
  :root {
    --main-top-padding: 35px;
 }
}
@media (min-width: 1920px) {
  :root {
    --main-top-padding: 50px;
 }
}
@media (prefers-color-scheme: dark) {
  :root {
    --body-background: #303030;
    --accent-color: #ecf0f1;
    --accent-color-darker: #bdc3c7;
    --accent-color-text: #000;
    --body-text-color: rgba(255, 255, 255, 0.7);
 }
}
/** * Global font family */
:root {
  --sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
  --base-font-family: var(--sys-font-family), var(--zh-font-family);
  --code-font-family: Menlo, Monaco, Consolas, "Courier New";
}
/* * Card style */
:root {
  --card-background: #fff;
  --card-background-selected: #eaeaea;
  --card-text-color-main: #000;
  --card-text-color-secondary: #747474;
  --card-text-color-tertiary: #bababa;
  --card-separator-color: rgba(218, 218, 218, 0.5);
  --card-border-radius: 10px;
  --card-padding: 30px;
  --small-card-padding: 25px;
}
@media (max-width: 1920px) {
  :root {
    --card-padding: 25px;
 }
}
@media (max-width: 1024px) {
  :root {
    --card-padding: 20px;
 }
}
@media (max-width: 1024px) {
  :root {
    --small-card-padding: 25px 20px;
 }
}
@media (prefers-color-scheme: dark) {
  :root {
    --card-background: #424242;
    --card-background-selected: rgba(255, 255, 255, 0.16);
    --card-text-color-main: rgba(255, 255, 255, 0.9);
    --card-text-color-secondary: rgba(255, 255, 255, 0.7);
    --card-text-color-tertiary: rgba(255, 255, 255, 0.5);
    --card-separator-color: rgba(255, 255, 255, 0.12);
 }
}
/** * Article content font settings */
:root {
  --article-font-family: var(--base-font-family);
  --article-font-size: 1.7rem;
  --article-line-height: 1.85;
}
@media (max-width: 1024px) {
  :root {
    --article-font-size: 1.6rem;
 }
}
/* * Article content style */
:root {
  --blockquote-border-size: 4px;
  --blockquote-background-color: #000;
  --heading-border-size: 4px;
  --link-background-color: 189, 195, 199;
  --link-background-opacity: 0.5;
  --link-background-opacity-hover: 0.7;
  --pre-background-color: #272822;
  --pre-text-color: #f8f8f2;
  --code-background-color: rgba(0, 0, 0, 0.12);
  --code-text-color: #808080;
  --table-border-color: #dadada;
  --tr-even-background-color: #efefee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --code-background-color: #272822;
    --code-text-color: rgba(255, 255, 255, 0.9);
    --table-border-color: #717171;
    --tr-even-background-color: #545454;
    --blockquote-background-color: #000;
 }
}
/* * Shadow style * Thanks to https://www.figma.com/community/plugin/744987207861965946/Shadow-picker */
:root {
  --shadow-l1: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);
  --shadow-l2: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
  --shadow-l3: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
  --shadow-l4: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
}

.mastodon-comment {
  background-color: var(--body-background);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  flex-grow: 2;
}
.mastodon-comment .comment {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: true;
}
.mastodon-comment .comment-avatar img {
  width: 6rem;
}
.mastodon-comment .content {
  flex-grow: 2;
}
.mastodon-comment .comment-author {
  display: flex;
  flex-direction: column;
}
.mastodon-comment .comment-author-name {
  font-weight: bold;
}
.mastodon-comment .comment-author-name a {
  display: flex;
  align-items: center;
}
.mastodon-comment .comment-author-date {
  margin-left: auto;
}
.mastodon-comment .disabled {
  color: var(--accent-color);
}
.mastodon-comment-content p:first-child {
  margin-top: 0;
}
.mastodon {
  --dlg-bg: #282c37;
  --dlg-w: 600px;
  --dlg-color: #9baec8;
  --dlg-button-p: 0.75em 2em;
  --dlg-outline-c: #00d9f5;
}
.copypaste {
  display: flex;
  align-items: center;
  gap: 10px;
}
.copypaste input {
  display: block;
  font-family: inherit;
  background: #17191f;
  border: 1px solid #8c8dff;
  color: #9baec8;
  border-radius: 4px;
  padding: 6px 9px;
  line-height: 22px;
  font-size: 14px;
  transition: border-color 0.3s linear;
  flex: 1 1 auto;
  overflow: hidden;
}
.copypaste .button {
  border: 10px;
  border-radius: 4px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 22px;
  overflow: hidden;
  padding: 7px 18px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: auto;
  background-color: #232730;
}
.copypaste .button:hover {
  background-color: #16181e;
}
[data-component*="dialog"] * {
  box-sizing: border-box;
  outline-color: var(--dlg-outline-c, #1346a0);
}
:where([data-component*="dialog"]) {
  --dlg-gap: 1em;
  background: var(--dlg-bg, #fff);
  border: var(--dlg-b, 0);
  border-radius: var(--dlg-bdrs, 0.25em);
  box-shadow: var(--dlg-bxsh, 0px 25px 50px -12px rgba(0, 0, 0, 0.25));
  font-family: var(--dlg-ff, ui-sansserif, system-ui, sans-serif);
  min-inline-size: var(--dlg-mis, auto);
  padding: var(--dlg-p, var(--dlg-gap));
  width: var(--dlg-w, fit-content);
  color: var(--dlg-color, #000);
}

.mastodon-wrapper {
  display: flex;
  gap: 3rem;
  flex-direction: row;
}

.comment-level {
  max-width: 3rem;
  min-width: 3rem;
}

.reply-original {
  display: none;
}

.avatar {
  background-position:50%;
  background-size:cover;
  border-radius:50%;
  box-shadow:0 0 2px var(--neutral);
  margin:0;
  overflow:hidden
}
section#comments #comments-wrapper {
  margin:1.5em 0;
  padding:0 var(--card-padding)
}
section#comments .comment {
  display:grid;
  column-gap:1rem;
  grid-template-areas:"avatar name" "avatar time" "avatar post" "...... interactions";
  grid-template-columns:min-content;
  justify-items:start;
  margin:0 auto 0 -1em;
  padding:.5em
}
section#comments .comment.comment-reply {
  margin:0 auto 0 1em
}
section#comments .comment .avatar-link {
  grid-area:avatar;
  height:4rem;
  position:relative;
  width:4rem
}
section#comments .comment .avatar-link .avatar {
  height:100%;
  width:100%
}
section#comments .comment .avatar-link.op::after {
  background-color:var(--accent-color);
  border-radius:50%;
  bottom:-.25rem;
  color:var(--accent-color-text);
  content:"✓";
  display:block;
  font-size:1.25rem;
  font-weight:700;
  height:1.5rem;
  line-height:1.5rem;
  position:absolute;
  right:-.25rem;
  text-align:center;
  width:1.5rem
}
section#comments .comment .author {
  align-items:center;
  display:flex;
  font-weight:700;
  gap:.5em;
  grid-area:name
}
section#comments .comment .author .instance {
  background-color:var(--code-background-color);
  border-radius:9999px;
  color:var(--neutral);
  font-size:smaller;
  font-weight:400;
  padding:.25em .75em
}
section#comments .comment .author .instance:hover {
  opacity:.8;
  text-decoration:none
}
section#comments .comment .author .instance.op {
  background-color:var(--accent-color);
  color:var(--accent-color-text)
}
section#comments .comment .author .instance.op::before {
  content:"✓";
  font-weight:700;
  margin-inline-end:.25em;
  margin-inline-start:-.25em
}
section#comments .comment time {
  grid-area:time;
  line-height:1.5rem
}
section#comments .comment main {
  grid-area:post
}
section#comments .comment main p:first-child {
  margin-top:.25em
}
section#comments .comment main p:last-child {
  margin-bottom:0
}
section#comments .comment footer {
  grid-area:interactions
}
section#comments .comment footer .faves {
  color:inherit
}
section#comments .comment footer .faves:hover {
  opacity:.8;
  text-decoration:none
}
section#comments .comment footer .faves::before {
  color:red;
  content:"♥";
  font-size:2rem;
  margin-inline-end:.25em
}
section#comments .comment .emoji {
  display:inline;
  height:1.25em;
  vertical-align:middle;
  width:1.25em
}
section#comments .comment .invisible {
  display:none
}
section#comments .comment .ellipsis::after {
  content:"…"
}



