/* alxpanel public site. It wears the panel's look (DESIGN.md in the repo
   root): near-black ground, panels one ply up, 1px hairlines, one blue for
   links and focus, an ink-inverse primary button. Dark by default like the
   panel; theme.js switches to light. Nothing comes from another host. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-cyrillic.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* The panel's ramp: Tailwind Neutral as gray, Blue as primary. */
  --gray-50: oklch(0.985 0 0);
  --gray-100: oklch(0.97 0 0);
  --gray-200: oklch(0.922 0 0);
  --gray-300: oklch(0.87 0 0);
  --gray-400: oklch(0.708 0 0);
  --gray-500: oklch(0.556 0 0);
  --gray-600: oklch(0.439 0 0);
  --gray-700: oklch(0.371 0 0);
  --gray-800: oklch(0.269 0 0);
  --gray-900: oklch(0.205 0 0);
  --gray-950: oklch(0.145 0 0);
  --blue-400: oklch(0.707 0.165 254.624);
  --blue-500: oklch(0.623 0.214 259.815);
  --blue-600: oklch(0.546 0.245 262.881);
  --green-500: oklch(0.723 0.219 149.579);
  --amber-400: oklch(0.828 0.189 84.429);
  --amber-500: oklch(0.769 0.188 70.08);
  --amber-700: oklch(0.555 0.163 48.998);

  --ground: var(--gray-950);
  --ply: var(--gray-900);
  --line: var(--gray-800);
  --ring: color-mix(in oklab, white 10%, transparent);
  --ring-strong: var(--gray-700);
  --ink: white;
  --text: var(--gray-200);
  --muted: var(--gray-400);
  --link: var(--blue-400);
  --focus: var(--blue-500);
  --fill: color-mix(in oklab, white 7%, transparent);
  --btn-bg: var(--gray-50);
  --btn-ink: var(--gray-950);
  --btn-hover: var(--gray-200);
  --attention: var(--amber-400);
  --thumb: var(--gray-700);

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 70rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: var(--gray-50);
  --ply: white;
  --line: var(--gray-200);
  --ring: color-mix(in oklab, var(--gray-950) 10%, transparent);
  --ring-strong: var(--gray-300);
  --ink: var(--gray-950);
  --text: var(--gray-800);
  --muted: var(--gray-600);
  --link: var(--blue-600);
  --focus: var(--blue-600);
  --fill: var(--gray-200);
  --btn-bg: var(--gray-950);
  --btn-ink: white;
  --btn-hover: var(--gray-800);
  --attention: var(--amber-700);
  --thumb: var(--gray-300);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--thumb) transparent;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 1rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in oklab, var(--blue-500) 35%, transparent); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p, li { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
svg.icon { width: 1.125rem; height: 1.125rem; flex: none; }

/* ---- shell: top bar on the ground, a hairline beneath ------------------ */
.preview {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0.5rem var(--gutter);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.preview::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--amber-500);
}
.preview b { color: var(--attention); font-weight: 500; }
.preview a { color: inherit; }

.top { border-bottom: 1px solid var(--line); }
.top-in, .bottom-in, .landing, .doc, .article.wide {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
  min-height: 4rem;
  padding-block: 0.6rem;
}
.brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.top nav { display: flex; flex-wrap: wrap; gap: 0.125rem; margin-inline: -0.75rem auto; }
.top nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); background: var(--fill); }
.top-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 40rem) {
  .top-in { justify-content: space-between; }
  .top nav { order: 3; flex-basis: 100%; }
}

/* Secondary button: 1px ring, no fill. Primary: ink-inverse. */
.btn, .btn-primary, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 8px;
  font: 500 0.875rem/1.25rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn, .icon-btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring-strong); }
.btn:hover, .icon-btn:hover { background: var(--fill); }
.btn svg { color: var(--muted); }
.icon-btn { width: 2.25rem; padding: 0; color: var(--muted); }
.icon-btn:hover { color: var(--ink); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); min-width: 4.75rem; }
.btn-primary:hover { background: var(--btn-hover); }
.icon-btn .sun, :root[data-theme="light"] .icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .sun { display: block; }

.bottom { margin-top: 5rem; border-top: 1px solid var(--line); }
.bottom-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.bottom p { margin: 0; }
.bottom a { color: inherit; }
.bottom a:hover { color: var(--ink); }

