:root {
  color-scheme: light;
  --paper: #f5f5f4;
  --paper-2: #e7e5e4;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --surface-strong: #111111;
  --ink: #111111;
  --ink-2: #242424;
  --muted: #5f5f5f;
  --subtle: #858585;
  --line: #d4d4d4;
  --line-strong: #a3a3a3;
  --accent: #111111;
  --accent-2: #111111;
  --accent-3: #111111;
  --accent-soft: #eeeeee;
  --body-grid-a: rgba(0, 0, 0, 0.04);
  --body-grid-b: rgba(0, 0, 0, 0.032);
  --body-bg-start: #ffffff;
  --body-bg-end: #ecebea;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(0, 0, 0, 0.16);
  --footer-bg: rgba(255, 255, 255, 0.46);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --card-bg: rgba(255, 255, 255, 0.94);
  --soft-card-bg: rgba(255, 255, 255, 0.72);
  --control-bg: rgba(255, 255, 255, 0.64);
  --hover-bg: rgba(0, 0, 0, 0.06);
  --selected-bg: rgba(0, 0, 0, 0.055);
  --subtle-bg: rgba(0, 0, 0, 0.035);
  --card-border: rgba(0, 0, 0, 0.16);
  --card-border-hover: rgba(0, 0, 0, 0.52);
  --focus-ring: rgba(0, 0, 0, 0.12);
  --link-underline: rgba(0, 0, 0, 0.34);
  --quote-bg: rgba(0, 0, 0, 0.055);
  --code-inline-fg: #111111;
  --home-fg: #111111;
  --home-bg-a: rgba(0, 0, 0, 0.04);
  --home-bg-b: rgba(0, 0, 0, 0.03);
  --home-bg-start: #f7f7f6;
  --home-bg-end: #d7d7d4;
  --home-header-bg: rgba(245, 245, 244, 0.72);
  --home-header-border: rgba(0, 0, 0, 0.12);
  --home-header-text: rgba(17, 17, 17, 0.86);
  --home-header-muted: rgba(17, 17, 17, 0.55);
  --home-header-hover: rgba(0, 0, 0, 0.065);
  --home-header-active: rgba(17, 17, 17, 0.92);
  --home-header-indicator: rgba(17, 17, 17, 0.78);
  --home-header-scan: rgba(0, 0, 0, 0.12);
  --logo-filter: none;
  --home-logo-filter: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.10), 0 20px 56px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.10);
  --max: 1180px;
  font-family:
    "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic Medium",
    Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101010;
  --paper-2: #181818;
  --surface: #1a1a1a;
  --surface-soft: #151515;
  --surface-strong: #0d0d0d;
  --ink: #f4f4f4;
  --ink-2: #dedede;
  --muted: #b6b6b6;
  --subtle: #868686;
  --line: #333333;
  --line-strong: #555555;
  --accent: #f4f4f4;
  --accent-2: #f4f4f4;
  --accent-3: #f4f4f4;
  --accent-soft: #242424;
  --body-grid-a: rgba(255, 255, 255, 0.045);
  --body-grid-b: rgba(255, 255, 255, 0.032);
  --body-bg-start: #0d0d0d;
  --body-bg-end: #151515;
  --header-bg: rgba(18, 18, 18, 0.84);
  --header-border: rgba(255, 255, 255, 0.12);
  --footer-bg: rgba(18, 18, 18, 0.64);
  --panel-bg: rgba(20, 20, 20, 0.9);
  --card-bg: rgba(22, 22, 22, 0.94);
  --soft-card-bg: rgba(22, 22, 22, 0.72);
  --control-bg: rgba(24, 24, 24, 0.82);
  --hover-bg: rgba(255, 255, 255, 0.08);
  --selected-bg: rgba(255, 255, 255, 0.075);
  --subtle-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-hover: rgba(255, 255, 255, 0.36);
  --focus-ring: rgba(255, 255, 255, 0.14);
  --link-underline: rgba(255, 255, 255, 0.38);
  --quote-bg: rgba(255, 255, 255, 0.065);
  --code-inline-fg: #f4f4f4;
  --home-fg: #ffffff;
  --home-bg-a: rgba(255, 255, 255, 0.08);
  --home-bg-b: rgba(255, 255, 255, 0.06);
  --home-bg-start: #111111;
  --home-bg-end: #1f1f1f;
  --home-header-bg: rgba(16, 16, 16, 0.44);
  --home-header-border: rgba(255, 255, 255, 0.11);
  --home-header-text: rgba(255, 255, 255, 0.84);
  --home-header-muted: rgba(255, 255, 255, 0.48);
  --home-header-hover: rgba(255, 255, 255, 0.075);
  --home-header-active: rgba(255, 255, 255, 0.9);
  --home-header-indicator: rgba(255, 255, 255, 0.72);
  --home-header-scan: rgba(255, 255, 255, 0.16);
  --logo-filter: grayscale(1) invert(1) contrast(1.08);
  --home-logo-filter: grayscale(1) invert(1) contrast(1.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 20px 56px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.38), 0 12px 32px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--body-grid-a) 1px, transparent 1px),
    linear-gradient(90deg, var(--body-grid-b) 1px, transparent 1px),
    linear-gradient(180deg, var(--body-bg-start) 0, var(--paper) 42rem, var(--body-bg-end) 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

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

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code,
pre,
kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  width: 100%;
  flex: 1;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: clamp(24px, 4vw, 58px);
  right: 0;
  left: 0;
  z-index: 30;
  border-bottom: 0;
  background: transparent;
  color: var(--ink);
}

