@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

@font-face {
  font-family: BenjiInter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://benji.org/_next/static/media/e4af272ccee01ff0-s.p.woff2") format("woff2");
}

:root {
  --bg: #f9f8f6;
  --text: #111;
  --muted: rgba(0, 0, 0, 0.4);
  --soft: rgba(0, 0, 0, 0.06);
  --line: #ececea;
  --link-underline: #d9d9d9;
  --dot: #b3b3b3;
  --accent: #ff00aa;
  --fade-top: rgba(249, 248, 246, 1);
  --fade-top-0: rgba(249, 248, 246, 0);
  --progress: rgba(0, 0, 0, 0.7);
  --font: BenjiInter, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Geist", "Inter Display", BenjiInter, Inter, system-ui, sans-serif;
  --mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0f;
    --text: #ececec;
    --muted: rgba(236, 236, 236, 0.48);
    --soft: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --link-underline: rgba(255, 255, 255, 0.22);
    --dot: rgba(255, 255, 255, 0.32);
    --fade-top: rgba(14, 14, 15, 1);
    --fade-top-0: rgba(14, 14, 15, 0);
    --progress: rgba(255, 255, 255, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0e0f;
  --text: #ececec;
  --muted: rgba(236, 236, 236, 0.48);
  --soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --link-underline: rgba(255, 255, 255, 0.22);
  --dot: rgba(255, 255, 255, 0.32);
  --fade-top: rgba(14, 14, 15, 1);
  --fade-top-0: rgba(14, 14, 15, 0);
  --progress: rgba(255, 255, 255, 0.8);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-y: scroll;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(180deg, var(--fade-top) 0, var(--fade-top-0) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol,
pre,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.site {
  max-width: 36.375rem;
  margin: 0 auto;
  padding: 5rem 1rem 2.5rem;
}

.article {
  max-width: 70ch;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.homepage .article > *,
.homepage .writing,
.homepage .footer,
.article-shell .side,
.article-shell .article > * {
  animation: rise 0.5s ease both;
}

.homepage .article > :nth-child(1),
.article-shell .side,
.article-shell .article > :nth-child(1) {
  animation-delay: 0s;
}

.homepage .article > :nth-child(2),
.article-shell .article > :nth-child(2) {
  animation-delay: 0.05s;
}

.homepage .article > :nth-child(3),
.article-shell .article > :nth-child(3) {
  animation-delay: 0.1s;
}

.homepage .article > :nth-child(4),
.article-shell .article > :nth-child(4) {
  animation-delay: 0.15s;
}

.homepage .article > :nth-child(5),
.article-shell .article > :nth-child(5) {
  animation-delay: 0.2s;
}

.homepage .article > :nth-child(6),
.article-shell .article > :nth-child(6) {
  animation-delay: 0.25s;
}

.homepage .article > :nth-child(7),
.article-shell .article > :nth-child(7) {
  animation-delay: 0.3s;
}

.homepage .writing,
.article-shell .article > :nth-child(8) {
  animation-delay: 0.35s;
}

.homepage .footer,
.article-shell .article > :nth-child(n + 9) {
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .homepage .article > *,
  .homepage .writing,
  .homepage .footer,
  .article-shell .side,
  .article-shell .article > * {
    animation: none;
  }
  .post-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .word-rotate__slot {
    transition: none !important;
  }
}

.article header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.5rem;
}

.article header h1,
.article header time {
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.article header h1 {
  font-weight: 500;
  letter-spacing: -0.018em;
}

.article header time {
  color: var(--muted);
  font-weight: 460;
  font-variant-numeric: tabular-nums;
}

.article p,
.article li {
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.article > p {
  padding-top: 1rem;
}

.article > ul {
  position: relative;
  display: block;
  padding: 0.5rem 0 1rem 1.25rem;
}

.article > ul li {
  position: relative;
  padding: 0 0 0.5rem 0.75rem;
}

.article > ul li:last-child {
  padding-bottom: 0;
}

.article > ul li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0.675em;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--dot);
}

.article h1 {
  display: flex;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.00813rem;
}

.article h2 {
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.basic-link {
  position: relative;
  display: inline;
}

.basic-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  border-radius: 2px;
  background: var(--link-underline);
  transition: background 0.2s ease;
}

.basic-link:hover::before {
  background: var(--text);
}

.writing {
  padding-top: 3rem;
}

.writing-title {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 460;
  letter-spacing: -0.00563rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.post-years {
  display: flex;
  flex-direction: column;
}

.post-year {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.post-year:last-child {
  border-bottom: 0;
}

.post-year::before {
  content: attr(data-year);
  position: absolute;
  left: 0;
  top: 0.735rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 460;
  letter-spacing: -0.00563rem;
  font-variant-numeric: tabular-nums;
}

.post-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.735rem 0 0.735rem 6.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

a.post-link:hover h2,
a.post-link:hover time {
  opacity: 0.55;
}

.post-item:not(:last-child) .post-link::after {
  content: "";
  position: absolute;
  left: 6.75rem;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid var(--line);
}

.post-link h2 {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 460;
  letter-spacing: -0.00563rem;
  transition: opacity 0.14s ease;
}

.post-link time {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 460;
  letter-spacing: -0.00563rem;
  transition: opacity 0.14s ease;
}

.post-link .year-suffix {
  visibility: hidden;
  position: absolute;
}

.badge-new {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  color: #ff00aa;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  transform: rotate(-3deg);
}

.badge-new > span {
  position: relative;
  z-index: 1;
}

.badge-new svg {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.3rem;
  height: 1.7rem;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(1deg);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-new path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.badge-new path:first-child {
  stroke-width: 1.7;
  animation: scribbleOval 0.52s cubic-bezier(0.33, 0, 0.2, 1) 0.58s both;
}

.badge-new path:nth-child(2) {
  stroke-width: 1.55;
  opacity: 0.9;
  animation: scribbleOval 0.48s cubic-bezier(0.33, 0, 0.2, 1) 0.86s both;
}

@keyframes scribbleOval {
  to {
    stroke-dashoffset: 0;
  }
}

.word-rotate {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  color: var(--accent);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 50;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--progress);
  transition: opacity 0.2s ease;
  opacity: 0;
}

.scroll-progress.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.25rem;
  color: var(--muted);
  vertical-align: -0.18rem;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--soft);
  transform: rotate(12deg);
}

.theme-toggle__icon {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.theme-toggle__moon {
  position: absolute;
  opacity: 0;
  transform: rotate(-30deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__sun,
.theme-prefers-dark .theme-toggle__sun {
  opacity: 0;
  transform: rotate(40deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__moon,
.theme-prefers-dark .theme-toggle__moon {
  position: absolute;
  opacity: 1;
  transform: rotate(0) scale(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun {
    opacity: 0;
    transform: rotate(40deg) scale(0.6);
  }
  :root:not([data-theme="light"]) .theme-toggle__moon {
    position: absolute;
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.word-rotate__slot {
  display: inline-block;
  transition: opacity 0.32s ease, transform 0.32s ease, filter 0.32s ease;
}

.word-rotate.is-swapping .word-rotate__slot {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(2px);
}

.post-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.post-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  padding: 2.5rem 0 5rem;
}

.footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 3.125rem;
  margin-bottom: 2.375rem;
  background: var(--line);
}

.footer p {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 460;
  letter-spacing: -0.0025rem;
}

.footer-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-shell {
  position: relative;
}

.side {
  position: fixed;
  top: 5rem;
  left: 5rem;
}

.back {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  transition: color 0.1s ease;
}

.back:hover {
  color: rgba(0, 0, 0, 0.8);
}

.toc {
  padding-top: 1.875rem;
  max-width: 10rem;
}

.toc-title {
  display: block;
  padding-bottom: 1rem;
  opacity: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 460;
  line-height: 1.2;
  letter-spacing: -0.0025rem;
  transition: opacity 0.4s ease, color 0.1s ease;
}

body.is-scrolled .toc-title {
  opacity: 1;
}

.toc-title:hover,
.toc-title.active {
  color: rgba(0, 0, 0, 0.8);
}

.toc ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 460;
  line-height: 1.2;
  letter-spacing: -0.0025rem;
  transition: color 0.1s ease;
}

.toc a:hover,
.toc a.active {
  color: rgba(0, 0, 0, 0.8);
}

.rule-heading {
  position: relative;
  display: block;
  width: 100%;
  padding: 4rem 0 1.5rem;
}

.rule-heading::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
}

.rule-heading h1 {
  position: absolute;
  top: 4rem;
  left: 0;
  transform: translateY(-50%);
  padding-right: 0.5rem;
  background: var(--bg);
  font-size: 0.875rem;
}

code {
  position: relative;
  display: inline-block;
  padding: 0.1rem 0.2rem;
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--mono);
  font-size: 0.9em;
  line-height: 1;
}

code::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -0.1em 0;
  z-index: -1;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.04);
}

.code-card {
  position: relative;
  margin: 0.625rem auto;
  border-radius: 0.5rem;
  background: #f8f8f8;
}

.code-card pre {
  overflow: hidden;
  white-space: pre-wrap;
  color: #333;
  font-family: var(--mono);
  font-size: 0;
  font-weight: 400;
  line-height: 0;
  padding: 0.875rem 1rem;
}

.code-card .line {
  display: block;
  counter-increment: line;
  padding-left: 1.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.code-card.numbered {
  counter-reset: line;
}

.code-card.numbered .line::before {
  content: counter(line);
  display: inline-block;
  width: 1.25rem;
  margin-left: -1.75rem;
  margin-right: 0.5rem;
  color: rgba(17, 17, 17, 0.4);
}

.code-wrap {
  position: relative;
}

.rule-heading + .code-wrap {
  margin-top: 2rem;
}

.copy {
  position: absolute;
  top: 0.925rem;
  right: 0.925rem;
  width: 18px;
  height: 18px;
  color: rgba(0, 0, 0, 0.36);
  transition: color 0.15s ease, transform 0.15s ease;
}

.copy:hover {
  color: rgba(0, 0, 0, 0.65);
  transform: scale(1.04);
}

.copy svg {
  display: block;
}

.syntax-red {
  color: #cf222e;
}

.syntax-blue {
  color: #0a3069;
}

.syntax-purple {
  color: #8250df;
}

.syntax-green {
  color: #116329;
}

.syntax-orange {
  color: #953800;
}

.chart-block {
  margin: 2rem 0 3rem;
}

.chart {
  position: relative;
  height: var(--height, 260px);
  width: 100%;
}

.chart canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.chart-caption {
  margin-top: 3.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.2;
}

.mini-tabs {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 6px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.02);
}

.mini-tabs button {
  border-radius: 999px;
  padding: 3px 10px;
  color: rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
}

.mini-tabs button.active {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

.props {
  margin-bottom: 1.5rem;
}

.props h4 {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.prop {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.prop:last-child {
  border-bottom: 0;
}

.prop-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.prop-name {
  padding: 0;
  color: rgba(0, 0, 0, 0.8);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.prop-name::before {
  display: none;
}

.prop-type,
.prop-default,
.prop-desc {
  color: var(--muted);
  font-size: 0.75rem;
}

.article footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 3rem;
}

.article footer h1,
.article footer p {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 460;
  line-height: 1.2;
}

@media (max-width: 1080px) {
  .side {
    position: static;
    padding-bottom: 2rem;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 768px) {
  body::before {
    height: 2.5rem;
  }

  .site {
    padding: 2rem 1.5rem 2.5rem;
  }
}

@media (max-width: 520px) {
  .post-link {
    padding-left: 3rem;
  }

  .post-item:not(:last-child) .post-link::after {
    left: 3rem;
  }

}

/* ───── x.ai-style terminal intro ───── */

.project-shell {
  padding-top: 1rem;
}

.terminal {
  position: relative;
  width: 100%;
  border-radius: 0.9rem;
  background: #161618;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5), 0 6px 16px -8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: opacity 0.55s ease, transform 0.55s ease, max-height 0.7s ease;
  transform: translateY(0);
}

[data-theme="dark"] .terminal,
.theme-prefers-dark .terminal {
  background: #19191b;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7), 0 6px 16px -8px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.terminal__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__dots {
  display: inline-flex;
  gap: 0.3rem;
}

.terminal__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.terminal__dots span:nth-child(1) { background: #ff5f57; }
.terminal__dots span:nth-child(2) { background: #febc2e; }
.terminal__dots span:nth-child(3) { background: #28c840; }

.terminal__title {
  margin-right: auto;
  letter-spacing: 0.01em;
}

.terminal__progress {
  position: relative;
  width: 5.5rem;
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.terminal__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.terminal__pct {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
  min-width: 3rem;
  text-align: right;
}

.terminal__body {
  padding: 1rem 1.1rem 0.9rem;
  min-height: 12rem;
  max-height: 22rem;
  overflow: hidden;
}

.terminal__line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.terminal__body [data-delay] {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.terminal__body [data-delay].is-on {
  opacity: 1;
  transform: translateY(0);
}

.terminal__caret {
  color: rgba(255, 255, 255, 0.45);
  width: 0.7rem;
}

.terminal__caret--prompt::before { content: "▸"; color: rgba(255, 255, 255, 0.7); }
.terminal__caret--thought::before { content: "◆"; color: #c084fc; }
.terminal__caret--edit::before { content: "✱"; color: #34d399; }
.terminal__caret--out::before { content: " "; }

.terminal__cmd {
  color: rgba(255, 255, 255, 0.94);
}

.terminal__cmd em {
  color: #facc15;
  font-style: normal;
}

.terminal__cmd code {
  color: #93c5fd;
  font-family: inherit;
}

.terminal__cmd .muted {
  color: rgba(255, 255, 255, 0.42);
}

.terminal__cmd .done {
  color: #34d399;
}

.terminal__diff {
  margin: 0.45rem 0;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.terminal__diff-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  padding: 0.18rem 0.6rem;
  font-size: 0.74rem;
}

.terminal__diff-row .ln {
  color: rgba(255, 255, 255, 0.32);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-right: 0.6rem;
}

.terminal__diff-row.del { background: rgba(255, 95, 87, 0.08); }
.terminal__diff-row.add { background: rgba(40, 200, 64, 0.08); }
.terminal__diff-row.add .code { color: #a7f3d0; }
.terminal__diff-row.del .code { color: #fca5a5; }

.terminal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.terminal__crawl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  white-space: nowrap;
}

.terminal__foot-btn {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.terminal__foot-btn--right {
  color: rgba(255, 255, 255, 0.55);
}

.terminal.is-collapsing {
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  margin-bottom: 0;
}

.homepage .article > .project-content,
.homepage .article > .back-link {
  animation: none;
}

.project-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}

.project-content.is-on {
  opacity: 1;
  transform: translateY(0);
}

.project-content h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.project-content .lede {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.018em;
  margin-bottom: 1.4rem;
}

.project-content .meta-pill {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.project-content p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.project-content .actions {
  font-family: var(--font-display);
  font-weight: 500;
}

.project-content .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.project-content .meta-pill {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.project-content p {
  font-size: 0.875rem;
  line-height: 1.55;
  padding-top: 0.85rem;
}

.project-content .actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  font-size: 0.85rem;
}

.project-content .actions a {
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--text);
}

.back-link::before {
  content: "←";
  font-family: var(--mono);
}

@media (max-width: 30rem) {
  .terminal { font-size: 0.72rem; }
  .terminal__body { min-height: 14rem; padding: 0.85rem; }
}
