@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:400 700;font-display:swap;src:url("/assets/fonts/source-serif-4.f01e5ae1.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+21B5,U+2212,U+2215}
@font-face{font-family:"Source Serif 4";font-style:italic;font-weight:400 700;font-display:swap;src:url("/assets/fonts/source-serif-4-italic.5273c7df.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+21B5,U+2212,U+2215}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:400 700;font-display:swap;src:url("/assets/fonts/hanken-grotesk.052af1bb.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+21B5,U+2212,U+2215}
@font-face{font-family:"Noto Serif SC";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/noto-serif-sc-400.99363354.woff2") format("woff2");unicode-range:U+2E80-2EFF,U+3000-303F,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:"Noto Serif SC";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/noto-serif-sc-700.abf5af56.woff2") format("woff2");unicode-range:U+2E80-2EFF,U+3000-303F,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:"Noto Sans SC";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/noto-sans-sc-400.4b8d7dc3.woff2") format("woff2");unicode-range:U+2E80-2EFF,U+3000-303F,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:"Noto Sans SC";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/noto-sans-sc-700.7cdd214a.woff2") format("woff2");unicode-range:U+2E80-2EFF,U+3000-303F,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: rgba(0, 0, 0, 0.8);
  --soft: rgba(0, 0, 0, 0.7);
  --muted: rgba(0, 0, 0, 0.55);
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --accent: #0f62fe;
  --link-line: #6b93ea;
  --panel: rgba(0, 0, 0, 0.06);
  --code-bg: rgba(0, 0, 0, 0.05);
  --selection: rgba(0, 0, 0, 0.12);
  --hover: rgba(0, 0, 0, 0.04);
  --selected: rgba(0, 0, 0, 0.07);
  --frame: rgba(0, 0, 0, 0.28);
  --space-1: 0.25rem; 
  --space-2: 0.5rem; 
  --space-3: 0.75rem; 
  --space-4: 1rem; 
  --space-5: 1.5rem; 
  --space-6: 2rem; 
  --space-7: 2.5rem; 
  --space-8: 3.5rem; 
  --space-9: 4.5rem; 
  --space-10: 6rem; 
  --space-11: 7rem; 
  --text-3xs: 0.5625rem; 
  --text-2xs: 0.625rem; 
  --text-xs: 0.75rem; 
  --text-code: 0.8125rem; 
  --text-sm: 0.875rem; 
  --text-base: 1.0625rem; 
  --text-md: 1rem; 
  --text-lg: 1.125rem; 
  --text-xl: 1.625rem; 
  --text-display: clamp(1.75rem, 5vw, 2rem);
  --text-masthead: clamp(3.2rem, 9vw, 6.4rem); 
  --leading-tight: 1.2; 
  --leading-snug: 1.35; 
  --leading-body: 24px;
  --leading-reading: 28px;
  --w-regular: 400;
  --w-semibold: 600;
  --w-bold: 700;
  --tracking-tight: 0; 
  --tracking-caps: 0.06em; 
  --sbw: 0px;
  --vw: calc(100vw - var(--sbw));
  --content: 43.75rem;
  --content-figure: var(--content);
  --content-wide: var(--content);
  --figure-w: max(100%, min(var(--content-figure), calc(var(--vw) - 2.5rem)));
  --figure-w-wide: max(100%, min(var(--content-wide), calc(var(--vw) - 2.5rem)));
  --radius-card: 0.875rem; 
  --radius-control: 0.5rem; 
  --control: 36px;
  --control-compact: 28px;
  --rise-dist: 8px;
  --rise-dur: 500ms;
  --rise-ease: ease-out;
  --rise-step: 60ms;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast: 80ms;
  --fast-exit: 60ms;
  --moderate: 160ms;
  --moderate-exit: 120ms;
  --slow: 240ms;
  --slow-exit: 160ms;
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-slow: cubic-bezier(0.34, 1.32, 0.64, 1);
  --font-sans: "Hanken Grotesk", "Noto Sans SC", -apple-system, Helvetica, Arial,
    sans-serif;
  --font-serif: "Source Serif 4", "Noto Serif SC", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    "Noto Sans SC", monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-autospace: normal;
}
code,
pre,
kbd,
samp {
  font-variant-ligatures: none;
  text-autospace: no-autospace;
}
body.search-lock {
  overflow: hidden;
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease;
}
main#content {
  view-transition-name: page-content;
}
::view-transition-old(page-content) {
  animation: page-fade-out 120ms ease both;
}
::view-transition-new(page-content) {
  animation: rise-in var(--rise-dur) var(--rise-ease) both;
}
@keyframes page-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 var(--rise-dist);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home-masthead,
  .home-links,
  .home-plate,
  .cat-nav,
  .blog-list-item:nth-child(-n + 6),
  .article-header h1,
  .article-header .article-lead,
  .article-meta,
  .article-main {
    animation: rise-in var(--rise-dur) var(--rise-ease) both;
    animation-delay: calc(var(--rise-i, 0) * var(--rise-step));
  }
  .home-plate {
    --rise-i: 1;
  }
  .home-links {
    --rise-i: 2;
  }
  .article-header .article-lead {
    --rise-i: 1;
  }
  .article-meta {
    --rise-i: 2;
  }
  .article-main {
    --rise-i: 3;
  }
  .blog-list-item:nth-child(1) {
    --rise-i: 1;
  }
  .blog-list-item:nth-child(2) {
    --rise-i: 2;
  }
  .blog-list-item:nth-child(3) {
    --rise-i: 3;
  }
  .blog-list-item:nth-child(4) {
    --rise-i: 4;
  }
  .blog-list-item:nth-child(5) {
    --rise-i: 5;
  }
  .blog-list-item:nth-child(6) {
    --rise-i: 6;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .blog-list-item:nth-child(n + 7),
    .article-body .media,
    .article-body .code-block {
      animation: rise-in var(--rise-dur) var(--rise-ease) both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}
::selection {
  background: var(--selection);
}
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
h1 {
  line-height: var(--leading-tight);
}
p {
  margin: 0 0 var(--space-4);
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 500;
  padding: var(--space-1) var(--space-3);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}
[data-fluid] {
  position: relative;
}
[data-fluid] > :not(.fh) {
  position: relative;
  z-index: 1;
}
.fh {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--radius-control);
  background: var(--hover);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--moderate) var(--ease-out),
    opacity var(--fast-exit) var(--ease-in);
}
.fh.shown {
  opacity: 1;
  transition:
    transform var(--fast) var(--ease-out),
    opacity var(--fast) var(--ease-out);
}
.fh.snap {
  transition: none;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin: 16px 0;
  line-height: 24px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
}
.topbar-nav {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-left: calc(-1 * var(--space-2));
}
.topbar a {
  color: var(--muted);
  text-decoration: none;
}
.topbar a.active {
  color: var(--muted);
  font-weight: var(--w-bold);
  text-decoration: none;
}
.topbar-nav a {
  padding: 2px var(--space-2);
}
.topbar-tools {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
}
.search-trigger {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
}
.search-trigger::after {
  content: "";
  position: absolute;
  inset: -6px;
}
.search-trigger:hover {
  color: var(--muted);
}
.home-tools {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 20;
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
}
.lang-switch {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-decoration: none;
}
.lang-switch:hover {
  color: var(--muted);
  font-weight: var(--w-bold);
  text-decoration: none;
}
.topbar-nav a[data-text],
.topbar-lang,
.lang-switch {
  display: inline-flex;
  flex-direction: column;
}
.topbar-nav a[data-text]::after,
.topbar-lang::after,
.lang-switch::after {
  content: attr(data-text);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: var(--w-bold);
  pointer-events: none;
  user-select: none;
}
.nav-icon {
  vertical-align: -0.15em;
}
.icon-tg {
  width: 1.2em;
  height: 1em;
  fill: currentColor;
}
.icon-mail {
  width: 1.25em;
  height: 1em;
}
.icon-gh {
  width: 0.95em;
  height: 0.95em;
}
.icon-rss {
  width: 1em;
  height: 1em;
}
.icon-home {
  width: 1em;
  height: 1em;
  margin-bottom: -0.15em;
}
.icon-search {
  width: 1.05em;
  height: 1.05em;
  margin-bottom: -0.17em;
}
.topbar-nav a:has(.nav-icon):hover,
.home-links a:has(.nav-icon):hover {
  text-decoration: none;
}
.topbar-nav a:has(.nav-icon) {
  position: relative;
}
.topbar-nav a:has(.nav-icon)::after {
  content: "";
  position: absolute;
  inset: -6px;
}
@media (prefers-reduced-motion: no-preference) {
  .home-links a:hover .icon-tg {
    animation: tg-float 1.6s ease-in-out infinite;
  }
  .home-links a:hover .icon-mail {
    animation: mail-lift 1.6s ease-in-out infinite;
  }
  .home-links a:hover .icon-gh {
    animation: gh-turn 1.6s ease-in-out infinite;
  }
  .topbar-nav a:hover .icon-home {
    animation: home-settle 1.6s ease-in-out infinite;
  }
  .home-links a:hover .icon-rss .rss-arc-1 {
    animation: rss-pulse 1.6s ease-in-out infinite;
  }
  .home-links a:hover .icon-rss .rss-arc-2 {
    animation: rss-pulse 1.6s ease-in-out 0.2s infinite;
  }
  @keyframes rss-pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.25;
    }
  }
  @keyframes tg-float {
    0%,
    100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(0.1em, -0.18em);
    }
  }
  @keyframes mail-lift {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-0.16em);
    }
  }
  @keyframes gh-turn {
    0%,
    100% {
      transform: rotate(0deg);
    }
    50% {
      transform: rotate(-7deg);
    }
  }
  @keyframes home-settle {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(0.08em);
    }
  }
}
.site-shell {
  width: min(calc(100% - 2.5rem), var(--content));
  margin: 0 auto;
  padding: 0 0 120px;
}
.site-shell--wide {
  width: min(calc(100% - 2.5rem), var(--content-wide));
}
.home-hero {
  padding: var(--space-6) 0 var(--space-7);
  margin-bottom: var(--space-8);
}
.home-masthead {
  margin-bottom: var(--space-7);
}
.home-masthead h1 {
  margin: 0;
  font-size: var(--text-masthead);
  font-weight: var(--w-bold);
  line-height: 0.95;
  letter-spacing: var(--tracking-tight);
}
.home-nameplate-anim {
  display: block;
}
.home-hero {
  container-type: inline-size;
}
.home-nameplate-frame {
  display: block;
  width: 100%;
  height: calc(1.94 * clamp(52px, 11cqi, 150px));
  border: 0;
  background: transparent;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(var(--space-6) - var(--space-4));
  margin: 0 0 0 calc(-1 * var(--space-2));
  padding-left: 0;
  list-style: none;
}
.home-links li {
  font-size: var(--text-md);
}
.home-links a {
  display: inline-block;
  padding: 2px var(--space-2);
  color: var(--text);
  text-decoration: none;
}
.home-links-marks {
  display: flex;
  align-items: center;
  font-size: var(--text-lg);
}
.home-links-marks a {
  padding: 0.3em 0.45em;
  color: var(--soft);
  line-height: 1;
}
.home-links-marks a:hover {
  color: var(--text);
}
.home-plate {
  width: min(100%, 21.25rem);
  margin: 0 0 var(--space-7);
}
.home-plate img {
  display: block;
  width: 100%;
  height: auto;
}
.home-status {
  margin-top: var(--space-9);
}
.home-status-meta {
  min-height: var(--leading-body);
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.home-location-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-2);
  margin-left: calc(-1 * var(--space-2));
}
.home-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--control-compact);
  padding: 0 10px 0 var(--space-2);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--soft);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background-color var(--fast-exit) var(--ease-in), color var(--fast-exit) var(--ease-in);
}
.home-location[hidden] { display: none; }
.home-location:hover {
  background: var(--hover);
  color: var(--text);
  transition-duration: var(--fast);
  transition-timing-function: var(--ease-out);
}
.home-location:active { background: var(--selected); }
.home-location svg { width: 14px; height: 14px; flex: none; }
.home-location:disabled { opacity: 0.6; cursor: wait; }
.home-location:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-location-message { margin: 0; padding: 0 var(--space-2); color: var(--muted); font-family: var(--font-sans); font-size: var(--text-xs); }
.home-status-meta.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  background: var(--accent);
  animation: status-caret 1s step-end infinite;
}
@keyframes status-caret {
  50% {
    opacity: 0;
  }
}
.blog-shell {
  margin: 80px 0 100px;
}
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  max-width: var(--content);
  margin: 0 auto 27px;
  margin-left: -10px;
  padding-bottom: 30px;
}
.cat-nav a {
  display: inline-flex;
  align-items: center;
  height: var(--control-compact);
  padding: 0 10px;
  color: var(--soft);
  font-size: var(--text-sm);
  text-decoration: none;
}
.cat-nav a.current {
  color: var(--text);
  font-weight: var(--w-bold);
}
.cat-nav a.current::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-control);
  background: var(--selected);
  transition: opacity var(--fast) var(--ease-out);
}
.cat-nav.is-hovering a.current::before {
  opacity: 0.8;
}
.cat-title {
  max-width: var(--content);
  margin: 43px auto 37px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--text-xl);
  font-weight: var(--w-bold);
  text-wrap: balance;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 0 -12px;
  padding: 0;
  list-style: none;
}
.blog-list-item {
  padding: 12px;
  cursor: pointer;
}
.blog-list-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--w-bold);
  line-height: var(--leading-body);
  text-wrap: pretty;
}
.blog-list-title a {
  text-decoration: none;
}
.blog-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: 4px 0;
  color: var(--soft);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  font-variant-numeric: tabular-nums;
}
.blog-list-dek {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}
:lang(zh) .blog-list-dek {
  line-height: 1.6;
}
.post-list {
  margin: 0 -12px;
  padding: 0;
  list-style: none;
}
.post-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 12px;
  cursor: pointer;
}
.post-list li + li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  border-top: 1px solid var(--line);
  transition: border-color var(--fast) var(--ease-out);
}
.post-list li.is-active::before,
.post-list li.is-active + li::before {
  border-color: transparent;
}
.post-date {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--w-regular);
  font-variant-numeric: tabular-nums;
}
.post-entry a {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: var(--w-regular);
  text-decoration: none;
}
.post-dek {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: var(--content);
  margin: var(--space-1) 0 0;
  color: var(--soft);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}