.site-header .header-inner {
  transition:
    height 180ms ease,
    padding 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header[data-scrolled] {
  top: 12px;
}

.site-header[data-scrolled] .header-inner {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: var(--header-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header-home {
  border-bottom-color: transparent;
  background: transparent;
  color: var(--home-header-text);
  box-shadow: none;
}

.site-header-home::before {
  display: none;
}

.site-header-home.site-header-terminal-reveal {
  opacity: 0;
  transform: translateY(-14px);
  animation: home-header-reveal 560ms cubic-bezier(0.16, 1, 0.3, 1) 4.72s forwards;
}

.site-header-home.site-header-terminal-reveal::before {
  animation: none;
}

.site-header-home .header-inner {
  position: relative;
  height: 54px;
}

.site-header-home[data-scrolled] .header-inner {
  color: var(--ink);
  background: var(--header-bg);
}

.site-header-home[data-scrolled] .brand {
  color: var(--ink);
}

.site-header-home[data-scrolled] .brand img {
  filter: var(--logo-filter);
  opacity: 1;
}

.site-header-home[data-scrolled] .nav {
  color: var(--muted);
}

.site-header-home[data-scrolled] .nav a:hover {
  background: var(--hover-bg);
  color: var(--ink);
}

.site-header-home[data-scrolled] .nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header-home[data-scrolled] .nav a[aria-current="page"]::after {
  background: var(--accent);
}

.site-header-home[data-scrolled] .theme-toggle {
  border-color: var(--line);
  background: var(--control-bg);
  color: var(--ink);
}

.site-header-home[data-scrolled] .header-icon-button {
  color: var(--ink);
}

.site-header-home[data-scrolled] .theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--hover-bg);
}

.site-header-home[data-scrolled] .header-icon-button:hover,
.site-header-home[data-scrolled] .header-icon-button[aria-expanded="true"] {
  background: var(--hover-bg);
}

.site-header-home[data-scrolled] .theme-toggle::after {
  background: var(--ink);
}

.site-header-home .brand {
  color: var(--home-header-text);
}

.site-header-home .brand img {
  filter: var(--home-logo-filter);
  opacity: 0.86;
}

.site-header-home .nav {
  color: var(--home-header-muted);
}

.site-header-home .nav a:hover {
  background: var(--home-header-hover);
  color: var(--home-header-active);
}

.site-header-home .nav a[aria-current="page"] {
  color: var(--home-header-active);
}

.site-header-home .nav a[aria-current="page"]::after {
  background: var(--home-header-indicator);
}

.site-header-home .header-icon-button {
  background: transparent;
  color: var(--home-header-active);
}

.site-header-home .header-icon-button:hover,
.site-header-home .header-icon-button[aria-expanded="true"] {
  background: var(--home-header-hover);
}

.header-inner {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  filter: var(--logo-filter);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav a {
  position: relative;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover {
  background: var(--hover-bg);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 2px;
  background: var(--accent);
}

.header-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.header-icon-button:hover,
.header-icon-button[aria-expanded="true"] {
  background: var(--hover-bg);
  color: var(--ink);
}

.header-icon-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.header-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: var(--control-bg);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--hover-bg);
}

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
  z-index: 2;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

html[data-theme="dark"] .theme-toggle::after {
  transform: translateX(16px);
}

.header-search {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(82px, 12vh, 132px) 16px 32px;
  background: color-mix(in srgb, var(--paper), transparent 8%);
  backdrop-filter: blur(18px) saturate(1.02);
}

.header-search[hidden] {
  display: none;
}

.header-search-panel {
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface), transparent 3%);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.header-rss-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.rss-dialog-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rss-dialog-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.28;
}

.rss-dialog-copy p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.86;
}

.rss-dialog-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
}

.rss-dialog-url code {
  overflow: hidden;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rss-dialog-url a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
}

.rss-dialog-url a:hover {
  border-color: var(--ink);
  background: var(--hover-bg);
}

.rss-dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.rss-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.rss-copy-button:hover,
.rss-copy-button.is-copied {
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
}

.rss-copy-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.rss-copy-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .header-search {
  background: rgba(0, 0, 0, 0.52);
}

.theme-toggle-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  padding: 5px 6px;
}

.theme-toggle-light,
.theme-toggle-dark {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--subtle);
  opacity: 0.56;
}

.site-header-home .theme-toggle {
  border-color: var(--home-header-border);
  background: color-mix(in srgb, var(--home-header-bg), transparent 25%);
  color: var(--home-header-active);
}

.site-header-home .theme-toggle:hover {
  background: var(--home-header-hover);
}

.site-header-home .theme-toggle::after {
  background: var(--home-header-active);
}

.site-footer {
  margin-top: 112px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 34px 0;
  font-size: 0.9rem;
}

.footer-inner strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.home-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: var(--home-fg);
  background:
    linear-gradient(135deg, var(--home-bg-a), transparent 52%),
    linear-gradient(180deg, var(--home-bg-start), var(--home-bg-end));
}

.home-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--home-bg-a) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-bg-b) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.home-shell-inner {
  position: relative;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 42px) 0;
}

.page-hero {
  padding: clamp(148px, 12vw, 176px) 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-shell .eyebrow {
  color: #d4d4d4;
}

.page-title {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.05rem, 4.6vw, 4.05rem);
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.86;
}

.about-page {
  position: relative;
  padding-bottom: 108px;
}

.about-intro {
  position: relative;
  overflow: hidden;
  padding-bottom: 52px;
}

.about-terminal-field {
  position: absolute;
  top: 74px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  padding: 0 0 48px;
  pointer-events: none;
  opacity: 0.085;
  mask-image:
    linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%),
    linear-gradient(180deg, transparent 0, black 14%, black 80%, transparent 100%);
  mask-composite: intersect;
}

