/* ShopKeeprr suite — 2026 design system
   Used by shopkeeprr.com, the developer portal and shopkeeprr.org.
   Type: Instrument Sans for UI and display, JetBrains Mono for labels and code. */

:root {
  --ink: #0a1411;
  --ink-2: #10201b;
  --ink-3: #173029;
  --paper: #f7f5ee;
  --paper-2: #efece1;
  --paper-3: #e7e2d4;
  --white: #fffefa;
  --muted: #5b6b63;
  --muted-dark: rgba(247, 245, 238, 0.62);
  --mint: #a5e8c9;
  --mint-deep: #59bf98;
  --teal: #0f7a6c;
  --amber: #f0b45c;
  --rust: #c96a45;
  --line: rgba(10, 20, 17, 0.13);
  --line-strong: rgba(10, 20, 17, 0.22);
  --line-dark: rgba(247, 245, 238, 0.14);
  --font-sans: "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, dl, dd, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--rust);
  content: "";
}
.eyebrow-light { color: rgba(247, 245, 238, 0.6); }
.eyebrow-light::before { background: var(--mint); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
h2 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.03em; }

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  transform: translateY(-180%);
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-mint { border-color: var(--mint); background: var(--mint); color: var(--ink); }
.btn-mint:hover { border-color: var(--mint-deep); background: var(--mint-deep); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; }
.btn-ghost-light { border-color: var(--line-dark); background: transparent; color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--mint); background: transparent; color: var(--mint); }
.btn-sm { min-height: 38px; padding: 9px 13px; font-size: 11px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 122, 108, 0.32);
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.text-link-light { color: rgba(247, 245, 238, 0.78); text-decoration-color: rgba(247, 245, 238, 0.3); }
.text-link-light:hover { color: var(--mint); text-decoration-color: var(--mint); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.primary-nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 120ms ease, background 120ms ease;
}
.primary-nav a:hover { background: var(--paper-2); color: var(--ink); }
.primary-nav a.is-active { color: var(--ink); background: var(--paper-3); }
.primary-nav .nav-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--ink);
  font-weight: 600;
}
.primary-nav .nav-dev::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  content: "";
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.header-actions .sign-in { padding: 8px 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.header-actions .sign-in:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle::after { content: " +"; }

.notice {
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink);
  color: rgba(247, 245, 238, 0.65);
  font-size: 11px;
}
.notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.notice strong { color: var(--paper); font-weight: 500; }
.notice a { color: var(--mint); }
.notice a:hover { color: var(--white); }
.notice-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(165, 232, 201, 0.16);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  background:
    linear-gradient(rgba(247, 245, 238, 0.045) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(247, 245, 238, 0.045) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--ink);
  color: var(--paper);
}
.hero::after {
  position: absolute;
  right: -220px;
  top: -260px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 232, 201, 0.14), transparent 66%);
  content: "";
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 54px;
  align-items: center;
}
.hero h1 {
  max-width: 13ch;
  color: var(--paper);
  font-size: clamp(2.9rem, 5.6vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
}
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-lede {
  max-width: 50ch;
  margin-top: 24px;
  color: rgba(247, 245, 238, 0.68);
  font-size: 15.5px;
  line-height: 1.68;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.hero-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(247, 245, 238, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Terminal window */

.terminal {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #06100d;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(247, 245, 238, 0.1);
  background: rgba(247, 245, 238, 0.03);
}
.terminal-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 245, 238, 0.18);
}
.terminal-bar i:first-child { background: var(--rust); }
.terminal-bar span {
  margin-left: auto;
  color: rgba(247, 245, 238, 0.36);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.terminal pre {
  overflow-x: auto;
  padding: 20px 18px 22px;
  color: #d5e8df;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
}
.terminal .p { color: var(--mint); }
.terminal .c { color: #f0b45c; }
.terminal .ok { color: var(--mint); }
.terminal .dim { color: rgba(213, 232, 223, 0.42); }
.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid rgba(247, 245, 238, 0.1);
  color: rgba(247, 245, 238, 0.42);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.terminal-foot a { color: var(--mint); }

/* Proof strip */

.proof-strip { border-top: 1px solid var(--line-dark); background: var(--ink); color: var(--paper); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 20px;
  border-left: 1px solid var(--line-dark);
}
.proof-item:first-child { border-left: 0; }
.proof-item strong { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.proof-item span {
  color: rgba(247, 245, 238, 0.48);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sections */

.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-paper { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink-2); color: var(--paper); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.section-heading-dark { border-color: var(--line-dark); }
.section-heading-dark > p { color: var(--muted-dark); }

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.4);
}
.feature-card:hover { background: var(--white); }
.feature-card .mono { color: var(--teal); margin-bottom: 18px; }
.feature-card h3 { font-size: 17px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }

/* Split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split-copy p + p { margin-top: 14px; }
.check-list { display: grid; gap: 10px; margin-top: 22px; }
.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.check-list li::before {
  position: absolute;
  top: 0.15em;
  left: 0;
  color: var(--teal);
  content: "→";
  font-family: var(--font-mono);
  font-size: 11px;
}
.check-list-light li { color: var(--muted-dark); }
.check-list-light li::before { color: var(--mint); }

.shot-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 26px 60px rgba(10, 20, 17, 0.14);
}
.shot-frame img { width: 100%; }
.shot-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.shot-labels span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Code block */

.code-block {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #06100d;
}
.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(247, 245, 238, 0.1);
  color: rgba(247, 245, 238, 0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.code-block pre {
  overflow-x: auto;
  padding: 18px;
  color: #d5e8df;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  tab-size: 2;
}
.code-block .k { color: #8fd6ff; }
.code-block .s { color: var(--mint); }
.code-block .n { color: var(--amber); }
.code-block .c { color: rgba(213, 232, 223, 0.42); }
code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  color: #2f5b4f;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* Extension cards */

.ext-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.ext-card {
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(247, 245, 238, 0.03);
}
.ext-card .mono { color: var(--mint); }
.ext-card h3 { margin-top: 16px; color: var(--paper); font-size: 18px; }
.ext-card p { margin-top: 8px; color: var(--muted-dark); font-size: 13px; line-height: 1.65; }

/* Theme cards */

.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.theme-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.theme-card h3 { margin-top: 60px; font-size: 17px; }
.theme-card p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.theme-swatch { display: flex; gap: 5px; }
.theme-swatch span { width: 18px; height: 18px; border-radius: 3px; }
.theme-editorial .theme-swatch span:nth-child(1) { background: #10201b; }
.theme-editorial .theme-swatch span:nth-child(2) { background: #d9c9a8; }
.theme-editorial .theme-swatch span:nth-child(3) { background: #a8552f; }
.theme-marketplace .theme-swatch span:nth-child(1) { background: #ffd814; }
.theme-marketplace .theme-swatch span:nth-child(2) { background: #0f766e; }
.theme-marketplace .theme-swatch span:nth-child(3) { background: #111827; }
.theme-auction .theme-swatch span:nth-child(1) { background: #1e1b4b; }
.theme-auction .theme-swatch span:nth-child(2) { background: #f59e0b; }
.theme-auction .theme-swatch span:nth-child(3) { background: #e5e7eb; }
.theme-bazaar .theme-swatch span:nth-child(1) { background: #b91c1c; }
.theme-bazaar .theme-swatch span:nth-child(2) { background: #fde68a; }
.theme-bazaar .theme-swatch span:nth-child(3) { background: #065f46; }
.theme-card .theme-index {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 54px;
  line-height: 1;
}

/* Release */

.release { padding: 84px 0; background: var(--ink); color: var(--paper); }
.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: start;
}
.release h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.release h2 em { color: var(--mint); font-style: normal; }
.release-lede { max-width: 52ch; margin-top: 18px; color: var(--muted-dark); font-size: 15px; line-height: 1.7; }
.release-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 26px;
}
.release-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(247, 245, 238, 0.7);
  font-size: 12.5px;
  line-height: 1.55;
}
.release-list li::before { position: absolute; left: 0; color: var(--mint); content: "·"; }
.release-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.release-facts {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(247, 245, 238, 0.03);
}
.release-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.release-facts div:last-child { border-bottom: 0; }
.release-facts dt { color: rgba(247, 245, 238, 0.45); letter-spacing: 0.05em; text-transform: uppercase; }
.release-facts dd { margin: 0; color: var(--paper); text-align: right; }

/* Resource cards */

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 150ms ease, transform 150ms ease;
}
.resource-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.resource-card .mono { color: var(--muted); }
.resource-card h3 { margin-top: 10px; font-size: 16px; }
.resource-card p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* CTA band */

.cta-band { padding: 70px 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
.cta-band p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */

.site-footer { padding: 54px 0 26px; background: var(--ink); color: rgba(247, 245, 238, 0.55); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 0.7fr));
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand-mark { background: rgba(247, 245, 238, 0.1); }
.footer-note { max-width: 28ch; margin-top: 14px; font-size: 12px; line-height: 1.6; }
.footer-col h2 {
  margin-bottom: 12px;
  color: rgba(247, 245, 238, 0.38);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col a { display: block; padding: 4px 0; color: rgba(247, 245, 238, 0.65); font-size: 12px; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.7;
}
.footer-bottom a { color: rgba(247, 245, 238, 0.72); }
.footer-bottom a:hover { color: var(--mint); }

/* Docs layout */

.docs-hero { padding: 58px 0 46px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.docs-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
.docs-hero p { max-width: 62ch; margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; }
.docs-sidebar {
  position: sticky;
  top: 66px;
  align-self: start;
  max-height: calc(100vh - 66px);
  overflow-y: auto;
  padding: 30px 26px 40px 0;
  border-right: 1px solid var(--line);
}
.docs-search { position: relative; margin-bottom: 22px; }
.docs-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 30px 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.docs-search input::placeholder { color: #8a978f; }
.docs-search kbd {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  color: #8a978f;
  font-family: var(--font-mono);
  font-size: 10px;
}
.docs-nav-group { margin-bottom: 22px; }
.docs-nav-group h2 {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.docs-nav-group a {
  display: block;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
.docs-nav-group a:hover { background: var(--paper-2); color: var(--ink); }
.docs-nav-group a.is-active { background: var(--paper-3); color: var(--ink); font-weight: 600; }
.docs-nav-group a.is-hidden { display: none; }
.docs-empty { display: none; padding: 8px 0; color: var(--muted); font-size: 12px; }
.docs-empty.is-visible { display: block; }

.docs-main { min-width: 0; padding: 34px 0 80px 52px; }
.doc-section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.doc-section:last-of-type { border-bottom: 0; }
.doc-section h2 { margin-top: 10px; font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.doc-section h3 { margin-top: 30px; font-size: 18px; }
.doc-section p { max-width: 76ch; margin-top: 14px; color: #3f5049; font-size: 14px; line-height: 1.75; }
.doc-section ul { display: grid; gap: 9px; max-width: 76ch; margin-top: 16px; }
.doc-section li { position: relative; padding-left: 20px; color: #3f5049; font-size: 14px; line-height: 1.65; }
.doc-section li::before { position: absolute; left: 0; color: var(--teal); content: "→"; font-family: var(--font-mono); font-size: 10px; top: 0.25em; }
.doc-section .code-block { margin-top: 18px; }
.doc-section pre:not(.code-block pre) {
  overflow-x: auto;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #d5e8df;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}
.callout {
  max-width: 76ch;
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid #e6d3ac;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fdf7ea;
  color: #6b542c;
  font-size: 12.5px;
  line-height: 1.65;
}
.callout strong { color: #513d1c; }
.doc-table-wrap { max-width: 76ch; margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.doc-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.doc-table-wrap th, .doc-table-wrap td { padding: 10px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table-wrap th { background: var(--paper-2); color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.doc-table-wrap tr:last-child td { border-bottom: 0; }
.doc-table-wrap td { color: #3f5049; line-height: 1.55; }
.doc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.doc-cta h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.doc-cta p { max-width: 52ch; margin-top: 7px; color: var(--muted-dark); font-size: 12.5px; line-height: 1.6; }

/* Developer portal */

.dev-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 66px;
  background:
    linear-gradient(rgba(247, 245, 238, 0.05) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(247, 245, 238, 0.05) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--ink);
  color: var(--paper);
}
.dev-hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: 0.96; }
.dev-hero h1 em { color: var(--mint); font-style: normal; }
.dev-hero p { max-width: 58ch; margin-top: 20px; color: var(--muted-dark); font-size: 15px; line-height: 1.7; }
.dev-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dev-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid var(--line-dark); }
.dev-stats div { padding: 16px 18px 0 0; }
.dev-stats strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.dev-stats span { color: rgba(247, 245, 238, 0.45); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }

.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.step h3 { font-size: 15px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* Responsive */

@media (max-width: 1080px) {
  .primary-nav { gap: 0; }
  .primary-nav a { padding: 8px 8px; }
  .header-actions .sign-in { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { max-width: 18ch; }
  .terminal { max-width: 680px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-item:nth-child(4) { border-left: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .release-grid { grid-template-columns: 1fr; gap: 34px; }
  .docs-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .docs-main { padding-left: 34px; }
  .dev-grid { grid-template-columns: 1fr; gap: 34px; }
  .ext-grid { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 34px), var(--container)); }
  .js .nav-toggle { display: block; }
  .js .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 17px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .js .site-header.nav-open .primary-nav { display: flex; }
  .primary-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .primary-nav .nav-dev { margin-left: 0; }
  .header-actions { display: none; }
  .notice-inner { justify-content: center; }
  .notice-status { display: none; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .hero-meta { display: none; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(odd) { border-left: 0; }
  .section, .release, .dev-hero { padding: 58px 0; }
  .feature-grid, .ext-grid, .theme-grid, .resource-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 20px; }
  .release-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .docs-hero { padding: 42px 0 34px; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 22px 0 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .docs-main { padding: 26px 0 56px; }
  .doc-cta { padding: 22px; }
  .dev-stats { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-note { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Product film lightbox */

.film-modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 28px;
  border: 0;
  background: transparent;
  color: var(--paper);
}
.film-modal[open] { display: grid; place-items: center; }
.film-modal::backdrop {
  background: rgba(4, 12, 9, 0.88);
  backdrop-filter: blur(8px);
}
.film-inner { position: relative; width: min(1100px, 100%); }
.film-inner video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(247, 245, 238, 0.18);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.film-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  padding: 7px 10px;
  border: 1px solid rgba(247, 245, 238, 0.24);
  border-radius: 4px;
  background: transparent;
  color: rgba(247, 245, 238, 0.8);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.film-close:hover { border-color: var(--mint); color: var(--mint); }
.film-caption {
  margin-top: 10px;
  color: rgba(247, 245, 238, 0.5);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .film-modal { padding: 14px; }
  .film-close { bottom: calc(100% + 8px); }
}
