@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-alt: #0d0f13;
  --surface: #111317;
  --surface-2: #181b21;
  --text: #eceef2;
  --muted: #bfc4ce;
  --faint: #8f95a1;
  --border: rgba(236, 238, 242, 0.08);
  --border-strong: rgba(236, 238, 242, 0.15);
  --accent: #2d4fd8;
  --accent-hover: #3a5cf0;
  --accent-edge: #14257a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(142, 166, 255, 0.1);
  --accent-text: #8ea6ff;
  --link: #a9bbff;
  --diamond: #8ea6ff;
  --glow: rgba(45, 79, 216, 0.22);
  --glow-2: rgba(142, 166, 255, 0.08);
  --stage-bg: #0d0f13;
  --stage-glow: rgba(142, 166, 255, 0.06);
  --code-bg: #0d0f13;
  --code-bar: #111317;
  --code-text: #d9dde4;
  --code-border: rgba(236, 238, 242, 0.08);
  --inline-code-bg: #181b21;
  --inline-code-border: rgba(236, 238, 242, 0.08);
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -24px rgba(0, 0, 0, 0.75);
  --grid: rgba(236, 238, 242, 0.035);
  --sky-top: #0a0b0e;
  --sky-mid: #0c1120;
  --sky-low: #12192a;
  --tok-k: #8ea6ff;
  --tok-t: #a9bbff;
  --tok-f: #e6b673;
  --tok-s: #f5cd84;
  --tok-n: #c9a6ff;
  --tok-c: #7b818d;
  --tok-a: #8ea6ff;
  --grass-top: #6cc04a;
  --grass-top-d: #5aa83b;
  --grass-top-l: #86d462;
  --dirt-l: #8a5a35;
  --dirt-r: #6c4426;
  --dirt-d: #5a3820;
  --grass-side: #4f9a33;
  --stone-top: #9a9c97;
  --stone-l: #7d7f7a;
  --stone-r: #636561;
  --stone-d: #5a5c58;
  --stone-lt: #b3b5b0;
  --plank-top: #c4955a;
  --plank-l: #a77b45;
  --plank-r: #8a6336;
  --plank-d: #6f4e28;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 6rem;
  --max: 72rem;
  --header-h: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--sky-top);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("/assets/art/stars.png") 0 0 / 384px 384px repeat,
    linear-gradient(to bottom, var(--sky-top) 0, var(--sky-mid) 60%, var(--sky-low) 100%);
  image-rendering: pixelated;
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-soft);
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}

:not(pre) > code {
  padding: 0.1em 0.38em;
  background: var(--inline-code-bg);
  border: 1px solid var(--inline-code-border);
  border-radius: 5px;
  overflow-wrap: anywhere;
}

/* code blocks */

pre {
  position: relative;
  margin: 0 0 var(--s5);
  padding: 2.1rem 0 0;
  min-width: 0;
  background: #0d0f13;
  color: var(--code-text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 1.7;
  font-size: 0.875rem;
  tab-size: 4;
}

pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.7rem;
  left: 1.25rem;
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--accent-text);
  opacity: 0.8;
}

pre::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(var(--accent-hover), var(--accent) 60%, transparent);
}

pre > code {
  display: block;
  padding: 0.25rem 1.25rem 1.1rem;
  overflow-x: auto;
  font-size: inherit;
  scrollbar-width: thin;
  scrollbar-color: #20242c transparent;
}

.tok-k { color: var(--tok-k); }
.tok-t { color: var(--tok-t); }
.tok-f { color: var(--tok-f); }
.tok-s { color: var(--tok-s); }
.tok-n { color: var(--tok-n); }
.tok-c { color: var(--tok-c); font-style: italic; }
.tok-a { color: var(--tok-a); }

.copy {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.6rem;
  padding: 0 0.55rem;
  font: 500 0.75rem/1 var(--font);
  color: #8f95a1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.copy svg {
  width: 0.85rem;
  height: 0.85rem;
}

.copy:hover {
  color: #eceef2;
  background: #181b21;
  border-color: rgba(236, 238, 242, 0.15);
}

/* layout */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s4);
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 var(--s5);
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: var(--s2) var(--s4);
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 20;
}

.skip:focus {
  left: var(--s2);
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  min-height: var(--header-h);
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 24px;
  height: 24px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-alt);
}