.about-terminal-stream {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin-inline: auto;
  border-left: 1px solid color-mix(in srgb, var(--ink), transparent 72%);
  padding-left: 14px;
  animation: about-terminal-scroll 58s linear infinite;
}

.about-terminal-stream span {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: clamp(0.62rem, 0.82vw, 0.78rem);
  font-weight: 720;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-terminal-cursor {
  position: absolute;
  bottom: 62px;
  left: max(20px, calc((100vw - var(--max)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 720;
}

.about-terminal-cursor strong {
  display: block;
  width: 0.62em;
  height: 1.08em;
  background: currentColor;
  animation: terminal-cursor 1s steps(1, end) infinite;
}

.about-hero {
  position: relative;
  z-index: 1;
  padding: clamp(148px, 12vw, 178px) 0 46px;
}

.about-hero .breadcrumb {
  margin-bottom: 32px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
}

.about-hero-copy {
  max-width: 760px;
}

.about-hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 9vw, 7.4rem);
  font-weight: 920;
  line-height: 0.92;
  letter-spacing: 0;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.about-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.about-actions a:hover {
  border-color: var(--ink);
  background: var(--hover-bg);
  transform: translateY(-1px);
}

.about-actions svg,
.about-command svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-identity {
  display: grid;
  gap: 14px;
}

.about-command {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #111111;
  color: #f4f4f4;
  box-shadow: var(--shadow-soft);
}

.about-command-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 11px;
  background: #171717;
}

.about-command-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #f4f4f4;
  border-radius: 50%;
  opacity: 0.7;
}

.about-command-bar strong {
  margin-left: auto;
  color: #a3a3a3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 720;
}

.about-command-profile {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
}

.about-command-profile img {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.about-command-profile span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 5px 8px;
  color: #f4f4f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.about-command-profile p {
  margin: 12px 0 0;
  color: #f4f4f4;
  font-size: 1.25rem;
  font-weight: 860;
  line-height: 1.15;
}

.about-command dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 10px 14px 14px;
}

.about-command dl div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 0;
}

.about-command dl div:last-child {
  border-bottom: 0;
}

.about-command dt,
.about-command dd {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.about-command dt {
  color: #8a8a8a;
}

.about-command dd {
  color: #f4f4f4;
}

.about-focus-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.about-focus-grid article {
  min-height: 154px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.about-focus-grid p,
.about-focus-grid h2,
.about-focus-grid span {
  margin: 0;
}

.about-focus-grid p {
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-focus-grid h2 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.about-focus-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.about-content-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  margin-top: 0;
  align-items: start;
}

.about-side {
  position: sticky;
  top: 104px;
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}

.about-side p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-side ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-side li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.about-document {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.about-document h2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 4.6rem 0 1.2rem;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 880;
}

.about-document h2::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.about-document h3 {
  display: inline-flex;
  align-items: center;
  margin: 2.6rem 0 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 760;
}

.about-document.prose h3 {
  margin: 2.6rem 0 0.4rem;
  font-size: 0.78rem;
  line-height: 1.42;
}

.about-document.prose h3 a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.about-document h4 {
  margin: 0.55rem 0 0.2rem;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.45;
}

.about-document h4 + p {
  border-left: 2px solid var(--line-strong);
  margin-top: 0.7rem;
  padding-left: 18px;
}

.about-document table {
  display: block;
  width: 100%;
  border: 0;
  margin: 1.2rem 0 0;
}

.about-document thead {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

.about-document tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-document tr {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.about-document th,
.about-document td {
  display: block;
  border: 0;
  padding: 0;
}

.about-document td:first-child {
  color: var(--ink);
  font-weight: 820;
  line-height: 1.5;
}

.about-document td:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

@keyframes about-terminal-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.article-hero .page-title {
  max-width: 920px;
  font-size: clamp(1.55rem, 2.55vw, 2.35rem);
  line-height: 1.24;
}

.meta-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  background: var(--control-bg);
  color: var(--ink-2);
  font-weight: 720;
}

.home-terminal-workbench {
  --terminal-width: min(880px, 74vw);
  --terminal-height: clamp(390px, 42vw, 555px);
  position: relative;
  min-width: 0;
  min-height: clamp(760px, calc(100vh - 70px), 960px);
}

.terminal-window,
.ambient-terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #101010;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ambient-terminal {
  --open-delay: 0ms;
  --active-duration: 1600ms;
  --log-delay: 260ms;
  --log-duration: 1.7s;
  --log-shift: -46%;
  --terminal-opacity: 0.7;
  position: absolute;
  z-index: 1;
  width: var(--terminal-width);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation:
    terminal-open 180ms cubic-bezier(0.16, 1, 0.3, 1) var(--open-delay) forwards,
    terminal-close 240ms cubic-bezier(0.7, 0, 0.84, 0) calc(var(--open-delay) + var(--active-duration)) forwards;
}

.ambient-terminal::after {
  content: "";
  position: absolute;
  inset: 38px 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.34;
  transform: translateY(-100%);
  animation: terminal-scan 2.2s linear calc(var(--open-delay) + 220ms) infinite;
}

.ambient-body {
  display: grid;
  align-content: start;
  gap: 12px;
  height: var(--terminal-height);
  padding: 18px 20px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background: #101010;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: clamp(0.74rem, 0.92vw, 0.9rem);
  line-height: 1.75;
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 88%, transparent 100%);
}

.ambient-visual {
  opacity: 0;
  animation: ambient-visual-in 360ms ease calc(var(--open-delay) + 190ms) forwards;
}

.terminal-b .ambient-body,
.terminal-c .ambient-body {
  align-content: stretch;
  mask-image: none;
}

.ambient-dashboard {
  display: grid;
  height: 100%;
  min-height: 0;
  opacity: 0;
  animation: ambient-visual-in 360ms ease calc(var(--open-delay) + 190ms) forwards;
}

.dashboard-header,
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.dashboard-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  padding-top: 10px;
  padding-bottom: 0;
}

