/* ==========================================================================
   AgentFarm docs — design tokens
   Clean, minimalist, content-first. No gradients, single restrained accent.
   ========================================================================== */
:root {
  --surface: #ffffff;
  --surface-muted: #f7f7f8;
  --border: #e5e7eb;
  --border-strong: #d4d4d8;

  --text: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;

  --accent: #111827;
  --accent-muted: #374151;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --link-visited: #6d28d9;

  --code-bg: #f7f7f8;
  --code-border: #e5e7eb;
  --code-text: #111827;
  --code-comment: #6b7280;
  --code-keyword: #7c3aed;
  --code-string: #0f766e;
  --code-number: #0369a1;
  --code-function: #2563eb;
  --code-operator: #334155;
  --code-name: #1f2937;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  --maxw: 1040px;
  --maxw-prose: 720px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0e0e10;
    --surface-muted: #161618;
    --border: #2a2a2e;
    --border-strong: #3a3a3f;

    --text: #ececef;
    --text-muted: #b3b3b8;
    --text-soft: #8a8a92;

    --accent: #ececef;
    --accent-muted: #d1d1d6;
    --link: #60a5fa;
    --link-hover: #93c5fd;
    --link-visited: #c4b5fd;

    --code-bg: #161618;
    --code-border: #2a2a2e;
    --code-text: #ececef;
    --code-comment: #9ca3af;
    --code-keyword: #c084fc;
    --code-string: #34d399;
    --code-number: #38bdf8;
    --code-function: #60a5fa;
    --code-operator: #e5e7eb;
    --code-name: #f3f4f6;
  }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--link) 65%, transparent);
  transition: color 0.12s ease, text-decoration-color 0.12s ease;
}
.prose a:visited {
  color: var(--link-visited);
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.prose a {
  font-weight: 500;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--surface);
  padding: 8px 12px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  text-decoration: none;
}
.site-header__brand:hover {
  color: var(--text);
  text-decoration: none;
}
.site-header__title {
  font-size: 1rem;
}
.site-header__logo,
.site-footer__brand img {
  display: block;
}
@media (prefers-color-scheme: dark) {
  .site-header__logo,
  .site-footer__brand img {
    filter: invert(1);
  }
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text);
  background: var(--surface-muted);
  text-decoration: none;
}
.site-nav__link.is-active {
  color: var(--text);
}
.site-nav__ext {
  font-size: 0.8em;
  color: var(--text-soft);
}

.site-nav__toggle,
.site-nav__button {
  display: none;
}

