@font-face {
  font-family: 'Kz Verse';
  src: url("/fonts/verse.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", "DejaVu Sans Mono", monospace;
  --font-verse: "Kz Verse", "STXingkai", "华文行楷", "KaiTi", "楷体", var(--font-serif);
  --measure: 43.2em;
  --accent: #ffb000;
  --scope-ch1-raw: #5ccfe6;
  --scope-ch2-raw: #c3a6ff;
  --scope-ch3-raw: #7ee787;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 3.5rem;
  --paper: #fafaf8;
  --paper-raised: #fff;
  --ink: #1a1a1a;
  --ink-strong: #000;
  --muted: #6d6d6d;
  --faint: #9a9a9a;
  --line: #d8d6d2;
  --line-soft: #eae8e4;
  --code-bg: #f2f0ec;
  --shadow: rgba(0,0,0,0.08);
  --term-bg: rgba(250,250,248,0.97);
  --bar: color-mix(in srgb, var(--accent) 70%, var(--ink));
  --scope-ch1: color-mix(in srgb, var(--scope-ch1-raw) 50%, var(--ink));
  --scope-ch2: color-mix(in srgb, var(--scope-ch2-raw) 50%, var(--ink));
  --scope-ch3: color-mix(in srgb, var(--scope-ch3-raw) 50%, var(--ink));
}
html[data-scheme='dark'] {
  --paper: #0d0d0d;
  --paper-raised: #141414;
  --ink: #e6e4e0;
  --ink-strong: #fff;
  --muted: #8f8d88;
  --faint: #5e5c58;
  --line: #2a2a28;
  --line-soft: #1e1e1c;
  --code-bg: #161614;
  --shadow: rgba(0,0,0,0.5);
  --term-bg: rgba(10,10,10,0.97);
  --bar: var(--accent);
  --scope-ch1: var(--scope-ch1-raw);
  --scope-ch2: var(--scope-ch2-raw);
  --scope-ch3: var(--scope-ch3-raw);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-home {
  height: 100vh;
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--accent);
  color: #000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin: 2.2em 0 0.8em;
}
h1 {
  font-size: 1.65rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.08rem;
}
h4,
h5,
h6 {
  font-size: 1rem;
}
p {
  margin: 0 0 0.9em;
}
code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
kbd {
  padding: 0.1em 0.4em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--code-bg);
  font-size: 0.8em;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}
