@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono/IBMPlexMono-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono/IBMPlexMono-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --content-width: 455px;
  --page-gutter: 39px;
  --color-bg-primary: hsl(0 0% 99%);
  --color-bg-secondary: hsl(0 0% 97%);
  --color-border: hsl(0 0% 93%);
  --color-selection-bg: hsl(0 0% 86%);
  --color-text-primary: hsl(0 0% 8%);
  --color-text-muted: hsl(0 0% 30%);
  --color-text-code: hsl(0 0% 20%);
  --latin-fallback: "Helvetica Neue", Arial, "Liberation Sans", "DejaVu Sans";
  --latin-sans: "IBM Plex Sans", var(--latin-fallback);
  --latin-mono: "IBM Plex Mono", monospace;
  --cjk-hei: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
  --cjk-song: "Songti SC", "STSong", SimSun, "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --cjk-kai: "Kaiti SC", STKaiti, KaiTi, "AR PL UKai CN", "AR PL KaitiM GB", var(--cjk-song);
}

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

body {
  box-sizing: border-box;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 3em var(--page-gutter);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font: 1em / 1.5 monospace;
  line-break: strict;
  overflow-wrap: break-word;
}

main {
  font-family: var(--latin-sans), var(--cjk-hei);
  font-size: 13.65px;
  line-height: 1.6;
  font-synthesis: weight;
}

main em {
  font-family: var(--latin-sans), var(--cjk-song);
  font-style: italic;
}

main strong {
  font-weight: 700;
}

a {
  color: var(--color-text-primary);
  text-decoration-style: dashed;
  text-underline-offset: 0.22em;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body > header {
  padding-bottom: 3em;
}

.path-nav {
  font: 13px / 1.5 var(--latin-mono);
  padding: 1.5em 0;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.path-nav::-webkit-scrollbar {
  display: none;
}

.path-nav ol {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.path-nav li {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--color-text-muted);
  flex-shrink: 0;
  max-width: 200px;
}

.path-nav li.current {
  max-width: none;
}

.path-nav h1 {
  display: flex;
  margin: 0;
  min-width: 0;
  font: inherit;
}

.path-nav li a {
  display: inline-block;
  max-width: 100%;
  margin-left: -0.16666em;
  text-decoration: none;
  border-bottom: none;
  padding: 0 0.25em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-muted);
}

.path-nav li.current a {
  color: var(--color-text-primary);
  font-weight: bold;
}

.path-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  body { padding-top: 2em; }
  .path-nav li { max-width: 100px; }
  .path-nav li:first-child { max-width: none; }
  .path-nav li.current { max-width: 150px; }
}

h1, h2, h3, h4, h5, h6,
.home article > p:first-child {
  margin: 1.5em 0;
  font: inherit;
  font-weight: bold;
}

p, ul, ol {
  margin: 1em 0;
}

p, pre {
  margin: 1.5em 0;
}

ul, ol {
  padding-left: 1.5em;
}

li {
  margin: 0.3em 0;
}

blockquote {
  font-family: var(--latin-sans), var(--cjk-kai);
  font-style: normal;
  margin: 1.5em 0;
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
  color: var(--color-text-primary);
}

code, pre {
  font-family: var(--latin-mono);
  font-size: 0.95em;
}

code {
  padding: 0.1em 0.3em;
  background: var(--color-bg-secondary);
  color: var(--color-text-code);
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 1.5em 0;
}

figure img {
  display: block;
}

figcaption {
  margin-top: 0.75em;
  color: var(--color-text-muted);
  font-size: 12px;
}

figcaption > :first-child {
  margin-top: 0;
}

figcaption > :last-child {
  margin-bottom: 0;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  line-height: 1.6;
  overflow-wrap: normal;
}

pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

table {
  display: block;
  max-width: 100%;
  width: max-content;
  overflow-x: auto;
  margin: 1.5em 0;
  border-collapse: collapse;
}

th, td {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-border);
}

th {
  background: var(--color-bg-secondary);
  font-weight: 600;
}

time {
  color: var(--color-text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.toc {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
  font-size: 13px;
}

.toc h2 {
  margin: 0;
  font-size: 14px;
}

.post-ending {
  margin-top: 2.5em;
  color: var(--color-text-muted);
}

.post-ending time {
  font-size: inherit;
}

.page-links, .comments {
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-size: 12px;
}

.post-divider {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px dashed var(--color-border);
}

.site-footer {
  margin-top: 3rem;
  color: var(--color-text-muted);
  font: 12px / 1.6 var(--latin-sans), var(--cjk-hei);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.home h2, .home h3 {
  font-size: 14px;
  line-height: inherit;
}

.home #articles {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3.5rem 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.home #articles::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--color-border);
}

.home #articles a {
  order: 1;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.home #articles + ul, .post-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.home #articles + ul li, .post-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0.25rem 0;
  line-height: 1.7;
}

.home #articles + ul a, .post-list a {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration-color: transparent;
}

.post-list a:hover {
  text-decoration-color: currentColor;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip-link:focus {
  width: auto;
  height: auto;
  top: 0.5rem;
  left: 1rem;
  clip-path: none;
  background: var(--color-bg-primary);
}
