/* muxel.sh */

:root {
  color-scheme: dark;

  --ink:    #080807;
  --ink-2:  #10100e;
  --ink-3:  #181714;
  --ink-4:  #24211c;
  --ink-5:  #322e27;
  --line:   rgba(243, 240, 233, 0.08);
  --line-2: rgba(243, 240, 233, 0.14);

  --paper:   #f3f0e9;
  --paper-2: #c7c2b8;
  --paper-3: #877f74;

  --gold:     #cda869;
  --gold-2:   #e8c882;
  --gold-dim: rgba(205, 168, 105, 0.14);
  --sage:     #8f9d6a;
  --amber:    #dad085;
  --clay:     #d8996a;
  --rust:     #cf6a4c;
  --plum:     #9b859d;
  --rose:     #cf9b8a;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --max: 1240px;
  --nav-h: 72px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;

  --ink:    #faf8f3;
  --ink-2:  #f1ebe0;
  --ink-3:  #e7e0d2;
  --ink-4:  #d6cdbc;
  --ink-5:  #bcb19d;
  --line:   rgba(34, 31, 27, 0.08);
  --line-2: rgba(34, 31, 27, 0.14);

  --paper:   #221f1b;
  --paper-2: #56514a;
  --paper-3: #837a6c;

  --gold:     #8f6212;
  --gold-2:   #a87318;
  --gold-dim: rgba(143, 98, 18, 0.12);
  --sage:     #51702b;
  --amber:    #8a6f1e;
  --clay:     #a85a26;
  --rust:     #b03f24;
  --plum:     #6f5a72;
  --rose:     #b05c44;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper-2);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 600px at 10% -8%, rgba(205, 168, 105, 0.14), transparent 55%),
    radial-gradient(800px 480px at 95% 5%, rgba(155, 133, 157, 0.1), transparent 50%);
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--paper); }
code { font-family: var(--font-mono); font-size: 0.88em; }
p { margin: 0; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.muted { color: var(--paper-3); }

.grad {
  background: linear-gradient(120deg, var(--gold), var(--plum) 55%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dot-sep { color: var(--ink-5); margin-inline: 0.45rem; }
[data-theme="light"] .dot-sep { color: var(--ink-5); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-family: var(--font-sans); font-weight: 600;
}
.skip-link:focus { left: 0; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head--center .section-lede { max-width: 52ch; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-lede { color: var(--paper-3); font-size: 1.05rem; max-width: 42ch; }

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
}

/* buttons */
.icon {
  width: 1.1em; height: 1.1em; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.btn-donate .icon { fill: currentColor; stroke: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem; border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600;
  line-height: 1; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 12px 36px -14px rgba(205, 168, 105, 0.6);
}
[data-theme="light"] .btn--gold { color: #2a2218; }

.btn--line {
  background: transparent; color: var(--paper); border-color: var(--line-2);
}
.btn--line:hover { border-color: var(--gold); background: var(--gold-dim); }

.btn--icon {
  width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--paper-2);
  font-size: 1.1rem;
}
.btn--icon:hover { border-color: var(--gold); color: var(--paper); background: var(--gold-dim); }
.btn--icon .icon { width: 1.1rem; height: 1.1rem; }
.nav-gh .bi, .nav-x .bi { display: flex; }

.btn-donate { color: var(--rose); }
.btn-donate:hover { border-color: var(--rose); background: rgba(207, 155, 138, 0.1); }

.theme-toggle__sun, .theme-toggle__moon { display: none; line-height: 1; }
[data-theme="dark"] .theme-toggle__sun { display: inline-block; }
[data-theme="light"] .theme-toggle__moon { display: inline-block; }

/* nav */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.topbar__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-sans); font-weight: 800; color: var(--paper);
}
.brand:hover { text-decoration: none; }
.brand__logo { border-radius: 8px; }
.brand__name { font-size: 1.05rem; letter-spacing: -0.02em; }

.topnav {
  display: flex; justify-content: center; gap: 0.25rem;
  margin-inline: auto;
  padding: 0.28rem; border-radius: 999px;
  background: var(--ink-3); border: 1px solid var(--line);
}
.topnav a {
  padding: 0.42rem 0.9rem; border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
  color: var(--paper-3); text-decoration: none;
}
.topnav a:hover { color: var(--paper); background: var(--gold-dim); text-decoration: none; }

.topbar__end { display: flex; align-items: center; gap: 0.45rem; }
.topbar__actions { display: flex; align-items: center; gap: 0.4rem; }

.menu-btn {
  display: none;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--ink-3);
  color: var(--paper); cursor: pointer;
}
.menu-btn span {
  display: block; width: 15px; height: 2px; margin: 3px auto;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; }
  .topnav {
    position: fixed; top: calc(var(--nav-h) + 0.5rem); left: 1rem; right: 1rem;
    flex-direction: column; margin: 0;
    padding: 0.6rem; opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
  }
  .topnav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .topnav a { text-align: center; padding: 0.65rem; }
}

/* hero */
.hero {
  padding: calc(var(--nav-h) + 3rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.hero__copy {
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
}

.hero__lede {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--paper-2);
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.hero__fine {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--paper-3);
}

.hero__art {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 36px 90px -28px rgba(0, 0, 0, 0.6);
  background: var(--ink-3);
}
.hero__art img {
  width: 100%;
  height: auto;
  display: block;
}

/* features */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}

.feat {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.section--alt .feat { background: var(--ink-3); }
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }

.feat__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  background: var(--gold-dim);
  color: var(--gold);
}
.feat__icon[data-c="plum"]  { background: rgba(155, 133, 157, 0.14); color: var(--plum); }
.feat__icon[data-c="sage"]  { background: rgba(143, 157, 106, 0.14); color: var(--sage); }
.feat__icon[data-c="amber"] { background: rgba(218, 208, 133, 0.14); color: var(--amber); }
.feat__icon[data-c="clay"]  { background: rgba(216, 153, 106, 0.14); color: var(--clay); }
.feat__icon[data-c="rust"]  { background: rgba(207, 106, 76, 0.14); color: var(--rust); }

