/* Aura docs (aura.oneinfer.ai/docs). The landing page's system (DESIGN.md, "Switchboard"): a quiet
   neutral page that follows light or dark, Libre Franklin in sentence case, ink links, 1px hairlines,
   and Aura's own screens in hairline frames labelled as demo data. Code is the one place a second,
   monospaced face appears. */

@font-face {
  font-family: 'Libre Franklin';
  src: url('/landing/fonts/libre-franklin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('/landing/fonts/libre-franklin-italic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #f6f7f8;
  --surface: #ffffff;
  --text: #15181b;
  --text-dim: #59616a;
  --rule: #e2e5e9;
  --rail: #c9ced4;
  --shadow: rgb(16 22 30 / 0.16);
  --button-text: #ffffff;
  --button-hover: #2b3036;
  --lamp: #f2b33d;
  --code-ground: #eef0f2;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ground: #111315;
  --surface: #181b1e;
  --text: #eef0f2;
  --text-dim: #a3abb4;
  --rule: #2a2f35;
  --rail: #3a4047;
  --shadow: rgb(0 0 0 / 0.5);
  --button-text: #111315;
  --button-hover: #ffffff;
  --code-ground: #1f2327;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--lamp);
  color: #15181b;
}
a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 200ms var(--ease);
}
a:hover {
  text-decoration-color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--text);
  color: var(--button-text);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.35em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font: 600 0.75rem/1.5 var(--sans);
  text-align: center;
  color: var(--text-dim);
}

/* ---------- The top rail ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.rail-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
  height: 64px;
  padding: 0 var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 32px;
  width: auto;
}
.logo-dark,
:root[data-theme='dark'] .logo-light {
  display: none;
}
:root[data-theme='dark'] .logo-dark {
  display: block;
}
.brand-docs {
  padding-left: 12px;
  border-left: 1px solid var(--rule);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.search-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
  height: 38px;
  margin-left: clamp(8px, 4vw, 48px);
  padding: 0 10px 0 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  font: 400 0.9375rem/1 var(--sans);
  cursor: pointer;
  transition: border-color 200ms var(--ease);
}
.search-button:hover {
  border-color: var(--rail);
}
.search-button span {
  flex: 1;
  text-align: left;
}
.search-button svg,
.search-form svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  flex-shrink: 0;
}
.rail-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 0.9375rem;
}
.rail-links > a:not(.button-small) {
  color: var(--text-dim);
  text-decoration: none;
}
.rail-links > a:not(.button-small):hover {
  color: var(--text);
}
.button-small {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1.15em;
  border-radius: 10px;
  background: var(--text);
  color: var(--button-text);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}
.button-small:hover {
  background: var(--button-hover);
}
.theme-button,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.theme-button:hover,
.menu-button:hover {
  border-color: var(--rule);
  color: var(--text);
}
/* A half-filled disc: light or dark. */
.theme-button span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.menu-button {
  display: none;
  margin-left: -8px;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.menu-icon {
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-icon::before {
  top: -6px;
}
.menu-icon::after {
  top: 6px;
}
.menu-button[aria-expanded='true'] .menu-icon {
  background: transparent;
}
.menu-button[aria-expanded='true'] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-button[aria-expanded='true'] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Three columns: the docs, the page, what's on it ---------- */

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 220px;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 28px 8px 40px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--rail) transparent;
}
.nav-section + .nav-section {
  margin-top: 22px;
}
.nav-title {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text);
}
.sidebar ul,
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar a {
  display: block;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.sidebar a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.sidebar a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
}

main {
  min-width: 0;
  padding: 44px 0 72px;
}
article {
  max-width: 720px;
}
.toc {
  position: sticky;
  top: 64px;
  align-self: start;
  padding: 44px 0 40px;
  font-size: 0.875rem;
}
.toc-title {
  margin: 0 0 10px;
  font-weight: 650;
  font-size: 0.8125rem;
}
.toc li {
  border-left: 1px solid var(--rule);
}
.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--text-dim);
  line-height: 1.4;
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}
.toc a[aria-current='true'] {
  color: var(--text);
  border-left-color: var(--text);
}

/* ---------- The page's words ---------- */

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.eyebrow a {
  color: var(--text-dim);
  text-decoration: none;
}
.eyebrow a:hover {
  color: var(--text);
}
h1,
h2,
h3,
h4 {
  font-weight: 650;
  text-wrap: balance;
  color: var(--text);
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}
article > .lead + * {
  margin-top: 36px;
}
h2 {
  margin: 56px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
}
h3 {
  margin: 34px 0 0;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h4 {
  margin: 24px 0 0;
  font-size: 1rem;
}
h2 + *,
h3 + *,
h4 + * {
  margin-top: 12px;
}
.anchor {
  float: left;
  margin-left: -1.1em;
  padding-right: 0.3em;
  color: var(--rail);
  text-decoration: none;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}
h2:hover .anchor,
h3:hover .anchor,
.anchor:focus {
  opacity: 1;
}
p,
ul,
ol,
dl {
  margin: 16px 0 0;
  text-wrap: pretty;
}
article p,
article li {
  max-width: 68ch;
}
ul,
ol {
  padding-left: 1.3em;
}
li + li {
  margin-top: 6px;
}
li > ul,
li > ol {
  margin-top: 6px;
}
li::marker {
  color: var(--text-dim);
}
strong {
  font-weight: 650;
}
article code {
  padding: 0.12em 0.36em;
  border-radius: 5px;
  background: var(--code-ground);
  font: 0.875em/1.4 var(--mono);
}
hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* Numbered steps: a hairline rail with each number on it. */
article ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
article ol > li {
  position: relative;
  counter-increment: step;
  padding-left: 40px;
  min-height: 28px;
}
article ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
article ol > li + li {
  margin-top: 12px;
}

/* ---------- Screenshots, code, tables, notes ---------- */

.shot {
  margin: 28px 0 0;
}
.shot figcaption {
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dim);
}
.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 18px 40px -22px var(--shadow);
  background: var(--surface);
}
.shot + p,
.shot + ul,
.shot + ol {
  margin-top: 24px;
}

