* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e0e0e0;
  background: #0a0a0a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 24px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-helix {
  display: block;
  width: 44px;
  height: 21px;
  background: linear-gradient(
    105deg,
    #2a2a2e 0%,
    #3d3d42 16%,
    #555558 30%,
    #8a7560 40%,
    #d4a870 44%,
    #fff8f0 48%,
    #ffffff 50%,
    #f0f4ff 52%,
    #70a0d4 56%,
    #607088 60%,
    #555558 70%,
    #3d3d42 84%,
    #2a2a2e 100%
  );
  background-size: 400% 100%;
  background-position: 100% center;
  -webkit-mask-image: url(/helix.svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url(/helix.svg);
  mask-repeat: no-repeat;
  mask-size: contain;
  transition: background-position 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-helix {
  background-position: -30% center;
}

.github-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #2a2a2a, #222);
  border: 1px solid #1a1a1a;
  box-shadow: inset 0 1px 0 #3a3a3a;
  border-radius: 4px;
  padding: 8px 16px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.github-btn:hover {
  background: linear-gradient(to bottom, #333, #2a2a2a);
  color: #fff;
}

.github-btn:active {
  background: linear-gradient(to bottom, #1e1e1e, #252525);
  box-shadow: inset 0 1px 0 #2a2a2a;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 640px) 1fr;
  padding: 80px 24px 120px;
}

main {
  grid-column: 2;
}

section {
  margin-bottom: 72px;
  scroll-margin-top: 80px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

p {
  margin-bottom: 12px;
  color: #999;
}

.subtitle {
  font-size: 1.125rem;
  color: #999;
  margin-bottom: 32px;
}

pre {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}

code {
  font-family: "Geist Mono", "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: #e0e0e0;
}

pre.output {
  background: #0d0d0d;
  border-color: #1a1a1a;
  font-size: 0.8rem;
}

pre.output code {
  color: #777;
}

.step {
  margin-bottom: 40px;
}

.step p {
  color: #777;
}

.cta {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid #1a1a1a;
}

.cta h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #999;
  margin-bottom: 24px;
}

.links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #222;
  border: 1px solid #333;
  color: #888;
  font-size: 0.75rem;
  font-family: inherit;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

pre:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  color: #fff;
}

.links a {
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

.section-nav {
  grid-column: 1;
  justify-self: end;
  position: sticky;
  top: 80px;
  align-self: start;
  padding-top: 64px;
  padding-right: 64px;
}

.section-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #444;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.15s;
}

.section-nav a:hover {
  color: #999;
}

.section-nav a.active {
  color: #999;
}

.section-nav .marker {
  display: inline-block;
  width: 12px;
  color: transparent;
  font-family: "Geist Mono", "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  transition: color 0.15s;
}

.section-nav a.active .marker {
  color: #ff670d;
}

@media (max-width: 960px) {
  .page-layout {
    display: block;
    padding: 80px 24px 120px;
  }

  .section-nav {
    display: none;
  }

  main {
    max-width: 640px;
    margin: 0 auto;
  }
}
