/* psmux.github.io, one stylesheet. Dark first, light via prefers-color-scheme. */

:root {
  color-scheme: dark;
  --bg: #0a0c0b;
  --bg-2: #0e1110;
  --surface: #121615;
  --surface-2: #171c1a;
  --line: #222a27;
  --line-2: #2e3834;
  --text: #e9ede9;
  --muted: #9aa69f;
  --dim: #6b7771;
  --accent: #5fe08f;
  --accent-ink: #04140a;
  --accent-soft: rgba(95, 224, 143, 0.12);
  --amber: #f3b74f;
  --cyan: #74c9e6;
  --red: #f0716a;
  --focus: #9cf5bd;

  /* the terminal stays dark in both themes */
  --t-bg: #0b0e0d;
  --t-chrome: #151a18;
  --t-line: #27302c;
  --t-text: #d6ddd8;
  --t-dim: #6f7c75;
  --t-green: #5fe08f;
  --t-cyan: #74c9e6;
  --t-amber: #f3b74f;
  --t-red: #f0716a;
  --t-magenta: #d79ae6;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1240px;
  --radius: 10px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f4ef;
    --bg-2: #eeede6;
    --surface: #ffffff;
    --surface-2: #f8f7f2;
    --line: #dddbd1;
    --line-2: #c9c6ba;
    --text: #111412;
    --muted: #4c5751;
    --dim: #6c756f;
    --accent: #0c7a3c;
    --accent-ink: #ffffff;
    --accent-soft: rgba(12, 122, 60, 0.09);
    --amber: #95600a;
    --cyan: #0d6a8a;
    --red: #b3261e;
    --focus: #0c7a3c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code, pre, kbd, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- status line nav, styled after a tmux status bar ---------- */

.statusline {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.statusline .wrap {
  display: flex; align-items: center; gap: 14px; height: 52px;
}
.session {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; flex: none;
}
.session .tag {
  background: var(--accent); color: var(--accent-ink);
  padding: 3px 8px; border-radius: 3px; letter-spacing: 0.01em;
}
.session img { width: 22px; height: 22px; }
.windows {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none;
}
.windows::-webkit-scrollbar { display: none; }
.windows a {
  display: block; padding: 4px 8px; border-radius: 3px; white-space: nowrap;
  text-decoration: none; color: var(--muted);
}
.windows a:hover { color: var(--text); background: var(--surface-2); }
.windows a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.windows a[aria-current="true"]::after { content: "*"; color: var(--accent); }
.windows .n { color: var(--dim); }
.status-right { display: flex; align-items: center; gap: 8px; flex: none; }

.star-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 6px 10px; text-decoration: none; color: var(--text);
  background: var(--surface);
  white-space: nowrap;
}
.star-btn:hover { border-color: var(--amber); }
.star-btn svg { width: 15px; height: 15px; fill: var(--amber); flex: none; }
.star-btn .count { color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 8px; }

@media (max-width: 560px) {
  .statusline .windows { display: none; }
  .statusline .wrap { justify-content: space-between; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 8px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary svg { fill: currentColor; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn .count { font-family: var(--mono); font-weight: 500; opacity: .8; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 40px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  opacity: .7;
}
.hero-grid { display: grid; gap: 36px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}

.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px;
}
.eyebrow .dot { color: var(--accent); }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 70px); line-height: 1.0; letter-spacing: -0.035em;
  font-weight: 650; margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 14px; max-width: 34em; }
.lede-2 { font-size: 16px; color: var(--muted); margin: 0 0 26px; max-width: 36em; }
@media (max-width: 640px) { .lede { font-size: 17px; } .lede-2 { font-size: 15px; } .hero { padding-top: 36px; } }
.lede strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-proof {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
}
.hero-proof b { color: var(--text); font-weight: 600; }
.hero-proof svg { width: 14px; height: 14px; fill: var(--amber); vertical-align: -2px; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- the illustrated terminal ---------- */

.term-figure { margin: 0; min-width: 0; }
.term {
  background: var(--t-bg); color: var(--t-text);
  border: 1px solid var(--t-line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-family: var(--mono); font-size: 13px; line-height: 1.5;
}
.term-chrome {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--t-chrome); border-bottom: 1px solid var(--t-line);
  font-size: 12px; color: var(--t-dim);
}
.term-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--t-bg); color: var(--t-text);
  padding: 5px 12px; border-radius: 6px 6px 0 0; margin-top: 8px; height: 30px;
}
.term-tab i { width: 8px; height: 8px; border-radius: 2px; background: var(--t-cyan); display: inline-block; }
.term-chrome .spacer { flex: 1; }
.term-chrome .ctl { display: flex; gap: 14px; }
.term-chrome .ctl span { width: 10px; height: 10px; border: 1px solid var(--t-dim); display: block; }
.term-chrome .ctl span:first-child { height: 0; border-width: 1px 0 0; margin-top: 5px; }