.site-notice {
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.site-notice__text {
  margin: 0;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .site-nav__button {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
  }
  .site-nav__button span {
    display: block;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
  }
  .site-nav__list {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 14px;
    gap: 2px;
  }
  .site-nav__toggle:checked ~ .site-nav__list {
    display: flex;
  }
  .site-nav__link {
    padding: 10px 8px;
  }
}

/* ==========================================================================
   Main / prose
   ========================================================================== */
.site-main {
  min-height: 60vh;
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1040px) {
  .docs-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.page-header {
  margin: 48px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-header__title {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-weight: 600;
}
.page-header__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.page-header__meta {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding-bottom: 80px;
}

.toc-sidebar {
  width: 100%;
}

.toc-sidebar__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.toc-sidebar__summary {
  cursor: pointer;
  list-style: none;
  display: block;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.toc-sidebar__summary::-webkit-details-marker {
  display: none;
}

.toc-sidebar__summary::after {
  content: "v";
  float: right;
  color: var(--text-soft);
  transition: transform 0.12s ease;
}

.toc-sidebar__panel:not([open]) .toc-sidebar__summary::after {
  transform: rotate(-90deg);
}

.toc-sidebar__nav {
  max-height: 60vh;
  overflow: auto;
}

.toc-sidebar__list {
  margin: 0;
  padding: 8px 10px;
  list-style: none;
}

.toc-sidebar__item {
  margin: 0;
}

.toc-sidebar__item + .toc-sidebar__item {
  margin-top: 3px;
}

.toc-sidebar__link {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
}

.toc-sidebar__link:hover,
.toc-sidebar__link:focus-visible,
.toc-sidebar__link.is-active {
  color: var(--text);
  background: var(--surface-muted);
}

.toc-sidebar__item[data-level="3"] .toc-sidebar__link {
  padding-left: 16px;
}

.toc-sidebar__item[data-level="4"] .toc-sidebar__link {
  padding-left: 26px;
}

@media (min-width: 1040px) {
  .toc-sidebar {
    position: sticky;
    top: 84px;
    order: 2;
  }

  .prose {
    order: 1;
    margin: 0;
  }
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
.prose h2 {
  font-size: 1.4rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.15rem;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.2em;
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 4px 16px;
  border-left: 2px solid var(--border-strong);
  color: var(--text-muted);
}
.prose code {
  background: var(--code-bg);
  padding: 0.12em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--code-border);
}
.prose pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 14px 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  border: 1px solid var(--code-border);
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

/* ==========================================================================
   Rouge syntax highlighting for fenced code blocks
   ========================================================================== */
.prose .highlighter-rouge,
.prose div.highlight {
  margin: 0 0 1em;
}

.prose .highlighter-rouge pre,
.prose div.highlight pre {
  margin: 0;
}

.prose .highlight .c,
.prose .highlight .cm,
.prose .highlight .c1,
.prose .highlight .cs {
  color: var(--code-comment);
  font-style: italic;
}

.prose .highlight .k,
.prose .highlight .kc,
.prose .highlight .kd,
.prose .highlight .kn,
.prose .highlight .kp,
.prose .highlight .kr,
.prose .highlight .kt {
  color: var(--code-keyword);
  font-weight: 600;
}

.prose .highlight .s,
.prose .highlight .sa,
.prose .highlight .sb,
.prose .highlight .sc,
.prose .highlight .sd,
.prose .highlight .s2,
.prose .highlight .se,
.prose .highlight .sh,
.prose .highlight .si,
.prose .highlight .sx,
.prose .highlight .sr,
.prose .highlight .s1,
.prose .highlight .ss {
  color: var(--code-string);
}

.prose .highlight .m,
.prose .highlight .mb,
.prose .highlight .mf,
.prose .highlight .mh,
.prose .highlight .mi,
.prose .highlight .il,
.prose .highlight .mo {
  color: var(--code-number);
}

.prose .highlight .na,
.prose .highlight .nb,
.prose .highlight .nc,
.prose .highlight .nd,
.prose .highlight .ne,
.prose .highlight .nl,
.prose .highlight .nn,
.prose .highlight .nx,
.prose .highlight .py,
.prose .highlight .vc,
.prose .highlight .vg,
.prose .highlight .vi,
.prose .highlight .vm {
  color: var(--code-name);
}

.prose .highlight .nf,
.prose .highlight .fm {
  color: var(--code-function);
}

.prose .highlight .o,
.prose .highlight .ow {
  color: var(--code-operator);
}
.prose table {
  width: 100%;
  margin: 1.25em 0 1.45em;
  font-size: 0.94em;
  line-height: 1.45;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border-strong) 35%, transparent);
}
.prose thead th {
  text-align: left;
  padding: 9px 12px;
  font-weight: 650;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-muted) 90%, var(--surface));
  border-bottom: 1px solid var(--border-strong);
  vertical-align: bottom;
}
.prose tbody td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}
.prose th + th,
.prose td + td {
  border-left: 1px solid var(--border);
}
.prose tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-muted) 45%, var(--surface));
}
.prose tbody tr:hover td {
  background: color-mix(in srgb, var(--surface-muted) 70%, var(--surface));
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.prose .mermaid-figure {
  position: relative;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.prose .mermaid-figure .mermaid {
  margin: 0;
  padding: 16px;
  overflow: auto;
  cursor: zoom-in;
  text-align: center;
}
.prose .mermaid-figure .mermaid:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -2px;
}
.prose .mermaid-figure .mermaid svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.prose .mermaid {
  margin: 1.25rem 0;
  overflow-x: auto;
}
.prose .mermaid svg {
  max-width: 100%;
  height: auto;
}
.prose .mermaid .nodeLabel,
.prose .mermaid .label {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.prose .mermaid .nodeLabel p {
  margin: 0;
}

.mermaid-figure__toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
  opacity: 0;
  transition: opacity 120ms ease;
}
.prose .mermaid-figure:hover .mermaid-figure__toolbar,
.prose .mermaid-figure:focus-within .mermaid-figure__toolbar {
  opacity: 1;
}
@media (hover: none) {
  .mermaid-figure__toolbar {
    opacity: 1;
  }
}

.mermaid-toolbar__btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background-color 120ms ease, color 120ms ease,
    border-color 120ms ease;
}
.mermaid-toolbar__btn:hover {
  background: var(--surface-muted);
  border-color: var(--text-soft);
}
.mermaid-toolbar__btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.mermaid-toolbar__btn svg {
  display: block;
}