.feat h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.feat p { flex: 1; font-size: 0.92rem; color: var(--paper-3); }

@media (max-width: 960px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.shot:hover { border-color: var(--line-2); transform: translateY(-2px); }
.shot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink-2);
}

.shot figcaption {
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 500;
  color: var(--paper-3);
  border-top: 1px solid var(--line);
}

.shot--empty { cursor: default; }
.shot--empty:hover { transform: none; }
.shot--empty img { display: none; }
.shot--empty::before {
  content: "Screenshot coming soon";
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--paper-3); font-size: 0.85rem;
  background: var(--ink-2);
}

/* install */
.install {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

.term-box {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.term-box__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-3);
}

.term-box__dots { display: flex; gap: 0.35rem; margin-right: 0.4rem; }
.term-box__dots i {
  width: 9px; height: 9px; border-radius: 50%; font-style: normal;
}
.term-box__dots i:nth-child(1) { background: var(--rust); }
.term-box__dots i:nth-child(2) { background: var(--amber); }
.term-box__dots i:nth-child(3) { background: var(--sage); }

.term-box__body { padding: 1rem; }

.term-line {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  background: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.term-line code {
  flex: 1; overflow-x: auto; white-space: nowrap;
  color: var(--sage); font-size: 0.84rem;
}
.term-line code::before { content: "$ "; color: var(--paper-3); }
.term-line--ps code::before { content: "PS> "; }

.install-panels { min-width: 0; }
.install-lede code { color: var(--gold); font-size: 0.92em; }

.install-panel,
.install-lede { display: none; }
html[data-install-os="linux"] .install-panel[data-install-os="linux"],
html[data-install-os="linux"] .install-lede[data-install-os="linux"],
html:not([data-install-os]) .install-panel[data-install-os="linux"],
html:not([data-install-os]) .install-lede[data-install-os="linux"] { display: block; }
html[data-install-os="macos"] .install-panel[data-install-os="macos"],
html[data-install-os="macos"] .install-lede[data-install-os="macos"] { display: block; }
html[data-install-os="windows"] .install-panel[data-install-os="windows"],
html[data-install-os="windows"] .install-lede[data-install-os="windows"] { display: block; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; flex: none;
  background: var(--ink-5); color: var(--paper);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--gold); background: var(--gold-dim); }
.copy-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.copy-btn.is-copied { color: var(--sage); border-color: var(--sage); }

.pkg-list {
  list-style: none; margin: 0.9rem 0 0; padding: 0;
  display: grid; gap: 0.5rem;
  font-size: 0.88rem; color: var(--paper-3);
}
.pkg-list strong { color: var(--paper); font-family: var(--font-sans); font-size: 0.8rem; }
.pkg-list code { color: var(--gold); }

