:root {
  --paper: #ffffff;
  --paper-2: #f7f7f7;
  --paper-3: #ececec;
  --ink: #171717;
  --soft-ink: #4e4e4e;
  --quiet-ink: #7a7a7a;
  --rule: #1f1f1f;
  --rule-soft: #d8d8d8;
  --accent: #e45f22;
  --accent-2: #e45f22;
  --green: #16794a;
  --red: #bd342d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
  --font: Georgia, "Times New Roman", Times, ui-serif, serif;
  --heading-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-color: rgba(228, 95, 34, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  min-height: 50px;
  padding: 12px clamp(14px, 3vw, 32px) 10px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand { white-space: nowrap; }

.brand strong {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1;
}

.brand-xo {
  font-weight: 260;
}

.brand-bit {
  font-weight: 900;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.3vw, 34px);
  overflow-x: auto;
}

.topnav a {
  min-height: 28px;
  padding: 7px 0 6px;
  border-bottom: 2px solid transparent;
  color: var(--soft-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover,
.topnav a.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

.back-link,
.button-link {
  min-height: 31px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--soft-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.back-link:hover,
.button-link:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 0 72px;
}

section {
  margin-top: clamp(38px, 6vw, 74px);
}

.hero,
.page-hero {
  margin-top: 0;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.panel,
.card,
.reference-card,
.visual-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
}

.intro,
.page-hero {
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.52fr);
  column-gap: clamp(24px, 5vw, 64px);
  row-gap: 14px;
  align-items: start;
}

.intro-main {
  min-width: 0;
}

.intro-side {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.intro-bottom-note {
  width: 100%;
  margin-top: 4px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading-font);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 16ch;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 760;
}

.hero h1 {
  font-weight: 640;
}

.hero-brand {
  white-space: nowrap;
}

.hero-brand-xo {
  font-weight: 460;
}

.hero-brand-bit {
  font-weight: 950;
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(38px, 5vw, 68px);
}

h2 {
  display: grid;
  grid-template-columns: auto minmax(48px, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(29px, 4vw, 52px);
}

h2::after {
  content: "";
  height: 1px;
  background: var(--rule);
  transform: translateY(-0.28em);
}

h3 { font-size: 18px; }

p {
  color: var(--soft-ink);
  line-height: 1.62;
}

.lead {
  max-width: 66ch;
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.42;
}

.byline,
.fine-print {
  color: var(--quiet-ink);
  font-size: 13px;
}

.feature-list {
  display: grid;
  gap: 8px;
  max-width: 74ch;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 0;
}

.hero-actions .button-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0 9px;
  border-bottom-width: 2px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

.signal-qr-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 84px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.signal-qr-link:hover {
  background: transparent;
  text-decoration: none;
}

.signal-qr {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  border-radius: 0;
  background: #ffffff;
  color: #000000;
}

.signal-qr canvas {
  display: block;
  width: 82px;
  height: 82px;
  image-rendering: pixelated;
}

.grid,
.two-grid,
.reference-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.reference-card {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease;
}

.card:has(> .material-symbols-rounded),
.reference-card:has(> .material-symbols-rounded) {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}

.card:has(> .material-symbols-rounded) > :not(.material-symbols-rounded),
.reference-card:has(> .material-symbols-rounded) > :not(.material-symbols-rounded) {
  grid-column: 2;
}

a.card:hover,
a.reference-card:hover {
  color: inherit;
  background: var(--paper-2);
  font-weight: inherit;
  text-decoration: none;
}

.card .material-symbols-rounded,
.reference-card .material-symbols-rounded {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--ink);
  font-weight: 300;
  font-size: 62px;
  line-height: 1;
}

.card strong,
.reference-card strong {
  display: block;
  margin-top: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.card p,
.reference-card p {
  margin: 8px 0 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.48;
}

.card ul,
.notes,
.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.steps {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}

.steps li {
  counter-increment: step;
  position: relative;
  display: block;
  min-height: 54px;
  padding: 16px 0 16px 64px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--soft-ink);
  background: transparent;
  line-height: 1.55;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
}

.steps li strong {
  color: var(--ink);
}

.card li,
.notes li,
.check-list li {
  border-left: 2px solid var(--rule);
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper-2);
}

.section-copy {
  max-width: 60ch;
  color: var(--soft-ink);
  font-size: 18px;
}

.support-note {
  max-width: 72ch;
  margin-top: 18px;
  color: var(--soft-ink);
  font-size: 15px;
}

.info-box,
.callout {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: var(--paper);
}

.info-box strong,
.callout strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
}

.info-box p,
.callout p {
  max-width: none;
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.5;
}

.info-box p + p,
.callout p + p {
  margin-top: 10px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.visual-card {
  margin: 0;
  overflow: hidden;
}

.visual-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #000000;
  cursor: zoom-in;
}

.visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: saturate(0.9) contrast(0.98);
}