.term-screen { position: relative; height: 430px; display: flex; flex-direction: column; }
@media (max-width: 640px) { .term { font-size: 11px; } .term-screen { height: 340px; } }

.panes {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 1fr 0fr; grid-template-rows: 1fr 0fr;
  transition: grid-template-columns .5s cubic-bezier(.2,.7,.2,1), grid-template-rows .5s cubic-bezier(.2,.7,.2,1);
}
.panes[data-layout="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 0fr; }
.panes[data-layout="3"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pane { min-width: 0; min-height: 0; overflow: hidden; padding: 10px 12px; position: relative; }
.pane pre { margin: 0; font: inherit; white-space: pre; }
.pane.p0 { grid-column: 1; grid-row: 1 / span 2; }
.pane.p1 { grid-column: 2; grid-row: 1; border-left: 1px solid var(--t-line); }
.pane.p2 { grid-column: 2; grid-row: 2; border-left: 1px solid var(--t-line); border-top: 1px solid var(--t-line); }
.panes[data-layout="2"] .p1 { grid-row: 1 / span 2; }
.panes[data-layout="1"] .p1, .panes[data-layout="1"] .p2, .panes[data-layout="2"] .p2 { padding: 0; border: 0; }
.pane.active { box-shadow: inset 0 0 0 1px rgba(95,224,143,.35); }
.pane.active { box-shadow: none; }

.t-g { color: var(--t-green); } .t-c { color: var(--t-cyan); } .t-a { color: var(--t-amber); }
.t-r { color: var(--t-red); } .t-m { color: var(--t-magenta); } .t-d { color: var(--t-dim); }
.t-b { font-weight: 700; }
.cursor { display: inline-block; width: .6em; height: 1.15em; background: var(--t-text); vertical-align: -0.2em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.tstatus {
  display: flex; justify-content: space-between; gap: 12px; height: 22px; line-height: 22px;
  background: var(--t-green); color: #04140a; padding: 0 8px; white-space: nowrap; overflow: hidden;
  transform: translateY(100%); transition: transform .35s ease;
}
.tstatus.on { transform: none; }
.tstatus .w-active { font-weight: 700; }

.keys {
  position: absolute; right: 16px; top: 14px;
  background: rgba(20,26,24,.92); border: 1px solid var(--t-line); color: var(--t-text);
  padding: 6px 10px; border-radius: 6px; font-size: 12px; opacity: 0; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.keys.on { opacity: 1; transform: none; }
.keys kbd {
  display: inline-block; border: 1px solid var(--t-line); border-bottom-width: 2px; border-radius: 4px;
  padding: 0 6px; margin: 0 2px; background: #0f1312; font-size: 11px;
}
.keys .what { color: var(--t-dim); margin-left: 6px; }

.term-caption { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 12px; }

/* ---------- numbers strip ---------- */

.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.numbers ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) { .numbers ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numbers li { padding: 26px 18px 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .numbers li { border-bottom: 0; padding: 32px 24px 30px; border-left: 1px solid var(--line); }
  .numbers li:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 859px) {
  .numbers li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .numbers li:nth-last-child(-n+2) { border-bottom: 0; }
}
.numbers .big {
  display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.numbers .lbl { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.numbers .src { display: block; color: var(--dim); font-family: var(--mono); font-size: 11px; margin-top: 4px; }

/* ---------- sections ---------- */

section { scroll-margin-top: 60px; }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; max-width: 46em; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; font-weight: 650; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); margin: 0 0 14px; display: block; }

/* featured products */

.feature { display: grid; gap: 36px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature.flip .feature-media { order: 2; }
  .feature-copy { position: sticky; top: 84px; }
  /* on the home page the copy is the tall column, so the media rides along instead */
  .feature .feature-copy { position: static; }
  .feature .feature-media { position: sticky; top: 84px; }
}
.feature-copy h2 {
  font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 12px; font-weight: 650;
}
.feature-copy .sub { font-size: 20px; line-height: 1.35; margin: 0 0 18px; color: var(--text); font-weight: 500; letter-spacing: -0.01em; }
.feature-copy p { color: var(--muted); margin: 0 0 16px; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none;
}
.chip {
  font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.chip.os { color: var(--text); }
.chip.os::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; margin-right: 6px; vertical-align: 1px; background: var(--dim); }
.chip.os.win::before { background: var(--cyan); }
.chip.os.mac::before { background: var(--text); }
.chip.os.lin::before { background: var(--amber); }
.chip.os.dock::before { background: var(--accent); }

.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--text); font-size: 16px; }
.ticks li::before { content: ">"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-weight: 700; }

.proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 8px;
}
.proof div { background: var(--surface); padding: 14px 14px 12px; }
.proof b { display: block; font-size: 24px; letter-spacing: -0.02em; font-weight: 650; font-variant-numeric: tabular-nums; }
.proof span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.proof-note { font-size: 12px; color: var(--dim); margin: 0 0 24px; }
@media (max-width: 480px) {
  .proof div { padding: 12px 10px 10px; }
  .proof b { font-size: 20px; }
  .proof span { font-size: 12px; }
}

.links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 22px; font-size: 15px; }
.links a:not(.btn) { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.links a:not(.btn):hover { color: var(--text); text-decoration-color: var(--accent); }

/* install box with tabs and copy */

.install {
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--t-bg);
  color: var(--t-text);
}
.install-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--t-line); background: var(--t-chrome); scrollbar-width: none; }
.install-tabs::-webkit-scrollbar { display: none; }
.install-tabs button {
  appearance: none; border: 0; background: transparent; color: var(--t-dim);
  font: 500 13px/1 var(--mono); padding: 12px 14px; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.install-tabs button[aria-selected="true"] { color: var(--t-text); border-bottom-color: var(--t-green); }
.install-tabs button:hover { color: var(--t-text); }
.cmd { position: relative; }
.cmd pre {
  margin: 0; padding: 16px 56px 16px 16px; font: 13.5px/1.6 var(--mono);
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--t-text);
}
.cmd pre .pr { color: var(--t-green); user-select: none; -webkit-user-select: none; }
.cmd pre .cm { color: var(--t-dim); }
.copy {
  position: absolute; top: 9px; right: 9px; appearance: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--t-line);
  background: var(--t-chrome); color: var(--t-dim); display: grid; place-items: center;
}
.copy:hover { color: var(--t-text); border-color: var(--t-dim); }
.copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy.done { color: var(--t-green); border-color: var(--t-green); }
.install-foot { font-family: var(--mono); font-size: 12px; color: var(--t-dim); padding: 0 16px 14px; }
.install-foot a { color: var(--t-cyan); }

