:root {
  --bg: #fff;
  --bg-elevated: #f2f2f2;
  --bg-hover: #f2f2f2;
  --fg: #171717;
  --fg-muted: rgba(23,23,23,0.62);
  --fg-faint: rgba(23,23,23,0.42);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.2);
  --accent: #006bff;
  --hljs-keyword: #bd2864;
  --hljs-string: #297a3a;
  --hljs-number: #0068d6;
  --hljs-title: #7820bc;
  --hljs-variable: #cb2a2f;
  --mark-bg: rgba(255,212,0,0.32);
  --alert-note: #0969da;
  --alert-tip: #1a7f37;
  --alert-important: #8250df;
  --alert-warning: #9a6700;
  --alert-caution: #cf222e;
  color-scheme: light;
  --font-sans: "Geist", "HarmonyOS Sans SC", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 3.6rem, 2.75rem);
  --leading-body: 1.625;
  --leading-tight: 1.2;
  --track-tight: -0.02em;
  --track-body: -0.005em;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --header-h: 56px;
  --container: 1080px;
  --prose: 720px;
  --prose-wide: 980px;
  --toc-w: 200px;
  --radius: 6px;
  --radius-pill: 999px;
  --transition: 150ms ease;
}
[data-theme="dark"] {
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}
[data-theme="dark"] {
  --bg: #000;
  --bg-elevated: #1a1a1a;
  --bg-hover: #1a1a1a;
  --fg: #ededed;
  --fg-muted: rgba(237,237,237,0.62);
  --fg-faint: rgba(237,237,237,0.44);
  --border: rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.28);
  --accent: #47a8ff;
  --hljs-keyword: #f75f8f;
  --hljs-string: #62c073;
  --hljs-number: #52a8ff;
  --hljs-title: #bf7af0;
  --hljs-variable: #ff6166;
  --mark-bg: rgba(255,212,0,0.22);
  --alert-note: #4493f8;
  --alert-tip: #3fb950;
  --alert-important: #ab7df8;
  --alert-warning: #d29922;
  --alert-caution: #f85149;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000;
    --bg-elevated: #1a1a1a;
    --bg-hover: #1a1a1a;
    --fg: #ededed;
    --fg-muted: rgba(237,237,237,0.62);
    --fg-faint: rgba(237,237,237,0.44);
    --border: rgba(255,255,255,0.14);
    --border-strong: rgba(255,255,255,0.28);
    --accent: #47a8ff;
    --hljs-keyword: #f75f8f;
    --hljs-string: #62c073;
    --hljs-number: #52a8ff;
    --hljs-title: #bf7af0;
    --hljs-variable: #ff6166;
    --mark-bg: rgba(255,212,0,0.22);
    --alert-note: #4493f8;
    --alert-tip: #3fb950;
    --alert-important: #ab7df8;
    --alert-warning: #d29922;
    --alert-caution: #f85149;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
