  :root {
    color-scheme: light;
    --bg: #fbfaf7;
    --surface: #ffffff;
    --surface-muted: #f4f1ea;
    --surface-card: rgba(255, 255, 255, 0.72);
    --text: #1b1a17;
    --muted: #6b6459;
    --line: #e7e2d8;
    --accent: #b4740f;
    --accent-strong: #8a5709;
    --amber: #b7791f;
    --header-bg: rgba(251, 250, 247, 0.88);
    --code-bg: #f5f2ec;
    --code-text: #1b1a17;
    --logo-accent: #d4820f;
    --shadow: 0 18px 60px rgba(28, 22, 12, 0.10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #12161f;
    --surface: #1a2130;
    --surface-muted: #1f2839;
    --surface-card: rgba(26, 33, 48, 0.78);
    --text: #dbe2ee;
    --muted: #8b96ab;
    --line: #2c3444;
    --accent: #ffb454;
    --accent-strong: #ffc576;
    --amber: #ffb454;
    --header-bg: rgba(18, 22, 31, 0.88);
    --code-bg: #0d1119;
    --code-text: #dbe2ee;
    --logo-accent: #ffb454;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  }

  * { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
  *::-webkit-scrollbar { width: .5rem; height: .5rem; }
  *::-webkit-scrollbar-thumb { border: .15rem solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--muted) 35%, transparent); background-clip: content-box; }
  *::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--muted) 58%, transparent); background-clip: content-box; }

  html { background: var(--bg); color: var(--text); scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
  body {
    margin: 0; min-width: 320px; line-height: 1.6; overflow-x: hidden;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 26rem),
      var(--bg);
  }
  a { color: inherit; }
  code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace; }

  /* header */
  .site-header {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: .9rem;
    padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2));
    background: var(--header-bg); backdrop-filter: blur(18px);
    transition: transform 260ms cubic-bezier(.4,0,.2,1);
  }
  .site-header.header-hidden { transform: translateY(-110%); }
  .brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 760; font-size: 1.08rem; text-decoration: none; }
  .brand .kit { color: var(--accent-strong); }
  .logo-mark { width: 1.7rem; height: 1.7rem; flex: 0 0 auto; }
  .top-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .94rem; color: var(--muted); }
  .top-nav a { display: inline-flex; align-items: center; gap: .42rem; text-decoration: none; }
  .top-nav a:hover { color: var(--accent-strong); }
  .top-nav svg { width: 1rem; height: 1rem; fill: currentColor; flex: 0 0 auto; }
  .icon-link { color: var(--text); }
  .nav-heart {
    min-height: 2.2rem; padding: 0 .72rem;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent), var(--surface);
    color: var(--accent-strong); font-weight: 760;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 14%, transparent);
  }
  .nav-heart:hover { transform: translateY(-1px); }

  .theme-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 2rem; width: 2rem; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
  .theme-toggle svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
  .moon-icon, .theme-toggle[aria-pressed="true"] .sun-icon { display: none; }
  .theme-toggle[aria-pressed="true"] .moon-icon { display: block; }
  .theme-toggle:hover { color: var(--text); }

  .mobile-menu-toggle { display: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
  .mobile-menu-toggle svg { width: 1.55rem; height: 1.55rem; }
  .mobile-close-icon, .site-header.menu-open .mobile-menu-icon { display: none; }
  .site-header.menu-open .mobile-close-icon { display: block; }
  .mobile-menu {
    position: absolute; top: calc(100% + .6rem); right: max(1rem, calc((100vw - 1120px) / 2)); z-index: 30;
    width: min(17rem, calc(100vw - 2rem)); opacity: 0; visibility: hidden;
    transform: translateY(-.4rem) scale(.96); transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .site-header.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .mobile-menu-card { display: grid; gap: .2rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px 14px 22px 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
  .mobile-menu-head { padding: .1rem .25rem .35rem; color: var(--muted); font-size: .7rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em; }
  .mobile-menu a { display: flex; align-items: center; gap: .45rem; min-height: 2.55rem; padding: 0 .75rem; border-radius: 8px; color: var(--muted); text-decoration: none; }
  .mobile-menu a svg { width: 1rem; height: 1rem; fill: currentColor; }
  .mobile-menu a:hover { background: var(--surface-muted); color: var(--text); }
  .mobile-menu .nav-heart { justify-content: center; margin-top: .25rem; color: var(--accent-strong); }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 9; background: rgba(10,12,16,0); pointer-events: none; transition: background-color 180ms ease, backdrop-filter 180ms ease; }
  .site-header.menu-open + .mobile-backdrop { background: rgba(10,12,16,0.18); backdrop-filter: blur(2px); pointer-events: auto; }

  /* hero */
  .hero { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1100px; margin: 0 auto; padding: 6rem 1.25rem 4rem; }
  .eyebrow { margin: 0 0 1rem; color: var(--accent-strong); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
  .hero h1 { max-width: 20ch; margin: 0; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.06; letter-spacing: -0.015em; }
  .hero h1 em { font-style: normal; color: var(--accent-strong); }
  .actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 2.2rem; }
  .hero-copy { max-width: 46rem; margin: 3rem 0 0; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
  .hero-copy code, .section-header code { color: var(--text); }
  .ladder { margin-top: 1.5rem; font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: .82rem; color: var(--muted); }
  .ladder b { color: var(--accent-strong); }

  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: 0 1.15rem; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
  :root[data-theme="dark"] .button { color: #12161f; }
  .button.secondary { background: transparent; color: var(--accent-strong); }
  :root[data-theme="dark"] .button.secondary { color: var(--accent-strong); }

  /* terminal demo */
  .hero-demo { margin-top: 3.5rem; width: 100%; max-width: 780px; border-radius: 14px; overflow: hidden; background: #070908; box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 40px 90px rgba(16,20,19,.2), 0 10px 28px rgba(16,20,19,.1); }
  :root[data-theme="dark"] .hero-demo { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px rgba(0,0,0,.55); }
  .terminal-chrome { display: flex; align-items: center; padding: .72rem 1rem; background: #171d26; border-bottom: 1px solid rgba(255,255,255,.07); user-select: none; }
  .chrome-dots { display: flex; gap: .44rem; }
  .chrome-dots span { width: .72rem; height: .72rem; border-radius: 50%; }
  .chrome-dots span:nth-child(1) { background: #ff5f57; }
  .chrome-dots span:nth-child(2) { background: #febc2e; }
  .chrome-dots span:nth-child(3) { background: #28c840; }
  .chrome-title { flex: 1; text-align: center; color: rgba(255,255,255,.32); font-size: .78rem; font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; pointer-events: none; }
  .term-body { margin: 0; padding: 1.15rem 1.3rem; text-align: left; font-size: .8rem; line-height: 1.85; color: #dbe2ee; background: #070908; overflow-x: auto; }
  .term-body .p { color: #8b96ab; }
  .term-body .ok { color: #7fd18c; }
  .term-body .warn, .term-body .out { color: #ffb454; }
  .term-body .dim { color: #8b96ab; }
  .term-body .hi { color: #ffb454; font-weight: 700; }
  .demo-caption { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; }
  .demo-caption b { color: var(--accent-strong); }

  /* sections */
  .section { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.25rem; }
  .section-header { max-width: 42rem; margin-bottom: 1.6rem; }
  .section-header h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.01em; }
  .section-header h2 .hash { color: var(--accent-strong); font-family: "SFMono-Regular", ui-monospace, monospace; margin-right: .4rem; }
  .section-header p { margin: .8rem 0 0; color: var(--muted); line-height: 1.7; }

  .formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .8rem; }
  .fmt { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card); }
  .fmt b { display: block; color: var(--text); }
  .fmt code { color: var(--muted); font-size: .82rem; }

  .feature-grid, .docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .feature, .doc-link { padding: 1.3rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card); }
  .feature h3, .doc-link h3 { margin: 0; font-size: 1.02rem; }
  .feature p, .doc-link p { margin: .6rem 0 0; color: var(--muted); line-height: 1.65; }
  .doc-link { text-decoration: none; display: block; }
  .doc-link h3 { color: var(--accent-strong); }
  .doc-link:hover { border-color: var(--accent); box-shadow: 0 12px 35px color-mix(in srgb, var(--accent) 18%, transparent); }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
  .stack { display: grid; gap: .8rem; }
  .code-sample { margin: 0; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--code-bg); color: var(--code-text); overflow-x: auto; font-size: .82rem; line-height: 1.7; }
  .code-sample .c { color: var(--muted); }
  .code-sample .k { color: var(--accent-strong); }
  .code-sample .s { color: color-mix(in srgb, var(--accent) 70%, var(--text)); }

  .skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 1rem; }
  .skill { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card); }
  .skill .cmd { font-family: "SFMono-Regular", ui-monospace, monospace; color: var(--accent-strong); font-size: 1.02rem; font-weight: 760; }
  .skill .tag { float: right; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: .68rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .6rem; text-transform: uppercase; letter-spacing: .04em; }
  .skill .tag.ships { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .skill p { margin: .7rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

  /* install strip */
  .install-strip { display: grid; grid-template-columns: minmax(12rem, .62fr) minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.15rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 45px rgba(28,22,12,.06); }
  .install-strip > div { display: grid; gap: .25rem; }
  .install-strip strong { color: var(--text); }
  .install-strip span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .code-frame { position: relative; }
  .install-strip pre { margin: 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--code-bg); color: var(--code-text); overflow-x: auto; line-height: 1.55; font-size: .85rem; }
  .copy-code-button { position: absolute; top: 0; right: .8rem; transform: translateY(-50%); min-height: 1.8rem; padding: 0 .58rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; }
  .copy-code-button:hover { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

  .attribution-section { padding-block: 1rem 2rem; }
  .attribution { margin: 0 auto; max-width: 660px; text-align: center; color: var(--muted); font-size: .92rem; line-height: 1.65; }
  .attribution a { color: var(--accent-strong); text-decoration: none; }
  .attribution a:hover { text-decoration: underline; }

  /* footer */
  .site-footer { max-width: 1120px; margin: 2rem auto 0; padding: 0 1.25rem 2.8rem; color: var(--muted); }
  .footer-divider { width: 100%; height: 1px; margin-bottom: 2.4rem; background: var(--line); }
  .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.35rem; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
  .footer-brand .logo-mark { width: 2.6rem; height: 2.6rem; }
  .footer-brand strong { color: var(--text); font-size: 1.3rem; }
  .footer-brand span { color: var(--muted); }
  .footer-nav, .footer-actions { display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; }
  .footer-nav a, .footer-actions a { display: inline-flex; align-items: center; gap: .42rem; color: var(--muted); text-decoration: none; }
  .footer-nav a:hover, .footer-actions a:hover { color: var(--accent-strong); }
  .footer-actions svg { width: 1rem; height: 1rem; fill: currentColor; }
  .footer-meta { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }

  @media (max-width: 980px) {
    .site-header { flex-wrap: wrap; }
    .install-strip { grid-template-columns: 1fr; }
  }
  @media (max-width: 860px) {
    .hero { padding-top: 3.5rem; }
    .hero-demo { max-width: 100%; }
    .feature-grid, .docs-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
  }
  @media (max-width: 720px) {
    .site-header { display: flex; flex-wrap: nowrap; align-items: center; gap: .55rem; padding: .65rem 1rem; }
    .top-nav { display: none; }
    .theme-toggle { margin-left: auto; }
    .mobile-menu-toggle { display: inline-flex; }
    .hero h1 { font-size: 2.5rem; }
  }

  /* mascot */
  .hero-mascot { width: 132px; height: 132px; margin: 0 auto 1.6rem; filter: drop-shadow(0 16px 40px color-mix(in srgb, var(--accent) 22%, transparent)); }
  .hero-mascot svg { width: 100%; height: 100%; display: block; }

  /* pipeline */
  .pipeline { margin-top: 1.4rem; padding: 1.4rem 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--code-bg); color: var(--code-text); overflow-x: auto; text-align: center; font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: .84rem; line-height: 2; }
  .pipeline .step { color: var(--accent-strong); font-weight: 700; }
  .pipeline .art { color: color-mix(in srgb, var(--accent) 70%, var(--text)); font-size: .76rem; }
  .pipeline .arr { color: var(--muted); padding: 0 .35rem; }
  .pipeline .art { animation: artglow 3.4s ease-in-out infinite; }
  .pipeline .art:nth-of-type(2) { animation-delay: 1.1s; }
  .pipeline .art:nth-of-type(3) { animation-delay: 2.2s; }
  @keyframes artglow {
    0%, 100% { opacity: .6; text-shadow: none; }
    50% { opacity: 1; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); }
  }

  /* live terminal replay */
  .demo-wrap { position: relative; width: 100%; max-width: 780px; margin-top: 3.5rem; }
  .demo-wrap::before {
    content: ""; position: absolute; inset: -10% -14%; z-index: -1; pointer-events: none;
    background: radial-gradient(55% 55% at 50% 42%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%);
    filter: blur(34px);
  }
  .demo-wrap .hero-demo { margin-top: 0; max-width: 100%; }
  .terminal-chrome { position: relative; }
  .term-replay {
    position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
    padding: .14rem .62rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
    background: transparent; color: rgba(255,255,255,.45); font-family: "SFMono-Regular", Consolas, ui-monospace, monospace;
    font-size: .7rem; cursor: pointer;
  }
  .term-replay:hover { color: #ffb454; border-color: rgba(255,180,84,.5); }
  .term-cursor {
    display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: text-bottom;
    background: #ffb454; animation: termblink 1.06s steps(2, start) infinite;
  }
  @keyframes termblink { to { visibility: hidden; } }

  /* compile-target switcher */
  .target-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
  .target-tabs button {
    padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface-card); color: var(--muted); cursor: pointer;
    font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: .8rem;
  }
  .target-tabs button:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .target-tabs button[aria-selected="true"] {
    color: var(--accent-strong); font-weight: 700;
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent), var(--surface);
  }
  .target-pane { margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-card); overflow: hidden; }
  .target-pane[hidden] { display: none; }
  .pane-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; padding: .8rem 1.05rem; border-bottom: 1px solid var(--line); }
  .pane-meta .paths { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
  .pane-meta .paths code { color: var(--text); font-size: .8rem; }
  .badge {
    padding: .13rem .6rem; border-radius: 999px; font-family: "SFMono-Regular", ui-monospace, monospace;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  }
  .badge.lazy { color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .badge.eager { color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); }
  .target-pane .code-sample { border: 0; border-radius: 0; }
  .pane-warn { margin: 0; padding: .68rem 1.05rem; border-top: 1px dashed var(--line); color: var(--amber); font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: .78rem; line-height: 1.55; }
  .pane-note { margin: 0; padding: .68rem 1.05rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .82rem; line-height: 1.55; }
  .targets-caption { margin: 1rem 0 0; color: var(--muted); font-size: .85rem; }
  .targets-caption code { color: var(--text); }

  /* scroll reveal (JS-gated: never hides content without JS) */
  html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  html.js .rv.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html.js .rv { opacity: 1; transform: none; transition: none; }
    .pipeline .art { animation: none; opacity: 1; }
    .term-cursor { animation: none; }
    html { scroll-behavior: auto; }
  }
  @media (max-width: 860px) {
    .demo-wrap { max-width: 100%; }
  }

  /* ============================================================
     Docs shell — sidebar + prose + on-this-page (multi-page site)
     ============================================================ */
  .docs-shell {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr) 13rem;
    gap: 2.5rem;
    max-width: 1220px;
    margin: 0 auto;
    padding: 2.4rem 1.25rem 4rem;
    align-items: start;
  }
  .docs-nav {
    position: sticky; top: 5.2rem;
    max-height: calc(100vh - 6.5rem); overflow-y: auto;
    padding-right: .5rem;
    font-size: .9rem;
  }
  .docs-nav h4 {
    margin: 1.35rem 0 .5rem; color: var(--muted);
    font-size: .7rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em;
  }
  .docs-nav h4:first-child { margin-top: 0; }
  .docs-nav a {
    display: block; padding: .32rem .6rem; margin-left: -.6rem;
    border-radius: 6px; color: var(--muted); text-decoration: none; line-height: 1.45;
  }
  .docs-nav a:hover { background: var(--surface-muted); color: var(--text); }
  .docs-nav a[aria-current="page"] {
    color: var(--accent-strong); font-weight: 700;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .docs-main { min-width: 0; }
  .docs-toc {
    position: sticky; top: 5.2rem;
    max-height: calc(100vh - 6.5rem); overflow-y: auto;
    font-size: .84rem; color: var(--muted);
  }
  .docs-toc strong {
    display: block; margin-bottom: .6rem; color: var(--muted);
    font-size: .7rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em;
  }
  .docs-toc a { display: block; padding: .26rem 0 .26rem .7rem; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
  .docs-toc a:hover { color: var(--text); border-left-color: var(--accent); }
  .docs-toc a.active { color: var(--accent-strong); border-left-color: var(--accent); font-weight: 650; }
  .docs-toc a.lvl3 { padding-left: 1.4rem; font-size: .8rem; }

  /* breadcrumb + page head */
  .crumb { margin: 0 0 .7rem; font-size: .8rem; color: var(--muted); font-family: "SFMono-Regular", ui-monospace, monospace; }
  .crumb a { color: var(--muted); text-decoration: none; }
  .crumb a:hover { color: var(--accent-strong); }
  .page-head { margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
  .page-head h1 { margin: 0; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.015em; line-height: 1.12; }
  .page-head p { margin: .8rem 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.7; max-width: 46rem; }

  /* prose */
  .prose { max-width: 46rem; line-height: 1.75; }
  .prose > * + * { margin-top: 1.15rem; }
  .prose h2 {
    margin: 2.9rem 0 0; padding-top: .2rem; font-size: 1.55rem; letter-spacing: -0.01em; scroll-margin-top: 6rem;
  }
  .prose h3 { margin: 2.1rem 0 0; font-size: 1.14rem; scroll-margin-top: 6rem; }
  .prose h4 { margin: 1.6rem 0 0; font-size: 1rem; }
  .prose p, .prose li { color: var(--muted); }
  .prose strong { color: var(--text); font-weight: 700; }
  .prose a { color: var(--accent-strong); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
  .prose a:hover { border-bottom-color: var(--accent); }
  .prose ul, .prose ol { padding-left: 1.3rem; }
  .prose li + li { margin-top: .45rem; }
  .prose li::marker { color: var(--accent); }
  .prose code {
    padding: .1rem .34rem; border-radius: 5px;
    background: var(--surface-muted); color: var(--text);
    font-family: "SFMono-Regular", Consolas, ui-monospace, monospace; font-size: .87em;
  }
  .prose pre {
    margin: 0; padding: 1.05rem 1.2rem; border: 1px solid var(--line); border-radius: 8px;
    background: var(--code-bg); color: var(--code-text);
    overflow-x: auto; font-size: .84rem; line-height: 1.7;
    font-family: "SFMono-Regular", Consolas, ui-monospace, monospace;
  }
  .prose pre code { padding: 0; background: none; font-size: inherit; }
  .prose pre .c { color: var(--muted); }
  .prose pre .k { color: var(--accent-strong); }
  .prose pre .s { color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
  .prose pre .ok { color: #2f9e52; }
  :root[data-theme="dark"] .prose pre .ok { color: #7fd18c; }
  .prose pre .warn { color: var(--amber); }
  .prose blockquote {
    margin: 0; padding: .1rem 0 .1rem 1.1rem;
    border-left: 3px solid var(--accent); color: var(--muted);
  }
  .prose hr { margin: 2.4rem 0; border: 0; border-top: 1px solid var(--line); }

  /* anchor links on headings */
  .anchor {
    margin-left: .45rem; color: var(--line); text-decoration: none; border: 0;
    font-weight: 400; opacity: 0; transition: opacity .15s ease;
  }
  .prose h2:hover .anchor, .prose h3:hover .anchor, .anchor:focus { opacity: 1; color: var(--accent); }

  /* tables */
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
  .prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
  .prose thead th {
    padding: .7rem .9rem; background: var(--surface-muted); color: var(--text);
    text-align: left; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap;
  }
  .prose tbody td { padding: .7rem .9rem; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
  .prose tbody tr:hover td { background: color-mix(in srgb, var(--surface-muted) 55%, transparent); }
  .prose td code, .prose th code { white-space: nowrap; }

  /* callouts */
  .callout {
    padding: 1rem 1.15rem; border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: 8px; background: var(--surface-card); color: var(--muted); line-height: 1.7;
  }
  .callout > :first-child { margin-top: 0; }
  .callout > :last-child { margin-bottom: 0; }
  .callout b { color: var(--text); }
  .callout.warn { border-left-color: var(--amber); }
  .callout.warn b { color: var(--amber); }

  /* command reference entries */
  .cmd-entry { padding: 1.3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
  .cmd-entry:first-of-type { border-top: 0; }
  .cmd-entry > h3 { margin: 0 0 .1rem; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 1.06rem; color: var(--accent-strong); }
  .cmd-entry .sig { margin: .35rem 0 .7rem; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: .84rem; color: var(--muted); }
  .flag-list { display: grid; gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
  .flag-list li { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: .9rem; color: var(--muted); font-size: .9rem; }
  .flag-list code { justify-self: start; }

  /* next/prev pager */
  .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
  .pager a {
    display: grid; gap: .25rem; padding: .95rem 1.1rem; border: 1px solid var(--line);
    border-radius: 8px; text-decoration: none; color: var(--text); background: var(--surface-card);
  }
  .pager a:hover { border-color: var(--accent); }
  .pager span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
  .pager .next { text-align: right; }

  /* stat row */
  .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; }
  .stat {
    padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 8px;
    background: var(--surface-card);
  }
  .stat b { display: block; font-size: 1.75rem; color: var(--accent-strong); letter-spacing: -0.02em; line-height: 1.1; }
  .stat span { display: block; margin-top: .3rem; color: var(--muted); font-size: .84rem; line-height: 1.45; }

  /* docs mobile nav toggle */
  .docs-nav-toggle {
    display: none; width: 100%; min-height: 2.8rem; padding: 0 1rem; margin-bottom: 1rem;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card);
    color: var(--text); font: inherit; font-weight: 650; text-align: left; cursor: pointer;
  }
  .docs-nav-toggle::after { content: "▾"; float: right; color: var(--muted); }

  @media (max-width: 1100px) {
    .docs-shell { grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; }
    .docs-toc { display: none; }
  }
  @media (max-width: 860px) {
    .docs-shell { grid-template-columns: minmax(0, 1fr); padding-top: 1.6rem; }
    .docs-nav-toggle { display: block; }
    .docs-nav { position: static; max-height: none; overflow: visible; margin-bottom: 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card); }
    .docs-nav[hidden] { display: none; }
    .pager { grid-template-columns: 1fr; }
  }

  /* ============================================================
     Changelog releases — markup generated by site/build.mjs
     ============================================================ */
  .release { margin-top: 2.8rem; scroll-margin-top: 6rem; }
  .release:first-of-type { margin-top: 1.2rem; }
  .release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
  .release-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.01em; }
  .release-head h2 a { color: var(--text); text-decoration: none; border: 0; }
  .release-head h2 a:hover { color: var(--accent-strong); }
  .release-date { color: var(--muted); font-family: "SFMono-Regular", ui-monospace, monospace; font-size: .82rem; }
  .release-tag {
    padding: .1rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  }
  .release-tag.soon { color: var(--muted); border-color: var(--line); }
  .release .release-intro { margin: .9rem 0 0; color: var(--muted); line-height: 1.75; }
  .release .group { margin: 1.4rem 0 .1rem; font-size: 1rem; color: var(--accent-strong); }
  .release ul { margin: .6rem 0 0; padding-left: 1.3rem; }
  .release li { margin-top: .45rem; color: var(--muted); line-height: 1.7; }
  .release li::marker { color: var(--accent); }

  /* ============================================================
     Docs shell without a right-hand on-this-page rail — used by
     root-level guide pages (benchmark, skills) so the left nav
     persists when you arrive from a /docs/ page.
     ============================================================ */
  .docs-shell.no-toc { grid-template-columns: 15.5rem minmax(0, 1fr); }
  .docs-main > .section { max-width: none; margin: 0; padding: 0 0 2.6rem; }
  .docs-main > .section:first-of-type { padding-top: 0; }
  @media (max-width: 1100px) { .docs-shell.no-toc { grid-template-columns: 14rem minmax(0, 1fr); } }
  @media (max-width: 860px)  { .docs-shell.no-toc { grid-template-columns: minmax(0, 1fr); } }
