/* Rendrix site. One black field, like the mark's own background.
   White is the mark. Periwinkle is borrowed from the counter app and used only
   as light: glow, focus, and the things you build. The 17deg slant is the
   angle of the R's own stroke. */

:root {
  --bg: #000;
  --s1: #09090b;
  --s2: #111114;
  --line: #222227;
  --line-2: #34343b;
  --fg: #fff;
  --muted: #a1a1aa;
  --dim: #71717a;
  --ac: #ffffff;
  --ac-soft: rgba(255, 255, 255, 0.055);
  --glow: rgba(255, 255, 255, 0.2);
  --slant: -17deg;
  --unslant: 17deg;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --measure: 60ch;
  --nav-h: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--dim);
}
a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
}

::selection {
  background: var(--ac);
  color: #000;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #000;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.85em;
  padding: 0.1em 0.38em;
  background: var(--s2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #e4e4e7;
}

pre code {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: inherit;
}

.mark {
  fill: currentColor;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

/* Type -------------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  font-style: italic;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.7rem, min(8.6vw, 8.6rem), 8.6rem);
  font-stretch: 125%;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-stretch: 118%;
  font-weight: 850;
  max-width: 21ch;
  text-wrap: balance;
}

h3 {
  font-size: 1.2rem;
  font-stretch: 108%;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.section-head {
  display: grid;
  gap: 1.3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-lede {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.125rem;
}

.section-lede code {
  color: var(--fg);
}

/* Nav --------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.1rem;
  height: auto;
  aspect-ratio: 545 / 424;
  color: #fff;
}

.brand-name {
  font-size: 1.25rem;
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 1.7rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.3rem;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current] {
  color: #fff;
}
.nav-links a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: #fff;
  transform: skewX(var(--slant));
}

.nav-github {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
}
.nav-github:hover {
  color: #fff;
}

/* Buttons are parallelograms cut at the R's angle. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.7em;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transform: skewX(var(--slant));
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.btn > span {
  display: inline-block;
  transform: skewX(var(--unslant));
}

.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px #fff, 0 0 32px var(--glow);
}

.btn-ghost {
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.btn-small {
  padding: 0.55em 1.2em;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  padding-left: 0.6rem; /* room for the slant so edges optically align */
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
}

/* Lines at the R's stroke angle, fading out, with the app's blue behind the stage. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48rem 36rem at 74% 62%, var(--ac-soft), transparent 70%),
    repeating-linear-gradient(107deg, transparent 0 86px, rgba(255, 255, 255, 0.055) 86px 87px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy {
  display: grid;
  gap: 2rem;
  justify-items: start;
}

.lede {
  max-width: 34rem;
  font-size: 1.22rem;
  line-height: 1.55;
  color: #c9c9d0;
}

.hero-cmd {
  width: 100%;
  max-width: 34rem;
}

.hero-note {
  max-width: 34rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-visual {
  min-width: 0;
}

.hero-stage {
  display: grid;
}

/* The mark resolves from coarse pixels to the crisp R, once. */
.pixel-r {
  position: relative;
  width: 98%;
  margin-left: -2%;
  aspect-ratio: 545 / 424;
  color: #fff;
}
.pixel-r canvas,
.pixel-r-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pixel-r canvas {
  image-rendering: pixelated;
}
.pixel-r-final {
  opacity: 1;
}
.js .pixel-r.is-drawing .pixel-r-final {
  opacity: 0;
}

/* The window overlaps only the R's leg, so the letter still reads. */
.hero-window {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 66%;
  max-width: 24rem;
  margin-top: -24%;
}

.visual-caption {
  margin-top: 1.5rem;
  max-width: 40ch;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--dim);
}

/* The one orchestrated moment: words arrive in order while the mark resolves.
   Nothing else on the page moves unprompted. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease calc(0.1s + var(--d, 0) * 0.14s),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.1s + var(--d, 0) * 0.14s);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Simulated app window. Its colours are the real counter's. -------------- */

