:root {
  --ink: #050505;
  --silver: #cfcfcf;
  --muted: #8d8d8d;
  --blue: #0d11ff;
  --line: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--ink);
  color: #f3f3f3;
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw;
  background: transparent;
}

.chrome-blur {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(to top, transparent, var(--ink));
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 50%, transparent);
  mask-image: linear-gradient(to bottom, var(--ink) 50%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 18px;
}

.mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: cover;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 15px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  height: 42px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  font: 400 16px/1 "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.btn-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.btn:hover {
  background: #2428ff;
}

.btn-lg {
  min-width: 168px;
  height: 52px;
  padding: 0 28px;
  font-size: 18px;
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  gap: 5px;
  place-content: center;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 8vw 48px;
  gap: 18px;
}

.menu[hidden] {
  display: none;
}

.menu a {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #e7e7e7;
}

.menu a:hover {
  color: #fff;
}

.menu-close {
  position: absolute;
  top: 18px;
  right: 8vw;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 0.7px, transparent 0.75px);
  background-size: 4px 4px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 10%, transparent 78%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 118px 8vw 0;
  gap: 22px;
}

h1 {
  margin: 0;
  max-width: 16em;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #d7d7d7;
}

.hero h1 {
  max-width: 14em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28em;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 0.92;
  color: #b3b3b3;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: #f2f2f2;
}

.hero h1 em {
  margin-right: 0.12em;
  color: #fff;
}

.scene {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}

.sheet {
  position: relative;
  padding: 18vh 8vw 12vh;
  background: #000;
}

.lede {
  margin: 0;
  max-width: 18em;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #f4f4f4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 64px;
  color: #bdbdbd;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.traits {
  padding: 8vh 8vw 0;
  text-align: center;
}