.dashboard-header strong,
.dashboard-footer strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topology-dashboard,
.indexer-dashboard {
  gap: 18px;
}

.topology-dashboard,
.indexer-dashboard {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.topology-frame {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.018);
  background-size: 34px 34px;
  overflow: hidden;
}

.topology-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  opacity: 0;
  transform: translateX(-70%);
  animation: topology-scan 1.6s ease calc(var(--open-delay) + 360ms) infinite;
}

.topology-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.topology-link {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 9 11;
  vector-effect: non-scaling-stroke;
  animation: topology-flow 1.05s linear calc(var(--open-delay) + 260ms) infinite;
}

.topology-link-main {
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 2.5;
}

.topology-link-return {
  stroke-dasharray: 4 8;
}

.topology-node rect {
  fill: #101010;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.topology-node-core rect {
  fill: rgba(255, 255, 255, 0.085);
  stroke: rgba(255, 255, 255, 0.55);
}

.topology-node-source rect,
.topology-node-output rect {
  fill: rgba(255, 255, 255, 0.05);
}

.topology-node text {
  fill: rgba(255, 255, 255, 0.76);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-anchor: middle;
  text-transform: uppercase;
}

.topology-node text + text {
  fill: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.topology-packet {
  fill: rgba(255, 255, 255, 0.86);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.34));
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: topology-packet 1.18s steps(3, end) calc(var(--open-delay) + 460ms) infinite;
}

.topology-packet-b {
  animation-delay: calc(var(--open-delay) + 680ms);
}

.topology-packet-c {
  animation-delay: calc(var(--open-delay) + 900ms);
}

.topology-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.topology-readout span,
.topology-readout strong {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 9px;
  font-size: 0.7rem;
  font-weight: 820;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.topology-readout span {
  color: rgba(255, 255, 255, 0.45);
}

.topology-readout strong {
  color: rgba(255, 255, 255, 0.82);
}

.indexer-visual {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 0;
  padding: 10px 0;
}

.indexer-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 6px;
  height: min(260px, 38vh);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 0 1px 5px;
}

.indexer-bars span {
  display: block;
  height: 18%;
  background: rgba(255, 255, 255, 0.24);
  animation: indexer-bar-build 1.18s steps(4, end) calc(var(--open-delay) + 240ms) forwards;
}

.indexer-bars span:nth-child(2) {
  height: 46%;
}

.indexer-bars span:nth-child(3) {
  height: 32%;
}

.indexer-bars span:nth-child(4) {
  height: 70%;
}

.indexer-bars span:nth-child(5) {
  height: 54%;
}

.indexer-bars span:nth-child(6) {
  height: 88%;
}

.indexer-bars span:nth-child(7) {
  height: 38%;
}

.indexer-bars span:nth-child(8) {
  height: 64%;
}

.indexer-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  align-self: center;
}

.indexer-grid span {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  animation: indexer-cell-flash 1.4s steps(1, end) calc(var(--open-delay) + 180ms + var(--cell-delay)) infinite;
}

.query-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

.query-lane span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 820;
  text-align: center;
}

.query-lane span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-100%);
  animation: query-lane-scan 1.35s ease-in-out calc(var(--open-delay) + 620ms) infinite;
}

.boot-log {
  display: grid;
  gap: 5px;
  opacity: 0;
  will-change: transform;
  animation: boot-log-scroll var(--log-duration) linear calc(var(--open-delay) + var(--log-delay)) forwards;
}

.boot-log-fast {
  gap: 0;
}

.boot-log .terminal-line {
  opacity: 1;
  transform: none;
  animation: none;
}