.visual-card figcaption {
  min-height: 74px;
  padding: 11px 12px;
  border-top: 1px solid var(--rule);
  color: var(--soft-ink);
  background: var(--paper-2);
  font-size: 12px;
  line-height: 1.45;
}

.code,
pre {
  max-width: 100%;
  padding: 14px;
  overflow: auto;
  overflow-wrap: anywhere;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--paper-2);
  background: #151515;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.code-copy-wrap {
  position: relative;
}

.code-copy-wrap pre {
  padding-right: 48px;
}

.code-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.code-copy-button:hover,
.code-copy-button.is-copied {
  background: rgba(255, 255, 255, 0.16);
}

.code-copy-button .material-symbols-rounded {
  font-size: 18px;
}

.inline-code,
code {
  padding: 1px 5px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-2);
}

.split-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.walkthrough-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.walkthrough-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
}

.walkthrough-step:first-child {
  border-top-color: var(--rule);
}

.walkthrough-copy {
  position: relative;
  min-width: 0;
  padding-left: 54px;
}

.walkthrough-number {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.walkthrough-copy h3 {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 34px);
}

.walkthrough-copy p {
  max-width: 52ch;
  margin: 10px 0 0;
}

.walkthrough-image {
  justify-self: end;
  width: 100%;
  max-width: 260px;
  min-width: 0;
}

.image-focus-card {
  margin: 0;
}

.image-focus-button {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #050505;
  color: inherit;
  cursor: zoom-in;
}

.image-focus-button img {
  position: absolute;
  left: calc(-1% * var(--crop-x, 0) * 100 / var(--crop-w, 100));
  top: calc(-1% * var(--crop-y, 0) * 100 / var(--crop-h, 100));
  width: calc(100% * 100 / var(--crop-w, 100));
  height: calc(100% * 100 / var(--crop-h, 100));
  max-width: none;
  object-fit: cover;
}

.image-focus-card figcaption {
  margin-top: 8px;
  max-width: 260px;
  color: var(--quiet-ink);
  font-size: 12px;
  line-height: 1.45;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  border: 1px dashed var(--rule-soft);
  border-radius: 6px;
  background: var(--paper-2);
}

.log-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.log-tools {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.log-search {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 460px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
}

.log-search .material-symbols-rounded {
  color: var(--quiet-ink);
  font-size: 21px;
}

.log-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.log-entry {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
}

.log-entry header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--quiet-ink);
  font-family: var(--mono);
  font-size: 12px;
}

.log-entry h3 {
  margin: 0;
}

.log-entry p {
  max-width: 76ch;
  margin: 9px 0 0;
}

.log-tag {
  padding: 4px 7px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-2);
}

.log-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.log-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper-2);
  cursor: pointer;
}

.log-icon:hover,
.log-icon.is-active {
  background: var(--paper-3);
}

.log-icon .material-symbols-rounded {
  font-size: 20px;
}

table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--soft-ink);
  font-size: 13px;
  background: var(--paper);
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

th {
  color: var(--ink);
  background: var(--paper-3);
}

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--quiet-ink);
  font-size: 12px;
}

.image-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(12, 12, 12, 0.72);
}

.image-popup.is-open { display: flex; }

.image-popup-frame {
  width: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.image-popup-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}

.image-popup-title {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-popup-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.image-popup-close:hover { background: var(--paper-3); }

.image-popup-body {
  display: block;
  line-height: 0;
  background: #080808;
}

.image-popup-image-wrap {
  position: relative;
  display: inline-block;
  max-width: calc(100vw - 34px);
  max-height: calc(100dvh - 112px);
}

.image-popup-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 34px);
  max-height: calc(100dvh - 112px);
  object-fit: contain;
}

.image-popup-marker {
  position: absolute;
  border: 3px solid var(--accent);
  border-radius: 5px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.image-popup-note {
  position: absolute;
  max-width: min(360px, 44vw);
  padding: 10px 12px;
  color: #ffffff;
  background: var(--accent);
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transform: translateY(8px);
  pointer-events: none;
}

@media (max-width: 980px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro-side {
    grid-column: 1;
    grid-row: auto;
    align-items: flex-start;
  }

  .intro .info-box {
    width: 100%;
    min-width: 0;
  }

  .reference-grid,
  .two-grid,
  .visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .walkthrough-step {
    grid-template-columns: 1fr;
  }

  .walkthrough-copy {
    padding-left: 44px;
  }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; }

  .topnav {
    grid-column: 1 / -1;
    justify-content: start;
  }

  main {
    width: min(100% - 24px, 1180px);
    padding-bottom: 52px;
  }

  .reference-grid,
  .two-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding-left: 46px;
  }
}

@media (max-width: 560px) {
  .intro,
  .page-hero { padding: 16px; }

  h1 {
    font-size: clamp(36px, 12vw, 58px);
  }
}
