/* runmar.sh. One stylesheet, system fonts, no external requests.
   Dark first; light follows the OS, or the toggle (html[data-theme]). */
:root {
  --bg: #0a0c0b;
  --bg-2: #111412;
  --bg-3: #171b18;
  --fg: #ecebe4;
  --muted: #a3a89f;
  --rule: #232925;
  --accent: #c5f467;
  --accent-2: #5ee6d0;
  --accent-ink: #0a0c0b;
  --link: #c5f467;
  --code-bg: #121614;
  --glow: rgba(197, 244, 103, 0.13);
  --glow-2: rgba(94, 230, 208, 0.10);
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -20px rgba(0,0,0,0.7);
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
             "Segoe UI", "Helvetica Neue", Inter, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* The terminal stays dark in both themes. */
  --t-bg: #070908;
  --t-bar: #121513;
  --t-fg: #e4e6df;
  --t-dim: #8d948c;
  --t-green: #a9e36d;
  --t-cyan: #6fd6e2;
  --t-yellow: #f2c879;
  --t-violet: #d3a8ff;
  --t-red: #ff8f87;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f5ef; --bg-2: #ffffff; --bg-3: #eeede5; --fg: #121412; --muted: #50554e;
    --rule: #dcdad0; --accent: #3d6f00; --accent-2: #0f766e; --accent-ink: #ffffff;
    --link: #2f5f00; --code-bg: #efeee6; --glow: rgba(120, 190, 30, 0.16);
    --glow-2: rgba(20, 160, 140, 0.10); --shadow: 0 24px 60px -24px rgba(30,40,20,0.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f5ef; --bg-2: #ffffff; --bg-3: #eeede5; --fg: #121412; --muted: #50554e;
  --rule: #dcdad0; --accent: #3d6f00; --accent-2: #0f766e; --accent-ink: #ffffff;
  --link: #2f5f00; --code-bg: #efeee6; --glow: rgba(120, 190, 30, 0.16);
  --glow-2: rgba(20, 160, 140, 0.10); --shadow: 0 24px 60px -24px rgba(30,40,20,0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--code-bg); padding: 0.12em 0.36em; border-radius: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
pre {
  position: relative; background: var(--code-bg); border: 1px solid var(--rule);
  padding: 0.95em 1.1em; overflow-x: auto; border-radius: 10px; line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); color: var(--fg); padding: 0.5rem 0.9rem; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.top-in {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  max-width: 76rem; height: 3.75rem; margin: 0 auto; padding: 0 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 700 1.1rem var(--mono); letter-spacing: -0.02em; color: var(--fg); text-decoration: none;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.top nav { display: flex; align-items: center; gap: 0.35rem; }
.top nav a, .theme {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 550;
  padding: 0.4rem 0.7rem; border-radius: 8px;
}
.top nav a:hover, .theme:hover { color: var(--fg); background: var(--bg-3); }
.top nav a[aria-current] { color: var(--fg); }
.gh { display: inline-flex; align-items: center; gap: 0.4rem; }
.gh svg { width: 16px; height: 16px; }
.theme {
  display: none; border: 0; background: none; cursor: pointer; font: inherit;
  line-height: 0; padding: 0.5rem;
}
.js .theme { display: inline-block; }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme .sun { display: block; }
  :root:not([data-theme]) .theme .moon { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.9rem; padding: 0 1.2rem;
  border-radius: 10px; font-weight: 650; font-size: 0.98rem; text-decoration: none;
  border: 1px solid var(--rule); color: var(--fg); background: var(--bg-2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn svg { width: 17px; height: 17px; }

/* Copy buttons (added by site.js) */
.copy {
  position: absolute; top: 0.55rem; right: 0.55rem; font: 600 0.72rem var(--sans);
  letter-spacing: 0.02em; color: var(--muted); background: var(--bg-2);
  border: 1px solid var(--rule); border-radius: 6px; padding: 0.3rem 0.55rem; cursor: pointer;
  opacity: 0; transition: opacity 0.15s ease;
}
pre:hover .copy, .copy:focus-visible, .copy.done { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.copy.done { color: var(--accent); border-color: var(--accent); }

/* ---------------- Landing ---------------- */
.home main { overflow-x: clip; }
.home main:focus { outline: none; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem;
  font: 600 0.8rem var(--mono); letter-spacing: 0.02em; color: var(--muted);
  border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  border-radius: 999px; padding: 0.38rem 0.85rem 0.38rem 0.6rem;
}
.eyebrow .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 {
  font: 780 clamp(2.6rem, 6vw, 4.8rem)/1.04 var(--display);
  letter-spacing: -0.04em; margin: 0 0 1.35rem; text-wrap: balance;
}
.hero h1 .hl {
  display: block; color: var(--accent);
}
.sub {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--muted);
  max-width: 48rem; margin: 0 0 1.5rem; text-wrap: pretty;
}
.sub strong { color: var(--fg); font-weight: 650; }
.speed-note { max-width: 48rem; margin: -0.25rem 0 1.5rem; color: var(--muted); }
.speed-note strong { color: var(--fg); font-weight: 650; }
.nw { white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.install {
  display: flex; align-items: center; gap: 0.25rem; height: 2.9rem; margin: 0;
  padding: 0 0.35rem 0 1rem; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--rule); font: 500 0.95rem var(--mono);
  max-width: 100%;
}
.install code { background: none; border: 0; padding: 0; font-size: inherit; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.install .ps { color: var(--accent); user-select: none; margin-right: 0.15rem; }
.install .copy {
  position: static; opacity: 1; display: none; height: 2.2rem; padding: 0 0.7rem; margin-left: 0.5rem;
  font-size: 0.78rem; border-radius: 7px; background: var(--bg-3); flex: none;
}
.js .install .copy { display: inline-block; }
.alt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.7rem 0 0; color: var(--muted); font-size: 0.85rem; }
.alt code { font: 500 0.82rem var(--mono); white-space: nowrap; }
.alt .copy { position: static; opacity: 1; display: none; height: 1.7rem; padding: 0 0.55rem; font-size: 0.72rem; border-radius: 6px; background: var(--bg-3); }
.js .alt .copy { display: inline-block; }
.note code { font-size: 0.82rem; }
.note { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.88rem; }
.note a { color: inherit; }

/* Terminal */
.demo { padding: 1rem 0 1rem; }
.window {
  background: var(--t-bg); color: var(--t-fg); border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--t-fg) 12%, transparent);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,0.3); overflow: hidden;
}
.window .bar {
  display: flex; align-items: center; gap: 0.5rem; height: 2.4rem; padding: 0 0.9rem;
  background: var(--t-bar); border-bottom: 1px solid rgba(255,255,255,0.06);
  font: 500 0.76rem var(--mono); color: var(--t-dim);
}
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f3b; display: block; }
.window .bar i:nth-child(1) { background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window .bar .title { flex: 1; text-align: center; margin-right: 3.6rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.term {
  margin: 0; border: 0; border-radius: 0; background: none; color: inherit;
  padding: 1.1rem 1.3rem 1.3rem; font-size: clamp(0.7rem, 1.25vw, 0.84rem); line-height: 1.6;
  tab-size: 8;
}
.term code { display: block; min-width: max-content; }
.term .p { color: var(--t-green); font-weight: 600; }
.term .hp { color: var(--t-cyan); font-weight: 600; }
.term .c { color: var(--t-dim); font-style: italic; }
.term .k { color: var(--t-cyan); }
.term .s { color: var(--t-yellow); }
.term .lb { color: var(--t-violet); }
.term .d { color: var(--t-dim); }
.term .g { color: var(--t-green); }
.term .r { color: var(--t-red); }
.term .tr { color: #7a817a; }
.term .h { color: var(--t-dim); font-weight: 600; }
.caption { color: var(--muted); font-size: 0.9rem; margin: 0.9rem 0 0; text-align: center; }
.caption code { font-size: 0.82em; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0 0; }
.kicker { font: 650 0.78rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem; }
.section > .wrap > h2, .h2 {
  font: 780 clamp(2rem, 4.6vw, 3.4rem)/1.04 var(--display); letter-spacing: -0.032em;
  margin: 0 0 1rem; text-wrap: balance;
}
.lede { color: var(--muted); font-size: 1.15rem; max-width: 40rem; margin: 0 0 2.5rem; }
.features { display: grid; gap: 1.25rem; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: center; padding: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 40%, var(--bg)));
  border: 1px solid var(--rule); border-radius: 18px;
}
.feature h3 { font: 760 clamp(1.5rem, 2.8vw, 2.1rem)/1.08 var(--display); letter-spacing: -0.035em; margin: 0 0 0.8rem; }
.feature p { margin: 0 0 0.9rem; color: var(--muted); }
.feature p strong { color: var(--fg); font-weight: 650; }
.feature ul { margin: 0 0 1rem; padding: 0; list-style: none; color: var(--muted); font-size: 0.96rem; }
.feature li { padding-left: 1.3rem; position: relative; margin: 0.3rem 0; }
.feature li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 0.5rem; height: 2px; background: var(--accent); }
.more { font-weight: 650; text-decoration: none; }
.more:hover { text-decoration: underline; }
.feature .window { border-radius: 12px; }
.feature .term { font-size: clamp(0.68rem, 1vw, 0.76rem); padding: 1rem 1.1rem; }

/* How it works */
.how { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.diagram {
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(0.75rem, 2vw, 1.5rem);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram text { font-family: var(--sans); fill: var(--fg); }
.diagram .m { font-family: var(--mono); }
.diagram .mut { fill: var(--muted); }
.diagram .box { fill: var(--bg-3); stroke: var(--rule); stroke-width: 1.5; }
.diagram .vm { fill: color-mix(in srgb, var(--accent-2) 7%, var(--bg-2)); stroke: color-mix(in srgb, var(--accent-2) 45%, var(--rule)); stroke-width: 1.5; }
.diagram .ctr { fill: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); stroke: var(--accent); stroke-width: 1.5; }
.diagram .mac { fill: none; stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 5 5; }
.diagram .wire { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.diagram .wire.a { stroke: var(--accent); }
.diagram .arrow { fill: var(--muted); }
.diagram .arrow.a { fill: var(--accent); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.1rem 2.6rem; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.05rem; width: 1.75rem; height: 1.75rem;
  border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center;
  font: 650 0.8rem var(--mono); color: var(--accent);
}
.steps strong { color: var(--fg); font-weight: 650; }

/* Closing CTA */
.final { text-align: center; padding-bottom: 1rem; }
.final .h2 { margin-bottom: 1.6rem; font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -0.045em; }
.final .hl { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent); }
.final .cta { justify-content: center; }

/* Homepage: short examples and editorial sections, not a feature catalogue. */
.home .wrap, .home .top-in, .home .foot-in { max-width: 68rem; }
.home h2, .home .section h2 {
  font: 720 clamp(1.75rem, 3vw, 2.25rem)/1.12 var(--display);
  letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance;
}
.home .section { padding-top: clamp(3rem, 6vw, 5rem); }
.demo-layout {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.demo-copy p, .rationale > p, .boundaries p { color: var(--muted); margin: 0 0 1rem; }
.demo-copy code { font-size: 0.82em; }
.demo-copy h2 { text-wrap: pretty; }
.home .window { box-shadow: none; border-radius: 10px; }
.home .window .bar .title { text-align: left; margin: 0; }
.home .term.example {
  font-size: 0.82rem; line-height: 1.7; white-space: pre;
}
.home .term.example code { min-width: max-content; }
.home .caption { text-align: left; line-height: 1.55; }
.demo > .wrap > p { max-width: 48rem; color: var(--muted); margin: 0 0 1.5rem; }
.shell-session { margin: 0; }
.session-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.session-replay {
  display: none; flex: none; border: 1px solid var(--rule); border-radius: 5px;
  padding: 0.3rem 0.6rem; background: var(--t-bar); color: var(--t-fg);
  font: 600 0.75rem var(--sans); cursor: pointer;
}
.js .session-replay { display: inline-block; }
.session-replay[hidden] { display: none; }
.session-transcript { font-size: 0.82rem; line-height: 1.65; }
.session-transcript code { min-width: 0; }
.session-line { border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.session-line.is-active { background: color-mix(in srgb, var(--t-green) 12%, var(--t-bg)); }
.session-line.is-cursor::after {
  content: ""; display: inline-block; width: 0.5em; height: 1em;
  margin-left: 0.3em; vertical-align: -0.1em; background: var(--t-green);
}
.session-note { white-space: normal; color: var(--t-dim); }
.session-files { min-width: 0; font-size: 0.92rem; }
.session-controls-mobile { display: none; }
.session-command-label { color: var(--muted); margin: 0 0 0.4rem; font-size: 0.82rem; }
.session-command { display: block; padding: 0; background: none; white-space: pre-wrap; font-size: 0.8rem; }
.session-stage { color: var(--muted); min-height: 3.2em; margin: 0 0 1rem; }
.file-source, .file-fork, .file-patches, .file-apply {
  border: 1px solid var(--rule); border-radius: 7px; padding: 0.8rem 0.9rem;
  background: var(--bg-2);
}
.session-files strong, .session-files small { display: block; }
.session-files small { color: var(--muted); margin-top: 0.3rem; line-height: 1.5; }
.file-forks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem; position: relative; margin-top: 1.5rem;
}
.file-forks::before {
  content: ""; position: absolute; top: -0.8rem; left: 25%; right: 25%;
  border-top: 1px solid var(--rule);
}
.file-source { position: relative; }
.file-source::after {
  content: ""; position: absolute; bottom: -0.8rem; left: 50%;
  height: 0.8rem; border-left: 1px solid var(--rule);
}
.file-fork { position: relative; }
.file-fork::before {
  content: ""; position: absolute; top: -0.8rem; left: 50%;
  height: 0.8rem; border-left: 1px solid var(--rule);
}
.file-fork code { color: var(--link); }
.file-fork span { display: block; margin-top: 0.45rem; font-size: 0.82em; }
.file-patches { margin-top: 1rem; }
.file-patches code { display: inline-block; margin: 0 0.4rem 0.3rem 0; font-size: 0.8em; }
.file-apply { margin-top: 1rem; background: none; border-style: dashed; }
.file-apply p { color: var(--muted); margin: 0.3rem 0 0; }
.session-files .is-active, .file-forks.is-active .file-fork {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-2));
}
.demo > .wrap > .demo-followup { margin: 1.5rem 0 0; }
.reasons {
  display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.65fr);
  margin: 1.75rem 0 0; column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.reasons dt, .reasons dd { border-top: 1px solid var(--rule); padding: 1.2rem 0; margin: 0; }
.reasons dt { font-weight: 650; }
.reasons dd { color: var(--muted); }
.home .boundaries p { max-width: 48rem; }
.home .boundaries strong { color: var(--fg); font-weight: 650; }
.home .final { text-align: left; }
.home .final h2 { margin-bottom: 1.25rem; }
.home .final .cta { justify-content: flex-start; }

/* Footer */
.foot { margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.foot-in { max-width: 76rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.foot p { margin: 0.35rem 0 0; }
.foot .brand { font-size: 1rem; }

/* ---------------- Docs ---------------- */
.layout {
  display: grid; grid-template-columns: 15.5rem minmax(0, 1fr) 13.5rem; gap: 3rem;
  max-width: 82rem; margin: 0 auto; padding: 0 1.25rem;
}
.side { position: sticky; top: 3.75rem; align-self: start; max-height: calc(100vh - 3.75rem); overflow-y: auto; padding: 1.8rem 0 2rem; font-size: 0.92rem; }
.side .navbtn { display: none; }
.side h2 { font: 650 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 0.4rem 0.7rem; }
.side h2:first-of-type { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; padding: 0.28rem 0.7rem; border-radius: 7px; color: var(--muted); text-decoration: none; }
.side a:hover { color: var(--fg); background: var(--bg-3); }
.side a[aria-current] { color: var(--fg); background: var(--bg-3); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.doc main { min-width: 0; padding: 2.2rem 0 1rem; }
.prose { max-width: 46rem; overflow-wrap: anywhere; }
.prose h1 { font: 790 clamp(2rem, 4vw, 2.85rem)/1.08 var(--display); letter-spacing: -0.04em; margin: 0 0 1.2rem; text-wrap: balance; }
.prose h2 { font: 720 1.55rem/1.2 var(--display); letter-spacing: -0.025em; margin: 2.6rem 0 0.8rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.prose h3 { font: 680 1.2rem/1.3 var(--display); letter-spacing: -0.015em; margin: 2rem 0 0.6rem; }
.prose h4 { font-size: 1rem; margin: 1.6rem 0 0.5rem; }
.prose h1 code, .prose h2 code, .prose h3 code { font-size: 0.82em; }
.prose p, .prose li, .prose dd { color: color-mix(in srgb, var(--fg) 88%, var(--muted)); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.25rem 0; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin: 1.2rem 0; padding: 0.2rem 1.1rem; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }
.prose dt { font-weight: 650; margin-top: 1rem; }
.prose dd { margin: 0.2rem 0 0 1.4rem; }
.prose pre { font-size: 0.92rem; margin: 1.2rem 0; }
.prose pre code { font-size: 0.86em; }
.anchor { float: left; margin-left: -1.1em; width: 1.1em; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, .anchor:focus { opacity: 1; }
.table { overflow-x: auto; overflow-wrap: normal; margin: 1.2rem 0; border: 1px solid var(--rule); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--bg-2); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.toc { position: sticky; top: 3.75rem; align-self: start; max-height: calc(100vh - 3.75rem); overflow-y: auto; padding: 2.4rem 0 2rem; font-size: 0.85rem; }
.toc h2 { font: 650 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 0.22rem 0 0.22rem 0.9rem; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 1px solid transparent; line-height: 1.4; }
.toc .l3 a { padding-left: 1.7rem; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); }
.toc code { font-size: 0.85em; padding: 0 0.2em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3.5rem 0 1rem; max-width: 46rem; }
.pager a { display: block; padding: 0.9rem 1.1rem; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--fg); font-weight: 650; }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font: 600 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.pager .next { text-align: right; grid-column: 2; }
.edit { font-size: 0.86rem; max-width: 46rem; }
.edit a { color: var(--muted); }
.doc .foot { margin-top: 2rem; }
.doc .top-in, .doc .foot-in { max-width: 82rem; }

/* Responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 14.5rem minmax(0, 1fr); gap: 2.5rem; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .feature, .how { grid-template-columns: minmax(0, 1fr); }
  .demo-layout { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .session-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .session-files { max-width: 30rem; }
  .js .session-controls-mobile {
    display: block; padding: 0.8rem 0.9rem; margin-bottom: 1rem;
    border: 1px solid var(--rule); border-radius: 7px;
  }
  .session-controls-mobile .session-replay { margin-top: 0.65rem; }
  .demo-copy { display: contents; }
  .demo-example { order: 1; }
  .demo-copy p { order: 2; margin: 0; }
  .demo-copy .more { order: 3; }
  .layout { display: block; }
  .side { position: static; max-height: none; padding: 1rem 0 0; }
  .side .navbtn {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    padding: 0.65rem 0.9rem; border: 1px solid var(--rule); border-radius: 10px; font-weight: 650; background: var(--bg-2);
  }
  .side .navbtn::after { content: "+"; font: 600 1.1rem var(--mono); color: var(--muted); }
  .side #nav-t:checked ~ .navbtn::after { content: "\2212"; }
  .side #nav-t:focus-visible ~ .navbtn { outline: 2px solid var(--accent); outline-offset: 3px; }
  .side .navlist { display: none; padding: 1rem 0 0.5rem; }
  .side #nav-t:checked ~ .navlist { display: block; }
  .top nav .hide-s { display: none; }
}
@media (max-width: 520px) {
  .home .hero .install { height: auto; min-height: 2.9rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .home .hero .install code { white-space: normal; }
  .top nav a[href$="community.html"] { display: none; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .reasons dt { padding-bottom: 0.4rem; }
  .reasons dd { border-top: 0; padding-top: 0; }
  .home .term.example { font-size: 0.78rem; padding-left: 1rem; padding-right: 1rem; }
  .session-transcript { font-size: 0.74rem; padding-left: 0.7rem; padding-right: 0.7rem; }
  .install { font-size: 0.8rem; padding-left: 0.75rem; }
  .eyebrow { font-size: 0.7rem; white-space: nowrap; }
  .cta .btn { flex: 1; justify-content: center; }
  .install { width: 100%; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .top, .side, .toc, .pager, .copy, .foot { display: none !important; }
  .layout { display: block; }
}

/* Community page */
.share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.share-item { padding: 1.2rem 1.3rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 14px; }
.share-item h3 { font: 720 1.15rem/1.2 var(--display); margin: 0 0 0.45rem; }
.share-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.recipe {
  display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.2rem, 2.5vw, 1.8rem);
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 40%, var(--bg)));
  border: 1px solid var(--rule); border-radius: 18px;
}
.recipe h3 { font: 760 clamp(1.25rem, 2.2vw, 1.6rem)/1.1 var(--display); letter-spacing: -0.03em; margin: 0; }
.recipe p { margin: 0; color: var(--muted); }
.recipe .window { border-radius: 12px; }
.recipe .term { font-size: clamp(0.68rem, 1vw, 0.78rem); padding: 1rem 1.1rem; }
.recipe .more { margin-top: auto; }
.lede.center { margin-left: auto; margin-right: auto; }
.foot .by { margin-top: 0.4rem; }
@media (max-width: 860px) {
  .share, .recipes { grid-template-columns: minmax(0, 1fr); }
}