.terminal-line {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.terminal-cursor-dot {
  display: inline-block;
  width: 0.62em;
  height: 1.08em;
  margin-left: 0.35em;
  background: rgba(255, 255, 255, 0.78);
  vertical-align: -0.18em;
  animation: terminal-cursor 1s steps(1, end) infinite;
}

.terminal-a {
  top: -5%;
  left: clamp(-170px, -9vw, -92px);
  --open-delay: 120ms;
  --active-duration: 2100ms;
  --log-delay: 320ms;
  --log-duration: 1.55s;
  --log-shift: -82%;
  --terminal-opacity: 0.66;
}

.terminal-a .ambient-body {
  padding: 12px 14px;
  font-size: clamp(0.58rem, 0.72vw, 0.72rem);
  line-height: 1.28;
  letter-spacing: 0;
}

.terminal-a .boot-log {
  animation-timing-function: steps(42, end);
}

.terminal-b {
  top: 4%;
  right: clamp(-190px, -10vw, -110px);
  --open-delay: 620ms;
  --active-duration: 1850ms;
  --log-delay: 300ms;
  --log-duration: 1.24s;
  --log-shift: -44%;
  --terminal-opacity: 0.56;
}

.terminal-c {
  bottom: -9%;
  left: clamp(-40px, 2vw, 34px);
  --open-delay: 1180ms;
  --active-duration: 1850ms;
  --log-delay: 240ms;
  --log-duration: 1.26s;
  --log-shift: -40%;
  --terminal-opacity: 0.52;
}

.terminal-d {
  right: clamp(-150px, -7vw, -76px);
  bottom: 5%;
  --open-delay: 1760ms;
  --active-duration: 1800ms;
  --log-delay: 280ms;
  --log-duration: 1.38s;
  --log-shift: -42%;
  --terminal-opacity: 0.54;
}

.terminal-d .ambient-body {
  padding: 16px 18px;
}

html[data-theme="light"] .ambient-terminal {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow:
    0 26px 82px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .terminal-a {
  --terminal-opacity: 0.94;
}

html[data-theme="light"] .terminal-b {
  --terminal-opacity: 0.92;
}

html[data-theme="light"] .terminal-c {
  --terminal-opacity: 0.9;
}

html[data-theme="light"] .terminal-d {
  --terminal-opacity: 0.92;
}

html[data-theme="light"] .ambient-body {
  color: rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] .dashboard-header,
html[data-theme="light"] .dashboard-footer {
  color: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .dashboard-header strong,
html[data-theme="light"] .dashboard-footer strong {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .topology-link {
  stroke: rgba(255, 255, 255, 0.52);
}

html[data-theme="light"] .topology-link-main {
  stroke: rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .topology-node text {
  fill: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .topology-node text + text {
  fill: rgba(255, 255, 255, 0.66);
}

html[data-theme="light"] .topology-readout span {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .topology-readout strong {
  color: rgba(255, 255, 255, 0.92);
}

.router-log {
  gap: 4px;
  font-size: clamp(0.72rem, 0.86vw, 0.86rem);
  line-height: 1.58;
  animation-timing-function: steps(16, end);
}

.terminal-window-main {
  position: absolute;
  z-index: 4;
  top: 52%;
  left: 50%;
  width: var(--terminal-width);
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.94);
  animation: terminal-open-main 460ms cubic-bezier(0.16, 1, 0.3, 1) 4200ms forwards;
}

.terminal-window-main.is-route-launching {
  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.terminal-route-launch {
  position: absolute;
  inset: 38px 0 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.4), rgba(16, 16, 16, 0.92)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 5px);
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  opacity: 0;
  animation: terminal-route-launch-in 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.terminal-route-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-115%);
  animation: terminal-route-launch-sweep 700ms linear 90ms forwards;
}

.terminal-route-launch-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.terminal-route-launch-copy span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 860;
  letter-spacing: 0.16em;
}

.terminal-route-launch-copy strong {
  max-width: min(620px, 72vw);
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(1rem, 2.8vw, 1.65rem);
  font-weight: 840;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-route-launch-bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 22px);
  gap: 7px;
}

.terminal-route-launch-bars span {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  animation: terminal-route-launch-bar 520ms steps(1, end) infinite;
}

.terminal-route-launch-bars span:nth-child(2) {
  animation-delay: 70ms;
}

.terminal-route-launch-bars span:nth-child(3) {
  animation-delay: 140ms;
}

.terminal-route-launch-bars span:nth-child(4) {
  animation-delay: 210ms;
}

.terminal-route-launch-bars span:nth-child(5) {
  animation-delay: 280ms;
}

.terminal-route-launch-bars span:nth-child(6) {
  animation-delay: 350ms;
}

.terminal-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 13px;
  background: #1c1c1c;
  color: rgba(255, 255, 255, 0.72);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}

.terminal-toolbar strong {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.terminal-dots {
  display: inline-flex;
  gap: 7px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2f2f2;
}

.terminal-dots span:nth-child(2) {
  background: #8f8f8f;
}

.terminal-dots span:nth-child(3) {
  background: #4d4d4d;
}

.foreground-terminal {
  position: relative;
  height: var(--terminal-height);
  background: #101010;
}

.main-boot-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  color: #f4f4f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  opacity: 0;
  transform: scale(0.985);
  animation: main-boot-logo-stage 2.35s cubic-bezier(0.16, 1, 0.3, 1) 4.32s forwards;
}

.main-boot-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.13), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  opacity: 0;
  transform: translateY(-100%);
  animation: main-boot-logo-scan 1.4s linear 4.48s 2;
}

.main-boot-logo-mark {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 22px;
  color: #ffffff;
  font-size: 4.1rem;
  font-weight: 860;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.7);
  transform: translateY(8px);
  opacity: 0;
  animation: main-boot-logo-mark 1.25s cubic-bezier(0.16, 1, 0.3, 1) 4.52s forwards;
}

.main-boot-logo-subtitle {
  position: relative;
  z-index: 1;
  max-width: min(78%, 620px);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  text-transform: none;
  opacity: 0;
  animation: main-boot-logo-detail 740ms ease 5.05s forwards;
}

.main-boot-logo-loader {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 18px);
  gap: 7px;
  opacity: 0;
  animation: main-boot-logo-detail 680ms ease 5.32s forwards;
}

.main-boot-logo-loader span {
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  animation: main-boot-loader-step 1.1s steps(1, end) 5.42s infinite;
}

.main-boot-logo-loader span:nth-child(2) {
  animation-delay: 5.52s;
}

.main-boot-logo-loader span:nth-child(3) {
  animation-delay: 5.62s;
}

.main-boot-logo-loader span:nth-child(4) {
  animation-delay: 5.72s;
}

.main-boot-logo-loader span:nth-child(5) {
  animation-delay: 5.82s;
}

.main-boot-logo-loader span:nth-child(6) {
  animation-delay: 5.92s;
}

@keyframes terminal-open {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(1px);
  }

  100% {
    opacity: var(--terminal-opacity);
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes terminal-close {
  0% {
    opacity: var(--terminal-opacity);
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
    filter: blur(2px);
  }
}

@keyframes home-header-reveal {
  0% {
    opacity: 0;
    transform: translateY(-14px);
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes home-header-scan {
  0% {
    opacity: 0;
    transform: translateX(-46%);
  }

  34%,
  62% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(46%);
  }
}

@keyframes boot-log-scroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  4% {
    opacity: 1;
  }

  96% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(var(--log-shift));
  }
}

