@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark light;
  --font-display: "Bricolage Grotesque", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace,
    monospace;
  --bg: #0b0b0d;
  --surface: #141416;
  --surface-raised: #1c1c1f;
  --text: #f4f3f1;
  --muted: #a3a2a0;
  --quiet: #7a7977;
  --border: rgb(255 255 255 / 9%);
  --border-strong: rgb(255 255 255 / 18%);
  --accent: #f59e0b;
  --accent-ink: #0b0b0d;
  --content: 1180px;
  --prose: 760px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--muted);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 88px 88px;
  content: "";
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.55;
}

a {
  color: var(--text);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: clamp(45px, 7vw, 82px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.032em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

p {
  max-width: 68ch;
}

code,
pre,
.static-eyebrow {
  font-family: var(--font-mono);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.static-container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.static-container--prose {
  max-width: calc(var(--prose) + var(--pad) * 2);
}

.static-header {
  border-bottom: 1px solid var(--border);
  background: rgb(11 11 13 / 88%);
  backdrop-filter: blur(18px);
}

.static-header__inner,
.static-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.static-wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.static-wordmark span:last-child {
  color: var(--accent);
}

.static-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.static-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.static-nav a:hover {
  color: var(--text);
}

.static-hero {
  padding-block: clamp(88px, 13vw, 170px) clamp(76px, 10vw, 132px);
}

.static-eyebrow {
  margin: 0 0 24px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.static-eyebrow::before {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: var(--accent);
  content: "";
}

.static-lede {
  max-width: 36em;
  margin: 0;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
}

.static-section {
  padding-block: clamp(76px, 9vw, 124px);
  border-top: 1px solid var(--border);
}

.static-section:nth-child(even) {
  background: rgb(20 20 22 / 46%);
}

.static-section p + p {
  margin-top: 18px;
}

.static-steps {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.static-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 22px 50px -34px rgb(0 0 0 / 90%);
}

.static-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  margin-bottom: 26px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.static-card p {
  margin: 0;
}

.static-list {
  display: grid;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.static-list li {
  position: relative;
  padding: 15px 18px 15px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.static-list li::before {
  position: absolute;
  top: 22px;
  left: 19px;
  width: 7px;
  height: 7px;
  background: var(--text);
  border-radius: 50%;
  content: "";
}

.static-list code {
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
}

.static-code {
  margin-top: 34px;
  overflow: hidden;
  background: #08080a;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

.static-code > span {
  display: block;
  padding: 11px 16px;
  color: var(--quiet);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.static-code pre {
  margin: 0;
  padding: clamp(18px, 4vw, 30px);
  overflow-x: auto;
  color: #e8e7e4;
  font-size: 13px;
  line-height: 1.65;
}

.static-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--text);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody th {
  width: 28%;
  color: var(--text);
  font-weight: 600;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

.static-links {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.static-link {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  text-decoration: none;
}

.static-link span {
  color: var(--muted);
  font-size: 14px;
}

.static-link--primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.static-link--primary span,
.static-link--primary:hover {
  color: var(--accent-ink);
}

.static-footer {
  padding-block: 28px;
  border-top: 1px solid var(--border-strong);
}

.static-footer__inner {
  min-height: 110px;
  flex-wrap: wrap;
}

.static-footer p {
  flex: 1 0 100%;
  margin: 0;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (max-width: 780px) {
  body::before {
    background-size: 56px 56px;
  }

  .static-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .static-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0 16px;
  }

  .static-hero {
    padding-top: 84px;
  }

  .static-steps,
  .static-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .static-card {
    padding: 22px;
  }

  .static-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6f4;
    --surface: #fff;
    --surface-raised: #eceae6;
    --text: #101012;
    --muted: #55524e;
    --quiet: #77736e;
    --border: rgb(16 16 18 / 12%);
    --border-strong: rgb(16 16 18 / 24%);
    --accent: #b45309;
    --accent-ink: #fff;
  }

  .static-header {
    background: rgb(247 246 244 / 90%);
  }

  .static-code {
    background: #151519;
  }
}

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