/* media frames */

.feature-media { min-width: 0; }
.frame {
  margin: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--t-bg);
  position: relative;
}
.frame img, .frame video { width: 100%; height: auto; }
.frame figcaption, .media-src {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--dim); padding: 10px 2px 0; max-width: 72em;
}
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button {
  flex: none; width: 120px; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--t-bg); opacity: .65; transition: opacity .15s ease, border-color .15s ease;
}
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 68px; object-fit: cover; }
.thumbs .vid { height: 68px; display: grid; place-items: center; font: 600 11px var(--mono); color: var(--t-text); }

/* placeholder: an honest terminal block with the real command */

.ph {
  background: var(--t-bg); color: var(--t-text); font-family: var(--mono); font-size: 13.5px;
  min-height: 100%; display: flex; flex-direction: column;
}
.ph-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--t-line); background: var(--t-chrome);
  color: var(--t-dim); font-size: 12px;
}
.ph-bar b { color: var(--t-text); font-weight: 500; }
.ph pre { margin: 0; padding: 18px 16px; white-space: pre-wrap; word-break: break-word; line-height: 1.65; flex: 1; }
.ph .pr { color: var(--t-green); }
.ph .cm { color: var(--t-dim); }
.feature-media .ph pre { font-size: 15px; padding: 26px 24px 8px; flex: none; }
.spec { margin: 0; padding: 18px 24px 26px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 22px; border-top: 1px dashed var(--t-line); font-size: 13.5px; }
.spec dt { color: var(--t-dim); }
.spec dd { margin: 0; color: var(--t-text); }
.spec dd b { color: var(--t-amber); font-weight: 500; }