@keyframes ambient-visual-in {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topology-flow {
  0% {
    stroke-dashoffset: 20;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes topology-scan {
  0% {
    opacity: 0;
    transform: translateX(-80%);
  }

  30%,
  60% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateX(80%);
  }
}

@keyframes topology-packet {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  38%,
  72% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 0;
    transform: scale(0.7);
  }
}

@keyframes indexer-bar-build {
  0% {
    transform: scaleY(0.2);
    background: rgba(255, 255, 255, 0.16);
  }

  100% {
    transform: scaleY(1);
    background: rgba(255, 255, 255, 0.62);
  }
}

@keyframes indexer-cell-flash {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.06);
  }

  34% {
    background: rgba(255, 255, 255, 0.48);
  }
}

@keyframes query-lane-scan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes terminal-cursor {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes terminal-scan {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(140%);
  }
}

@keyframes terminal-open-main {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.94);
    filter: blur(3px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes terminal-route-launch-in {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  18%,
  76% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.025);
  }
}

@keyframes terminal-route-launch-sweep {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(115%);
  }
}

@keyframes terminal-route-launch-bar {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.2);
  }

  45% {
    background: rgba(255, 255, 255, 0.95);
  }
}

@keyframes main-boot-logo-stage {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  18%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes main-boot-logo-mark {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(3px);
  }

  24% {
    opacity: 0.72;
  }

  38% {
    opacity: 0.3;
  }

  52%,
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes main-boot-logo-detail {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes main-boot-logo-scan {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  18% {
    opacity: 0.4;
  }

  100% {
    opacity: 0;
    transform: translateY(120%);
  }
}

@keyframes main-boot-loader-step {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.18);
  }

  50% {
    background: rgba(255, 255, 255, 0.86);
  }
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  mix-blend-mode: overlay;
  opacity: 0.34;
}

.post-card-media time {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  padding: 5px 8px;
  background: rgba(17, 17, 17, 0.76);
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 720;
}

.grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  margin: 0;
  border-left: 4px solid var(--ink);
  padding-left: 12px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 860;
  letter-spacing: 0;
}

.section-heading a {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 760;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-list-shell {
  padding: clamp(148px, 12vw, 176px) 0 96px;
}

.blog-list-shell .breadcrumb {
  margin-bottom: 28px;
}

.blog-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.blog-list-header h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: 0;
}

.blog-list-header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag-cloud a,
.article-tags a,
.post-card-tags a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.3;
}

.tag-cloud a {
  min-height: 32px;
  padding: 6px 10px;
}

.tag-cloud a:hover,
.tag-cloud a[aria-current="page"],
.article-tags a:hover,
.post-card-tags a:hover {
  border-color: var(--ink);
  background: var(--hover-bg);
  color: var(--ink);
}

.tag-cloud span {
  color: var(--subtle);
  font-size: 0.68rem;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(36px, 4vw, 48px);
}

.post-card {
  min-width: 0;
}

.post-card-link {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.post-card-media {
  position: relative;
  min-height: 160px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--surface-strong);
}

.post-card-media-link {
  display: block;
  min-height: 160px;
  color: inherit;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  gap: 9px;
  padding: 15px 16px 14px;
}

.post-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.48;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-card-title-link:hover h2 {
  color: var(--accent);
}

.post-card-body > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-card-tags a {
  padding: 4px 8px;
  font-size: 0.68rem;
}

.post-card footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 760;
}

.post-card footer a {
  color: var(--accent-2);
}

.post-card footer a:hover {
  color: var(--ink);
}

.post-card-tile .post-card-link {
  grid-template-columns: 1fr;
}

