:root {
  color-scheme: dark;
  --bg: #090c0a;
  --surface: #111713;
  --surface-2: #18201b;
  --surface-3: #202a23;
  --text: #f4f7f4;
  --muted: #b1bcb4;
  --quiet: #87938a;
  --line: #303c33;
  --line-strong: #465448;
  --accent: #82efad;
  --accent-strong: #5cda8d;
  --accent-ink: #07120b;
  --warm: #f1aa6d;
  --danger: #ff9d86;
  --code-bg: #050806;
  --shell: 76rem;
  --docs-shell: 84rem;
  --radius: 12px;
  --z-sticky: 20;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scrollbar-color: var(--line-strong) var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-thickness: .08em;
}

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

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

p,
ul,
ol,
dl,
figure,
pre,
table {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

p,
li,
dd {
  text-wrap: pretty;
}

code,
pre,
.file-tree,
.map-command {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

code {
  padding: .12em .35em;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--accent);
  font-size: .9em;
  overflow-wrap: anywhere;
}

.shell {
  width: min(var(--shell), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: calc(var(--z-sticky) + 1);
  padding: .65rem .9rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: #090c0af5;
}

.header-inner {
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand-avatar {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  padding: .08rem;
  border: 1px solid #b6ffd0;
  border-radius: 7px;
  background: var(--accent);
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.8rem);
}

.top-nav a {
  position: relative;
  padding-block: .45rem;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--text);
}

.top-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -.78rem;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.button:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button.secondary:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.text-link,
.section-link {
  color: var(--accent);
  font-weight: 720;
}

.home-page {
  background:
    radial-gradient(circle at 78% 12%, rgb(130 239 173 / 7%), transparent 24rem),
    var(--bg);
}

.home-hero {
  display: grid;
  min-height: min(48rem, calc(100svh - 4.4rem));
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .9fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.hero-copy {
  max-width: 43rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.15rem;
  color: var(--accent);
  font-weight: 760;
}

.hero-kicker::before {
  width: 2.25rem;
  height: 2px;
  background: var(--accent);
  content: "";
}

.home-hero h1 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
}

.hero-lede {
  max-width: 61ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.75rem;
  margin: 0;
  padding: 0;
  color: var(--quiet);
  font-size: .88rem;
  list-style: none;
}

.hero-facts li {
  position: relative;
}

.hero-facts li:not(:last-child)::after {
  position: absolute;
  top: .75em;
  right: -.95rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.command-window {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--code-bg);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 28%);
}

.command-window-bar {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent);
}

.live-indicator span {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

.command-window pre {
  min-height: 22rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: auto;
  background: transparent;
  color: var(--text);
  tab-size: 2;
  font-size: clamp(.78rem, 1.25vw, .92rem);
  line-height: 1.75;
}

.command-window code,
pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.command-window .prompt {
  color: var(--warm);
}

.command-window .success {
  color: var(--accent);
}

.command-window .muted-code {
  color: var(--quiet);
}

.command-window figcaption {
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

.signal-band {
  border-block: 1px solid #b6ffd0;
  background: var(--accent);
  color: var(--accent-ink);
}

.signal-list {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: .9rem;
  font-weight: 800;
}

.home-section {
  padding-block: clamp(5.5rem, 11vw, 9rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .62fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.wide-heading h2 {
  max-width: 15ch;
}

.framework-rail {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
}

.framework-rail span {
  flex: 1 0 8.2rem;
  padding: 1.25rem .75rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 760;
  text-align: center;
}

.framework-rail span + span {
  border-left: 1px solid var(--line);
}

.runtime-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-block: 3.5rem 2rem;
}

.runtime-map > div {
  padding-top: 1.25rem;
  border-top: 3px solid var(--line-strong);
}

.runtime-map > div:first-child {
  border-color: var(--warm);
}

.runtime-map > div:nth-child(2) {
  border-color: var(--accent);
}

.runtime-map > div:last-child {
  border-color: var(--text);
}

.map-command {
  display: inline-block;
  margin-bottom: .9rem;
  color: var(--accent);
  font-size: .78rem;
}

.runtime-map strong {
  display: block;
  margin-bottom: .6rem;
  font-size: 1.12rem;
}

.runtime-map p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-split-section {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, .8fr);
  align-items: center;
  gap: clamp(3rem, 10vw, 8rem);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.split-copy h2 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
}

.split-copy p {
  max-width: 60ch;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.file-tree {
  margin: 0;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-size: clamp(.78rem, 1.4vw, .94rem);
}

.file-tree p {
  margin-bottom: .72rem;
  white-space: nowrap;
}

.file-tree p:last-child {
  margin-bottom: 0;
}

.file-tree > p:first-child span {
  color: var(--warm);
  font-weight: 750;
}

.file-tree .tree-indent {
  padding-left: 1.25rem;
}

.file-tree em {
  float: right;
  margin-left: 1rem;
  color: var(--accent);
  font-style: normal;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 8vw, 7rem);
}

.capability-list article {
  padding-block: 2rem;
  border-top: 1px solid var(--line-strong);
}

.capability-list h3 {
  margin-bottom: .75rem;
}

.capability-list p {
  max-width: 52ch;
  margin-bottom: 1rem;
  color: var(--muted);
}

.capability-list a {
  color: var(--accent);
  font-weight: 700;
}

.boundary-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: clamp(5rem, 10vw, 8rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--warm);
  border-radius: var(--radius);
  background: #17120e;
}

.boundary-section h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.boundary-section > div,
.boundary-section .button {
  position: relative;
  z-index: 1;
}

.boundary-section p {
  max-width: 68ch;
  margin-bottom: 0;
  color: #d8c2b1;
}

.boundary-section .button {
  flex: 0 0 auto;
  margin-right: 7.5rem;
  border-color: var(--warm);
  color: var(--warm);
}

.boundary-section .button:hover {
  border-color: var(--warm);
  background: var(--warm);
  color: #160b04;
}

.boundary-forkbird {
  position: absolute;
  right: -2.2rem;
  bottom: -4.8rem;
  width: 12rem;
  height: auto;
  pointer-events: none;
  transform: rotate(-7deg);
}

.final-cta {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(6rem, 12vw, 10rem);
  text-align: center;
}

.final-cta > p {
  margin-bottom: .8rem;
  color: var(--accent);
  font-weight: 700;
}

.final-cta h2 {
  margin-bottom: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: 3.5rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-grid p {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--muted);
}

.footer-grid nav,
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}

