@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Greed Wide";
  src: url("/fonts/GreedWide-SemiBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "Greed Narrow";
  src: url("/fonts/GreedNarrow-SemiBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

.docs-page {
  --paper: #fff9e8;
  --paper-deep: #fff3c4;
  --surface: #fffdf6;
  --surface-soft: rgb(255 255 255 / 68%);
  --surface-hover: #fff;
  --code-surface: #241008;
  --code-ink: #fff9e8;
  --label-surface: #3a1a0f;
  --label-ink: #d9c7bd;
  --ink: #35150c;
  --muted: #745247;
  --line: rgb(91 30 13 / 20%);
  --line-strong: #7b260f;
  --banana: #ffe135;
  --orange: #e6501e;
  --blue: #135da2;
  color-scheme: light;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.62;
}

.docs-page::before {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: var(--banana);
}

.docs-page main {
  box-sizing: border-box;
  width: min(100%, 1140px);
  max-width: none;
  margin: 0 auto;
  padding: 58px 34px 120px;
}

.docs-page .page-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  margin-bottom: clamp(52px, 8vw, 88px);
}

.docs-page .back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: "Greed Narrow", "Geist", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.docs-page .back:hover {
  color: var(--ink);
  transform: translateX(-3px);
}

.docs-page .hero {
  margin-bottom: 82px;
}

.docs-page .hero-lockup {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.docs-page .product-mark {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: 22px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--line-strong);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.docs-page .product-mark:hover {
  box-shadow: 7px 7px 0 var(--line-strong);
  transform: translate(-2px, -2px) rotate(-2deg);
}

.docs-page .product-mark:focus-visible {
  outline: 4px solid #1593cf;
  outline-offset: 4px;
}

.docs-page .product-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.docs-page .eyebrow {
  margin: 12px 0 0;
  color: var(--orange);
  font-family: "Greed Narrow", "Geist", sans-serif;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
}

.docs-page .eyebrow a {
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 140ms ease;
}

.docs-page .eyebrow a:hover {
  text-decoration-color: currentColor;
}

.docs-page h1,
.docs-page h2,
.docs-page h3 {
  color: var(--ink);
  font-family: "Greed Wide", "Geist", sans-serif;
  font-weight: 600;
}

.docs-page h1 {
  max-width: none;
  margin: 0;
  font-family: "Greed Narrow", "Geist", sans-serif;
  font-size: clamp(2.65rem, 7vw, 5.35rem);
  letter-spacing: -.048em;
  line-height: .96;
}

.docs-page .hero h1 {
  color: var(--ink);
}

.docs-page .lead {
  max-width: 890px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1.52;
}

.docs-page .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}

.docs-page .pill-row li {
  padding: 5px 13px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "Greed Narrow", "Geist", sans-serif;
  font-size: .85rem;
  line-height: 1;
}

.docs-page .resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 31px;
}

.docs-page .resource-row a {
  color: var(--muted);
  font-size: .97rem;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.docs-page .resource-row a::after {
  content: " ↗";
  color: var(--orange);
}

.docs-page .resource-row a:hover {
  color: var(--ink);
  text-decoration-color: var(--orange);
}

.docs-page .section-heading {
  margin: 0 0 38px;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -.035em;
}

.docs-page .quick-start {
  margin-top: 78px;
  padding: clamp(28px, 5vw, 54px);
  border: 2px solid #7b260f;
  border-radius: clamp(28px, 4vw, 38px);
  background: #f9edd0;
  color: #35150c;
  box-shadow: 0 9px 0 #7b260f;
}

.docs-page .quick-start .section-heading,
.docs-page .quick-start h3 {
  color: #35150c;
}

.docs-page .quick-start .section-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid rgb(53 21 12 / 24%);
}

.docs-page .steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-page .steps::before {
  position: absolute;
  top: 29px;
  bottom: 42px;
  left: 27px;
  width: 1px;
  content: "";
  background: rgb(53 21 12 / 24%);
}

.docs-page .step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 25px;
  padding-bottom: 52px;
}

.docs-page .step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  box-sizing: border-box;
  place-items: center;
  border: 2px solid #35150c;
  border-radius: 16px;
  background: var(--banana);
  color: #35150c;
  font-family: "Greed Narrow", "Geist", sans-serif;
  font-size: 1rem;
  box-shadow: 3px 3px 0 #35150c;
}

.docs-page .step-content {
  min-width: 0;
  padding-top: 6px;
}

.docs-page .step h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.docs-page .step p {
  margin: 0 0 17px;
  color: rgb(53 21 12 / 76%);
}

.docs-page .step pre + p {
  margin-top: 26px;
}

.docs-page .quick-start :not(pre) > code {
  border-color: rgb(53 21 12 / 22%);
  background: rgb(255 249 232 / 52%);
  color: #35150c;
}

.docs-page .content-section {
  position: relative;
  margin-top: 82px;
  padding-top: 58px;
  border-top: 2px solid var(--line-strong);
}

.docs-page .content-section::before {
  position: absolute;
  top: -8px;
  left: 0;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid var(--line-strong);
  background: var(--banana);
  transform: rotate(45deg);
}

