@font-face {
  font-family: 'Geist Sans';
  src: url('fonts/geist-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #94a3b8;
  --soft: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --accent: #f472b6;
  --accent-soft: #fce7f3;
  --code: #0f172a;
  --code-line: #1e293b;
  --page-gutter: 5vw;
  --page-max-width: 1600px;
  --docs-column-width: 920px;
  --sans: 'Geist Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
::selection {
  background: var(--accent-soft);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
code,
pre {
  font-family: var(--mono);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus {
  transform: none;
}

.site-header,
.hero,
.principles-section,
.workflow-section,
.docs-shell,
.docs-index,
.prose-page,
.not-found,
.site-footer {
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.header-inner,
.hero,
.section-heading,
.site-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1rem;
}

.site-header {
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%;
  min-height: 74px;
  align-items: center;
  padding: 1rem 0;
}
.site-name {
  grid-column: span 2;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-nav {
  grid-column: span 10;
  min-width: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li {
  flex: 0 0 auto;
}
.main-nav a {
  min-height: 36px;
  padding: 0.5rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease;
}
.main-nav a:hover {
  background: var(--panel);
  color: var(--ink);
}
.main-nav .nav-repo {
  padding: 0.5rem 0.65rem;
  border: 0;
}
.nav-icon {
  width: 15px;
  height: 15px;
  flex: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-icon-github {
  stroke: none;
}

main {
  min-height: 70vh;
}
.home-page {
  overflow: hidden;
}
.hero {
  align-items: center;
  min-height: min(760px, calc(100vh - 74px));
  padding: clamp(5rem, 9vw, 9rem) 0;
}
.hero-copy {
  grid-column: 1 / span 6;
  align-self: center;
}
.eyebrow,
.docs-label {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span {
  color: inherit;
}
.hero-lede {
  max-width: 38rem;
  margin: 1.75rem 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  transition:
    background 160ms ease,
    color 160ms ease;
}
.button:hover {
  background: var(--ink);
  color: #fff;
}
.button-primary {
  background: var(--ink);
  color: #fff;
}
.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.button-secondary {
  background: transparent;
}
.install-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 32rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font: 12px/1.4 var(--mono);
}
.install-line .prompt {
  color: var(--accent);
}
.requirement {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font: 10px/1.4 var(--mono);
}

.hero-code {
  grid-column: 7 / span 6;
  min-width: 0;
  border: 1px solid var(--code-line);
  background: var(--code);
  color: #cbd5e1;
}
.code-window-bar {
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--code-line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font: 10px/1 var(--mono);
}
.code-badge {
  justify-self: end;
  color: var(--accent);
}
.hero-code pre {
  min-height: 300px;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  overflow: auto;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.8;
}
.code-key {
  color: #93c5fd;
}
.code-string {
  color: #d9f99d;
}
.code-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--code-line);
  color: var(--muted);
  font-size: 10px;
}
.code-result span {
  color: #d9f99d;
  font-family: var(--mono);
}

.principles-section,
.workflow-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
}
.section-heading {
  margin-bottom: 4rem;
  align-items: start;
  row-gap: 1.5rem;
}
.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.section-heading h2 {
  grid-column: 1 / span 9;
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-heading.compact {
  display: grid;
}
.feature-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  border-block: 1px solid var(--line);
}
.feature-card {
  min-height: 300px;
  padding: 2rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.feature-card:first-child {
  padding-left: 0;
}
.feature-card:nth-child(2),
.feature-card:nth-child(3) {
  border-left: 1px solid var(--line);
}
.feature-card:last-child {
  border-bottom: 0;
}
.feature-card-large {
  grid-row: span 2;
  min-height: 600px;
  border-bottom: 0;
}
.feature-number {
  color: var(--muted);
  font: 11px/1 var(--mono);
}
.feature-card h3 {
  margin: 4rem 0 0.75rem;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.feature-card p {
  max-width: 34rem;
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}
.mini-tree {
  margin-top: 4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--soft);
  font-size: 11px;
}
.mini-tree .indent {
  padding-left: 1.25rem;
  color: var(--ink);
}
.mini-tree .indent-more {
  padding-left: 2.5rem;
  color: var(--accent);
}

.workflow-section {
  border-top: 1px solid var(--line);
}
.workflow-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.workflow-list li {
  min-height: 112px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3fr 9fr;
  align-items: center;
}
.workflow-list > li > span {
  color: var(--muted);
  font: 11px/1 var(--mono);
}
.workflow-list div {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 1rem;
  align-items: center;
}
.workflow-list h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}
.workflow-list code {
  color: var(--soft);
  font-size: 12px;
}
.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.text-link {
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--ink);
}

.closing-cta {
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: var(--page-max-width);
  margin: 0 auto 5vw;
  padding: clamp(3rem, 7vw, 7rem);
  background: var(--panel);
  color: var(--ink);
}
.closing-cta .eyebrow {
  color: rgba(23, 23, 23, 0.58);
}
.closing-cta h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.closing-cta > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 2rem 0;
  font-size: 16px;
  line-height: 1.6;
}
.button-light {
  background: #fff;
}

.docs-shell {
  display: grid;
  grid-template-columns: 3fr 9fr;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 3rem 1rem 2rem 0;
  border-right: 1px solid var(--line);
}
.docs-sidebar ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-sidebar li a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 12px;
}
.docs-sidebar li a span {
  color: var(--line);
  font-family: var(--mono);
  font-size: 10px;
}
.docs-sidebar li a:hover,
.docs-sidebar li.active a {
  color: var(--ink);
}
.docs-sidebar li.active a span {
  color: var(--accent);
}
.docs-sidebar-note {
  margin-top: 3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.docs-sidebar-note p,
.docs-sidebar-note span {
  margin: 0;
  color: var(--muted);
  font: 10px/1.4 var(--mono);
}
.docs-sidebar-note strong {
  margin: 0.35rem 0;
  font-size: 11px;
  font-weight: 500;
}
.docs-content {
  min-width: 0;
}

.prose-page {
  max-width: var(--docs-column-width);
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(7rem, 11vw, 11rem);
}
.docs-shell .prose-page,
.docs-shell .docs-index {
  width: auto;
  max-width: var(--docs-column-width);
  margin: 0;
  padding-inline: clamp(2rem, 6vw, 7rem) 0;
}
.page-intro {
  margin-bottom: 4rem;
}
.docs-shell .page-intro {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.standfirst {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}
.prose {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
}
.prose h2 {
  margin: 4rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prose h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 18px;
  font-weight: 400;
}
.prose p,
.prose li {
  color: var(--soft);
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.prose pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--code-line);
  background: var(--code);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.65;
}
.prose :not(pre) > code {
  padding: 0.15rem 0.3rem;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.88em;
}
.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li {
  margin: 0.4rem 0;
}

.docs-index {
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(7rem, 11vw, 11rem);
}
.docs-index .page-intro {
  max-width: 56rem;
}
.docs-index .page-intro h1 {
  font-size: clamp(3.5rem, 6.5vw, 6.5rem);
}
.quickstart-panel {
  margin: 4rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  border: 1px solid var(--code-line);
  background: var(--code);
  color: #cbd5e1;
}
.quickstart-panel > div {
  padding: 1.5rem;
  border-right: 1px solid var(--code-line);
}
.quickstart-panel > div > span {
  color: var(--accent);
  font: 10px/1 var(--mono);
}
.quickstart-panel p {
  margin: 0.5rem 0 0.75rem;
  color: var(--muted);
  font-size: 12px;
}
.quickstart-panel code {
  font-size: 11px;
}
.quickstart-panel > a {
  min-width: 160px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
}
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.docs-card {
  min-height: 260px;
  padding: 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  transition: background 160ms ease;
}
.docs-card:nth-child(2n) {
  border-right: 0;
}
.docs-card:hover {
  background: var(--panel);
}
.docs-card-count {
  justify-self: end;
  color: var(--muted);
  font: 10px/1 var(--mono);
}
.docs-card > p {
  grid-row: 1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.docs-card h2 {
  grid-column: 1 / -1;
  margin: 2.5rem 0 0.75rem;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.docs-card-description {
  grid-column: 1 / -1;
  max-width: 30rem;
  color: var(--soft);
  line-height: 1.6;
}
.docs-card-arrow {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  color: var(--muted);
  font-size: 18px;
  transition:
    transform 160ms ease,
    color 160ms ease;
}
.docs-card:hover .docs-card-arrow {
  transform: translateX(4px);
  color: var(--ink);
}

.not-found {
  min-height: 70vh;
  padding: clamp(5rem, 9vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.not-found-code {
  position: absolute;
  top: -4rem;
  right: 0;
  z-index: -1;
  margin: 0;
  color: var(--panel);
  font-size: clamp(12rem, 33vw, 32rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}
.not-found h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.not-found > p:not(.eyebrow, .not-found-code) {
  max-width: 34rem;
  margin: 2rem 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer {
  padding: 3rem 0 1.25rem;
  border-top: 1px solid var(--line);
  row-gap: 4rem;
}
.footer-brand {
  grid-column: span 5;
}
.footer-brand .site-name {
  display: inline-block;
}
.footer-brand p {
  max-width: 25rem;
  margin: 0.75rem 0 0;
  color: var(--soft);
  line-height: 1.6;
}
.footer-links {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.footer-links div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.footer-links h2 {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.footer-links a {
  color: var(--soft);
  font-size: 12px;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.footer-note a:hover {
  color: var(--soft);
}

@media (max-width: 980px) {
  .hero-copy {
    grid-column: 1 / span 6;
  }
  .hero-code {
    grid-column: 7 / span 6;
  }
  .docs-shell {
    grid-template-columns: 3fr 9fr;
  }
  .docs-shell .prose-page,
  .docs-shell .docs-index {
    padding-left: 2rem;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 16px;
  }

  .site-header,
  .header-inner {
    min-height: 96px;
  }
  .site-name,
  .site-nav {
    grid-column: span 12;
  }
  .header-inner {
    row-gap: 0.5rem;
  }
  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .main-nav .nav-repo {
    padding: 0.5rem 0.65rem;
  }
  .hero {
    min-height: 0;
    padding: 4rem 0 5rem;
    row-gap: 4rem;
  }
  .hero-copy,
  .hero-code {
    grid-column: span 12;
  }
  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 15vw, 5rem);
  }
  .section-heading .eyebrow,
  .section-heading h2 {
    grid-column: span 12;
  }
  .section-heading h2 {
    margin-top: 1rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card,
  .feature-card-large,
  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    min-height: 280px;
    padding-inline: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-card:last-child {
    border-bottom: 0;
  }
  .workflow-list li {
    grid-template-columns: 2rem 1fr;
  }
  .workflow-list div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .closing-cta {
    padding: 3rem 1.5rem;
  }
  .docs-shell {
    display: block;
  }
  .docs-sidebar {
    position: static;
    min-height: 0;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .docs-sidebar .docs-label,
  .docs-sidebar-note {
    display: none;
  }
  .docs-sidebar ol {
    display: flex;
    width: max-content;
    gap: 1rem;
  }
  .docs-sidebar li a {
    display: block;
    padding: 0;
    white-space: nowrap;
  }
  .docs-sidebar li a span {
    display: none;
  }
  .docs-shell .prose-page,
  .docs-shell .docs-index {
    padding: 4rem 0 6rem;
  }
  .quickstart-panel {
    grid-template-columns: 1fr;
  }
  .quickstart-panel > div {
    border-right: 0;
    border-bottom: 1px solid var(--code-line);
  }
  .docs-card-grid {
    grid-template-columns: 1fr;
  }
  .docs-card,
  .docs-card:nth-child(2n) {
    min-height: 230px;
    border-right: 0;
  }
  .footer-brand,
  .footer-links {
    grid-column: span 12;
  }
  .footer-links {
    margin-top: 2rem;
  }
}

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