:root {
  color-scheme: dark;
  --bg: #080909;
  --panel: #111213;
  --panel-strong: #1b1b1b;
  --panel-warm: #2a2218;
  --ink: #f0eeee;
  --muted: #aaa6a0;
  --soft: #797673;
  --line: #2d2d2d;
  --line-strong: #4a3a25;
  --accent: #d79b18;
  --accent-strong: #f2b51d;
  --accent-soft: #8a6020;
  --accent-ink: #120d03;
  --danger: #d06a4d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, rgba(215, 155, 24, 0.16), transparent 28%, rgba(96, 63, 24, 0.2) 58%, transparent 82%),
    linear-gradient(25deg, #080909 0%, #121212 42%, #19150f 65%, #080909 100%);
  background-size: 220% 220%, 160% 160%;
  animation: jvn-bg-shift 18s ease-in-out infinite alternate;
}

@keyframes jvn-bg-shift {
  from {
    background-position: 0% 40%, 0% 0%;
  }

  to {
    background-position: 100% 58%, 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

a {
  color: inherit;
}

code {
  color: var(--accent-strong);
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.button,
.workflow-grid a,
.filter-buttons button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links .github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(215, 155, 24, 0.1);
}

.github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(215, 155, 24, 0.16);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 30px;
  align-items: stretch;
  min-height: calc(100vh - 150px);
  padding: 36px 0 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6.6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lede,
.wiki-intro p,
.feature-band p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 900;
}

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

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.hero-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(27, 27, 27, 0.94), rgba(8, 9, 9, 0.98)),
    repeating-linear-gradient(90deg, rgba(215, 155, 24, 0.08) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 84px);
  box-shadow: var(--shadow);
}

.hero-media-stack {
  align-items: center;
  overflow: hidden;
}

.hero-media.has-screenshots {
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(8, 9, 9, 0.12), rgba(8, 9, 9, 0.94)),
    var(--panel);
}

.hero-shot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0b0d0f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left center;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  object-fit: cover;
  background: #0b0d0f;
}

.hero-logo {
  width: min(52%, 210px);
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
}

.paper-stack {
  position: relative;
  width: min(100%, 520px);
  min-height: 310px;
  margin-top: 4px;
}

.paper-shot {
  position: absolute;
  display: block;
  width: 78%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  object-fit: cover;
  background: #0b0d0f;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.paper-shot-back {
  top: 8px;
  left: 2%;
  transform: rotate(-7deg);
  opacity: 0.86;
}

.paper-shot-mid {
  top: 42px;
  right: 1%;
  width: 54%;
  aspect-ratio: 1 / 1;
  transform: rotate(8deg);
  opacity: 0.92;
}

.paper-shot-side {
  right: 9%;
  bottom: 2px;
  width: 58%;
  transform: rotate(4deg);
}

.paper-shot-front {
  bottom: 24px;
  left: 6%;
  width: 72%;
  transform: rotate(-2deg);
  z-index: 2;
}

.engine-stack {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
}

.engine-stack span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.78);
  color: var(--ink);
  font-weight: 900;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.74);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.quick-paths,
.feature-band,
.wiki-intro,
.wiki-tools,
.documentation-panel,
.workflow-strip,
.results-panel,
.intro-grid,
.difference-section,
.systems-section,
.showcase-section,
.faq-section {
  margin: 40px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0 10px;
}

.intro-copy p,
.info-card p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.path-grid,
.difference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.path-card,
.info-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 27, 31, 0.88);
  text-decoration: none;
}

.path-card strong {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.info-card h3,
.faq-grid h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.path-card span:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: var(--panel-strong);
}

.system-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.system-list a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 27, 31, 0.88);
  text-decoration: none;
}

.system-list strong {
  font-size: 1.08rem;
}

.system-list span {
  color: var(--muted);
  line-height: 1.5;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.showcase-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.showcase-card.wide {
  grid-column: span 3;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: left center;
  background: #0b0d0f;
}

.showcase-card:not(.wide) img {
  aspect-ratio: 16 / 10;
}

.showcase-card span {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.showcase-card strong {
  font-size: 1.2rem;
}

.showcase-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 0 42px;
  color: var(--muted);
}

.footer-repo,
.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.doc-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 27, 31, 0.9);
}

.back-link {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.doc-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.doc-meta code {
  overflow-wrap: anywhere;
}

.doc-toc {
  display: grid;
  gap: 8px;
}

.doc-toc span {
  color: var(--ink);
  font-weight: 900;
}

.doc-toc a {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--accent-strong);
}