@media (max-width: 640px) { .feature-media .ph pre { font-size: 13px; padding: 18px 16px 6px; } .spec { padding: 14px 16px 20px; font-size: 12.5px; gap: 6px 14px; } }

/* ---------- tools grid ---------- */

.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); overflow: hidden; transition: border-color .2s ease, transform .2s ease;
  position: relative;
}
.card:hover, .card:focus-within { border-color: var(--line-2); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card-media { aspect-ratio: 16 / 9; background: var(--t-bg); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-media .ph { height: 100%; font-size: 12.5px; }
.card-media .ph pre { padding: 14px; overflow: hidden; }
/* projects with no capture yet get a drawn terminal instead of an empty box */
.card-media .ph.drawn {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(95,224,143,.10), transparent 60%),
    radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--t-bg);
}
.card-media .ph.drawn pre { padding: 16px 16px 12px; line-height: 1.7; }
.card-media .ph.drawn .ph-bar { background: rgba(21,26,24,.9); }
.card-media .ph.drawn .ph-bar span { font-size: 11px; border: 1px solid var(--t-line); border-radius: 4px; padding: 1px 6px; }
.play-hint {
  position: absolute; right: 10px; bottom: 10px; font: 500 11px var(--mono); color: #fff;
  background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 4px; pointer-events: none;
}
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .stars { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.card .stars svg { width: 13px; height: 13px; fill: var(--amber); vertical-align: -1px; margin-right: 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card .meta-row { margin: 0; }
.card .cmd { margin-top: auto; position: relative; z-index: 2; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-bg); }
.card .cmd pre {
  font-size: 12.5px; padding: 11px 50px 11px 12px;
  /* long one liners scroll sideways in cards and fade out before the copy button */
  white-space: pre; overflow-wrap: normal; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent calc(100% - 42px));
  mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent calc(100% - 42px));
}
.card .cmd pre::-webkit-scrollbar { display: none; }
.card .cmd .copy { top: 5px; right: 5px; width: 30px; height: 30px; }
.card .note { font-size: 12px; color: var(--dim); font-family: var(--mono); }

/* ---------- under the hood + footer ---------- */

.hood { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.hood p { margin: 0; max-width: 62em; }
.hood a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hood .kicker { color: var(--dim); margin-bottom: 8px; }

.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 56px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot h2 { font-size: 13px; font-family: var(--mono); color: var(--dim); font-weight: 500; margin: 0 0 12px; text-transform: lowercase; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot p { color: var(--muted); margin: 0 0 10px; max-width: 34em; }
.foot .fine { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 18px; }
.foot .brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--mono); margin-bottom: 12px; color: var(--text); }
.foot .brand img { width: 28px; height: 28px; }

/* ---------- product pages ---------- */

.crumbs { font-family: var(--mono); font-size: 13px; color: var(--dim); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 14px; font-weight: 650; }
.page-hero .sub { font-size: 21px; max-width: 36em; margin: 0 0 22px; color: var(--muted); }
.cols { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose code { font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.stack > * + * { margin-top: 18px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; padding: 48px 0; }
.nf .term { max-width: 640px; width: 100%; }
.nf pre { margin: 0; padding: 20px; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.prose h3 { font-size: 18px; margin: 22px 0 6px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 28px; }
