@font-face {
  font-family: "Figtree Variable";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-500-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08080c;
  --ink: #f5f3ee;
  --ink-2: #bbb8c2;
  --muted: #9d9aa8;
  --accent: #ffb22c;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --sans: "Figtree Variable", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-color: rgba(255,178,44,.42); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; }
strong { color: var(--ink); font-weight: 650; }
p { margin: 0 0 16px; color: var(--ink-2); }
code { padding: 2px 6px; border-radius: 5px; color: var(--ink); background: rgba(255,255,255,.06); font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--bg); background: var(--accent); }
.skip-link { position: fixed; z-index: 10; top: 14px; left: 14px; padding: 8px 18px; border-radius: 999px; color: var(--bg); background: var(--ink); font-size: 14px; font-weight: 700; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.page { width: min(100%, 792px); margin-inline: auto; padding-inline: clamp(22px,5vw,40px); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: clamp(28px,6vw,66px); margin-bottom: clamp(52px,7vw,78px); }
.back-link { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.back-link span { color: var(--muted); font-size: 19px; transition: transform .2s; }
.back-link:hover span { transform: translateX(-3px); color: var(--accent); }
.page-label { color: var(--muted); font-size: 12px; }
.eyebrow, .section-label { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: var(--accent); margin-bottom: 18px; }
h1 { max-width: 640px; margin: 0 0 24px; font-size: clamp(38px,6vw,60px); font-weight: 520; line-height: 1.08; letter-spacing: -.028em; text-wrap: balance; }
h1 em { color: var(--accent); font-family: var(--serif); font-size: 1.04em; font-style: italic; font-weight: 500; letter-spacing: -.005em; font-variation-settings: "WONK" 1; }
.lede { max-width: 62ch; margin-bottom: 30px; font-size: clamp(17px,2vw,19px); line-height: 1.65; }
.connect-card { display: flex; align-items: center; gap: 18px; padding: 19px 19px 19px 22px; border: 1px solid rgba(255,178,44,.32); border-radius: 18px; background: rgba(255,178,44,.035); }
.server-address { flex: 1; min-width: 0; }
.field-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.server-address code { display: block; width: fit-content; max-width: 100%; padding: 0; background: none; font-size: 13px; line-height: 1.6; }
.copy-primary { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 999px; color: var(--bg); background: var(--accent); font-size: 13px; font-weight: 750; transition: background .2s, box-shadow .2s; }
.copy-primary:hover { background: #ffc35b; box-shadow: 0 4px 22px rgba(255,178,44,.13); }
.copy-primary.is-copied { color: var(--accent); background: transparent; }
.connection-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 13px 0 10px; color: var(--muted); font-size: 12px; }
.connection-meta span { display: inline-flex; align-items: center; gap: 7px; }
.connection-meta span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.browser-note { max-width: 65ch; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.client-nav { margin: 42px 0 0; padding-bottom: 31px; border-bottom: 1px solid var(--line); }
.section-label { margin-bottom: 13px; }
.client-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.client-pills a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.client-pills a:hover { border-color: var(--accent); background: rgba(255,178,44,.06); }
.client-section { padding-top: 38px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: clamp(23px,3vw,28px); font-weight: 600; line-height: 1.25; letter-spacing: -.018em; }
.client-kind { color: var(--muted); font-size: 12px; }
.steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; margin-bottom: 13px; padding-left: 42px; color: var(--ink-2); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,178,44,.38); border-radius: 50%; color: var(--accent); font-size: 12px; font-weight: 650; }
.small-note { color: var(--muted); font-size: 14px; line-height: 1.65; }
.code-card { margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.code-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 6px 8px 6px 19px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.copy-small { flex: none; min-height: 40px; min-width: 67px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 650; transition: border-color .2s, color .2s, background .2s; }
.copy-small:hover { border-color: var(--accent); background: rgba(255,178,44,.04); }
.copy-small.is-copied { border-color: var(--accent); color: var(--accent); }
.code-card pre { margin: 0; padding: 19px 20px 22px; overflow-x: auto; }
.code-card pre:focus-visible { outline-offset: -3px; }
.code-card pre code { padding: 0; background: none; font-size: 13px; line-height: 1.75; white-space: pre; overflow-wrap: normal; }
.code-card--wrap pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.note { margin-top: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.note p { margin: 0; font-size: 15px; }
.questions { margin-top: 51px; padding-top: 38px; border-top: 1px solid var(--line); }
.questions .eyebrow { margin-bottom: 14px; color: var(--accent); }
.questions h2 { margin-bottom: 12px; }
.questions > p:not(.eyebrow) { margin-bottom: 23px; }
.question-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.question-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 12px 12px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); font-size: 15px; line-height: 1.55; }
.public-note { display: flex; gap: 16px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.note-mark { color: var(--accent); font-size: 24px; line-height: 1.1; }
.public-note h2 { margin-bottom: 8px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.public-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.page-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding: 24px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-footer a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; }
.page-footer a:hover { color: var(--accent); }
.copy-feedback { position: fixed; z-index: 5; bottom: 22px; left: 50%; width: max-content; max-width: calc(100vw - 40px); margin: 0; padding: 12px 20px; border: 1px solid rgba(255,178,44,.38); border-radius: 14px; color: var(--ink); background: #17141a; box-shadow: 0 8px 32px rgba(0,0,0,.4); font-size: 14px; line-height: 1.5; transform: translateX(-50%); }
.copy-feedback:empty { padding: 0; border: 0; }

@media (max-width: 560px) {
  .page-header { margin-bottom: 48px; }
  .page-label { font-size: 11px; }
  .connect-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .server-address code { font-size: 12px; }
  .copy-primary { min-height: 44px; }
  .connection-meta { gap: 6px 12px; font-size: 11px; }
  .client-nav { margin-top: 32px; }
  .client-pills { gap: 7px; }
  .client-pills a { padding: 0 14px; }
  .client-section { padding-top: 33px; }
  .client-section > p, .steps li { font-size: 16px; }
  .client-section .small-note { font-size: 14px; }
  .code-card pre { padding-inline: 16px; }
  .code-card pre code { font-size: 12px; }
  .question-list li { padding-left: 15px; gap: 12px; }
  .page-footer { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
