:root {
  --bg: #0a0c0e;
  --text: #c8d0d8;
  --muted: #6e7a86;
  --accent: #7eb8a4;
  --border: #1a2229;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --max: 40rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: #9fd4c4; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

header.shard {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

header.shard h1 {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

header.shard .meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

nav.path {
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

nav.path a { color: var(--muted); text-decoration: none; }
nav.path a:hover { color: var(--accent); }
nav.path .here { color: var(--text); }

pre.session {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  background: #0d1114;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 1.25rem 0 2rem;
  color: #9aa8b4;
}

pre.session .p { color: var(--accent); }
pre.session .d { color: var(--muted); }
pre.session .h { color: #dde4ea; }

section { margin-bottom: 2rem; }

h2 {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  border: none;
}

p { margin: 0 0 0.85rem; color: var(--text); }

ul.plain { margin: 0; padding-left: 1.2rem; color: var(--text); }
ul.plain li { margin-bottom: 0.4rem; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: #b8d4c8;
}

pre.cmd {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: #0d1114;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
}

table {
  width: 100%;
  font-size: 0.92rem;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.6rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 0.75rem; }

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.note {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
figure.preview {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  background: #0d1114;
  padding: 0.5rem;
}

figure.preview img {
  display: block;
  width: 100%;
  max-width: 46rem;
  height: auto;
  image-rendering: pixelated;
}

figure.preview figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.preview-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.preview-hint a { color: var(--muted); }
.preview-hint a:hover { color: var(--accent); }