@media (max-width: 820px) {
  .install { grid-template-columns: 1fr; }
}

/* download */
.dl-shell {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 4vw, 2rem);
}

.dl-head { text-align: center; margin-bottom: 1.75rem; }
.dl-head .section-lede { margin-inline: auto; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55em; vertical-align: middle;
  background: var(--gold-dim); color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 999px; padding: 0.18em 0.7em; font-weight: 600;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.dl-card {
  display: flex; flex-direction: column; gap: 0.8rem;
  padding: 1.25rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dl-card:hover { border-color: var(--line-2); }
.dl-card.is-active {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
}

.dl-card__top {
  display: flex; align-items: baseline; justify-content: space-between;
}
.dl-card__top h3 { font-size: 1.15rem; }
.dl-card__arch { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-3); }

.dl-primary { width: 100%; }
.dl-primary .hint { font-weight: 500; font-size: 0.76rem; opacity: 0.85; }

.dl-more { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dl-more a {
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 500;
  color: var(--paper-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.25rem 0.65rem; text-decoration: none;
}
.dl-more a:hover { color: var(--paper); border-color: var(--gold); text-decoration: none; }

.dl-note { font-size: 0.76rem; color: var(--paper-3); }
.dl-note code { color: var(--clay); }

.dl-foot {
  text-align: center; margin-top: 1.5rem;
  color: var(--paper-3); font-size: 0.9rem;
}

@media (max-width: 860px) {
  .dl-grid { grid-template-columns: 1fr; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0; display: flex; flex-direction: column;
  align-items: center; gap: 0.65rem;
}
.lightbox__img {
  max-width: min(1280px, 94vw); max-height: 82vh;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 36px 90px -28px rgba(0, 0, 0, 0.7);
  background: var(--ink-3);
}
.lightbox__cap { color: var(--paper-2); font-size: 0.88rem; }

.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-4); border: 1px solid var(--line-2);
  color: var(--paper); cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__close .icon { width: 1.15rem; height: 1.15rem; }
.lightbox__close:hover { border-color: var(--gold); }

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 2.25rem 0 1.4rem;
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.site-foot__brand { display: flex; gap: 0.8rem; align-items: center; }
.site-foot__brand strong {
  font-family: var(--font-sans);
  font-size: 1rem; color: var(--paper);
}
.site-foot__brand p { margin-top: 0.1rem; font-size: 0.88rem; max-width: 28ch; }

.site-foot__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.5rem 1.75rem;
  justify-content: end;
}
.site-foot__nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.84rem; font-weight: 500;
  color: var(--paper-3); text-decoration: none;
}
.site-foot__nav a .bi { font-size: 0.95em; line-height: 1; opacity: 0.9; }
.site-foot__nav a:hover { color: var(--paper); text-decoration: none; }
.site-foot__nav .foot-link--donate { color: var(--rose); }
.site-foot__nav .foot-link--donate:hover { color: var(--rose); filter: brightness(1.12); }

.site-foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  margin-top: 1.75rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-3);
}

@media (max-width: 680px) {
  .site-foot__grid { grid-template-columns: 1fr; }
  .site-foot__nav { justify-content: start; }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* legal / prose */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.legal__head { max-width: 820px; margin-inline: auto; text-align: center; }
.legal__head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }
.legal__meta { color: var(--paper-3); font-size: 0.9rem; margin-top: 0.6rem; }

.toc {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin: 1.6rem 0 0;
}
.toc a {
  font-family: var(--font-sans);
  font-size: 0.86rem; color: var(--paper-3);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.28rem 0.85rem; text-decoration: none;
}
.toc a:hover { color: var(--paper); border-color: var(--gold); }

.prose { max-width: 760px; margin: 2.4rem auto 0; }
.prose section { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.prose section + section { margin-top: 2.8rem; }
.prose h2 {
  font-size: 1.5rem; font-weight: 800;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.prose h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.6rem; color: var(--paper); }
.prose p, .prose li { color: var(--paper-2); }
.prose p { margin: 0.7rem 0; }
.prose ul { margin: 0.6rem 0; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--gold); }
.prose strong { color: var(--paper); }
.prose code { color: var(--gold); }

.callout {
  background: var(--ink-3); border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin: 1rem 0 0;
}
.callout p { margin: 0; color: var(--paper); }

.back-home {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 2.4rem; color: var(--paper-3); text-decoration: none;
}
.back-home:hover { color: var(--paper); text-decoration: none; }