.site-nav .nav-gh {
  margin-left: var(--s2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.site-nav .nav-gh svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 30rem) {
  .header-inner {
    justify-content: center;
  }
  .site-nav a {
    padding: 0.35rem 0.5rem;
  }
  .site-nav .nav-gh {
    margin-left: 0;
  }
}

/* buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  font: 600 0.9375rem/1.2 var(--font);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.btn:hover {
  border-color: var(--faint);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: #1c35a0;
  box-shadow: inset 0 -3px 0 var(--accent-edge), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: #1c35a0;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: transparent;
}

/* hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 560px;
  background: url("/assets/art/land.png") 50% 100% / 2400px 560px no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: -1;
  width: 44rem;
  height: 22rem;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--s4);
  padding-top: clamp(2.5rem, 7vh, 5rem);
  padding-bottom: 0;
  text-align: center;
  image-rendering: auto;
}

.hero-inner > * {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent-text);
}

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.3rem, 5.6vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 .vanilla {
  position: relative;
  color: var(--accent-text);
  white-space: nowrap;
}

.hl {
  color: var(--accent-text);
}

.lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero .actions {
  justify-content: center;
  margin-top: var(--s2);
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.install {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  max-width: 62rem;
  min-height: 4rem;
  margin-top: var(--s2);
  padding: 0.65rem 0.65rem 0.65rem 1.35rem;
  font: 500 1.0625rem/1.4 var(--mono);
  color: var(--muted);
  text-align: left;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.install code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0;
  background: none;
  border: 0;
  scrollbar-width: none;
}

.install .prompt {
  color: var(--faint);
  user-select: none;
}

.install .copy {
  position: static;
  flex: none;
  color: var(--muted);
}

.install .copy:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin-top: calc(var(--s4) * -1);
}

.hero-visual .dm-viewer {
  max-width: 26rem;
}

.bubble {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: calc(50% + 9rem);
  width: 15rem;
  margin: 0;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: left;
  color: var(--muted);
  background: var(--surface);
  border: 2px solid var(--accent-text);
  box-shadow: 4px 4px 0 var(--accent-edge);
}

.bubble b {
  display: block;
  color: var(--text);
}

.bubble::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 1.4rem;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) 6px 0 / 6px 6px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) 0 6px / 6px 6px no-repeat;
}

@media (max-width: 52rem) {
  .bubble {
    position: static;
    order: -1;
    width: auto;
    max-width: 22rem;
    margin: var(--s4) auto 0;
    text-align: center;
  }
  .bubble::before {
    display: none;
  }
  .hero-visual {
    flex-direction: column;
    align-items: center;
  }
}

.scene {
  width: min(100%, 400px);
  overflow: visible;
}

.cube rect.top { fill: var(--c-top); }
.cube rect.left { fill: var(--c-l); }
.cube rect.right { fill: var(--c-r); }
.cube rect.d { fill: var(--c-d); }
.cube rect.l { fill: var(--c-lt); }
.cube rect.g { fill: var(--grass-side); }
.cube g > rect:first-child { stroke: rgba(0, 0, 0, 0.18); stroke-width: 1; vector-effect: non-scaling-stroke; }

.cube.grass { --c-top: var(--grass-top); --c-l: var(--dirt-l); --c-r: var(--dirt-r); --c-d: var(--dirt-d); --c-lt: var(--grass-top-l); }
.cube.grass g:first-child rect.d { fill: var(--grass-top-d); }
.cube.stone { --c-top: var(--stone-top); --c-l: var(--stone-l); --c-r: var(--stone-r); --c-d: var(--stone-d); --c-lt: var(--stone-lt); }
.cube.plank { --c-top: var(--plank-top); --c-l: var(--plank-l); --c-r: var(--plank-r); --c-d: var(--plank-d); }

.shadow {
  fill: #000;
  opacity: 0.18;
  transform-box: fill-box;
  transform-origin: center;
  animation: shadow 3s ease-in-out infinite;
}

.bob {
  animation: bob 3s ease-in-out infinite;
}

.spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 4s linear infinite;
}

.sparks rect {
  fill: var(--diamond);
  animation: twinkle 2.4s ease-in-out infinite;
}

.sparks rect:nth-child(2) { animation-delay: 0.8s; }
.sparks rect:nth-child(3) { animation-delay: 1.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(0.8); opacity: 0.12; }
}

@keyframes spin {
  0% { transform: scaleX(1); }
  25% { transform: scaleX(0.08); }
  50% { transform: scaleX(-1); }
  75% { transform: scaleX(0.08); }
  100% { transform: scaleX(1); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* logo strip */

.logos {
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--border);
}

.logos-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s4) var(--s6);
}

.logos-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--faint);
}

.logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.2s, opacity 0.2s;
}

.logo-list a:hover,
.logo-list a:focus-visible {
  filter: none;
  opacity: 1;
  color: var(--text);
}

.logo-list img {
  width: auto;
  height: 26px;
  border-radius: 5px;
}

.logo-list .logo-wide {
  height: 20px;
  border-radius: 0;
}