.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sep {
  color: var(--faint);
  margin: 0 0.5em;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
.site-header {
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}
.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-weight: 600;
  white-space: nowrap;
}
.site-brand .brand-mark {
  color: var(--accent);
}
.site-brand:hover .brand-name {
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar {
  display: none;
}
.site-nav-item {
  position: relative;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.site-nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.site-nav-item:hover,
.site-nav-item.is-active {
  color: var(--ink-strong);
}
.site-nav-item:hover::after,
.site-nav-item.is-active::after {
  transform: scaleX(1);
}
.site-nav-item.is-active {
  color: var(--accent);
}
.header-inner .lang-toggle + .scheme-toggle {
  margin-left: -0.9rem;
}
.scheme-toggle {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.18s var(--ease);
}
.scheme-toggle:hover {
  border-color: var(--accent);
}
.scheme-toggle-mark {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ink);
  transition: background 0.18s var(--ease);
}
html[data-scheme='dark'] .scheme-toggle-mark {
  background: transparent;
  box-shadow: inset 0.2rem 0 0 0 var(--ink);
}
.page-head {
  padding: 3.5rem 0 2rem;
}
.page-title {
  margin: 0;
  font-size: 1.5rem;
}
.page-title::before {
  content: '/ ';
  color: var(--accent);
}
.page-sub {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-item {
  border-top: 1px solid var(--line-soft);
}
.post-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.post-item-link {
  display: block;
  padding: 1.6rem 0;
  transition: background 0.2s var(--ease);
}
.post-item-link:hover .post-item-title {
  color: var(--accent);
}
.post-item-link:hover .post-item-section {
  color: var(--accent);
  border-color: var(--accent);
}
.post-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.post-item-section {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: lowercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.05em 0.4em;
  transition: all 0.18s var(--ease);
}
.post-item-title {
  margin: 0;
  font-size: 1.1rem;
  transition: color 0.18s var(--ease);
}
.post-item-excerpt {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-item-meta {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.post-item-tags {
  display: inline-flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.tag-chip {
  color: var(--faint);
  transition: color 0.18s var(--ease);
}
.tag-chip:hover {
  color: var(--accent);
}
.tax-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.tax-row {
  display: grid;
  grid-template-columns: var(--label, 8ch) minmax(2.5rem, 24rem) 3ch;
  align-items: center;
  gap: 0 1rem;
  padding: 0.45rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.18s var(--ease);
}
.tax-name {
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.tax-count {
  text-align: right;
  font-size: 0.78em;
  color: var(--faint);
  transition: color 0.18s var(--ease);
}
.tax-bar {
  position: relative;
  height: 0.85em;
}
.tax-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transition: background 0.18s var(--ease);
}
.tax-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w, 0%);
  min-width: 3px;
  background: var(--bar);
  transform-origin: left center;
  animation: bar-grow 420ms var(--ease) backwards;
  animation-delay: calc(var(--i) * 45ms);
  transition: filter 0.18s var(--ease);
}
.tax-row:hover .tax-name,
.tax-row:hover .tax-count {
  color: var(--accent);
}
.tax-row:hover .tax-bar::before {
  background: var(--accent);
  opacity: 0.35;
}
.tax-row:hover .tax-bar::after {
  filter: brightness(1.08);
}
@media (max-width: 560px) {
  .tax-row {
    grid-template-columns: var(--label, 8ch) 1fr 3ch;
    gap: 0 0.7rem;
    font-size: 0.8rem;
  }
}
.site-footer {
  margin-top: 5rem;
  padding-bottom: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.footer-rule {
  margin-bottom: 1.2rem;
}
.footer-rule-line {
  display: block;
  height: 1px;
  background: var(--line-soft);
}
.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}
.footer-extra {
  margin: 0.5rem 0 0;
}
.link-groups {
  margin-top: 2.5rem;
}
.link-group + .link-group {
  margin-top: 2.2rem;
}
.link-group-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.4rem;
}
.link-group-n {
  font-variant-numeric: tabular-nums;
}
.link-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0 2rem;
}
.link-item {
  display: flex;
  border-bottom: 1px solid var(--line-soft);
}
.link-item a {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  min-width: 0;
}
.link-item a .link-avatar {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--code-bg);
  filter: grayscale(1);
  transition: filter 0.25s var(--ease);
}
.link-item a .link-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.link-item a .link-name {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.35;
}
.link-item a .link-desc {
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.link-item a:hover .link-name {
  color: var(--accent);
}
.link-item a:hover .link-avatar {
  filter: none;
}
@media (max-width: 700px) {
  .link-group + .link-group {
    margin-top: 1.4rem;
  }
  .link-list {
    margin-top: 0.2rem;
  }
  .link-item a {
    padding: 0.45rem 0;
  }
}
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}
.error-ascii {
  display: inline-block;
  text-align: left;
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}
.error-msg {
  font-family: var(--font-mono);
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.error-actions {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.error-actions a {
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.error-actions a:hover {
  color: var(--accent);
}
.lang-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 1.6rem;
  min-width: 1.9rem;
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}
.header-inner .lang-toggle + .scheme-toggle {
  margin-left: -0.9rem;
}
@-moz-keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@-webkit-keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@-o-keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.feed {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 5rem;
}
@media (min-width: 60rem) {
  .feed {
    grid-template-columns: 11rem 1fr;
    gap: 3rem;
  }
}
.feed-rail {
  display: grid;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
@media (min-width: 60rem) {
  .feed-rail {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
.feed-facet-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.35rem;
}
.feed-clear {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s var(--ease);
}
.feed-clear:hover {
  color: var(--accent);
}
.feed-facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}
@media (min-width: 60rem) {
  .feed-facet-list {
    display: block;
  }
}
.feed-pick {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  background: none;
  padding: 0.2rem 0;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s var(--ease);
}
.feed-pick:hover {
  color: var(--accent);
}
.feed-pick.is-on {
  color: var(--ink);
}
.feed-pick.is-on .feed-n {
  color: var(--accent);
}
.feed-n {
  flex: none;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s var(--ease);
}
.feed-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.feed-density {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.feed-mode {
  border: 0;
  background: none;
  padding: 0.25em 0.7em;
  font-family: inherit;
  font-size: inherit;
  color: var(--faint);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.feed-mode + .feed-mode {
  border-left: 1px solid var(--line);
}
.feed-mode:hover {
  color: var(--accent);
}
.feed-mode.is-on {
  color: var(--paper);
  background: var(--ink);
}
.feed-count {
  margin: 0;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.feed-empty {
  margin: 3rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--faint);
}
.feed-year {
  margin-bottom: 2.5rem;
}
.feed-year-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: normal;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.4rem;
}
.feed-month {
  margin-bottom: 1.2rem;
}
.feed-month-label {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed-link {
  display: grid;
  grid-template-columns: 2.5rem 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.4rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.feed-link:hover .feed-title {
  color: var(--accent);
}
.feed-link:hover .feed-kind {
  color: var(--accent);
}
.feed-day {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.feed-kind {
  color: var(--faint);
  font-size: 0.72rem;
  transition: color 0.18s var(--ease);
}
.feed-body {
  min-width: 0;
}
.feed-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.97rem;
  transition: color 0.18s var(--ease);
}
.feed-excerpt {
  display: none;
}
.feed-meta {
  display: none;
}
.feed-chip {
  color: var(--faint);
  margin-left: 0.5em;
}
.feed.is-excerpt .feed-item {
  border-top: 1px solid var(--line-soft);
}
.feed.is-excerpt .feed-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.feed.is-excerpt .feed-month {
  margin-bottom: 2rem;
}
.feed.is-excerpt .feed-month-label {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}
.feed.is-excerpt .feed-link {
  padding: 1.1rem 0;
}
.feed.is-excerpt .feed-excerpt {
  display: -webkit-box;
  margin-top: 0.4rem;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed.is-excerpt .feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--faint);
}
@media (max-width: 600px) {
  .feed-link {
    grid-template-columns: 2.2rem 1fr;
  }
  .feed-kind {
    display: none;
  }
}
.journal {
  margin-bottom: 5rem;
}
.journal-empty {
  margin: 3rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--faint);
}
.journal-year {
  margin-bottom: 3rem;
}
.journal-year-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: normal;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.4rem;
}
.journal-n {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.journal-month {
  margin-bottom: 2rem;
  border-left: 1px solid var(--line-soft);
  margin-left: 1.5rem;
  padding-left: 1.5rem;
}
.journal-month-label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.journal-entry {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 0 0 2rem;
}
.journal-entry:last-child {
  padding-bottom: 0.5rem;
}
.journal-date {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-mono);
  position: relative;
}
.journal-date::before {
  content: '';
  position: absolute;
  left: -1.71rem;
  top: 0.45rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--line);
}
.journal-day {
  font-size: 1.15rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.journal-weekday {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.journal-body {
  min-width: 0;
}
.journal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: normal;
}
.journal-title a {
  transition: color 0.18s var(--ease);
}
.journal-title a:hover {
  color: var(--accent);
}
.journal-excerpt {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}
.journal-meta {
  margin: 0.6rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}
.journal-meta a {
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.journal-meta a:hover {
  color: var(--accent);
}
@media (max-width: 600px) {
  .journal-month {
    margin-left: 0.4rem;
    padding-left: 1.2rem;
  }
  .journal-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .journal-date::before {
    left: -1.41rem;
  }
  .journal-date {
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
  }
  .journal-day {
    font-size: 0.95rem;
  }
}
.home {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.axis {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 50%;
  margin-left: -0.5px;
  background: var(--line);
  transform: scaleY(0);
  animation: axis-grow 350ms ease-in forwards;
}
.axis-top {
  top: 0;
  transform-origin: top;
}
.axis-bottom {
  bottom: 0;
  transform-origin: bottom;
}
.home-inner {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 34rem;
}
.avatar {
  position: relative;
  width: 200px;
  height: 200px;
  flex: none;
}
.avatar-frame {
  position: absolute;
  inset: -0.6rem;
  color: var(--line);
  pointer-events: none;
}
.avatar-frame svg {
  width: 100%;
  height: 100%;
}
.avatar-frame-path {
  stroke-dasharray: 392;
  stroke-dashoffset: 392;
  animation: frame-draw 420ms 240ms ease-out forwards;
}
.avatar-ascii {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: 0;
  user-select: none;
  opacity: 0;
  transition: opacity 320ms linear;
}
.avatar.is-ascii .avatar-ascii {
  opacity: 1;
}
.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 320ms linear;
}
.avatar.is-photo .avatar-photo {
  opacity: 1;
}
html:not(.js) .avatar-photo {
  opacity: 1;
}
.home-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  clip-path: inset(0 50% 0 50%);
  animation: name-open 460ms 620ms var(--ease) forwards;
}
.home-intro {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
  min-height: 1.7em;
  opacity: 0;
  animation: fade-in 300ms 900ms ease-out forwards;
}
.home-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.home-nav-item {
  position: relative;
  color: var(--ink);
  opacity: 0;
  animation: rise-in 320ms var(--ease) forwards;
  animation-delay: calc(1050ms + var(--i) * 55ms);
}
.home-nav-item::before {
  content: '·';
  color: var(--faint);
  margin-right: 0.4em;
  opacity: 0.5;
}
.home-nav-item:first-child::before {
  display: none;
}
.home-nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.home-nav-item:hover {
  color: var(--accent);
}
.home-nav-item:hover::after {
  transform: scaleX(1);
}
.home-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.home-social-item {
  color: var(--faint);
  opacity: 0;
  animation: rise-in 320ms var(--ease) forwards;
  animation-delay: calc(1300ms + var(--i) * 70ms);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.home-social-item::before {
  content: '[';
  color: var(--line);
}
.home-social-item::after {
  content: ']';
  color: var(--line);
}
.home-social-item:hover {
  color: var(--accent);
}
.home-social-item.is-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-bottom-color: var(--line);
}
.home-social-item.is-icon::before,
.home-social-item.is-icon::after {
  content: none;
}
.home-social-item.is-icon .icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}
.home-social-item.is-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 480px) {
  .avatar {
    width: 140px;
    height: 140px;
  }
  .home-name {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .axis {
    transform: scaleY(1);
  }
  .avatar-frame-path {
    stroke-dashoffset: 0;
  }
  .home-name {
    clip-path: none;
  }
  .home-intro,
  .home-nav-item,
  .home-social-item {
    opacity: 1;
  }
}
@-moz-keyframes axis-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@-webkit-keyframes axis-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@-o-keyframes axis-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes axis-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@-moz-keyframes frame-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@-webkit-keyframes frame-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@-o-keyframes frame-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes frame-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@-moz-keyframes name-open {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@-webkit-keyframes name-open {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@-o-keyframes name-open {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes name-open {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@-moz-keyframes fade-in {
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fade-in {
  to {
    opacity: 1;
  }
}
@-o-keyframes fade-in {
  to {
    opacity: 1;
  }
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}
@-moz-keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-o-keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.post {
  padding-bottom: 2rem;
}
.post-head {
  padding: 3.5rem 0 2rem;
  max-width: var(--measure);
  margin: 0 auto;
}
.post-head-rule {
  height: 1px;
  width: 3rem;
  background: var(--accent);
  margin-bottom: 1.5rem;
}
.post-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.4;
  text-wrap: balance;
}
.post-meta {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.post-body {
  display: grid;
  grid-template-columns: minmax(0, var(--measure));
  justify-content: center;
}
.content {
  min-width: 0;
  max-width: var(--measure);
}
.post.is-wide {
  --measure: 50em;
}
.post.is-wide .content {
  max-width: 43.2em;
}
@media (min-width: 1300px) {
  .post.has-toc .wrap {
    max-width: 80rem;
  }
  .post.has-toc .post-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr);
    justify-content: stretch;
  }
  .post.has-toc .content {
    grid-column: 2;
  }
  .post.has-toc .toc {
    grid-column: 3;
  }
}
.toc {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
@media (min-width: 1300px) {
  .toc {
    display: block;
    position: sticky;
    top: 2rem;
    align-self: start;
    width: 15rem;
    padding-left: 2.5rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .toc::-webkit-scrollbar {
    display: none;
  }
}
.toc-title {
  margin: 0 0 0.8rem;
  color: var(--faint);
  text-transform: lowercase;
}
.toc-title::before {
  content: '# ';
  color: var(--accent);
}
.toc-body ol,
.toc-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-body ol ol,
.toc-body ul ul {
  padding-left: 0.9rem;
}
.toc-body li {
  margin: 0.15rem 0;
}
.toc-body a {
  display: block;
  padding: 0.15rem 0;
  color: var(--muted);
  line-height: 1.45;
  border-left: 1px solid transparent;
  padding-left: 0.6rem;
  margin-left: -0.6rem;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.toc-body a:hover {
  color: var(--ink-strong);
}
.toc-body .is-current > a {
  color: var(--accent);
  border-left-color: var(--accent);
}
.markdown-body {
  font-size: 1rem;
}
.markdown-body > *:first-child {
  margin-top: 0;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  scroll-margin-top: 1.5rem;
}
.markdown-body h2 {
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line-soft);
}
.markdown-body a {
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.markdown-body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.markdown-body strong {
  color: var(--ink-strong);
  font-weight: 700;
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 1.4em;
  margin: 0 0 0.9em;
}
.markdown-body li {
  margin: 0.25em 0;
}
.markdown-body li > ul,
.markdown-body li > ol {
  margin: 0.25em 0;
}
.markdown-body blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 1px solid var(--accent);
  color: var(--muted);
}
.markdown-body blockquote > *:last-child {
  margin-bottom: 0;
}
.markdown-body img {
  display: block;
  margin: 1.6em auto;
  border: 1px solid var(--line-soft);
}
.markdown-body :not(pre) > code {
  padding: 0.12em 0.35em;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--ink-strong);
  word-break: break-word;
}
.markdown-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.6em 0;
  font-family: var(--font-mono);
}
.markdown-body th,
.markdown-body td {
  border: 1px solid var(--line);
  padding: 0.45em 0.7em;
  text-align: left;
}
.markdown-body th {
  background: var(--code-bg);
  font-weight: 600;
}
.markdown-body mjx-container[display] {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.5em 0;
  margin: 1.4em 0;
}
.markdown-body mjx-container {
  scrollbar-width: none;
}
.markdown-body mjx-container::-webkit-scrollbar {
  display: none;
}
.markdown-body figure.highlight {
  margin: 1.6em 0;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.65;
}
.markdown-body figure.highlight figcaption {
  padding: 0.5em 0.9em;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.markdown-body figure.highlight table {
  display: table;
  width: 100%;
  margin: 0;
  border: 0;
  overflow: visible;
}
.markdown-body figure.highlight td {
  border: 0;
  padding: 0;
}
.markdown-body figure.highlight pre {
  margin: 0;
  padding: 0.9em 0;
  background: none;
  border: 0;
}
.markdown-body figure.highlight .gutter {
  width: 1%;
  white-space: nowrap;
  user-select: none;
}
.markdown-body figure.highlight .gutter pre {
  padding-left: 0.9em;
  padding-right: 0.9em;
  color: var(--faint);
  text-align: right;
}
.markdown-body figure.highlight .code pre {
  padding-right: 1em;
}
.markdown-body figure.highlight .line {
  display: block;
  min-height: 1.65em;
}
.markdown-body > pre {
  margin: 1.6em 0;
  padding: 0.9em 1em;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.65;
}
.markdown-body figure.highlight .comment,
.markdown-body figure.highlight .quote {
  color: var(--faint);
  font-style: italic;
}
.markdown-body figure.highlight .keyword,
.markdown-body figure.highlight .selector-tag,
.markdown-body figure.highlight .literal,
.markdown-body figure.highlight .section,
.markdown-body figure.highlight .name,
.markdown-body figure.highlight .strong {
  color: var(--accent);
}
.markdown-body figure.highlight .string,
.markdown-body figure.highlight .regexp,
.markdown-body figure.highlight .addition,
.markdown-body figure.highlight .attribute,
.markdown-body figure.highlight .meta-string {
  color: var(--muted);
}
.markdown-body figure.highlight .number,
.markdown-body figure.highlight .built_in,
.markdown-body figure.highlight .builtin-name,
.markdown-body figure.highlight .type,
.markdown-body figure.highlight .params {
  color: var(--ink-strong);
}
.markdown-body figure.highlight .title,
.markdown-body figure.highlight .function .title,
.markdown-body figure.highlight .class .title {
  color: var(--ink-strong);
  font-weight: 600;
}
.markdown-body figure.highlight .deletion {
  color: #c0392b;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: var(--measure);
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.post-nav-item.is-next {
  text-align: right;
  grid-column: 2;
}
.post-nav-dir {
  font-size: 0.7rem;
  color: var(--faint);
}
.post-nav-title {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  transition: color 0.18s var(--ease);
}
.post-nav-item:hover .post-nav-title {
  color: var(--accent);
}
@media (max-width: 600px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-item.is-next {
    grid-column: 1;
    text-align: left;
  }
}
.markdown-body .note {
  margin: 1.6em 0;
  padding: 0.9em 1.1em;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--muted);
  background: var(--code-bg);
  border-radius: 0 3px 3px 0;
}
.markdown-body .note > *:first-child {
  margin-top: 0;
}
.markdown-body .note > *:last-child {
  margin-bottom: 0;
}
.markdown-body .note-info {
  border-left-color: var(--muted);
}
.markdown-body .note-success {
  border-left-color: var(--accent);
}
.markdown-body .note-warning {
  border-left-color: var(--accent);
}
.markdown-body .note-danger {
  border-left-color: #d9534f;
}
.markdown-body .label {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--muted);
}
.markdown-body .label-success,
.markdown-body .label-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.markdown-body .fold {
  margin: 1.6em 0;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
}
.markdown-body .fold-title {
  cursor: pointer;
  padding: 0.6em 0.9em;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--muted);
  list-style: none;
}
.markdown-body .fold-title::marker,
.markdown-body .fold-title::-webkit-details-marker {
  display: none;
}
.markdown-body .fold-title::before {
  content: '▸ ';
  color: var(--accent);
}
.markdown-body .fold[open] .fold-title::before {
  content: '▾ ';
}
.markdown-body .fold-content {
  padding: 0 0.9em 0.6em;
  border-top: 1px solid var(--line-soft);
}
.markdown-body .fold-content > *:first-child {
  margin-top: 0.8em;
}
.markdown-body .verse {
  margin: 1.8em 0;
  max-width: 100%;
  direction: rtl;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.markdown-body .verse::-webkit-scrollbar {
  display: none;
}
.markdown-body .verse-inner {
  direction: ltr;
  margin-right: auto;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-verse);
  line-height: 2.1;
  letter-spacing: 0.08em;
  padding: 0.4em 0;
  border-right: 1px solid var(--accent);
  color: var(--ink-strong);
}
.markdown-body .verse-line {
  display: block;
  white-space: nowrap;
}
.markdown-body .verse.is-prose .verse-inner {
  max-height: 70vh;
}
.markdown-body .verse.is-prose .verse-line {
  white-space: normal;
}
.markdown-body .verse-src {
  display: block;
  white-space: nowrap;
  font-size: 0.8em;
  letter-spacing: 0;
  color: var(--muted);
}
.markdown-body .verse-num {
  text-combine-upright: all;
}
.translation-notice {
  max-width: var(--measure);
  margin: 1.2rem auto 0;
  padding: 0.6em 0.9em;
  border: 1px dashed var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--faint);
}
.translation-notice a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  margin-left: 0.4em;
}
.translation-notice a:hover {
  border-bottom-color: var(--accent);
}
.widget {
  margin: 2.2rem 0;
}
@media (min-width: 900px) {
  .widget {
    width: calc(var(--measure) + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
  }
}
.widget-frame {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-raised);
  transition: height 0.15s var(--ease);
}
.widget-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em 0.6em;
  margin: 0.6em 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
.widget-open {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.widget-open:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.widget-open::after {
  content: ' ↗';
  color: var(--faint);
}
.widget-note {
  flex: 1 1 14rem;
  min-width: 0;
}
.widget-note > p {
  margin: 0;
}
.sa-scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sa-width, 48px);
  height: 100vh;
  height: 100dvh;
  z-index: 40;
  color: var(--line);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease), color 200ms var(--ease);
}
.sa-scrollbar.is-ready {
  opacity: 1;
}
.sa-scrollbar.is-live {
  color: var(--muted);
}
.sa-scrollbar[data-draggable='1'] {
  pointer-events: auto;
  cursor: ns-resize;
}
.sa-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sa-curve {
  vector-effect: non-scaling-stroke;
}
.sa-readout {
  position: absolute;
  right: calc(var(--sa-width, 48px) + 0.25rem);
  top: 0;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 180ms var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.sa-scrollbar:hover .sa-readout,
.sa-scrollbar.is-dragging .sa-readout {
  opacity: 1;
}
.sa-scrollbar.is-dragging {
  color: var(--accent);
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .sa-scrollbar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa-scrollbar {
    transition: none;
  }
}
.term {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  --term-h: 75vh;
  height: var(--term-h);
  display: flex;
  flex-direction: column;
  background: var(--term-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px -12px var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  transform: translateY(-100%);
  transition: transform 220ms var(--ease), height 180ms var(--ease);
}
.term[hidden] {
  display: none;
}
.term.is-open {
  transform: translateY(0);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.7rem;
  color: var(--faint);
  flex: none;
}
.term-bar-title {
  color: var(--muted);
}
.term-bar-title::before {
  content: '● ';
  color: var(--accent);
}
.term-bar-hint {
  margin-left: auto;
}
.term-close {
  background: none;
  border: 0;
  padding: 0 0.2rem;
  color: var(--faint);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.term-close:hover {
  color: var(--accent);
}
.term-out {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.8rem 0.9rem;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.term-out::-webkit-scrollbar {
  display: none;
}
.term-app {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
  outline: 0;
}
.term-app[hidden] {
  display: none;
}
.term-line {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.term-line.is-err {
  color: #d9534f;
}
.term-line.is-dim {
  color: var(--faint);
}
.term-line.is-accent {
  color: var(--accent);
}
.term-line a {
  color: var(--accent);
  border-bottom: 1px dashed currentColor;
}
.term-line a:hover {
  border-bottom-style: solid;
}
.term-echo {
  color: var(--muted);
}
.term-cat {
  margin: 0;
  white-space: pre;
  color: var(--accent);
  line-height: 1.15;
}
.term-ascii {
  margin: 0;
  white-space: pre;
  color: var(--accent);
  line-height: 1.15;
}
.term-scope {
  margin: 0.25rem 0;
}
.term-scope-cap {
  white-space: pre-wrap;
  color: var(--muted);
}
.term-scope-stack {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}
.term-scope-stack::-webkit-scrollbar {
  display: none;
}
.term-scope-layer {
  margin: 0;
  white-space: pre;
  line-height: 1;
}
.term-scope-layer:not(.is-axis) {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
}
.term-scope-layer.is-axis {
  color: var(--accent);
}
.term-scope-layer.is-ch1 {
  color: var(--scope-ch1);
}
.term-scope-layer.is-ch2 {
  color: var(--scope-ch2);
}
.term-scope-layer.is-ch3 {
  color: var(--scope-ch3);
}
.term-frames {
  margin: 0.25rem 0;
  white-space: pre;
  overflow-x: auto;
  color: var(--accent);
  line-height: 1;
  scrollbar-width: none;
}
.term-frames::-webkit-scrollbar {
  display: none;
}
.term-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0 1.2rem;
}
.term-dir {
  color: var(--accent);
  font-weight: 600;
}
.term-link-file {
  color: var(--ink);
}
.term-form {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem 0.9rem;
  border-top: 1px solid var(--line-soft);
}
.term-form[hidden] {
  display: none;
}
.term-prompt {
  flex: none;
  white-space: nowrap;
  color: var(--muted);
}
.term-prompt .term-prompt-path {
  color: var(--ink-strong);
}
.term-prompt .term-prompt-caret {
  color: var(--accent);
  margin-left: 0.4em;
}
.term-prompt.is-fail .term-prompt-caret {
  color: #d9534f;
}
.term-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.term-ghost {
  position: absolute;
  inset: 0;
  color: var(--faint);
  pointer-events: none;
  white-space: pre;
  overflow: hidden;
}
.term-input {
  position: relative;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  color: var(--ink-strong);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  caret-color: var(--accent);
}
.term-menu {
  flex: none;
  padding: 0.3rem 0.9rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px dashed var(--line-soft);
}
.term-menu[hidden] {
  display: none;
}
.term-menu-item {
  padding: 0 0.25em;
}
.term-menu-item.is-sel {
  background: var(--accent);
  color: #000;
}
@media (max-width: 700px) {
  .term {
    --term-h: 70vh;
    font-size: 0.78rem;
  }
}
:root {
  --mine-1: var(--scope-ch1);
  --mine-2: var(--scope-ch3);
  --mine-3: #d9534f;
  --mine-4: var(--scope-ch2);
  --mine-5: var(--accent);
  --mine-6: color-mix(in srgb, var(--scope-ch3) 55%, var(--scope-ch1));
  --mine-7: var(--ink-strong);
  --mine-8: var(--muted);
}
.mine {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem;
  overflow: hidden;
}
.mine-status {
  flex: none;
  display: flex;
  gap: 1.8rem;
  align-items: baseline;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.mine-stat {
  min-width: 3.4em;
  text-align: center;
}
.mine-stat.is-best {
  color: var(--faint);
  min-width: 8em;
}
.mine-msg {
  flex: none;
  min-height: 1.4em;
  color: var(--faint);
}
.mine-msg.is-won {
  color: var(--accent);
}
.mine-msg.is-lost {
  color: #d9534f;
}
.mine-scroll {
  min-height: 0;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: none;
}
.mine-scroll::-webkit-scrollbar {
  display: none;
}
.mine-board {
  --cell: 1.45rem;
  display: grid;
  grid-template-columns: auto repeat(var(--cols), var(--cell));
  gap: 1px;
  line-height: 1;
  user-select: none;
}
.mine-rule {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.35em;
  color: var(--faint);
  font-size: 0.72rem;
}
.mine-cell {
  width: var(--cell);
  height: var(--cell);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  color: var(--accent);
  background: var(--line);
  transition: background 0.12s var(--ease);
}
.mine-cell.is-clear {
  background: none;
  color: var(--faint);
  cursor: default;
}
.mine-cell.n-1 {
  color: var(--mine-1);
}
.mine-cell.n-2 {
  color: var(--mine-2);
}
.mine-cell.n-3 {
  color: var(--mine-3);
}
.mine-cell.n-4 {
  color: var(--mine-4);
}
.mine-cell.n-5 {
  color: var(--mine-5);
}
.mine-cell.n-6 {
  color: var(--mine-6);
}
.mine-cell.n-7 {
  color: var(--mine-7);
}
.mine-cell.n-8 {
  color: var(--mine-8);
}
.mine-cell.n-1,
.mine-cell.n-2,
.mine-cell.n-3,
.mine-cell.n-4,
.mine-cell.n-5,
.mine-cell.n-6,
.mine-cell.n-7,
.mine-cell.n-8 {
  font-weight: 600;
}
.mine-cell.is-flag {
  color: var(--accent);
}
.mine-cell.is-mine {
  color: var(--ink-strong);
}
.mine-cell.is-wrong {
  color: #d9534f;
}
.mine-cell.is-boom {
  background: #d9534f;
  color: var(--paper);
}
.mine-cell.is-cursor {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.mine-board:not(.is-over) .mine-cell:not(.is-clear):hover {
  background: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.mine-legend {
  flex: none;
  white-space: pre-line;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--faint);
}
@media (max-width: 700px) {
  .mine-board {
    --cell: 1.7rem;
  }
  .mine-legend {
    font-size: 0.68rem;
  }
}
