/* Omacus — omacus.com */

:root {
  color-scheme: dark;

  --bg: #090909;
  --bg-raise: #101010;
  --panel: #131313;
  --panel-2: #181818;
  --line: #222222;
  --line-2: #2e2e2e;

  --text: #ecebe8;
  --text-2: #b8b6b1;
  --muted: #85837e;
  --faint: #55534f;

  --accent: #f0a12a;
  --accent-hi: #ffc061;
  --accent-ink: #1a1104;
  --accent-glow: rgba(240, 161, 42, 0.16);

  /* The app's matte-black theme, for the live demo. */
  --app-bg: #121212;
  --app-side: #0d0d0d;
  --app-fg: #bebebe;
  --app-dim: #8a8a8d;
  --app-comment: #555555;
  --app-accent: #e68e0d;
  --app-var: #d35f5f;
  --app-sel: #2a2a2a;
  --app-hover: #1e1e1e;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", var(--sans);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1160px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-hi);
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.92em;
}

::selection {
  background: rgba(240, 161, 42, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.site-header.scrolled {
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 18px/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

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

.nav .btn {
  margin-left: 8px;
}

@media (max-width: 720px) {
  .nav a:not(.btn):not(.keep) {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font: 600 14.5px/1 var(--sans);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  color: var(--text);
  border-color: #3d3d3d;
  background: #1d1d1d;
}

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

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 192, 97, 0.25) inset, 0 8px 28px -10px rgba(240, 161, 42, 0.6);
}

.btn.primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--accent-ink);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  /* faint grid fading out from the top */
  content: "";
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 340px;
  width: 1100px;
  height: 640px;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 62%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.7);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
}

.eyebrow .tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent-hi);
  font: 600 12px/1.6 var(--mono);
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  font-weight: 600;
}

.hero h1 {
  margin: 26px auto 18px;
  font-size: clamp(44px, 7.4vw, 88px);
  max-width: 12ch;
}

em.serif,
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-hi);
}

.lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--text-2);
  line-height: 1.55;
}

/* Install box */

.install {
  margin: 34px auto 0;
  max-width: 560px;
  text-align: left;
}

.os-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 10px;
}

.os-tabs button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 13.5px/1 var(--sans);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.os-tabs button:hover {
  color: var(--text);
}

.os-tabs button[aria-selected="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, #151515, #101010);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px #000;
  font-family: var(--mono);
  font-size: 15px;
}

.cmd .prompt {
  color: var(--accent);
  user-select: none;
}

.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  color: var(--text);
  font-size: 14.5px;
}

.cmd code::-webkit-scrollbar {
  display: none;
}

.copy {
  flex: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text-2);
  font: 500 13px/1 var(--sans);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy:hover {
  color: var(--text);
  border-color: #3d3d3d;
}

.copy.done {
  color: var(--accent-hi);
  border-color: rgba(240, 161, 42, 0.4);
}

.copy svg {
  width: 14px;
  height: 14px;
}

.install-alt {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

.install-alt a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
}

.install-alt a:hover {
  color: var(--accent-hi);
  border-color: var(--accent);
}

.os-panel[hidden] {
  display: none;
}

.dl-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- The live demo window ---------- */

.stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 1080px;
  perspective: 1800px;
}

.window {
  --fs: 15px;
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--app-bg);
  border: 1px solid #2a2a2a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -40px rgba(240, 161, 42, 0.35);
  text-align: left;
  font-family: var(--mono);
  font-size: var(--fs);
  transform: rotateX(4deg);
  transform-origin: 50% 0;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage.in .window {
  transform: none;
}

.win-side {
  background: var(--app-side);
  border-right: 1px solid #1d1d1d;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.win-side .side-head {
  display: flex;
  justify-content: space-between;
  color: var(--app-comment);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 0 4px 10px;
}

.win-side .sheet {
  position: relative;
  padding: 7px 10px 7px 14px;
  border-radius: 6px;
  color: var(--app-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s, color 0.3s;
}

.win-side .sheet.active {
  background: var(--app-sel);
  color: var(--app-fg);
}

.win-side .sheet.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--app-accent);
}

