@font-face {
  font-family: Inter;
  src: url('../site/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../site/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --stage: #050506;
  --surface: #101013;
  --line: #29292e;
  --text: #f4f4f6;
  --body: #d9d8df;
  --muted: #a4a4ad;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration-color: #75757e; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 2px; }
p, li, dd, td { color: var(--body); }
p, ul, ol, dl { margin: 0 0 16px; }
ul, ol { padding-left: 23px; }
li { margin: 6px 0; }
strong, dt { font-weight: 650; }
code { font: .86em/1.5 var(--mono); background: #ffffff10; padding: .08em .32em; border-radius: 4px; }
.muted { color: var(--muted); }

.top, .layout, footer { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
.top, footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.top { padding-block: 22px; }
.brand, .top nav { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 650; letter-spacing: -.025em; text-decoration: none; }
.brand img { border-radius: 9px; }
.top nav { gap: 24px; font-size: 13px; }
.top nav a { text-decoration: none; }
.download { background: #fff; color: #101013; border-radius: 100px; padding: 10px 17px; font-weight: 650; white-space: nowrap; }
.download:hover { background: #e5e5e9; }

.layout {
  display: grid;
  grid-template: 'toc hero' auto 'toc content' auto / 210px minmax(0, 780px);
  column-gap: 64px;
}
.hero { grid-area: hero; padding: 66px 0 48px; }
h1 { font-size: clamp(46px, 6vw, 76px); line-height: 1; letter-spacing: -.055em; font-weight: 620; color: var(--muted); margin: 0 0 22px; }
h1 em { font-style: normal; color: var(--text); }
.lede { max-width: 37em; color: var(--body); font-size: clamp(17px, 2vw, 20px); margin: 0 0 29px; }
.setup-path { padding-left: 1.6em; }
.setup-path li { padding-left: .3em; }
.app-example { margin: 24px 0; }
.app-example img { display: block; width: min(100%, 250px); height: auto; aspect-ratio: 390 / 844; border: 1px solid var(--line); border-radius: 16px; }
.app-example figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.toc { grid-area: toc; position: sticky; top: 24px; margin-top: 74px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
.toc h2 { margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 10px 4px 14px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); text-decoration: none; }
.toc a:focus-visible { outline-offset: -2px; }
.toc a:hover, .toc a[aria-current] { color: var(--text); }
.toc a[aria-current] { border-left-color: var(--text); background: #ffffff09; }
.toc-toggle { display: none; }

article { grid-area: content; min-width: 0; }
section { border-top: 1px solid var(--line); padding: 38px 0 31px; }
h2 { margin: 0 0 16px; font-size: clamp(25px, 3vw, 34px); font-weight: 570; line-height: 1.15; letter-spacing: -.035em; }
h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
h3 .muted { font-size: 13px; font-weight: 500; }

fieldset, details { min-inline-size: 0; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; }
fieldset { padding: 11px 14px 14px; }
legend { padding: 0 6px; font-size: 13px; font-weight: 620; }
.progress label, .network-picker label { cursor: pointer; }
.progress label { display: inline-flex; align-items: center; gap: 7px; margin: 4px 14px 4px 0; color: var(--body); font-size: 13px; }
input { accent-color: var(--text); }
.network-picker div { display: flex; flex-wrap: wrap; gap: 8px; }
.network-picker label { display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 14px; }
.network-picker label:has(:checked) { background: var(--surface); border-color: #85858f; }
details { padding: 0 14px; }
details[open] { padding-bottom: 5px; }
summary { cursor: pointer; font-weight: 620; padding: 12px 0; }

.command, .output { background: #0b0b0e; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0 17px; }
.command > span { display: block; padding: 7px 13px; font-size: 12px; font-weight: 570; color: var(--muted); border-bottom: 1px solid var(--line); }
.command:has(button) > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
pre { margin: 0; padding: 11px 13px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.65 var(--mono); color: var(--text); }
.output pre { color: var(--muted); }
.copy {
  padding: 4px 9px;
  min-height: 30px;
  border: 1px solid #3b3b42;
  border-radius: 6px;
  background: #ffffff0d;
  color: var(--text);
  font: 600 12px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.copy:hover { background: #ffffff19; }

.split { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; }
.split > div { flex: 1 1 260px; }
.qr { background: #fff; color: #303036; border-radius: 12px; margin: 0 0 10px; padding: 12px; text-align: center; font-size: 12px; }
.qr img { display: block; margin-bottom: 5px; }

.checks, .locations { margin-bottom: 0; }
.checks > div, .locations > div { border-top: 1px solid var(--line); padding: 12px 0; }
.checks dd, .locations dd { margin: 5px 0 0; }
.checks dd > :last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th:first-child { width: 31%; font-weight: 620; }
thead { background: var(--surface); }
footer { margin-top: 12px; padding-block: 22px 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .layout { grid-template: 'hero' auto 'toc' auto 'content' auto / minmax(0, 1fr); }
  .hero { padding: 38px 0 25px; }
  .toc { position: static; max-height: none; margin: 0 0 24px; overflow: visible; }
  .toc ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .top, .layout, footer { padding-inline: 18px; }
  .top { padding-block: 15px; }
  .top nav a:first-child { display: none; }
  .hero { padding-top: 28px; }
  .toc.is-enhanced h2 span { display: none; }
  .toc.is-enhanced .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: 620 13px Inter, system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
  }
  .toc-toggle::after { content: '+' / ''; }
  .toc-toggle[aria-expanded='true']::after { content: '−' / ''; }
  .toc.is-enhanced h2:has([aria-expanded='false']) + ol { display: none; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { padding-inline: 9px 4px; }
  section { padding: 28px 0 21px; }
  th, td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