.docs-page .content-section > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -.03em;
}

.docs-page .content-section > p {
  max-width: 850px;
  color: var(--muted);
}

.docs-page a {
  color: var(--orange);
}

.docs-page :not(pre) > code {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: .9em;
}

.docs-page pre {
  position: relative;
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 55px 20px 22px;
  border: 2px solid #35150c;
  border-radius: 15px;
  background: var(--code-surface);
  color: var(--code-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  line-height: 1.7;
  box-shadow: 0 6px 0 #35150c;
}

.docs-page pre[data-language]::before {
  position: absolute;
  top: 13px;
  left: 16px;
  content: attr(data-language);
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--label-surface);
  color: var(--label-ink);
  font: 600 .62rem/1 "Greed Narrow", sans-serif;
  letter-spacing: .1em;
}

.docs-page .code-example {
  position: relative;
  margin: 0;
}

.docs-page .copy-code-button,
.docs-page .copy-markdown-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--banana);
  color: #35150c;
  font-family: "Greed Narrow", "Geist", sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 0 rgb(91 30 13 / 18%);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.docs-page .copy-code-button {
  position: absolute;
  z-index: 1;
  top: 11px;
  right: 11px;
  min-height: 30px;
  padding: 5px 9px;
  font-size: .72rem;
}

.docs-page .copy-markdown-button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: .78rem;
}

.docs-page .copy-code-button:hover,
.docs-page .copy-markdown-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgb(91 30 13 / 20%);
}

.docs-page .copy-code-button:focus-visible,
.docs-page .copy-markdown-button:focus-visible {
  outline: 3px solid #1593cf;
  outline-offset: 3px;
}

.docs-page .copy-code-button.is-copied,
.docs-page .copy-markdown-button.is-copied {
  background: #f3b64f;
}

.docs-page .copy-code-button svg,
.docs-page .copy-markdown-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.docs-page .code-command { color: #c4a7ff; }
.docs-page .code-option { color: #77c7ff; }
.docs-page .code-string { color: #ffad7d; }
.docs-page .code-url { color: #8bc8ff; }
.docs-page .code-number { color: #ff94c8; }
.docs-page .code-comment { color: #a6b69d; }

.docs-page .answer {
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--banana);
  color: #35150c;
  font-size: 1.08rem;
  box-shadow: 7px 7px 0 var(--line-strong);
}

.docs-page table {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  border-collapse: separate;
  border: 2px solid var(--line-strong);
  border-spacing: 0;
  border-radius: 16px;
  background: var(--surface);
}

.docs-page th,
.docs-page td {
  padding: 15px 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-page th {
  background: var(--banana);
  color: #35150c;
  font-family: "Greed Narrow", "Geist", sans-serif;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.docs-page tbody tr:last-child td {
  border-bottom: 0;
}

.docs-page .resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.docs-page .resource-list a {
  display: block;
  min-height: 100%;
  box-sizing: border-box;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--line);
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.docs-page .resource-list a::after {
  float: right;
  content: "↗";
  color: var(--orange);
}

.docs-page .resource-list a:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

html.dark .docs-page {
  --paper: #0b0604;
  --paper-deep: #160b07;
  --surface: #160c09;
  --surface-soft: rgb(255 249 232 / 8%);
  --surface-hover: #21110c;
  --code-surface: #050302;
  --code-ink: #fff9e8;
  --label-surface: #25120c;
  --label-ink: #cdbbb2;
  --ink: #fff9e8;
  --muted: #c8b7af;
  --line: rgb(255 249 232 / 16%);
  --line-strong: #d65a31;
  --orange: #ff875b;
  --blue: #7bbcff;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not(.light) .docs-page {
    --paper: #0b0604;
    --paper-deep: #160b07;
    --surface: #160c09;
    --surface-soft: rgb(255 249 232 / 8%);
    --surface-hover: #21110c;
    --code-surface: #050302;
    --code-ink: #fff9e8;
    --label-surface: #25120c;
    --label-ink: #cdbbb2;
    --ink: #fff9e8;
    --muted: #c8b7af;
    --line: rgb(255 249 232 / 16%);
    --line-strong: #d65a31;
    --orange: #ff875b;
    --blue: #7bbcff;
    color-scheme: dark;
  }
}

@media (max-width: 700px) {
  .docs-page {
    font-size: 16px;
  }

  .docs-page main {
    padding: 38px 20px 82px;
  }

  .docs-page .page-top {
    align-items: flex-start;
    margin-bottom: 56px;
  }

  .docs-page .hero-lockup {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .docs-page .product-mark {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .docs-page .lead {
    margin-top: 30px;
  }

  .docs-page .resource-row {
    flex-direction: column;
    gap: 7px;
  }

  .docs-page .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
  }

  .docs-page .steps::before {
    left: 21px;
  }

  .docs-page .step-number {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .docs-page pre {
    margin-right: -4px;
    padding: 52px 15px 18px;
    font-size: .78rem;
  }

  .docs-page .resource-list {
    grid-template-columns: 1fr;
  }

  .docs-page table {
    display: block;
    overflow-x: auto;
  }
}

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