.logo-light {
  display: none;
}

/* sections */

.section {
  padding: var(--s8) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-alt {
  background-color: color-mix(in srgb, var(--bg-alt) 70%, transparent);
  background-image: radial-gradient(rgba(236, 238, 242, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

.section h2 {
  margin: 0 0 var(--s4);
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--s6);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.kicker {
  display: block;
  margin: 0 0 var(--s3);
  font: 600 0.75rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.split {
  display: grid;
  gap: var(--s5) var(--s7);
  align-items: start;
}

.split > * {
  min-width: 0;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.split p {
  margin: 0 0 var(--s4);
}

/* steps */

.steps {
  display: grid;
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  gap: var(--s4) var(--s6);
  align-items: start;
  min-width: 0;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.step > * {
  min-width: 0;
}

@media (min-width: 56rem) {
  .step {
    padding: var(--s6);
  }
}

.step h3 {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s3);
  font-size: 1.1875rem;
}

.step h3::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  font: 600 0.8125rem/1 var(--mono);
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step pre {
  margin: 0;
}

.below {
  margin: var(--s5) 0 0;
  color: var(--muted);
}

/* cards */

.cards,
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card h2,
.card h3 {
  margin: 0 0 var(--s2);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.card a {
  text-decoration: none;
}

.card a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:has(a:hover) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.features {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--s4);
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius);
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* models teaser */

.showcase {
  display: grid;
  gap: var(--s5);
}

@media (min-width: 48rem) {
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.show-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.show-card .model-view {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.show-card .dm-stage {
  aspect-ratio: 4 / 3;
}

.show-body {
  padding: var(--s4) var(--s5) var(--s5);
}

.show-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2);
  margin: 0 0 var(--s1);
  font-size: 1.125rem;
}

.show-body h3 code {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.show-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-alt);
}

.gallery figcaption {
  padding: var(--s3) var(--s4);
  font-size: 0.875rem;
  color: var(--muted);
}

/* callout */

.callout {
  display: grid;
  gap: var(--s5);
  align-items: center;
  padding: var(--s6);
  background:
    radial-gradient(30rem 14rem at 0% 0%, var(--glow), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 52rem) {
  .callout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s7);
  }
}

.callout > * {
  min-width: 0;
}

.callout h2 {
  margin: 0 0 var(--s3);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.callout p {
  margin: 0 0 var(--s3);
  color: var(--muted);
}

.callout .actions {
  margin-top: var(--s4);
}

.callout pre {
  margin: 0;
}

/* requirements */

.reqs {
  display: grid;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.reqs > div {
  display: grid;
  gap: 0.15rem var(--s5);
  padding: 0.9rem var(--s5);
}

.reqs > div + div {
  border-top: 1px solid var(--border);
}

@media (min-width: 40rem) {
  .reqs > div {
    grid-template-columns: 9rem 1fr;
  }
}

.reqs dt {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 0.1rem;
}

.reqs dd {
  margin: 0;
}

/* call to action */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(36rem 18rem at 50% 100%, var(--glow), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 40rem;
}

.cta h2 {
  margin: 0 0 var(--s3);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
}

.cta p {
  margin: 0 0 var(--s2);
  color: var(--muted);
}

.cta .actions {
  justify-content: center;
}

.cta-inner.left {
  text-align: left;
}

.cta-inner.left .actions {
  justify-content: flex-start;
}

/* docs */

.docs {
  display: grid;
  gap: var(--s5) var(--s7);
  padding-top: var(--s6);
  padding-bottom: var(--s7);
}

@media (min-width: 56rem) {
  .docs {
    grid-template-columns: 13.5rem minmax(0, 1fr);
  }
  .docs-nav {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
  }
}

.docs-nav {
  font-size: 0.9375rem;
  min-width: 0;
}

.docs-nav-title {
  margin: 0 0 var(--s2);
  padding-left: 0.75rem;
  font: 600 0.75rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.docs-nav-title a {
  color: var(--faint);
  text-decoration: none;
}

.docs-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .docs-nav ul {
    flex-direction: column;
  }
}

.docs-nav a {
  display: block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
}

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

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

@media (max-width: 55.99rem) {
  .docs-nav ul a {
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.875rem;
  }
}

.prose {
  min-width: 0;
  max-width: 46rem;
}

.prose h1 {
  margin: 0 0 var(--s4);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.prose h1 + p {
  font-size: 1.125rem;
  color: var(--muted);
}

.prose h2 {
  margin: var(--s7) 0 var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  font-size: 1.5rem;
}

.prose h3 {
  margin: var(--s6) 0 var(--s2);
  font-size: 1.1875rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 var(--s4);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose li::marker {
  color: var(--faint);
}

.prose .anchor {
  margin-left: 0.4rem;
  color: var(--border-strong);
  text-decoration: none;
  font-weight: 400;
}

.prose h2:hover .anchor,
.prose h3:hover .anchor,
.prose .anchor:focus {
  color: var(--accent-text);
}

.table-wrap {
  margin: 0 0 var(--s5);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
}

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

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

th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  td code {
    overflow-wrap: normal;
    white-space: nowrap;
  }
}

.edit {
  margin-top: var(--s7);
  font-size: 0.875rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s5);
}

.pager a {
  display: block;
  flex: 1 1 12rem;
  max-width: 100%;
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s;
}

.pager a:hover {
  border-color: var(--accent);
}

.pager span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.pager .next {
  text-align: right;
}

.doc-cards {
  margin-top: var(--s5);
}

.doc-cards .card h2 {
  margin: 0 0 var(--s2);
  padding: 0;
  border: 0;
  font-size: 1.0625rem;
}

/* models page */

.page-head {
  padding: var(--s8) 0 var(--s6);
}

.page-head h1 {
  margin: 0 0 var(--s4);
  font-size: clamp(2.2rem, 5.5vw, 3.25rem);
  letter-spacing: -0.035em;
}

.page-head p {
  max-width: 40rem;
  margin: 0 0 var(--s3);
  color: var(--muted);
  font-size: 1.125rem;
}

.model {
  align-items: center;
}

.model h2 {
  margin-bottom: var(--s3);
}

.model h3 {
  margin: var(--s5) 0 var(--s2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.model .actions {
  margin-top: var(--s4);
}

.model-meta {
  margin: var(--s2) 0 0;
  color: var(--faint);
  font-size: 0.875rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.15rem 0.6rem;
  font: 500 0.75rem/1.6 var(--mono);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* footer */

.site-footer {
  position: relative;
  margin-top: 380px;
  border-top: 1px solid var(--border);
  background: #16191f;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  gap: var(--s6);
  padding-top: var(--s7);
  padding-bottom: var(--s6);
}

@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  }
}

.footer-about p {
  margin: var(--s3) 0 0;
  max-width: 22rem;
}

.footer-col h2 {
  margin: 0 0 var(--s3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--s2);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  padding-top: var(--s4);
  padding-bottom: var(--s6);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--faint);
}

.footer-bottom p {
  margin: 0;
}

pre.wrap-lines > code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 56rem) {
  .split.model {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.hero-visual:not(:has(.is-ready)) .hero-tag {
  display: none;
}

/* footer hills */

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: -1;
  height: 420px;
  background: url("/assets/art/land.png") 50% 100% / 1800px 420px repeat-x;
  image-rendering: pixelated;
  pointer-events: none;
}

/* home features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  height: 100%;
  padding: var(--s5);
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.feature:hover {
  border-color: color-mix(in srgb, var(--accent-text) 50%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-text) 25%, transparent), 0 16px 40px -20px var(--glow);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--s2);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.feature h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.feature p {
  margin: 0;
  font-size: 0.9875rem;
}

.feature code {
  align-self: flex-start;
  max-width: 100%;
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--accent-text);
  overflow-wrap: anywhere;
}

.feature-more {
  margin-top: auto;
  padding-top: var(--s3);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link);
}

.feature:hover .feature-more span {
  margin-left: 0.25rem;
}

/* home ai */

.ai-grid {
  display: grid;
  gap: var(--s5);
  align-items: start;
}

@media (min-width: 56rem) {
  .ai-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.ai-grid > * {
  min-width: 0;
}

.composer {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 4px rgba(142, 166, 255, 0.05), 0 24px 60px -30px var(--glow);
}

.composer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text);
}

.composer-tools {
  font-weight: 500;
  color: var(--faint);
}

.composer-text {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.composer-hint {
  color: var(--faint);
  border-right: 2px solid var(--accent-text);
  padding-right: 2px;
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% { border-color: transparent; }
}

.composer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}

.composer-note {
  font-size: 0.875rem;
  color: var(--faint);
}

.ai-pr {
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.ai-pr h3 {
  margin: 0 0 var(--s1);
  font-size: 1.0625rem;
}

.ai-pr p {
  margin: 0;
  color: var(--muted);
}

.credit {
  max-width: 34rem;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1.0625rem;
}

.ai-links {
  display: grid;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-links a {
  display: grid;
  gap: 0.2rem;
  padding: var(--s4) var(--s5);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ai-links a:hover {
  border-color: color-mix(in srgb, var(--accent-text) 50%, transparent);
}

.ai-links code {
  justify-self: start;
  color: var(--accent-text);
}

.ai-links span {
  color: var(--muted);
  font-size: 0.9375rem;
}