.code {
  position: relative;
  margin: 20px 0 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font: 0.84375rem/1.6 var(--mono);
  tab-size: 2;
}
.code-lang {
  position: absolute;
  left: 18px;
  top: -0.7em;
  padding: 0 6px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}
.copy {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
  font: 600 0.75rem/1 var(--sans);
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms var(--ease), color 160ms var(--ease);
}
.code:hover .copy,
.copy:focus-visible,
.copy[data-done] {
  opacity: 1;
}
.copy:hover {
  color: var(--text);
}

.table {
  margin: 20px 0 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--rule);
}
thead th {
  border-top: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-dim);
}
td:first-child {
  font-weight: 600;
}

.callout {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--text);
  border-radius: 10px;
  background: var(--surface);
}
.callout-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 650;
}
.callout p:not(.callout-title) {
  margin-top: 4px;
}
.callout-tip {
  border-left-color: var(--rail);
}
blockquote {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
  color: var(--text-dim);
}

/* Cards on the docs home: a ruled list of where to go. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
}
.cards li {
  margin: 0;
  max-width: none;
  background: var(--surface);
}
.cards a {
  display: block;
  height: 100%;
  padding: 18px 20px 20px;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}
.cards a:hover {
  background: color-mix(in srgb, var(--text) 3%, var(--surface));
}
.cards strong {
  display: block;
  font-size: 1.0625rem;
}
.cards span {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ---------- Previous / next, and the foot ---------- */

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin-top: 64px;
}
.pager a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms var(--ease);
}
.pager a:hover {
  border-color: var(--rail);
}
.pager a span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-dim);
}
.pager-next {
  grid-column: 2;
  text-align: right;
}
.page-foot {
  max-width: 720px;
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.page-foot a {
  color: var(--text-dim);
}
.site-foot {
  border-top: 1px solid var(--rule);
}
.site-foot-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.site-foot-inner p {
  margin: 4px 0 0;
}
.site-foot a {
  color: var(--text-dim);
}

/* ---------- Search ---------- */

.search {
  width: min(640px, calc(100vw - 32px));
  max-height: min(70vh, 640px);
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 48px -24px var(--shadow);
}
.search::backdrop {
  background: rgb(17 19 21 / 0.35);
}
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.search-form input {
  flex: 1;
  height: 54px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 400 1.0625rem var(--sans);
  outline: none;
}
.search-form input::-webkit-search-cancel-button {
  display: none;
}
.search-close {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font: 600 0.75rem var(--sans);
  cursor: pointer;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: calc(min(70vh, 640px) - 56px);
  overflow-y: auto;
}
.search-results li {
  margin: 0;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.search-results a:hover,
.search-results a[aria-selected='true'] {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.search-results strong {
  display: block;
  font-size: 0.9375rem;
}
.search-results span {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.search-results .search-in {
  display: inline;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
}
.search-results mark {
  background: transparent;
  color: var(--text);
  font-weight: 650;
}
.search-empty {
  padding: 18px 12px;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
@media (max-width: 860px) {
  .layout {
    display: block;
  }
  .menu-button {
    display: inline-flex;
  }
  .sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    z-index: 15;
    max-height: none;
    padding: 20px var(--gutter) 48px;
    background: var(--ground);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 240ms var(--ease), visibility 240ms;
  }
  .sidebar[data-open] {
    transform: none;
    visibility: visible;
  }
  .search-button {
    width: 38px;
    margin-left: auto;
    padding: 0;
    justify-content: center;
  }
  .search-button span,
  .search-button kbd {
    display: none;
  }
  .rail-links {
    margin-left: 0;
    gap: 6px;
  }
  .rail-links > a:not(.button-small) {
    display: none;
  }
  .brand-docs {
    padding-left: 10px;
  }
  main {
    padding-top: 28px;
  }
}
@media (max-width: 520px) {
  .rail-inner {
    gap: 10px;
  }
  .brand img {
    height: 26px;
  }
  .brand {
    gap: 9px;
  }
  .brand-docs {
    padding-left: 9px;
    font-size: 1rem;
  }
  .button-small {
    height: 36px;
    padding: 0 0.85em;
    font-size: 0.875rem;
  }
  .theme-button {
    display: none;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager-next {
    grid-column: 1;
  }
  h2 {
    margin-top: 44px;
    padding-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
@media print {
  .rail,
  .sidebar,
  .toc,
  .pager,
  .site-foot,
  .copy {
    display: none !important;
  }
  .layout {
    display: block;
  }
  body {
    background: #fff;
  }
}