.kicker {
  margin: 0 0 48px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.kicker em {
  font-style: italic;
}

.trait {
  margin: 0 auto 72px;
  max-width: 16em;
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.55;
  color: #d0d0d0;
}

.mound {
  height: 240px;
  margin-top: -20px;
  background-image: radial-gradient(#2450ff 1.1px, transparent 1.25px);
  background-size: 8px 10px;
  mask-image: radial-gradient(ellipse 62% 90% at 50% 130%, #000 36%, transparent 70%);
  opacity: 0.95;
}

.process {
  padding: 16vh 8vw 10vh;
}

.process h2 {
  margin: 0 0 18px;
  max-width: 10em;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.process h2 em {
  font-style: italic;
}

.quiet {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 16px;
}

.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  max-width: 520px;
}

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.idx {
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}

.work {
  padding: 6vh 8vw 12vh;
}

.work h2 {
  margin: 0 0 28px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  min-height: 220px;
  padding: 22px;
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.card strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: #9a9a9a;
  font-size: 15px;
  line-height: 1.45;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 112px 0 36px;
  color: #8a8a8a;
  font-size: 14px;
}

.site-footer .mound {
  position: absolute;
  inset: auto 0 18px;
  height: 180px;
  margin: 0;
  pointer-events: none;
}

.site-footer-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 8vw 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: #cfcfcf;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.more {
  margin: 28px 0 0;
}

.more a {
  color: #fff;
  text-underline-offset: 4px;
}

html:has(.catalog-page) {
  --nav-h: 78px;
  --jump-h: 58px;
  --page-pad: 8vw;
  scroll-padding-top: calc(var(--nav-h) + 112px);
}

.catalog {
  width: 100%;
  max-width: none;
  padding: calc(var(--nav-h) + 32px) var(--page-pad) 88px;
}

.catalog h1 {
  text-align: left;
  max-width: 16em;
  margin-bottom: 16px;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.02;
}

.catalog-lede {
  margin: 0 0 28px;
  max-width: 40em;
  color: #b5b5b5;
  font-size: 18px;
  line-height: 1.55;
}

.finder {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.finder-row {
  position: relative;
}

.finder-row input {
  width: 100%;
  height: 48px;
  padding: 0 76px 0 14px;
  border: 1px solid #242424;
  border-radius: 0;
  background: #0c0c0c;
  color: #fff;
  font: 16px/1 "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}

.finder-row input::placeholder {
  color: #7d7d7d;
}

.finder-row input:focus {
  outline: none;
  border-color: #3d42ff;
}

.finder-row input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.finder-hint,
.finder-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.finder-hint {
  padding: 2px 6px;
  border: 1px solid #2e2e2e;
  color: #8d8d8d;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.finder-row:focus-within .finder-hint,
.finder-row:has(input:not(:placeholder-shown)) .finder-hint {
  display: none;
}

.finder-clear {
  height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font: 500 13px/1 "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.finder-clear:hover {
  color: #fff;
}

.finder-meta,
.finder-empty {
  margin: 0;
  color: #8d8d8d;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.finder-empty {
  margin: 8px 0 24px;
  color: #d0d0d0;
  font-size: 16px;
  letter-spacing: 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.doc {
  padding: 128px 8vw 72px;
  max-width: 860px;
}

.doc h1 {
  text-align: left;
  max-width: 12em;
}

.doc .updated {
  margin: 14px 0 32px;
  color: #8d8d8d;
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  color: #f4f4f4;
}

.doc p,
.doc li {
  max-width: 40em;
  color: #b5b5b5;
  font-size: 17px;
  line-height: 1.6;
}

.doc a {
  color: #fff;
}

.doc ul {
  margin: 0;
  padding-left: 1.15rem;
}

.doc li + li {
  margin-top: 8px;
}

.doc .card {
  max-width: 40em;
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  padding: 18px 20px;
}

.doc .card p:first-child {
  margin-top: 0;
}

.doc .card p:last-child {
  margin-bottom: 0;
}

.verify-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.verify {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 118px 8vw 64px;
}

.verify .dots {
  mask-image: radial-gradient(ellipse 70% 60% at 50% 46%, #000 8%, transparent 72%);
}

.verify h1 {
  position: relative;
  z-index: 1;
  max-width: 12em;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 0.92;
}

.verify p {
  position: relative;
  z-index: 1;
  max-width: 36em;
  margin: 18px 0 0;
  color: #b5b5b5;
  font-size: 17px;
  line-height: 1.6;
}

.verify .verify-note {
  margin-top: 18px;
  color: #8d8d8d;
  font-size: 15px;
}

.verify a {
  color: #fff;
}

.jump-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 19;
  margin: 0 calc(var(--page-pad) * -1) 8px;
  padding: 10px var(--page-pad);
  background: transparent;
}

.jump-wrap::before,
.jump-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.jump-wrap::before {
  left: 0;
  background: linear-gradient(270deg, transparent, #050505 80%);
}

.jump-wrap::after {
  right: 0;
  background: linear-gradient(90deg, transparent, #050505 80%);
}

.jump-wrap.can-scroll-left::before,
.jump-wrap.can-scroll::after {
  opacity: 1;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  overflow: visible;
}

.jump::-webkit-scrollbar {
  display: none;
}

.jump a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  color: #d5d5d5;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.jump a:hover,
.jump a[aria-current="location"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.jump a.is-off {
  opacity: 0.35;
  pointer-events: none;
}

.group,
.example {
  scroll-margin-top: calc(var(--nav-h) + 112px);
}

.group {
  margin: 56px 0 0;
}

.group h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 52px);
  letter-spacing: -0.03em;
}

.group h2 .n {
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  color: #8d8d8d;
}

.group > p {
  margin: 0 0 12px;
  max-width: 40em;
  color: #9a9a9a;
  font-size: 15px;
}

.examples {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.example {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.example summary {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 120px 8px 0;
  list-style: none;
  cursor: pointer;
}

.example summary::-webkit-details-marker {
  display: none;
}

.example summary::marker {
  content: "";
}

.example summary::after {
  content: "";
  position: absolute;
  top: 42px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #9a9a9a;
  border-bottom: 1.5px solid #9a9a9a;
  transform: translateY(-2px) rotate(45deg);
}

.example details[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.example:hover {
  background: rgba(255, 255, 255, 0.03);
}

.example:has(details[open]) {
  background: transparent;
  box-shadow: none;
}

.cmd-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}

.example h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.example h3.code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}

.alias {
  color: #8d8d8d;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
}

.alias::before {
  content: "also ";
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}

.example .about,
.example .usage {
  display: grid;
  gap: 6px;
  margin: 0;
  order: 3;
}

.example .about {
  order: 1;
  color: #d2d2d2;
  font-size: 17px;
  line-height: 1.5;
}

.example .usage.prompt {
  order: 2;
}

.example .about::before,
.example .usage::before,
.thread::before {
  color: #8d8d8d;
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.example .about::before {
  content: "Description";
}

.example .usage.prompt::before {
  content: "Example prompt";
}

.example .usage:not(.prompt)::before {
  content: "Command";
}

.usage code,
.bubble code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 16px;
  color: #f2f2f2;
  cursor: text;
  user-select: text;
}

.copy {
  position: absolute;
  top: 28px;
  right: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #e4e4e4;
  font: 500 12px/1 "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.copy:hover,
.copy.is-copied {
  border-color: var(--blue);
  color: #fff;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0 28px;
}

.thread::before {
  content: "Bot response";
}

.bubble {
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 14px 16px;
  background: #141414;
  border: 1px solid #242424;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.bubble .who {
  display: block;
  margin-bottom: 4px;
  color: #8d8d8d;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.embed {
  display: grid;
  gap: 4px;
}

.embed b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 500;
}

.example summary:focus-visible,
.jump a:focus-visible,
.copy:focus-visible,
.finder-clear:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  .nav {
    padding: 18px 16px;
  }

  .menu {
    padding-right: 16px;
    padding-left: 16px;
  }

  .menu-close {
    right: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 152px;
  }

  .hero h1 {
    max-width: 11em;
  }

  .scene img {
    width: 200%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 64%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 64%, transparent 100%);
  }

  .finder-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