body.mermaid-modal-open {
  overflow: hidden;
}
.mermaid-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
}
.mermaid-modal[hidden] {
  display: none;
}
.mermaid-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.mermaid-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 24px;
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.mermaid-modal__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.mermaid-modal__hint {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-left: 8px;
}
.mermaid-modal__toolbar .mermaid-toolbar__btn--close {
  margin-left: auto;
}
.mermaid-modal__stage {
  flex: 1;
  min-height: 0;
  background: var(--surface-muted);
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.mermaid-modal__stage:active {
  cursor: grabbing;
}
.mermaid-modal__stage svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 600px) {
  .mermaid-modal__dialog {
    margin: 0;
    border-radius: 0;
    border: 0;
  }
  .mermaid-modal__hint {
    display: none;
  }
}

/* ==========================================================================
   Home page — minimalist sections
   ========================================================================== */
.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.hero__title {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--text);
}
.hero__lede {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 24px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.hero__meta strong {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn:hover {
  background: var(--surface-muted);
  border-color: var(--text-soft);
  color: var(--text);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-muted);
  border-color: var(--accent-muted);
  color: var(--surface);
}
.btn--ghost {
  background: transparent;
}

/* Code preview block (hero, quickstart, etc.) — flat, no chrome bar. */
.codeblock {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.codeblock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--code-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--surface-muted);
}
.codeblock__body {
  padding: 14px 16px;
  margin: 0;
  background: transparent;
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-x: auto;
}
.codeblock__body .tk-kw  { color: var(--code-keyword); font-weight: 600; }
.codeblock__body .tk-fn  { color: var(--code-function); }
.codeblock__body .tk-str { color: var(--code-string); }
.codeblock__body .tk-num { color: var(--code-number); }
.codeblock__body .tk-cm  { color: var(--text-soft); font-style: italic; }

/* Section structure */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.section--last {
  border-bottom: 0;
}
.section__head {
  max-width: 760px;
  margin: 0 0 36px;
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
}
.section__title {
  font-size: clamp(1.55rem, 1.3rem + 0.7vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-weight: 650;
}
.section__lede {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0;
  max-width: 62ch;
  line-height: 1.65;
}

/* Feature list — restrained, no icon tiles. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.feature-grid > .feature {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.feature-grid > .feature:nth-child(3n) {
  border-right: 0;
}
@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid > .feature {
    border-right: 1px solid var(--border);
  }
  .feature-grid > .feature:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .feature-grid > .feature:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid > .feature,
  .feature-grid > .feature:nth-child(3n),
  .feature-grid > .feature:nth-child(2n) {
    border-right: 0;
  }
}
.feature {
  padding: 22px 22px 24px;
  background: var(--surface);
}
.feature__title {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--text);
}
.feature__desc {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.feature__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  margin-right: 14px;
}
.feature__link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
  text-decoration: none;
}

/* Quickstart — two-column, plain. */
.quickstart {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .quickstart {
    grid-template-columns: 1fr;
  }
}
.quickstart__steps {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: qs;
}
.quickstart__step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: qs;
}
.quickstart__step::before {
  content: counter(qs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: 2px;
}
.quickstart__step h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 650;
}
.quickstart__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Devlog list */
.posts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  border-top: 0;
}
.posts > li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.posts > li:hover {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface-muted) 45%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border-strong) 45%, transparent);
}
.post-card {
  display: block;
  padding: 16px 18px 12px;
  color: inherit;
  text-decoration: none;
}
.post-card:hover {
  text-decoration: none;
  color: inherit;
}
.post-card:hover .post-card__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-card__date {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.025em;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
}
.post-card__title {
  margin: 2px 0 8px;
  font-size: clamp(1.2rem, 1.12rem + 0.25vw, 1.34rem);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--text);
}
.post-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.62;
}
.post-card__more {
  display: none;
}

/* Devlog index inside `.prose` overrides. */
.prose .posts {
  margin: 0;
  padding: 0;
}
.prose .posts li {
  margin: 0;
}
.prose .post-card__title {
  margin: 2px 0 8px;
  font-size: clamp(1.2rem, 1.12rem + 0.25vw, 1.34rem);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.006em;
  color: var(--text);
}
.prose .post-card__excerpt {
  margin: 0;
}

/* "Related docs" line on devlog cards */
.prose .posts > li > .post-card__excerpt {
  margin: 0 18px 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-muted) 50%, transparent);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section__more {
  margin-top: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface);
  color: var(--text-muted);
  padding: 40px 0 28px;
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.98rem;
  text-decoration: none;
}
.site-footer__brand:hover {
  text-decoration: none;
  color: var(--text);
}
.site-footer__tagline {
  color: var(--text-soft);
  margin-top: 8px;
  font-size: 0.92rem;
  max-width: 44ch;
}
.site-footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 10px;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: var(--text-muted);
  font-size: 0.93rem;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.site-footer__bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ==========================================================================
   Misc helpers
   ========================================================================== */
.text-center {
  text-align: center;
}
.muted {
  color: var(--text-muted);
}
.kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-muted);
}