.doc-toc .toc-h3 {
  padding-left: 12px;
}

.doc-article {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 18, 19, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.doc-status {
  color: var(--muted);
  font-weight: 900;
}

.doc-status.is-error {
  color: var(--danger);
}

.markdown-body {
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.03rem;
  line-height: 1.72;
}

.markdown-body > *:first-child {
  margin-top: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

.markdown-body h1 {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
}

.markdown-body h2 {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.markdown-body h3 {
  margin-top: 30px;
  font-size: 1.35rem;
}

.markdown-body p,
.markdown-body li {
  color: #d3d0cb;
}

.markdown-body a {
  color: var(--accent-strong);
  font-weight: 800;
}

.markdown-body code {
  padding: 0.15em 0.35em;
  border-radius: 5px;
  color: #ffd076;
  background: #221b12;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

.markdown-body pre {
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #080909;
}

.markdown-body pre code {
  padding: 0;
  color: #f2ece1;
  background: transparent;
}

.markdown-body blockquote {
  margin: 24px 0;
  padding: 8px 18px;
  border-left: 4px solid var(--accent);
  background: var(--panel-warm);
}

.markdown-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.markdown-body .table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.95rem;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  background: var(--panel-warm);
  color: var(--ink);
}

.markdown-body hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--line);
}

.wiki-shell {
  max-width: 1180px;
}

.wiki-intro {
  padding: 36px 0 8px;
}

.wiki-intro h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.documentation-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 18, 19, 0.92);
  box-shadow: var(--shadow);
}

.documentation-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(42, 34, 24, 0.72), rgba(16, 18, 20, 0.92)),
    var(--panel);
}

.documentation-start h2 {
  max-width: 760px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.documentation-start p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.start-actions {
  display: grid;
  gap: 10px;
}

.wiki-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: end;
}

.documentation-panel .wiki-tools,
.documentation-panel .results-panel {
  margin: 0;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-buttons button {
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter-buttons button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.workflow-strip {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 27, 31, 0.9);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workflow-grid a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  color: var(--ink);
  background: var(--panel-strong);
  font-weight: 900;
}

.results-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.results-summary span {
  color: var(--muted);
  font-weight: 800;
}

.topic-grid {
  display: grid;
  gap: 12px;
}

.doc-tree-section,
.doc-tree-folder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 14, 15, 0.72);
}

.doc-tree-section summary,
.doc-tree-folder summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.doc-tree-section summary {
  color: var(--accent-strong);
  background: rgba(215, 155, 24, 0.08);
}

.doc-tree-section summary em,
.doc-tree-folder summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.doc-tree-folders,
.doc-tree-docs {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.doc-tree-folder {
  background: rgba(23, 27, 31, 0.78);
}

.doc-tree-doc {
  display: grid;
  gap: 8px;
  padding-left: 14px;
  border-left: 2px solid rgba(215, 155, 24, 0.38);
}

.doc-tree-link {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.doc-tree-link span {
  font-weight: 850;
}

.doc-tree-link code {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.doc-tree-headings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 6px 10px;
}

.doc-tree-headings a {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.doc-tree-link:hover,
.doc-tree-headings a:hover,
.path-card:hover,
.info-card:hover,
.system-list a:hover,
.showcase-card:hover,
.workflow-grid a:hover,
.button.secondary:hover {
  border-color: var(--accent);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
}

.setup-notice {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.setup-notice-card {
  width: min(100%, 520px);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(42, 34, 24, 0.92), rgba(17, 18, 19, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.setup-notice-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.setup-notice-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.setup-notice-card .button {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .hero,
  .feature-band,
  .wiki-tools,
  .documentation-start,
  .intro-grid,
  .doc-shell {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
    max-height: none;
  }

  .hero,
  .hero-copy,
  .hero-media {
    min-height: auto;
  }

  .path-grid,
  .workflow-grid,
  .difference-grid,
  .system-list,
  .showcase-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-card.wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  main,
  .site-header,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-media,
  .feature-band,
  .documentation-panel,
  .documentation-start,
  .workflow-strip,
  .doc-article {
    padding: 16px;
  }

  .path-grid,
  .workflow-grid,
  .difference-grid,
  .system-list,
  .showcase-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card.wide {
    grid-column: span 1;
  }
}