/* ---- landing ---------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 62rem) { .hero { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); } }
.hero h1 {
  margin: 0;
  font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-lead { margin: 1.25rem 0 0; font-size: 1.0625rem; color: var(--muted); max-width: 34rem; }
.shot { margin: 0 0 3rem; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 0.75rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.45);
}

/* Section card: one ply up, 12px corners, 1px ring. */
.card, .terminal {
  background: var(--ply);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--ring);
}
.terminal { overflow: hidden; }
.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.terminal pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.9;
}
.terminal-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; }

.facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}
.facts div { padding: 1rem 1rem 1rem 0; }
.facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 48rem) {
  .facts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts div:nth-child(n+3) { border-top: 0; }
  .facts div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.facts dt { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; color: var(--ink); font-size: 0.9375rem; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts dd a { color: inherit; }
/* The panel's status: a plain word with a small dot. */
.status { display: inline-flex; align-items: center; gap: 0.45rem; }
.status::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--green-500); flex: none; }

.groups, .split { margin-top: clamp(3rem, 7vw, 5rem); }
.groups h2, .split h2 { margin: 0 0 1.25rem; font-size: 1.5rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.grid article { padding: 1.5rem; }
.grid article + article { border-top: 1px solid var(--line); }
@media (min-width: 48rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid article:nth-child(2) { border-top: 0; }
  .grid article:nth-child(even) { border-left: 1px solid var(--line); }
}
.grid h3 { margin: 0 0 0.75rem; font-size: 1rem; line-height: 1.5; letter-spacing: 0; }
.grid ul, .checks, .next { margin: 0; padding: 0; list-style: none; }
.grid li, .checks li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.grid li::before, .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--gray-500);
}
.grid li code { color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem 4rem; }
@media (min-width: 48rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks li { color: var(--text); }
.split p { color: var(--muted); font-size: 0.9375rem; }
.next li { border-top: 1px solid var(--line); }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 1rem;
  padding: 0.8rem 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.next span { grid-column: 1; color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.next svg { grid-area: 1 / 2 / span 2; color: var(--gray-500); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s; }
.next a:hover svg { color: var(--link); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .next svg { transition: none; } }

/* ---- articles: the panel's sidebar, then the page ---------------------- */
.doc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 0 3rem;
}
.side {
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 2rem 1rem 2rem 0;
  font-size: 0.875rem;
}
.doc::before { content: ""; grid-area: 1 / 1; border-right: 1px solid var(--line); }
.side { grid-area: 1 / 1; }
.side-title { margin: 0 0 0.4rem; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.side ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.side ul:last-child { margin-bottom: 0; }
.side a {
  display: block;
  padding: 0.4rem 0.75rem;
  margin-left: -0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.side a code { font-size: 0.8125rem; }
.side a:hover { color: var(--ink); }
.side a[aria-current] { color: var(--ink); background: var(--fill); }
@media (max-width: 760px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc::before { display: none; }
  .side { position: static; max-height: none; padding: 1.25rem 0 0.75rem; border-bottom: 1px solid var(--line); }
  .side ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin-bottom: 0.75rem; }
  .side a { margin-left: 0; }
  .side-title { margin-left: 0.75rem; }
}

.article { min-width: 0; max-width: 46rem; padding-block: 2.5rem 0; }
.article.wide { max-width: var(--wide); }
.article.wide > * { max-width: 46rem; }
.article h1 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.article h1 code { font-size: 0.88em; letter-spacing: -0.02em; }
.article h2 { margin: 2.75rem 0 0.75rem; font-size: 1.375rem; }
.article h3 { margin: 2rem 0 0.5rem; font-size: 1.0625rem; letter-spacing: 0; }
.article .lead { font-size: 1.0625rem; color: var(--muted); margin: 0 0 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.article li { margin-block: 0.3rem; }
.article li::marker { color: var(--gray-500); }
.article :not(pre) > code {
  background: var(--fill);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.article h1 > code { background: none; padding: 0; }
.article pre {
  background: var(--ply);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--ring);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.article th, .article td { text-align: left; vertical-align: top; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.article th { font-size: 0.8125rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.article td:first-child { min-width: 7.5rem; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--ply);
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--ring);
}
.article blockquote p { margin: 0; }

.release { border-top: 1px solid var(--line); margin-top: 2rem; }
.release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-top: 1.5rem; font-variant-numeric: tabular-nums; }
.release h2 a { color: var(--ink); text-decoration: none; }
.release h2 a:hover { color: var(--link); }
.release time { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.release li { overflow-wrap: anywhere; color: var(--text); }
.lead + .release { border-top: 0; margin-top: 0; }
.lead + .release h2 { margin-top: 0; }
