:root {
  color-scheme: light;
  --paper: #f5f0e7;
  --paper-deep: #ebe3d5;
  --surface: #fbf8f1;
  --ink: #25241f;
  --muted: #69675f;
  --faint: #918d82;
  --line: #d8d0c2;
  --moss: #53644e;
  --moss-deep: #3f503b;
  --code: #292c27;
  --code-ink: #ece9df;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: #cbd4c4; }

.site-header,
footer {
  max-width: 1240px;
  margin: auto;
  padding: 25px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { border-bottom: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink);
  font: 650 21px/1 var(--sans);
  text-decoration: none;
  letter-spacing: -.045em;
}
.wordmark img {
  width: 39px;
  height: 39px;
}
.site-header nav { display: flex; gap: 30px; }
.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }

main > section {
  max-width: 1180px;
  margin: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.hero { padding-top: 128px; padding-bottom: 118px; }
.kicker,
.docs-label {
  color: var(--moss);
  font: 600 13px/1.4 var(--sans);
  letter-spacing: .01em;
}
.hero h1 {
  max-width: 990px;
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(58px, 8.5vw, 112px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.05em;
}
.hero h1 em { color: var(--moss); font-style: italic; }
.hero > p {
  max-width: 665px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button {
  padding: 11px 18px;
  border: 1px solid #aaa395;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.button:hover { background: var(--surface); }
.button.primary {
  color: #fbf8f1;
  background: var(--moss-deep);
  border-color: var(--moss-deep);
}
.button.primary:hover { background: #344330; }

.loop {
  max-width: none;
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 62px);
  color: var(--muted);
  font: 500 clamp(15px, 2vw, 20px) var(--mono);
}
.loop i { color: #aaa396; font-style: normal; }
.guarantees { padding-top: 116px; padding-bottom: 126px; }
.section-heading h2,
.artifact h2,
.install h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.guarantee-grid {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.guarantee-grid article {
  min-height: 240px;
  padding: 25px 22px 22px 0;
  border-right: 1px solid var(--line);
}
.guarantee-grid article + article { padding-left: 22px; }
.guarantee-grid article:last-child { border-right: 0; }
.guarantee-grid span { color: var(--faint); font: 12px var(--mono); }
.guarantee-grid h3 { margin: 42px 0 11px; font-size: 18px; font-weight: 650; }
.guarantee-grid p,
.artifact p,
.install p { color: var(--muted); font-size: 14px; }

.artifact {
  max-width: none;
  padding-top: 110px;
  padding-bottom: 110px;
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(420px, 620px);
  justify-content: center;
  gap: 8vw;
}
.artifact p { max-width: 430px; font-size: 16px; }
.artifact a {
  display: inline-block;
  margin-top: 22px;
  color: var(--moss-deep);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 4px;
}
.artifact pre {
  margin: 0;
  padding: 30px;
  overflow: auto;
  border-radius: 10px;
  background: var(--code);
  color: var(--code-ink);
  font: 14px/1.72 var(--mono);
  box-shadow: 0 22px 50px rgba(62, 55, 43, .16);
}
.artifact pre b { color: #c6d1be; font-weight: 550; }

.install {
  padding-top: 116px;
  padding-bottom: 126px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8vw;
}
.install > div > p:last-child { max-width: 440px; font-size: 16px; }
.commands { border-top: 1px solid var(--line); }
.command { padding: 22px 0; border-bottom: 1px solid var(--line); }
.command span {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
}
.command code { color: var(--moss-deep); font: 14px var(--mono); }
footer {
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.docs-shell {
  max-width: 1240px;
  min-height: calc(100vh - 150px);
  margin: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 82px;
  padding: 64px 34px 110px;
}
.docs-shell-wide {
  max-width: 1500px;
  grid-template-columns: 220px minmax(0, 1fr);
}
.docs-shell-wide .prose table {
  display: table;
  table-layout: fixed;
}
.docs-shell-wide .prose th,
.docs-shell-wide .prose td {
  min-width: 0;
  overflow-wrap: anywhere;
}
.docs-shell-wide .prose th:nth-child(1) { width: 18%; }
.docs-shell-wide .prose th:nth-child(2) { width: 18%; }
.docs-shell-wide .prose th:nth-child(3) { width: 20%; }
.docs-shell-wide .prose th:nth-child(4) { width: 15%; }
.docs-shell-wide .prose th:nth-child(5) { width: 29%; }

.docs-shell aside {
  position: sticky;
  top: 28px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-label { margin: 0 0 16px; color: var(--faint); }
.docs-shell aside a {
  margin-left: -12px;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.docs-shell aside a:hover { color: var(--ink); background: rgba(255, 255, 255, .38); }
.docs-shell aside a[aria-current="page"] {
  color: var(--moss-deep);
  background: rgba(83, 100, 78, .09);
  font-weight: 650;
}

.prose { min-width: 0; }
.prose h1 {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 70px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}
.prose h2 {
  margin: 68px 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.prose h3 { margin: 42px 0 13px; font-size: 20px; line-height: 1.35; }
.prose p,
.prose li { color: #4f4d47; }
.prose p { max-width: 68ch; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--moss-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .88em; }
.prose :not(pre) > code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: #394536;
}
.prose pre {
  margin: 22px 0;
  padding: 21px 22px;
  overflow: auto;
  border: 0;
  border-radius: 9px;
  background: var(--code);
  color: var(--code-ink);
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.prose blockquote {
  margin: 28px 0;
  padding: 3px 0 3px 20px;
  border-left: 3px solid var(--moss);
}
.prose table {
  display: block;
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}
.prose th,
.prose td {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 650;
}
.docs-shell-wide .prose th:first-child,
.docs-shell-wide .prose td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 155px;
  background: var(--paper);
}
.docs-shell-wide .prose th:first-child {
  z-index: 3;
  background: var(--paper-deep);
}
.prose td { color: #56534d; background: rgba(251, 248, 241, .38); }
.prose hr { margin: 56px 0; border: 0; border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 38px 20px 84px;
  }
  .docs-shell aside {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px 14px;
  }
  .docs-shell aside a { margin: 0; white-space: nowrap; }
  .docs-label { display: none; }
}

@media (max-width: 780px) {
  .site-header, footer { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 82px; padding-bottom: 84px; }
  .artifact, .install { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr 1fr; }
  .guarantee-grid article:nth-child(2) { border-right: 0; }
  .artifact { gap: 52px; }
  .docs-shell { grid-template-columns: 1fr; gap: 36px; padding: 38px 20px 84px; }
  .docs-shell aside {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px 14px;
  }
  .docs-shell aside a { margin: 0; white-space: nowrap; }
  .docs-label { display: none; }
  .docs-shell-wide .prose table {
    display: block;
    table-layout: auto;
  }
  .docs-shell-wide .prose th,
  .docs-shell-wide .prose td { min-width: 150px; }
  .docs-shell-wide .prose th { position: static; }
}
@media (max-width: 480px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .site-header nav { gap: 20px; }
  .wordmark { gap: 2px; font-size: 19px; }
  .wordmark img { width: 35px; height: 35px; }
  .hero { padding-top: 60px; padding-bottom: 64px; }
  .hero h1 {
    margin-top: 22px;
    font-size: clamp(45px, 13vw, 54px);
    line-height: .98;
    letter-spacing: -.045em;
  }
  .hero > p { font-size: 17px; line-height: 1.55; }
  .hero-actions { margin-top: 30px; }
  .guarantees { padding-top: 68px; padding-bottom: 72px; }
  .section-heading h2, .artifact h2, .install h2 {
    font-size: 42px;
    line-height: 1.06;
  }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { text-align: center; }
  .loop { gap: 10px; font-size: 13px; }
  .guarantee-grid { margin-top: 44px; grid-template-columns: 1fr; }
  .guarantee-grid article {
    min-height: auto;
    padding: 24px 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .guarantee-grid article + article { padding-left: 0; }
  .guarantee-grid h3 { margin-top: 20px; }
  .artifact {
    padding: 72px 20px;
    gap: 38px;
  }
  .install { padding-top: 72px; padding-bottom: 76px; gap: 36px; }
  .artifact pre { font-size: 11px; }
  .command code { font-size: 11px; }
  footer { align-items: flex-start; gap: 12px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