.win-side .side-foot {
  margin-top: auto;
  color: var(--app-comment);
  font-size: 11px;
  padding: 0 4px;
}

.win-main {
  position: relative;
  padding: 22px 26px;
  overflow: hidden;
}

.win-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.75;
}

.win-lines li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 1.75em;
  white-space: pre;
}

.win-lines .src {
  color: var(--app-fg);
  overflow: hidden;
  text-overflow: clip;
}

.win-lines .res {
  color: var(--app-accent);
  flex: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s, transform 0.35s;
}

.win-lines .res.show {
  opacity: 1;
  transform: none;
}

.t-head { color: var(--app-accent); }
.t-com { color: var(--app-comment); }
.t-label { color: var(--app-dim); }
.t-num { color: var(--app-fg); }
.t-kw { color: var(--app-fg); }
.t-var { color: var(--app-var); }
.t-op { color: var(--app-dim); }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.25em;
  margin-left: 1px;
  vertical-align: -0.22em;
  background: var(--app-accent);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.popup {
  position: absolute;
  z-index: 2;
  min-width: 150px;
  padding: 4px;
  border-radius: 7px;
  background: var(--app-side);
  border: 1px solid var(--app-sel);
  box-shadow: 0 14px 30px -12px #000;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}

.popup.show {
  opacity: 1;
  transform: none;
}

.popup div {
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--app-fg);
}

.popup div.sel {
  background: var(--app-sel);
  color: var(--app-accent);
}

.stage-caption {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 760px) {
  .window {
    grid-template-columns: 1fr;
    height: 470px;
    --fs: 13px;
  }

  .win-side {
    display: none;
  }

  .win-main {
    padding: 18px 16px;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 120px 0 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

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

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 54px);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 18px;
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--bg-raise);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}

.feature:hover {
  background: #131313;
}

.feature h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature .eg {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.feature .eg div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--app-bg);
  border: 1px solid #1c1c1c;
  white-space: nowrap;
}

.feature .eg span {
  color: var(--app-fg);
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature .eg b {
  color: var(--app-accent);
  font-weight: 400;
  flex: none;
}

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

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

/* Split rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.split.flip {
  grid-template-columns: 1.25fr 1fr;
}

.split.flip .split-text {
  order: 2;
}

.split h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.split p {
  color: var(--text-2);
  font-size: 17px;
}

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

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc061' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.checks b {
  color: var(--text);
  font-weight: 600;
}

.shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px #000, 0 0 0 1px rgba(0, 0, 0, 0.5);
  background: var(--panel);
}

@media (max-width: 900px) {
  .split,
  .split.flip {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split.flip .split-text {
    order: 0;
  }
}

/* Theme gallery */

.themes {
  display: grid;
  gap: 22px;
}

.theme-stage {
  position: relative;
  aspect-ratio: 1470 / 900;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 110px -45px #000;
  background: var(--panel);
}

.theme-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.theme-stage img.on {
  opacity: 1;
}

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.theme-picker button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-raise);
  color: var(--text-2);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.theme-picker button:hover {
  color: var(--text);
  border-color: #3d3d3d;
}

.theme-picker button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(240, 161, 42, 0.07);
}

.swatch {
  display: inline-flex;
  width: 26px;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.swatch i {
  flex: 1;
}

/* Keyboard section */

.keys {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin-top: 26px;
}

.keys div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

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

/* Terminal */

.terminal {
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #0c0c0c;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px #000;
}

.terminal .bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #111;
}

.terminal .bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2b2b2b;
}

.terminal pre {
  margin: 0;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  overflow-x: auto;
}

.terminal .p {
  color: var(--accent);
}

.terminal .o {
  color: var(--text);
}

/* Download cards */

.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dl {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raise), #0c0c0c);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dl header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl header svg {
  width: 26px;
  height: 26px;
  color: var(--text-2);
}