.post-kind {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.list-empty {
  color: var(--muted);
  font-style: italic;
}
.archive-year-num {
  margin: 0 0 var(--space-3);
  font-size: var(--text-md);
  font-weight: var(--w-bold);
}
.article-header {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 20px 0;
}
.article-header::before,
.article-header::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--vw);
  height: 1px;
  transform: translateX(-50%);
  background: var(--line);
}
.article-header::before {
  top: 0;
}
.article-header::after {
  bottom: 0;
}
.article-header h1 {
  margin: 21px 0;
  font-size: var(--text-display);
  font-weight: var(--w-bold);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.article-header .article-lead {
  margin: 21px 0;
  color: var(--soft);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--w-regular);
  line-height: var(--leading-body);
  text-wrap: pretty;
}
.agent-header-links {
  position: absolute;
  right: 0;
  top: 42px;
  font-size: var(--text-sm);
}
.agent-header-links a {
  color: var(--soft);
  text-decoration: none;
}
.agent-header-links a:hover,
.agent-header-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}
.agent-header h1 {
  padding-right: 130px;
}
@media (max-width: 480px) {
  .agent-header h1 { padding-right: 0; }
  .agent-header-links { position: static; text-align: right; margin-top: 8px; }
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 20px;
  margin: 0;
}
.article-meta dt {
  color: var(--muted);
  font-size: var(--text-3xs);
  text-transform: uppercase;
}
.article-meta dd {
  margin: 0;
  font-size: var(--text-2xs);
  line-height: 1.6;
}
:lang(zh) .article-meta dt {
  font-size: var(--text-2xs);
}
:lang(zh) .article-meta dd {
  font-size: var(--text-xs);
}
.article-main {
  max-width: var(--content);
  min-width: 0;
  margin-inline: auto;
}
.entry-cover-article {
  position: relative;
  left: 50%;
  width: var(--figure-w);
  margin: 50px 0 0;
  transform: translateX(-50%);
}
.entry-cover-article img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.article-body {
  margin: 50px 0;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-reading);
  overflow-wrap: break-word;
  hanging-punctuation: allow-end;
}
.article-body p {
  margin-bottom: var(--space-5);
  text-indent: 0;
  text-wrap: pretty;
}
:lang(zh) .article-body p {
  text-align: justify;
}
.article-body p.indent {
  text-indent: 2em;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: var(--space-7) 0 var(--space-4);
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  scroll-margin-top: var(--space-5);
  text-wrap: balance;
  clear: both;
}
.article-body h1 {
  font-size: 2em;
}
.article-body h2 {
  margin: 0 0 var(--space-4);
  padding-top: 1em;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--text-xl);
}
.article-body h3 {
  margin-bottom: var(--space-3);
  font-size: 1.17em;
}
.article-body h4 {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 1em;
}
.article-body ul,
.article-body ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-5);
}
.article-body li {
  margin: var(--space-1) 0;
}
.article-body li::marker {
  color: var(--muted);
}
.article-body a {
  color: var(--text);
  text-underline-offset: 0.15em;
}
.article-body code {
  padding: 0.1rem 0.35rem;
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.frame-title {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  margin: 0;
  padding: 0 10px;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-regular);
  line-height: 16px;
  white-space: nowrap;
}
.frame-corner {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--bg);
  color: var(--frame);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1;
  user-select: none;
}
.frame-corner-tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.frame-corner-tr { top: 0; right: 0; transform: translate(50%, -50%); }
.frame-corner-bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.frame-corner-br { right: 0; bottom: 0; transform: translate(50%, 50%); }
.article-body .code-block {
  position: relative;
  margin: var(--space-6) 0;
  background-image:
    repeating-linear-gradient(to right, var(--frame) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(to right, var(--frame) 0 2px, transparent 2px 7px);
  background-repeat: repeat-x;
  background-position: 0 0, 0 100%;
  background-size: 100% 1px;
}
.code-copy {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--control-compact);
  height: var(--control-compact);
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  transform: translateY(-50%);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color var(--fast) var(--ease-out),
    color var(--fast) var(--ease-out);
}
.code-copy:hover {
  background: linear-gradient(var(--hover), var(--hover)), var(--bg);
  color: var(--text);
}
.copy-glyph {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition:
    opacity var(--fast-exit) var(--ease-in),
    transform var(--fast-exit) var(--ease-in),
    filter var(--fast-exit) var(--ease-in);
}
.copy-glyph-done,
.code-copy.is-done .copy-glyph-copy {
  opacity: 0;
  transform: scale(0.6);
  filter: blur(4px);
}
.code-copy:not(.is-done) .copy-glyph-copy,
.code-copy.is-done .copy-glyph-done {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity var(--fast) var(--ease-out),
    transform var(--fast) var(--ease-out),
    filter var(--fast) var(--ease-out);
}
.article-body pre {
  margin: var(--space-5) 0;
  padding: var(--space-4) 0;
  overflow: auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--text-code);
  line-height: 1.3;
}
.article-body .code-block pre {
  margin: 0;
  padding-top: var(--space-5);
  border: 0;
}
.article-body pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}
.article-body blockquote {
  margin: var(--space-5) 0;
  padding: 0 1em;
  border-left: 0.25em solid var(--line-strong);
  color: var(--muted);
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}
:lang(zh) .article-body blockquote {
  font-style: normal;
}
.article-body .callout {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: start;
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-4);
  background-image:
    repeating-linear-gradient(to right, var(--frame) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(to bottom, var(--frame) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(to right, var(--frame) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(to bottom, var(--frame) 0 2px, transparent 2px 7px);
  background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
  background-position: 0 0, 100% 0, 0 100%, 0 0;
  background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
}
.article-body .callout-glyph {
  color: var(--muted);
  font-family: var(--font-mono);
  line-height: var(--leading-reading);
  text-align: center;
  user-select: none;
}
.article-body .callout-tip .callout-glyph,
.article-body .callout-warning .callout-glyph,
.article-body .callout-danger .callout-glyph {
  color: var(--text);
  font-weight: var(--w-bold);
}
.article-body .callout-body > p {
  margin: var(--space-2) 0 0;
}
.article-body .callout-body > p:first-child {
  margin-top: 0;
}
.article-body img {
  height: auto;
  margin: var(--space-5) 0;
}
.article-body hr {
  height: 1px;
  margin: var(--space-7) 0;
  border: 0;
  background: var(--line);
}
.article-body .footnote-ref a {
  padding: 0 0.15em;
  color: var(--text);
}
.article-body hr.footnotes-sep {
  display: none;
}
.article-body .footnotes {
  margin-top: 100px;
  padding-left: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
}
.article-body .footnotes li {
  margin: var(--space-1) 0;
}
.article-body .footnote-backref {
  margin-left: var(--space-1);
  text-decoration: none;
}
.article-body .table-wrap {
  overflow-x: auto;
  margin: var(--space-5) -12px;
}
.article-body table {
  width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 20px;
}
.article-body th,
.article-body td {
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
  transition:
    border-color var(--fast) var(--ease-out),
    color var(--fast) var(--ease-out);
}
.article-body th {
  border-bottom-color: var(--line-strong);
  color: var(--text);
  font-weight: var(--w-bold);
}
.article-body td {
  color: var(--soft);
}
.article-body tbody tr:last-child td,
.article-body tbody tr.is-active td,
.article-body tbody tr:has(+ tr.is-active) td,
.article-body table:has(tbody tr:first-child.is-active) th {
  border-bottom-color: transparent;
}
.article-body tbody tr.is-active td {
  color: var(--text);
}
.article-body ul.task-list {
  padding-left: var(--space-1);
  list-style: none;
}
.article-body .task-item {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}
.article-body del {
  color: var(--muted);
}
.article-end {
  clear: both;
}
.article-body .media {
  position: relative;
  left: 50%;
  width: var(--figure-w);
  margin: var(--space-5) 0;
  transform: translateX(-50%);
}
.article-body .media-audio {
  left: auto;
  width: auto;
  transform: none;
}
.article-body .media img {
  max-height: 80vh;
  margin: 0;
  object-fit: contain;
}
.article-body .media video,
.article-body .embed-frame {
  width: 100%;
  border: 1px solid var(--line);
  background: #000;
}
.article-body .media audio {
  width: 100%;
}
.article-body .embed-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-body .embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body .html-embed-frame {
  width: 100%;
}
.article-body .html-embed-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.article-body .media:has(figcaption) {
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.article-body .media figcaption {
  font-family: var(--font-sans);
  padding-top: 15px;
  font-size: var(--text-code);
  text-align: left;
}
.article-body .media--wide {
  position: relative;
  left: 50%;
  width: var(--figure-w-wide);
  transform: translateX(-50%);
}
.article-body .media--full {
  position: relative;
  left: 50%;
  width: var(--vw);
  transform: translateX(-50%);
}
.article-body .media--full img {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
.article-body .media--full figcaption {
  width: min(calc(100% - 2.5rem), var(--content-wide));
  margin-left: auto;
  margin-right: auto;
}
.article-body .media--left,
.article-body .media--right {
  left: auto;
  width: min(45%, 16rem);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  transform: none;
}
.article-body .media--left {
  float: left;
  margin-right: var(--space-5);
}
.article-body .media--right {
  float: right;
  margin-left: var(--space-5);
}
.article-body .media-row {
  display: grid;
  position: relative;
  left: 50%;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: var(--figure-w);
  margin: var(--space-5) 0;
  transform: translateX(-50%);
  align-items: start;
}
.article-body .media-row .media {
  left: auto;
  width: auto;
  margin: 0;
  transform: none;
}
.article-body .media--plain img,
.article-body .media--frame img {
  border: 0;
}
.article-body .media--frame {
  padding: var(--space-4);
  background: var(--code-bg);
  border-radius: var(--radius-card);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  max-width: var(--content);
  margin: 0 auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0 -12px;
  padding: 12px;
  text-decoration: none;
}
.post-nav-newer {
  grid-column: 2;
  text-align: end;
}
.post-nav-label {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
}
.post-nav-title {
  font-size: var(--text-md);
  font-weight: var(--w-bold);
  text-wrap: pretty;
}
.site-footer {
  margin-top: var(--space-9);
  color: var(--muted);
  font-size: var(--text-xs);
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
}
.site-shell:has(> .site-footer) {
  padding-bottom: var(--space-8);
}
.not-found h1 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-display);
  font-weight: var(--w-bold);
}
.not-found-recent {
  margin-top: var(--space-6);
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12dvh, calc(50dvh - 220px)) var(--space-4) var(--space-4);
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--moderate-exit) var(--ease-in);
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--moderate) var(--ease-out);
}
.search-box {
  display: flex;
  flex-direction: column;
  width: min(38rem, 100%);
  max-height: min(440px, 76dvh);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: 0 18px 48px rgb(17 17 17 / 0.2);
  transform: translateY(calc(-1 * var(--rise-dist))) scale(0.985);
  transition: transform var(--slow-exit) var(--ease-in);
}
.search-overlay.open .search-box {
  transform: none;
  transition: transform var(--slow) var(--ease-slow);
}
.search-input-wrap {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}
.search-icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--soft);
}
.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.05rem;
}
.search-input::placeholder {
  color: var(--muted);
}
.search-frame {
  flex: 0 1 auto;
  min-height: 0;
  height: 0;
  overflow: hidden;
  transition: height var(--moderate) var(--ease-out);
}
.search-results {
  max-height: calc(min(440px, 76dvh) - 7rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.search-results.filled {
  padding: 6px;
  border-top: 1px solid var(--line);
}
.search-result-item {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  text-decoration: none;
}
.search-result-item span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}
.search-result-item h4 {
  margin: 0.15rem 0;
  font-size: var(--text-md);
  font-weight: var(--w-bold);
}
.search-result-item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.search-result-item mark {
  padding: 0 0.1em;
  background: var(--selection);
  color: inherit;
}
.search-empty {
  padding: var(--space-5) var(--space-4);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-align: center;
}
.search-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 16px;
}
.search-foot[hidden] {
  display: none;
}
.search-hint {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
}
.search-hint-open {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}
.search-hint-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 14px;
}
@media (hover: none) {
  .search-foot {
    display: none;
  }
}
.katex-display {
  margin: var(--space-5) 0;
  padding: var(--space-1) 0;
  overflow-x: auto;
  overflow-y: hidden;
}
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  .site-shell {
    width: calc(100% - 1.75rem);
    padding-top: var(--space-5);
  }
  .blog-shell {
    margin: var(--space-8) 0 var(--space-9);
  }
  .article-body .table-wrap {
    padding-bottom: var(--space-1);
  }
  .post-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
    padding: var(--space-3) 12px;
  }
  .post-kind {
    display: none;
  }
  .post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-nav-newer {
    grid-column: 1;
    text-align: start;
  }
  .article-body .media--left,
  .article-body .media--right {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .article-body .media-row {
    grid-template-columns: 1fr;
  }
  :lang(zh) .article-body p {
    text-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .fh,
  .fh.shown {
    transition: opacity var(--fast) var(--ease-out) !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
@media print {
  .skip-link,
  .home-tools,
  .topbar,
  .search-overlay,
  .post-nav,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .site-shell,
  .site-shell--wide {
    width: auto;
    padding: 0;
  }
  .article-header::after {
    display: none;
  }
  .article-body pre {
    white-space: pre-wrap;
    overflow: visible;
  }
  .article-body a {
    text-decoration: none;
  }
  .article-body .media--wide,
  .article-body .media--full {
    position: static;
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.page-loader.is-visible {
  opacity: 1;
}
.page-loader.is-hidden {
  opacity: 0;
}
.page-loader svg {
  width: min(280px, 70vw);
  height: auto;
  overflow: visible;
  animation: pl-reveal 2s ease-in-out infinite alternate;
}
@keyframes pl-reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader svg {
    animation: none;
    clip-path: none;
  }
}