.post-card-tile .post-card-link:hover {
  transform: none;
  border-color: var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.post-card-tile .post-card-media {
  aspect-ratio: 1200 / 630;
  min-height: 0;
}

.post-card-tile .post-card-media img {
  transform: scale(1.07);
}

.post-card-tile .post-card-link:hover .post-card-media img {
  transform: scale(1.07);
}

.post-card-tile .post-card-body {
  min-height: 196px;
  padding: 17px 18px 16px;
}

.post-card-tile h2 {
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.post-card-tile h2:hover {
  text-decoration-color: currentColor;
}

.post-card-tile .post-card-body > p {
  -webkit-line-clamp: 3;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.article-tags a {
  padding: 6px 10px;
}

.tag-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(36px, 4vw, 48px);
}

.tag-index-grid a {
  display: grid;
  gap: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.tag-index-grid a:hover {
  border-color: var(--card-border-hover);
  background: var(--surface);
  color: var(--ink);
}

.tag-index-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
}

.tag-index-grid span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.76rem;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel h2,
.panel h3,
.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.panel-heading a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 780;
}

.toc-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 760;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.toc-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.toc-toggle:hover,
.toc-toggle:focus-visible {
  border-color: var(--ink);
  background: var(--subtle-bg);
}

.toc.is-expanded .toc-toggle svg {
  transform: rotate(180deg);
}

.share-primary,
.share-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.share-panel {
  min-width: 0;
}

.share-secondary {
  margin-top: 6px;
}

.share-primary a,
.share-primary button,
.share-secondary a,
.share-secondary button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.share-primary a,
.share-primary button {
  min-height: 38px;
}

.share-secondary a,
.share-secondary button {
  min-height: 30px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
}

.share-primary a:hover,
.share-primary button:hover,
.share-secondary a:hover,
.share-secondary button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.share-primary a:focus-visible,
.share-primary button:focus-visible,
.share-secondary a:focus-visible,
.share-secondary button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.share-primary span,
.share-secondary span {
  line-height: 1;
}

.share-icon,
.share-link-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-icon-fill {
  fill: currentColor;
  stroke: none;
}

.share-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.search-box {
  display: grid;
  background: var(--panel-bg);
  color: var(--ink);
}

.search-command-bar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.search-command-icon {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}

.search-command-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-input {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 13px 8px 13px 0;
  font: inherit;
  font-size: 0.98rem;
}

.search-input:focus {
  outline: 0;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  display: none;
}

.search-command-bar:focus-within {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.search-command-esc {
  margin-right: 12px;
  min-width: 28px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.search-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
}

.search-tokens span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
}

.search-tokens b {
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  color: var(--subtle);
  font-size: 0.76rem;
}

.search-command-keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-results-meta kbd {
  min-width: 22px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.55;
}

.search-results {
  display: grid;
  gap: 2px;
  max-height: min(56vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 11px 10px 8px;
}

.search-result:hover,
.search-result.is-selected {
  border-color: var(--line);
  color: var(--ink);
  background: var(--selected-bg);
}

.search-result-index {
  padding-top: 2px;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.74rem;
}

.search-result-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-result strong {
  display: block;
  color: var(--ink);
  line-height: 1.5;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  border-top: 1px solid var(--line);
  padding: 18px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
}

.content {
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5vw, 58px);
}

.prose {
  min-width: 0;
  color: var(--ink-2);
  line-height: 2;
  font-size: 1rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  line-height: 1.42;
  letter-spacing: 0;
}

.prose h2 {
  margin-top: 2.55em;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 2.1em;
  font-size: 1.2rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote,
.prose pre {
  margin: 1.15em 0;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.prose blockquote {
  border-left: 4px solid var(--accent-2);
  margin-left: 0;
  padding: 14px 18px;
  background: var(--quote-bg);
  color: var(--ink);
}

.prose code:not(pre code) {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.16em 0.38em;
  background: var(--surface-soft);
  color: var(--code-inline-fg);
  font-size: 0.92em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose pre {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 18px;
  background: #111111 !important;
  color: #f5f5f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prose .code-block {
  position: relative;
  max-width: 100%;
  min-width: 0;
  margin: 1.15em 0;
  overflow: hidden;
}

.prose .code-copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0;
  background: #181818;
  color: #d4d4d4;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.prose .code-block:hover .code-copy-button,
.prose .code-block:focus-within .code-copy-button,
.prose .code-copy-button.is-copied {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.prose .code-copy-button:hover,
.prose .code-copy-button.is-copied {
  border-color: rgba(255, 255, 255, 0.42);
  background: #242424;
  color: #ffffff;
}

.prose .code-copy-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.prose .code-copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prose .code-copy-icon-check {
  display: none;
}

.prose .code-copy-button.is-copied .code-copy-icon-copy {
  display: none;
}

.prose .code-copy-button.is-copied .code-copy-icon-check {
  display: block;
}

.prose .code-block pre {
  width: 100%;
  margin: 0;
  padding-right: 56px;
}

.prose img {
  margin: 1.6em auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.prose table {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.prose .table-scroll {
  max-width: 100%;
  min-width: 0;
  margin: 1.15em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose .table-scroll table {
  display: table;
  width: max-content;
  min-width: 100%;
  margin: 0;
  overflow: visible;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}

.prose th {
  background: var(--surface-soft);
  color: var(--ink);
}

.toc-list,
.toc-children {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
  list-style: none;
}

.toc-progress {
  overflow: hidden;
  height: 3px;
  margin: -4px 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.toc-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--ink);
  transition: width 120ms ease;
}

.toc-section {
  margin: 2px 0;
}

.toc-section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.toc-section.has-children .toc-section-row {
  grid-template-columns: minmax(0, 1fr) 28px;
}

.toc-disclosure {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 31px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.toc-disclosure svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.toc-section.is-open .toc-disclosure svg {
  transform: rotate(90deg);
}

.toc-disclosure:hover {
  background: var(--subtle-bg);
  color: var(--ink);
}

.toc-children {
  max-height: 0;
  margin-left: 14px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition:
    max-height 220ms ease,
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.toc-section.is-open .toc-children {
  max-height: min(56vh, 560px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toc a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  border-left: 2px solid var(--line);
  padding: 6px 0 6px 10px;
  color: var(--muted);
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.toc-children a {
  grid-template-columns: 40px minmax(0, 1fr);
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 0.8rem;
}

.toc-number {
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.8;
}

.toc a:hover,
.toc a.is-current {
  border-left-color: var(--ink);
  color: var(--ink);
  background: var(--subtle-bg);
}

.toc a.is-current .toc-number {
  color: var(--ink);
}

::view-transition-group(*) {
  animation-duration: 900ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 900ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  mix-blend-mode: normal;
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-group(section-shell) {
  animation-duration: 620ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(section-shell) {
  animation: section-shell-out 260ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(section-shell) {
  animation: section-shell-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

::view-transition-group(section-title) {
  animation-duration: 680ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(section-title) {
  animation: section-title-out 260ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(section-title) {
  animation: section-title-in 540ms cubic-bezier(0.16, 1, 0.3, 1) 70ms both;
}

::view-transition-group(section-meta),
::view-transition-group(section-body) {
  animation-duration: 580ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(section-meta),
::view-transition-old(section-body) {
  animation: section-content-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(section-meta),
::view-transition-new(section-body) {
  animation: section-content-in 500ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

@keyframes section-shell-out {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
  }
}

@keyframes section-shell-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes section-title-out {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes section-title-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-content-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes section-content-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 1ms !important;
  }
}

@media (max-width: 1000px) {
  .home-shell-inner {
    padding: 24px 0;
  }

  .home-terminal-workbench {
    --terminal-width: min(760px, 88vw);
    --terminal-height: clamp(375px, 58vh, 510px);
    min-height: calc(100vh - 48px);
  }

  .grid-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero-grid,
  .about-content-shell {
    grid-template-columns: 1fr;
  }

  .about-identity {
    max-width: 560px;
  }

  .about-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-side {
    position: static;
  }

  .blog-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
  }

  .site-header[data-scrolled] {
    top: 8px;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    height: auto;
    padding: 7px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .site-header[data-scrolled] .header-inner {
    height: auto;
    padding: 7px 12px;
    border-radius: 8px;
  }

  .header-rss-panel {
    padding: 18px;
  }

  .rss-dialog-url {
    grid-template-columns: 1fr;
  }

  .rss-dialog-url a {
    justify-self: start;
  }

  .nav {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 1px;
    padding-bottom: 0;
    font-size: 0.74rem;
  }

  .nav a {
    padding: 5px 5px;
  }

  .header-actions {
    width: 100%;
    gap: 8px;
  }

  .toc {
    position: fixed;
    right: calc(env(safe-area-inset-right) + 14px);
    bottom: calc(env(safe-area-inset-bottom) + 14px);
    z-index: 60;
    width: fit-content;
    max-width: calc(100vw - 28px);
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .toc.is-expanded {
    width: min(340px, calc(100vw - 28px));
    border: 1px solid var(--card-border);
    padding: 14px;
    background: var(--panel-bg);
    box-shadow: var(--shadow);
  }

  .toc .panel-heading {
    margin-bottom: 0;
  }

  .toc:not(.is-expanded) .panel-heading {
    justify-content: flex-end;
  }

  .toc .panel-heading h2 {
    display: none;
  }

  .toc.is-expanded .panel-heading h2 {
    display: block;
  }

  .toc-toggle {
    display: inline-flex;
    min-width: 70px;
    min-height: 42px;
    border-color: var(--ink);
    border-radius: 999px;
    padding: 8px 13px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow);
  }

  .toc.is-expanded .toc-toggle {
    min-width: 0;
    min-height: 32px;
    border-color: var(--line);
    border-radius: 6px;
    padding: 5px 9px;
    background: var(--surface-soft);
    color: var(--ink);
    box-shadow: none;
  }

  .toc-progress,
  .toc-list {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition:
      max-height 220ms ease,
      margin 160ms ease,
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .toc:not(.is-expanded) .toc-progress,
  .toc:not(.is-expanded) .toc-list {
    display: none;
  }

  .toc.is-expanded .toc-progress {
    max-height: 3px;
    margin: 14px 0 12px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .toc.is-expanded .toc-list {
    max-height: min(56vh, 520px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .theme-toggle {
    width: 38px;
    height: 24px;
  }

  .theme-toggle::after {
    width: 14px;
    height: 14px;
  }

  html[data-theme="dark"] .theme-toggle::after {
    transform: translateX(14px);
  }

  .home-shell-inner {
    width: min(var(--max), calc(100% - 20px));
    padding: 10px 0;
  }

  .home-terminal-workbench {
    --terminal-width: min(100%, calc(100vw - 20px));
    --terminal-height: clamp(375px, 58vh, 510px);
    min-height: calc(100vh - 20px);
  }

  .terminal-a {
    top: -6%;
    left: -30%;
  }

  .terminal-b {
    top: 4%;
    right: -34%;
  }

  .terminal-c {
    bottom: -10%;
    left: -18%;
  }

  .terminal-d {
    right: -28%;
    bottom: 6%;
  }

  .main-boot-logo {
    gap: 14px;
  }

  .main-boot-logo-mark {
    padding: 12px 14px;
    font-size: 2.15rem;
  }

  .main-boot-logo-subtitle {
    font-size: 0.68rem;
  }

  .page-hero {
    padding-top: 124px;
  }

  .about-page {
    padding-bottom: 72px;
  }

  .about-intro {
    padding-bottom: 36px;
  }

  .about-hero {
    padding-top: 124px;
    padding-bottom: 34px;
  }

  .about-hero .breadcrumb {
    margin-bottom: 22px;
  }

  .about-terminal-field {
    top: 86px;
    padding: 0 0 36px;
    opacity: 0.065;
  }

  .about-terminal-stream {
    width: calc(100% - 28px);
    padding-left: 10px;
  }

  .about-terminal-stream span {
    font-size: 0.62rem;
  }

  .about-terminal-cursor {
    bottom: 42px;
    left: 14px;
    font-size: 0.64rem;
  }

  .about-hero-copy h1 {
    font-size: clamp(3rem, 18vw, 5.4rem);
  }

  .about-actions a {
    min-height: 34px;
    padding: 6px 10px;
  }

  .about-focus-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .about-focus-grid article {
    min-height: 0;
  }

  .about-content-shell {
    margin-top: 0;
  }

  .about-document tbody {
    grid-template-columns: 1fr;
  }

  .about-document tr {
    grid-template-columns: 1fr;
  }

  .about-document h2 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 3.6rem;
  }

  .about-document h2::after {
    width: 100%;
  }

  .blog-list-shell {
    padding-top: 124px;
    padding-bottom: 64px;
  }

  .blog-list-shell .breadcrumb {
    margin-bottom: 22px;
  }

  .blog-list-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .blog-list-header h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .blog-list-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
  }

  .tag-index-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .article-grid,
  .article-grid-wide {
    grid-template-columns: 1fr;
  }

  .post-card-link {
    grid-template-columns: 1fr;
  }

  .post-card-media {
    aspect-ratio: 1.9 / 1;
    min-height: 0;
  }

  .post-card-tile .post-card-body {
    min-height: 184px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.ra-content-layout {
  display: block;
  margin-top: 52px;
  padding-bottom: 28px;
}

.ra-panel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