.dl h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.dl h3 small {
  margin-left: 6px;
  color: var(--muted);
  font: 500 13px var(--sans);
  letter-spacing: 0;
}

.dl p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.dl .cmd {
  font-size: 13.5px;
  box-shadow: none;
}

.dl .cmd code {
  font-size: 13px;
}

.dl .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.note {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid var(--line-2);
  padding-left: 12px;
}

.note b {
  color: var(--text-2);
  font-weight: 600;
}

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

/* Closing CTA */

.cta {
  margin-top: 140px;
  padding: 72px 32px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(240, 161, 42, 0.15), transparent 70%),
    var(--bg-raise);
}

.cta h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.cta p {
  color: var(--text-2);
  margin: 14px auto 30px;
  max-width: 520px;
  font-size: 18px;
}

.cta .cmd {
  max-width: 520px;
  margin: 0 auto 18px;
  text-align: left;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 110px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}

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

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .window,
  .win-lines .res,
  .theme-stage img {
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }

  .caret {
    animation: none;
  }
}

/* ---------- Docs ---------- */

.docs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 0;
}

.docs-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14.5px;
}

.docs-nav p {
  margin: 22px 0 6px;
  color: var(--faint);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-nav p:first-child {
  margin-top: 0;
}

.docs-nav a {
  display: block;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 7px;
  color: var(--muted);
}

.docs-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav a.on {
  color: var(--accent-hi);
  background: rgba(240, 161, 42, 0.07);
}

.prose {
  max-width: 780px;
  font-size: 16.5px;
  color: var(--text-2);
}

.prose h1 {
  font-size: clamp(38px, 5vw, 52px);
  color: var(--text);
  margin-bottom: 14px;
}

.prose h2 {
  font-size: 30px;
  color: var(--text);
  margin: 72px 0 14px;
  padding-top: 8px;
}

.prose h3 {
  font-size: 19.5px;
  color: var(--text);
  margin: 36px 0 10px;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose li {
  margin: 6px 0;
}

.prose a {
  color: var(--accent-hi);
  border-bottom: 1px solid rgba(240, 161, 42, 0.35);
}

.prose a:hover {
  border-bottom-color: var(--accent-hi);
}

.prose strong {
  color: var(--text);
}

.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86em;
}

.prose pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #0d0d0d;
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.prose pre .c {
  color: var(--faint);
}

.prose .lead {
  font-size: 19px;
  color: var(--text-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
}

.prose th {
  text-align: left;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--line-2);
}

.prose td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose table.ex td code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--app-fg);
  font-size: 14px;
}

.prose table.ex td.ans {
  text-align: right;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--app-accent);
  white-space: nowrap;
}

.prose table.ex th:last-child {
  text-align: right;
}

.muted {
  color: var(--faint);
}

.callout {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(240, 161, 42, 0.25);
  background: rgba(240, 161, 42, 0.06);
  font-size: 15.5px;
}

.callout b {
  color: var(--accent-hi);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 6px 0 24px;
  counter-reset: step;
}

.flow div {
  position: relative;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.flow div::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font: 500 12px/1 var(--mono);
  color: var(--accent);
  margin-bottom: 8px;
}

.flow b {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 15px;
}

@media (max-width: 900px) {
  .docs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-nav {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }

  .docs-nav p {
    width: 100%;
    margin: 12px 0 4px;
  }

  .docs-nav a {
    margin-left: 0;
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .prose table.ex td.ans {
    white-space: normal;
  }
}

/* ---------- 404 / redirects ---------- */

.center-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.center-page h1 {
  font-size: clamp(40px, 7vw, 72px);
  margin-bottom: 12px;
}

.center-page p {
  color: var(--text-2);
}

@media (max-width: 480px) {
  .cmd {
    gap: 8px;
    padding-left: 14px;
  }

  .cmd .prompt {
    display: none;
  }

  .cmd code {
    font-size: 12.5px;
  }

  .copy {
    padding: 9px;
    font-size: 0;
    gap: 0;
  }

  .copy svg {
    width: 15px;
    height: 15px;
  }
}
