:root {
  color-scheme: dark;
  --background: #101714;
  --panel: #18221d;
  --line: #36463d;
  --ink: #f1f6ef;
  --muted: #b8c8bb;
  --accent: #b7f282;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--background);
  color: var(--ink);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.02rem; }
p { max-width: 66ch; color: var(--muted); }
code, pre, table, .brand { font-family: var(--mono); }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); background: var(--panel); padding: .5rem; }
.skip:focus { transform: none; }

.top, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  padding-block: 1.25rem;
}
.top { border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-weight: 700; text-decoration: none; }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
nav { font-size: .875rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; }

.hero, .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero {
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}
.hero p { margin-top: 1.3rem; max-width: 38ch; font-size: 1.125rem; }
.actions { margin-top: 1.6rem; }
.button {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: .35rem;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #d0ffa6; }
.ascii-logo { container-type: inline-size; }
.ascii-logo pre {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: min(1rem, 3cqi);
  line-height: 1.25;
  color: var(--accent);
}

.section { padding-block: clamp(2.25rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.section > p { max-width: none; }
.section > * + *, .cols > div > * + * { margin-top: 1rem; }
.cols { gap: 1.25rem; }
.cols > div { padding: 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: .5rem; }
pre { overflow-x: auto; padding: .75rem; background: var(--background); border: 1px solid var(--line); border-radius: .3rem; font-size: .875rem; }
.table-scroll { overflow-x: auto; container-type: inline-size; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .875rem; }
.table-scroll caption {
  max-inline-size: 100cqi;
  padding-bottom: .75rem;
  color: var(--ink);
  font: 700 1.125rem/1.3 'Inter', system-ui, sans-serif;
  text-align: left;
  white-space: normal;
}
th, td { text-align: right; border-bottom: 1px solid var(--line); padding: .65rem .85rem; }
thead { background: var(--panel); }
tbody td:nth-child(4) { color: var(--accent); font-weight: 700; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 48rem) {
  .hero, .cols { grid-template-columns: minmax(0, 1fr); }
  .ascii-logo { display: none; }
}

.manual { max-width: 52rem; padding-block: 2.5rem; }
.manual > h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 1.5rem; }
.manual .head, .manual .foot { width: 100%; }
.manual td { text-align: left; white-space: normal; }
.manual .head-rtitle, .manual .foot-os { text-align: right; }
.manual .Sh, .manual p, .manual dt { margin-top: .85rem; }
.manual .Sh > h2 { font-size: 1.25rem; letter-spacing: 0; }
.manual dd { margin-inline-start: 1.25rem; }
.manual .permalink { text-decoration: none; }
.manual .permalink:hover { text-decoration: underline; }