html.i18n-pending body {
  visibility: hidden;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  letter-spacing: var(--track-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
}
.site-main {
  max-width: var(--prose);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--sp-12)) var(--sp-6) 0;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.site-header-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.site-nav a:hover {
  color: var(--fg);
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-left: var(--sp-2);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.nav-toggle:hover {
  color: var(--fg);
}
.nav-toggle svg {
  display: block;
}
.theme-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-left: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.theme-toggle:hover {
  color: var(--fg);
}
.theme-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}
.site-footer {
  margin-top: var(--sp-24);
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  max-width: var(--prose);
  margin: 0 auto;
  padding: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.site-footer-inner a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer-inner a:hover {
  color: var(--fg);
}
.site-footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.site-footer-links {
  display: flex;
  align-items: baseline;
  gap: var(--sp-5);
}
.post-list {
  max-width: var(--prose);
  margin: 0 auto;
}
.post-row {
  display: grid;
  grid-template-columns: 10ch minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-5) var(--sp-3);
  margin: 0 calc(var(--sp-3) * -1);
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}
.post-row:hover {
  background: var(--bg-hover);
}
.post-row-date {
  font-size: var(--text-sm);
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.post-row-body {
  min-width: 0;
}
.post-row-title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--fg);
  margin: 0;
}
.post-row-excerpt {
  display: block;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin: var(--sp-1) 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prose {
  max-width: var(--prose);
  margin-inline: auto;
}
.prose > *:first-child {
  margin-top: 0;
}
.prose > *:last-child {
  margin-bottom: 0;
}
.prose p {
  margin: 0 0 var(--sp-6);
}
.prose h2 {
  font-size: var(--text-2xl);
  line-height: 1.32;
  letter-spacing: var(--track-tight);
  font-weight: 500;
  margin: var(--sp-12) 0 var(--sp-4);
}
.prose h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: var(--sp-8) 0 var(--sp-3);
}
.prose h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--sp-8) 0 var(--sp-3);
}
.prose h5 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: var(--sp-6) 0 var(--sp-2);
}
.prose h6 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-muted);
  margin: var(--sp-6) 0 var(--sp-2);
}
.prose a {
  color: var(--fg);
  text-decoration: underline 1px var(--fg-faint);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition);
}
.prose a:hover {
  text-decoration-color: var(--fg);
}
.prose .headerlink {
  display: none;
}
.prose img {
  width: 100%;
  border-radius: var(--radius);
  margin: var(--sp-8) 0;
}
.prose ul,
.prose ol {
  margin: 0 0 var(--sp-6);
  padding-left: var(--sp-6);
}
.prose ul ul,
.prose ol ul,
.prose ul ol,
.prose ol ol {
  margin: var(--sp-2) 0;
}
.prose li {
  margin-bottom: var(--sp-2);
}
.prose li::marker {
  color: var(--fg-faint);
}
.prose li > input[type="checkbox"] {
  appearance: auto;
  accent-color: var(--accent);
  margin: 0 var(--sp-2) 0 calc(var(--sp-5) * -1);
  vertical-align: -1px;
}
.prose mark {
  background: var(--mark-bg);
  color: var(--fg);
  padding: 0 2px;
  border-radius: 2px;
}
.prose kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 5px;
}
.prose .markdown-alert {
  --alert-color: var(--fg-muted);
  margin: 0 0 var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--alert-color);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--alert-color) 6%%, transparent);
}
.prose .markdown-alert .markdown-alert-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--alert-color);
}
.prose .markdown-alert .markdown-alert-title svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.prose .markdown-alert > :last-child {
  margin-bottom: 0;
}
.prose .markdown-alert-note {
  --alert-color: var(--alert-note);
}
.prose .markdown-alert-tip {
  --alert-color: var(--alert-tip);
}
.prose .markdown-alert-important {
  --alert-color: var(--alert-important);
}
.prose .markdown-alert-warning {
  --alert-color: var(--alert-warning);
}
.prose .markdown-alert-caution {
  --alert-color: var(--alert-caution);
}
.prose details {
  margin: 0 0 var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.prose details summary {
  margin: calc(var(--sp-3) * -1) calc(var(--sp-4) * -1);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 500;
  cursor: pointer;
}
.prose details[open] summary {
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.prose details > :last-child {
  margin-bottom: 0;
}
.prose .footnotes-sep {
  margin: var(--sp-12) 0 var(--sp-6);
  border: 0;
  border-top: 1px solid var(--border);
}
.prose .footnotes {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.prose .footnotes .footnotes-list {
  padding-left: var(--sp-6);
}
.prose .footnotes .footnote-item {
  margin-bottom: var(--sp-2);
}
.prose .footnotes .footnote-item p {
  margin: 0;
}
.prose .footnotes .footnote-ref a {
  text-decoration: none;
}
.prose .footnotes .footnote-backref {
  text-decoration: none;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-6);
  font-size: var(--text-sm);
  display: block;
  overflow-x: auto;
}
.prose table thead,
.prose table tbody,
.prose table tr {
  width: 100%;
}
.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose th {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}
.prose figure {
  margin: var(--sp-8) 0;
}
.prose figure img {
  margin: 0 0 var(--sp-2);
}
.prose figcaption {
  font-size: var(--text-xs);
  color: var(--fg-faint);
  text-align: center;
}
.prose sup {
  font-size: 0.75em;
}
.prose .footnotes {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-12);
  padding-top: var(--sp-4);
}
.prose .footnotes ol {
  padding-left: var(--sp-5);
  margin: 0;
}
.prose .footnotes a {
  text-decoration: none;
}
.prose dl {
  margin: 0 0 var(--sp-6);
}
.prose dt {
  font-weight: 500;
  margin-top: var(--sp-3);
}
.prose dd {
  margin: 0 0 var(--sp-2) var(--sp-5);
  color: var(--fg-muted);
}
.prose blockquote {
  margin: 0 0 var(--sp-6);
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-5);
  border-left: 2px solid var(--border-strong);
  color: var(--fg-muted);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-12) 0;
}
.prose pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  overflow-x: auto;
  margin: 0 0 var(--sp-6);
}
.prose pre code {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
}
.prose code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.prose .highlight {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin: 0 0 var(--sp-6);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.prose .highlight pre {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.prose .highlight table,
.prose .highlight tr,
.prose .highlight td {
  border: 0;
  margin: 0;
  padding: 0;
}
.highlight .hljs-comment,
.highlight .hljs-quote,
.highlight .comment,
.highlight .quote {
  color: var(--fg-faint);
  font-style: normal;
}
.highlight .hljs-keyword,
.highlight .hljs-selector-tag,
.highlight .hljs-type,
.highlight .hljs-built_in,
.highlight .hljs-literal,
.highlight .keyword,
.highlight .selector-tag,
.highlight .type,
.highlight .built_in {
  color: var(--hljs-keyword);
}
.highlight .hljs-string,
.highlight .hljs-regexp,
.highlight .hljs-addition,
.highlight .hljs-meta-string,
.highlight .hljs-template-tag,
.highlight .string,
.highlight .regexp,
.highlight .addition,
.highlight .meta-string {
  color: var(--hljs-string);
}
.highlight .hljs-number,
.highlight .hljs-symbol,
.highlight .hljs-bullet,
.highlight .number,
.highlight .literal,
.highlight .symbol {
  color: var(--hljs-number);
}
.highlight .hljs-title,
.highlight .hljs-name,
.highlight .hljs-section,
.highlight .hljs-selector-id,
.highlight .hljs-selector-class,
.highlight .hljs-property,
.highlight .hljs-attr,
.highlight .hljs-attribute,
.highlight .hljs-params,
.highlight .title,
.highlight .name,
.highlight .section,
.highlight .attr,
.highlight .attribute {
  color: var(--hljs-title);
  font-weight: 500;
}
.highlight .hljs-variable,
.highlight .hljs-template-variable,
.highlight .variable,
.highlight .template-variable {
  color: var(--hljs-variable);
}
.highlight .hljs-meta,
.highlight .hljs-deletion,
.highlight .hljs-link,
.highlight .hljs-emphasis,
.highlight .meta,
.highlight .deletion,
.highlight .link,
.highlight .emphasis {
  color: var(--fg-muted);
}
.highlight .hljs-strong,
.highlight .strong {
  font-weight: 600;
}
.article-header {
  max-width: var(--prose);
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.article-title {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  margin: 0 auto var(--sp-6);
  max-width: 20ch;
}
.article-meta {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  margin: 0;
}
.article-meta a {
  color: inherit;
  text-decoration: none;
}
.article-meta a:hover {
  color: var(--fg);
}
.article-tags {
  font-size: var(--text-xs);
  color: var(--fg-faint);
  margin: var(--sp-2) 0 0;
}
.article-extras {
  font-size: var(--text-xs);
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  margin: var(--sp-2) 0 0;
}
.post-nav {
  max-width: var(--prose);
  margin: var(--sp-16) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--text-sm);
}
.post-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.post-nav a:hover {
  color: var(--fg);
}
.pagination {
  max-width: var(--prose);
  margin: var(--sp-8) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--text-sm);
}
.pagination a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.pagination a:hover {
  color: var(--fg);
}
.archive-year {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  margin: var(--sp-12) 0 var(--sp-2);
}
.archive-year:first-of-type {
  margin-top: 0;
}
@media (max-width: 640px) {
  .site-header-inner {
    padding: 0 var(--sp-4);
  }
  .site-nav {
    gap: var(--sp-4);
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav-links {
    position: absolute;
    top: 100%;
    right: var(--sp-4);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 180px;
    padding: var(--sp-2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav-links.is-open {
    display: flex;
  }
  .site-nav-links a {
    padding: var(--sp-2) var(--sp-3);
    border-radius: 4px;
  }
  .site-nav-links a:hover {
    background: var(--bg-hover);
  }
  .site-main {
    padding: calc(var(--header-h) + var(--sp-8)) var(--sp-4) 0;
  }
  .site-footer-inner {
    padding: var(--sp-6) var(--sp-4);
  }
  .post-row {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-2);
    margin: 0 calc(var(--sp-2) * -1);
  }
  .post-row-title {
    font-size: var(--text-base);
  }
  .post-row-excerpt {
    display: none;
  }
}
.article-meta .meta-cat {
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
}
.article-meta .meta-cat:hover {
  color: var(--fg);
}
.post-wrap {
  max-width: var(--prose);
  margin: 0 auto;
  position: relative;
}
.post-wrap.is-wide {
  max-width: var(--prose-wide);
}
.post-wrap.is-wide .article-header,
.post-wrap.is-wide .prose {
  max-width: var(--prose-wide);
}
.post-wrap.is-wide .prose p,
.post-wrap.is-wide .prose li,
.post-wrap.is-wide .prose blockquote {
  max-width: var(--prose);
}
.post-wrap.is-wide .prose table {
  width: 100%;
}
.toc-rail {
  display: none;
}
@media (min-width: 1200px) {
  .toc-rail {
    display: block;
    position: absolute;
    left: calc(100% + var(--sp-8));
    top: 0;
    width: var(--toc-w);
    height: 100%;
  }
  .toc-rail-inner {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-8));
    max-height: calc(100vh - var(--header-h) - var(--sp-16));
    overflow-y: auto;
    opacity: 0;
    transition: opacity 300ms ease;
  }
  .toc-rail-inner.is-ready {
    opacity: 1;
  }
}
.toc-heading {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-faint);
  margin: 0 0 var(--sp-3);
}
.toc-body .toc {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-body .toc ol,
.toc-body .toc ul {
  list-style: none;
  margin: 0;
  padding-left: var(--sp-3);
}
.toc-body .toc-item {
  line-height: 1.9;
}
.toc-body a.toc-link {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--fg-faint);
  text-decoration: none;
  transition: color 200ms ease;
}
.toc-body a.toc-link:hover {
  color: var(--fg-muted);
}
.toc-body a.toc-link.is-active {
  color: var(--fg);
  font-weight: 500;
}
.section-heading {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-faint);
  margin: 0 0 var(--sp-3);
}
.related-posts {
  max-width: var(--prose);
  margin: var(--sp-16) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list li a {
  display: grid;
  grid-template-columns: 11ch minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-2) var(--sp-3);
  margin: 0 calc(var(--sp-3) * -1);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.related-list li a:hover {
  background: var(--bg-hover);
}
.related-list li a time {
  font-size: var(--text-xs);
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.related-list .related-title {
  font-size: 0.9375rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.comments {
  max-width: var(--prose);
  margin: var(--sp-16) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.search-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.search-toggle:hover {
  color: var(--fg);
}
.search-toggle svg {
  display: block;
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  transition: opacity 200ms ease, backdrop-filter 200ms ease, -webkit-backdrop-filter 200ms ease;
}
.search-overlay[hidden] {
  display: none;
}
.search-overlay.is-open {
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  appearance: none;
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--fg-faint);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.search-close:hover {
  color: var(--fg);
  background: var(--bg-hover);
}
.search-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-close svg {
  display: block;
}
.search-box {
  max-width: 640px;
  margin: 25vh auto 0;
  padding: 0 var(--sp-6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.search-overlay.is-open .search-box {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .search-overlay,
  .search-box {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
.search-input {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: var(--sp-3) 0;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
  outline: none;
}
.search-input::placeholder {
  color: var(--fg-faint);
}
.search-results {
  margin-top: var(--sp-6);
  max-height: 50vh;
  overflow-y: auto;
}
.search-row {
  display: block;
  padding: var(--sp-4) var(--sp-3);
  margin: 0 calc(var(--sp-3) * -1);
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}
.search-row:hover,
.search-row.is-active {
  background: var(--bg-hover);
}
.search-row-title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.search-empty {
  padding: var(--sp-4) 0;
  font-size: var(--text-sm);
  color: var(--fg-faint);
}
@media (max-width: 640px) {
  .search-input {
    font-size: 1.5rem;
  }
  .search-box {
    margin-top: 18vh;
  }
}
.links-list {
  margin-top: var(--sp-12);
}
.link-row {
  grid-template-columns: 14ch minmax(0, 1fr);
}
.link-name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.link-desc {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
@media (max-width: 640px) {
  .link-row {
    grid-template-columns: 1fr;
  }
}
.site-footer-info {
  margin: var(--sp-1) 0 0;
  font-size: var(--text-xs);
  color: var(--fg-faint);
}
.site-footer-info a {
  color: inherit;
  text-decoration: underline 1px var(--fg-faint);
  text-underline-offset: 2px;
}
.site-footer-info a:hover {
  color: var(--fg-muted);
}
.lang-switch {
  position: relative;
  display: inline-flex;
}
.lang-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.lang-toggle:hover {
  color: var(--fg);
}
.lang-popover {
  position: absolute;
  bottom: calc(100% + var(--sp-2));
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: var(--sp-1);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: search-fade 150ms ease;
}
.lang-popover[hidden] {
  display: none;
}
.lang-popover button {
  appearance: none;
  background: none;
  border: 0;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  text-align: left;
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px);
  transition: background var(--transition), color var(--transition);
}
.lang-popover button:hover {
  background: var(--bg-hover);
  color: var(--fg);
}
.lang-popover button.is-active {
  color: var(--fg);
  font-weight: 500;
}
@-moz-keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