.app {
  width: 100%;
  background: #000;
  color: #f5f5fb;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-stretch: 100%;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 40px 90px -24px var(--glow), 0 18px 40px rgba(0, 0, 0, 0.7);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.85rem;
  background: #0d0d0d;
  color: #71717a;
  font-size: 0.78rem;
}

.app-dots {
  display: inline-flex;
  gap: 0.35rem;
}
.app-dots i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #262626;
}

.app-body {
  padding: 1.2rem;
}

.app-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
  background: #0d0d0d;
  border-radius: 6px;
}

.app-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a1a1aa;
}

.app-title {
  font-family: inherit;
  font-style: normal;
  font-stretch: 100%;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

.app-sub {
  font-size: 0.86rem;
  color: #a1a1aa;
}

.app-panel {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem;
  background: #161616;
  border-radius: 4px;
}

.app-eyebrow {
  font-size: 0.7rem;
  color: #71717a;
}

.app-count {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: transform 0.18s ease;
}
.app-count.bump {
  transform: scale(1.1);
}

.app-hint {
  font-size: 0.76rem;
  color: #a1a1aa;
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.app-btn {
  flex: 1 1 auto;
  padding: 0.7rem 0.6rem;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.app-btn:active {
  transform: scale(0.97);
}
.app-btn:focus-visible {
  outline-color: #fff;
}
.app-btn-primary { background: #fff; color: #000; }
.app-btn-secondary { background: #262626; color: #fff; }
.app-btn-ghost { background: #141414; color: #a1a1aa; }
.app-btn:hover { filter: brightness(1.18); }

.app-foot {
  font-size: 0.72rem;
  color: #71717a;
}

/* What ships -------------------------------------------------------------- */

.stacks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.stack {
  margin: 0;
  display: grid;
  gap: 0;
}

.stack figcaption {
  margin-bottom: 1.1rem;
  font-size: 1.2rem;
  font-style: italic;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.layer {
  display: flex;
  align-items: center;
  min-height: 5.2rem;
  padding: 0 1.6rem;
  border: 1px solid var(--line-2);
  margin-top: -1px;
  font-size: 1.02rem;
  font-weight: 600;
}

.stack-electron .layer {
  background: repeating-linear-gradient(107deg, #0b0b0d 0 10px, #111114 10px 11px);
  color: #a1a1aa;
  border-style: dashed;
}

.stack-electron .layer-app,
.stack-rendrix .layer-app {
  border-style: solid;
  background: #fff;
  color: #000;
  border-color: #fff;
}

.stack-rendrix .layer-app code {
  background: #ececef;
  border-color: #d4d4d8;
  color: #000;
}

.stack-rendrix .layer-host {
  background: #0d0d0d;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 60px -12px var(--glow);
}

.stack-note {
  margin-top: 1.8rem;
  color: var(--dim);
  font-size: 0.88rem;
}

/* Demo -------------------------------------------------------------------- */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.editor {
  min-width: 0;
  background: var(--s1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}

.editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 0.8rem;
  background: var(--s2);
  border-bottom: 1px solid var(--line-2);
}

.tabs {
  display: flex;
  overflow-x: auto;
}

.tabs button {
  padding: 0.85rem 1.2rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--dim);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.tabs button:hover {
  color: #fff;
}
.tabs button[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--ac);
}

.copy {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: none;
  color: #d4d4d8;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.copy:hover {
  border-color: #fff;
  color: #fff;
}
.copy.is-done {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.panel {
  max-height: 34rem;
  overflow: auto;
}

.panel pre,
.codeblock pre,
.rdx {
  margin: 0;
  padding: 1.2rem 1.3rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e4e4e7;
  overflow-x: auto;
  tab-size: 2;
}

.tk-com { color: #71717a; font-style: italic; }
.tk-str,
.tk-num { color: #b9b9c2; }
.tk-tag,
.tk-kw,
.tk-prop,
.tk-fn { color: #fff; font-weight: 500; }
.tk-attr,
.tk-sel,
.tk-type { color: #bdbdc6; }
.tk-meta { color: #71717a; }

.demo-preview {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

/* Split sections ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.split > .section-head {
  margin-bottom: 0;
}

.sticky {
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
}

.rows {
  display: grid;
}

.row {
  display: grid;
  gap: 0.7rem;
  padding: 1.7rem 0 2.1rem;
  border-top: 1px solid var(--line-2);
  transition: border-color 0.2s;
}

.row:hover {
  border-top-color: #fff;
}

.row h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-stretch: 115%;
}

.row p {
  max-width: 54ch;
  color: var(--muted);
}

.row code {
  color: #fff;
}

/* Pipeline ---------------------------------------------------------------- */

.pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1.25fr) 3.5rem minmax(0, 1fr);
  align-items: stretch;
}

.stage {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--s1);
}

.stage h3 code {
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.95em;
  font-style: normal;
  color: #fff;
}

.stage p {
  color: var(--muted);
  font-size: 0.95rem;
}

.file-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.rdx {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #000;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

.layout-bar {
  display: flex;
  height: 3rem;
  border: 1px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.seg {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.seg-host { flex: 5; background: #17171b; color: #c4c4cc; }
.seg-bundle { flex: 3; background: #fff; color: #000; font-weight: 500; }
.seg-len { flex: 1.2; background: #17171b; color: #c4c4cc; }
.seg-magic { flex: 2.3; background: var(--ac); color: #000; font-weight: 500; }

.layout-caption {
  font-size: 0.85rem !important;
}

.stage-result {
  color: #fff !important;
  font-weight: 600;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-2);
}

.link {
  display: grid;
  place-items: center;
}

.link span {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--line-2), #fff);
}
.link span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* The build runs once, in order, when it scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .stage {
    opacity: 0.25;
  }
  .js .link span {
    transform: scaleX(0);
    transform-origin: left;
  }
  .js .pipeline.is-running .stage {
    opacity: 1;
    transition: opacity 0.5s ease calc(var(--s) * 0.9s);
  }
  .js .pipeline.is-running .link span {
    transform: none;
    transition: transform 0.4s ease;
  }
  .js .pipeline.is-running .link:nth-of-type(1) span { transition-delay: 0.45s; }
  .js .pipeline.is-running .link:nth-of-type(2) span { transition-delay: 1.35s; }
}

/* Architecture ------------------------------------------------------------ */

.layers {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-2);
}

.layers li {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-2);
  transition: background-color 0.2s;
}

.layers li:hover {
  background: linear-gradient(90deg, var(--ac-soft), transparent 60%);
}

.layer-name {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  font-stretch: 122%;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

.layers p {
  max-width: 60ch;
  color: var(--muted);
}

/* A ruled spec grid: cells share their borders. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}

.fact {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.6rem 1.6rem 1.9rem;
  background: var(--bg);
  transition: background-color 0.2s;
}

.fact:hover {
  background: var(--s2);
}

.fact p {
  color: var(--muted);
  font-size: 0.96rem;
}
.fact code {
  color: #fff;
}

/* Quick start ------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 2.4rem;
}

.step {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.step p {
  max-width: 60ch;
  color: var(--muted);
}

.step p code {
  color: #fff;
}

.codeblock {
  position: relative;
  background: var(--s1);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}

.codeblock::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ac);
  border-radius: 8px 0 0 8px;
  transform: skewX(var(--slant));
  transform-origin: bottom;
}

.codeblock .copy {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.codeblock pre {
  padding-right: 5.5rem;
  padding-left: 1.9rem;
}

.docs-links {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Docs -------------------------------------------------------------------- */

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.8rem;
  border-bottom: 1px solid var(--line-2);
}

.doc-tabs button {
  margin-bottom: -1px;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 1.05rem;
  font-style: italic;
  font-stretch: 112%;
  font-weight: 750;
  cursor: pointer;
  transition: color 0.15s;
}
.doc-tabs button:hover {
  color: #fff;
}
.doc-tabs button[aria-selected="true"] {
  color: #fff;
  border-bottom-color: #fff;
}

.doc-body {
  max-height: min(78vh, 56rem);
  overflow: auto;
  padding: clamp(1.4rem, 3vw, 2.6rem) 0;
  max-width: 86ch;
  color: #d4d4d8;
  scrollbar-color: #3a3a42 transparent;
}

.doc-body > * + * {
  margin-top: 1rem;
}

.doc-body h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: none;
  color: #fff;
}
.doc-body h3 {
  margin-top: 1.9rem;
  font-size: 1.2rem;
  color: #fff;
}
.doc-body h4 {
  margin-top: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.doc-body > h2:first-child {
  margin-top: 0;
}
.doc-body ul,
.doc-body ol {
  padding-left: 1.3rem;
}
.doc-body li + li {
  margin-top: 0.3rem;
}
.doc-body a {
  color: var(--ac);
}
.doc-body pre {
  margin-inline: 0;
  padding: 1rem 1.2rem;
  background: var(--s1);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-x: auto;
}
.doc-body blockquote {
  margin-inline: 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--ac);
  color: #c4c4cc;
}
.doc-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.doc-body th,
.doc-body td {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}
.doc-body th {
  background: var(--s2);
  color: #fff;
  font-weight: 650;
}
.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin-block: 2rem;
}

/* Status ------------------------------------------------------------------ */

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  position: relative;
}

.status-col h3 {
  font-size: 1.7rem;
  font-stretch: 118%;
  margin-bottom: 1.3rem;
}

.status-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.status-col li {
  padding-left: 1.4rem;
  position: relative;
  color: #d4d4d8;
  font-size: 0.98rem;
}

.status-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 2px;
  background: var(--ac);
  transform: skewX(var(--slant));
}

.status-col:last-child li::before {
  background: transparent;
  border-top: 2px dotted var(--dim);
  height: 0;
}

.status-col code {
  color: #fff;
}

.notice {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line-2);
  border-left: 3px solid #fff;
  background: var(--s1);
  color: #d4d4d8;
}

.notice p {
  max-width: 80ch;
}

/* Closing ----------------------------------------------------------------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 10rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(40rem 30rem at 80% 50%, var(--ac-soft), transparent 70%),
    var(--bg);
}

.closing-mark {
  position: absolute;
  right: 3%;
  top: 50%;
  width: min(50vw, 44rem);
  height: auto;
  aspect-ratio: 545 / 424;
  transform: translateY(-50%);
  z-index: -1;
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0.55;
}

.closing-inner {
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}

.closing-inner h2 {
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  max-width: 10ch;
}

.closing .section-lede {
  max-width: 34ch;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.5rem;
}

.footer-tagline {
  margin-right: auto;
  color: var(--dim);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .nav-github {
    margin-left: auto;
  }
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .link {
    height: 2.4rem;
  }
  .link span {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--line-2), #fff);
    transform-origin: top;
  }
  .link span::after {
    right: auto;
    left: -5px;
    top: auto;
    bottom: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #fff;
    border-bottom: 0;
  }
  .js .link span {
    transform: scaleY(0);
  }
  .js .pipeline.is-running .link span {
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .demo-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-stage {
    max-width: 34rem;
  }
  .demo-preview,
  .sticky {
    position: static;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .closing-mark {
    opacity: 0.25;
    right: -20%;
    width: 110vw;
  }
}

@media (max-width: 640px) {
  .stacks,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .layers li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
  .nav-github {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .btn-small {
    margin-left: auto;
  }
  .hero-window {
    width: 86%;
    margin-top: -18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