.footer-grid strong {
  margin-bottom: .35rem;
  color: var(--text);
}

.footer-grid nav a,
.footer-meta span {
  color: var(--muted);
  font-size: .9rem;
}

/* Documentation */

.docs-page {
  background: #0b0f0c;
}

.docs-shell {
  width: min(var(--docs-shell), calc(100% - 2.5rem));
}

.docs-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 48rem);
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(6rem, 10vw, 9rem);
}

.docs-sidebar {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.docs-sidebar-title {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.docs-forkbird {
  display: flex;
  height: 5.5rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.docs-forkbird img {
  width: 7.5rem;
  height: auto;
  opacity: .9;
  pointer-events: none;
  transform: translateY(.85rem) rotate(-5deg);
}

.docs-nav,
.docs-nav-group {
  display: flex;
  flex-direction: column;
}

.docs-nav {
  gap: 1.5rem;
}

.docs-nav-group {
  gap: .2rem;
}

.docs-nav-group strong {
  margin-bottom: .35rem;
  color: var(--quiet);
  font-size: .78rem;
  font-weight: 720;
}

.docs-nav a {
  padding: .42rem .65rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: none;
}

.docs-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.docs-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 760;
}

.docs-mobile-menu {
  display: none;
}

.docs-content {
  min-width: 0;
}

.docs-intro {
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  color: var(--quiet);
  font-size: .85rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: .35rem;
  color: var(--line-strong);
  content: "/";
}

.breadcrumbs a {
  color: var(--accent);
}

.docs-intro h1 {
  max-width: 14ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.docs-intro > p {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.doc-section {
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.doc-section h2,
.doc-callout h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
}

.doc-section h3 {
  margin-bottom: .65rem;
}

.doc-section > p,
.doc-section > ul,
.doc-section > ol {
  max-width: 70ch;
}

.doc-section p,
.doc-section li,
.doc-callout p {
  color: var(--muted);
}

.doc-section p:last-child,
.doc-callout p:last-child {
  margin-bottom: 0;
}

.docs-content pre {
  margin-block: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--code-bg);
  color: #dce9df;
  font-size: .87rem;
  line-height: 1.7;
  tab-size: 2;
}

.code-caption {
  margin-top: -1rem;
  color: var(--quiet) !important;
  font-size: .88rem;
}

.path-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.path-choices article {
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

.path-choices article:first-child {
  border-color: var(--accent);
}

.path-choices p {
  color: var(--muted);
}

.path-choices a {
  color: var(--accent);
  font-weight: 700;
}

.doc-map,
.reference-list {
  margin-bottom: 0;
}

.doc-map > div,
.reference-list > div {
  display: grid;
  grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.doc-map > div:last-child,
.reference-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-map dt,
.reference-list dt {
  font-weight: 750;
}

.doc-map dt a {
  color: var(--accent);
}

.doc-map dd,
.reference-list dd {
  margin: 0;
  color: var(--muted);
}

.doc-callout {
  margin-block: 3rem;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: #0d1b12;
}

.doc-callout.warning {
  border-color: var(--warm);
  background: #19130e;
}

.doc-callout.warning p {
  color: #d9c5b5;
}

.doc-note {
  margin-block: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.doc-note strong {
  color: var(--text);
}

.table-wrap {
  max-width: 100%;
  margin-block: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: .92rem;
}

th,
td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-size: .8rem;
  font-weight: 760;
}

td {
  color: var(--muted);
}

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

.command-table td:first-child {
  width: 9rem;
}

.check-list {
  padding-left: 1.35rem;
}

.check-list li {
  margin-bottom: .65rem;
  padding-left: .35rem;
}

.check-list li::marker {
  color: var(--accent);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps > li {
  position: relative;
  padding: 0 0 3.5rem 3.7rem;
  counter-increment: steps;
}

.steps > li:last-child {
  padding-bottom: 0;
}

.steps > li::before {
  position: absolute;
  top: -.35rem;
  left: 0;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  content: counter(steps);
  font-weight: 850;
}

.steps > li:not(:last-child)::after {
  position: absolute;
  top: 2.4rem;
  bottom: .6rem;
  left: 1.17rem;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.steps pre {
  margin-top: 1rem;
}

.compact-steps > li {
  padding-bottom: 2.5rem;
}

.security-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-checklist li {
  display: grid;
  grid-template-columns: minmax(12rem, .85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.security-checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.security-checklist strong {
  color: var(--text);
}

.security-checklist span {
  color: var(--muted);
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 3rem;
}

.docs-pagination a {
  display: flex;
  min-height: 5.5rem;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.docs-pagination a:last-child {
  align-items: flex-end;
  text-align: right;
}

.docs-pagination a:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.docs-pagination small {
  display: block;
  margin-bottom: .25rem;
  color: var(--quiet);
  font-weight: 600;
}

/* Dynamic demo and error pages */

.article-shell {
  max-width: 52rem;
  padding-block: clamp(5rem, 12vw, 9rem);
}

.route-demo-shell {
  max-width: 68rem;
}

.article-shell h1 {
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.eyebrow,
.panel-kicker {
  margin-bottom: .8rem;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 760;
}

.panel-kicker {
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.route-demo-intro {
  max-width: 56rem;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.route-trace {
  margin-block: 2rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--code-bg);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 20%);
}

.route-trace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
}

.route-trace-header .panel-kicker,
.query-panel-heading .panel-kicker,
.route-examples .panel-kicker {
  margin-bottom: .35rem;
}

.route-trace h2,
.query-panel h2,
.route-examples h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.route-trace-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
  padding: .42rem .65rem;
  border: 1px solid #2d6542;
  border-radius: 999px;
  background: #0d1b12;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.route-trace-status span {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(130 239 173 / 12%);
}

.route-trace-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.route-trace-list div {
  display: grid;
  grid-template-columns: minmax(8rem, .35fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.route-trace-list div:last-child {
  border-bottom: 0;
}

.route-trace-list dt {
  color: var(--quiet);
  font-size: .86rem;
  font-weight: 720;
}

.route-trace-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.route-trace-list code {
  padding: 0;
  background: transparent;
}

.query-panel {
  margin-block: clamp(3rem, 8vw, 5rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.query-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.query-panel-heading > p {
  max-width: 28ch;
  margin-bottom: .15rem;
  color: var(--quiet);
  font-size: .88rem;
  text-align: right;
}

.query-panel .table-wrap {
  margin-block: 1.5rem 0;
  background: var(--code-bg);
}

.query-panel tbody th {
  width: 32%;
  border-bottom: 1px solid var(--line);
  background: transparent;
  vertical-align: top;
}

.query-panel tbody tr:last-child th,
.query-panel tbody tr:last-child td {
  border-bottom: 0;
}

.query-values {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.query-values code {
  display: block;
}

.route-examples {
  margin-block: clamp(3rem, 8vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.route-examples > p:not(.panel-kicker, .route-query-example) {
  max-width: 58ch;
  margin-top: 1rem;
  color: var(--muted);
}

.slug-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-block: 1.5rem;
}

.slug-chips a {
  padding: .55rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
}

.slug-chips a:hover,
.slug-chips a[aria-current="page"] {
  border-color: var(--accent);
  background: #0d1b12;
  color: var(--accent);
}

.slug-chips code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.route-query-example {
  margin-bottom: 0;
  color: var(--quiet);
  font-size: .9rem;
}

.route-query-example a {
  color: var(--accent);
  font-weight: 700;
}

.route-demo-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Not found */

.not-found-page {
  background: #0b0f0c;
}

.not-found-shell {
  display: grid;
  min-height: calc(100vh - 4.4rem);
  grid-template-columns: minmax(0, 1fr) minmax(24rem, .85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.not-found-copy {
  position: relative;
  z-index: 1;
}

.error-code {
  margin-bottom: 1rem;
  color: var(--warm);
  font-weight: 780;
}

.not-found-copy h1 {
  max-width: 9ch;
  margin-bottom: 1.5rem;
}

.not-found-lede {
  max-width: 54ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.missing-path {
  white-space: normal;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.5rem;
}

.not-found-note {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--quiet);
  font-size: .9rem;
}

.not-found-figure {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

.not-found-figure::before {
  position: absolute;
  top: 10%;
  right: 5%;
  bottom: 12%;
  left: 5%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.not-found-figure img {
  position: relative;
  width: min(34rem, 100%);
  height: auto;
}

.not-found-figure figcaption {
  position: relative;
  max-width: 32ch;
  margin-top: -.5rem;
  color: var(--quiet);
  font-size: .84rem;
  text-align: center;
}

@media (max-width: 70rem) {
  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 52rem;
  }

  .home-hero h1 {
    max-width: 12ch;
  }

  .command-window {
    max-width: 45rem;
  }

  .command-window pre {
    min-height: 0;
  }

  .not-found-shell {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, .75fr);
  }
}

@media (max-width: 58rem) {
  .signal-list {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 1rem;
  }

  .section-heading,
  .home-split {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .runtime-map {
    grid-template-columns: 1fr;
  }

  .home-split {
    gap: 3rem;
  }

  .file-tree {
    max-width: 38rem;
  }

  .boundary-section {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 8rem;
  }

  .boundary-section .button {
    margin-right: 0;
  }

  .boundary-forkbird {
    right: .5rem;
    bottom: -4rem;
    width: 10.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .docs-layout {
    display: block;
    padding-top: 2rem;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-mobile-menu {
    display: block;
    margin-top: 1.25rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
  }

  .docs-mobile-menu summary {
    padding: .8rem 1rem;
    color: var(--text);
    font-weight: 750;
    cursor: pointer;
  }

  .docs-mobile-menu[open] summary {
    border-bottom: 1px solid var(--line);
  }

  .docs-mobile-menu .docs-nav {
    padding: 1rem;
  }

  .not-found-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 4.5rem;
  }

  .not-found-copy h1 {
    max-width: 11ch;
  }

  .not-found-figure {
    max-width: 30rem;
    margin-inline: auto;
  }
}

@media (max-width: 44rem) {
  .shell,
  .docs-shell {
    width: min(100% - 1.5rem, var(--shell));
  }

  .header-inner {
    min-height: 4rem;
    gap: 1rem;
  }

  .brand-avatar {
    width: 1.8rem;
    height: 1.8rem;
  }

  .top-nav {
    gap: .9rem;
  }

  .top-nav a {
    font-size: .88rem;
  }

  .nav-health,
  .top-nav a[href="/notes/hello-rust"] {
    display: none;
  }

  .top-nav a[aria-current="page"]::after {
    bottom: -.63rem;
  }

  .home-hero {
    gap: 3rem;
    padding-block: 4.5rem;
  }

  .home-hero h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-facts li::after {
    display: none;
  }

  .command-window pre {
    font-size: .73rem;
  }

  .signal-list {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.2rem;
  }

  .framework-rail span {
    flex-basis: 50%;
    border-bottom: 1px solid var(--line);
  }

  .framework-rail span:nth-child(odd) {
    border-left: 0;
  }

  .framework-rail span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .file-tree {
    overflow-x: auto;
  }

  .capability-list,
  .path-choices,
  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .docs-intro h1 {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
  }

  .doc-map > div,
  .reference-list > div,
  .security-checklist li {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .steps > li {
    padding-left: 3.2rem;
  }

  .docs-content pre {
    margin-inline: -.15rem;
    font-size: .78rem;
  }

  .docs-pagination span:empty {
    display: none;
  }

  .docs-pagination a:last-child {
    align-items: flex-start;
    text-align: left;
  }

  .route-trace-header,
  .query-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .query-panel-heading > p {
    max-width: none;
    text-align: left;
  }

  .route-trace-list div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .route-demo-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .not-found-shell {
    gap: 2.5rem;
  }

  .not-found-copy h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .not-found-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .not-found-actions .button {
    width: 100%;
  }

  .not-found-figure {
    max-width: 20rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
