/* Shared reading scale and neutral palette with the Latent and Moondog pages. */
:root {
  color-scheme: light;
  --paper: #f4f4f4;
  --ink: #141414;
  --muted: #585858;
  --surface: #eaeaea;
  --rule: #cecece;
  --serif:
    Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria,
    Georgia, serif;
  --mono:
    ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", "Cascadia Mono",
    Consolas, monospace;
  --page: min(1100px, calc(100% - 2 * clamp(20px, 4vw, 40px)));
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0c0c0c;
    --ink: #e4e4e4;
    --muted: #a3a3a3;
    --surface: #171717;
    --rule: #383838;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 20px/1.6 var(--serif);
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
p {
  margin: 0 0 18px;
}
p:last-child {
  margin-bottom: 0;
}
h1,
h2 {
  margin: 0;
  font-weight: 400;
}
code,
pre {
  font-family: var(--mono);
}
main,
.masthead,
.colophon {
  width: var(--page);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  z-index: 2;
}
.skip-link:focus {
  top: 16px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}
.brand {
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav {
  display: flex;
  gap: 28px;
  font-size: 17px;
}
.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  padding: clamp(40px, 6vw, 72px) 0 48px;
}
.intro h1 {
  max-width: 12ch;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.intro-text {
  padding-top: 16px;
}
.intro-text p {
  max-width: 46ch;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 18px;
}
.button {
  display: inline-block;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  text-decoration: none;
}
.button:hover {
  text-decoration: underline;
}
.terminal {
  padding: 26px 32px 32px;
  border-radius: 6px;
  background: var(--surface);
  font: 17px/1.7 var(--mono);
}
.terminal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 30px;
}
.terminal-header p {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.demo-tabs {
  display: flex;
  gap: 22px;
}
.demo-tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 8px 0;
  color: var(--muted);
}
.demo-tabs button[aria-selected="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 8px;
}
.demo-tabs button:hover {
  color: var(--ink);
}
.terminal-panels {
  margin-top: 34px;
}
.terminal-panel {
  min-height: 240px;
}
.terminal-prompt {
  color: var(--muted);
  margin-bottom: 18px;
}
.terminal-panel h2 {
  font: 600 20px/1.5 var(--mono);
  margin-bottom: 24px;
}
.evidence-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.evidence-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 12px;
}
.evidence-list p {
  margin: 0;
}
.citation {
  flex: none;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.citation:hover,
.citation[aria-expanded="true"] {
  color: var(--ink);
}
.example-evidence {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.example-evidence pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.sessions {
  margin: 0;
}
.sessions > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin-top: 16px;
}
.sessions dd {
  margin: 0;
}
.demo-note {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 10px;
}
.recording {
  font-size: 18px;
}
.recording summary {
  width: fit-content;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.recording-content {
  padding-top: 24px;
}
.recording img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about {
  display: grid;
  gap: 52px;
  margin-top: clamp(64px, 9vw, 104px);
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 16px 64px;
}
.chapter h2 {
  font-size: 28px;
  line-height: 1.25;
}
.chapter > p,
.chapter > div {
  max-width: 62ch;
}
.install {
  margin-top: clamp(64px, 9vw, 104px);
}
.commands {
  margin: 24px 0 10px;
}
.commands pre {
  margin: 0 0 10px;
  padding: 20px 24px;
  border-radius: 4px;
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.8;
}
.commands button {
  font-size: 18px;
}
.copy-status {
  color: var(--muted);
  font-size: 18px;
}
.copy-status:empty {
  display: none;
}
.colophon {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 88px 0 32px;
  color: var(--muted);
  font-size: 17px;
}
.colophon p {
  margin: 0;
}
@media (max-width: 800px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .intro h1 {
    max-width: 18ch;
  }
  .intro-text {
    max-width: 56ch;
    padding-top: 0;
  }
  .chapter {
    grid-template-columns: minmax(0, 1fr);
  }
  .terminal-panel {
    min-height: 260px;
  }
}
@media (max-width: 520px) {
  .masthead {
    gap: 18px;
    padding: 20px 0;
  }
  .masthead nav {
    gap: 20px;
  }
  .nav-demo {
    display: none;
  }
  .intro {
    padding: 36px 0;
  }
  .terminal {
    padding: 22px 20px;
    font-size: 16px;
  }
  .terminal-header {
    gap: 12px;
  }
  .terminal-header > p span {
    display: block;
  }
  .demo-tabs {
    gap: 24px;
  }
  .terminal-panels {
    margin-top: 26px;
  }
  .terminal-panel {
    min-height: 310px;
  }
  .evidence-list li {
    display: block;
    margin-top: 18px;
  }
  .citation {
    padding-top: 0;
  }
  .sessions > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin-top: 20px;
  }
  .sessions dd {
    color: var(--muted);
  }
  .commands pre {
    padding: 18px;
  }
  .colophon {
    display: block;
    padding-top: 64px;
  }
  .colophon > a {
    display: inline-block;
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
