:root {
  --bg: #0d0d0d;
  --fg: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #ff5c5c;
  --rule: #2a2a2a;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --fg: #1a1a1a;
    --muted: #6a6a6a;
    --accent: #c62828;
    --rule: #d6d6d6;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

section { margin: 0; }

p { margin: 0; }

hr {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 24px 0;
}

.prompt {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.line {
  position: relative;
  padding-left: 20px;
}
.line::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
}

.line .label {
  display: inline-block;
  min-width: 88px;
  color: var(--muted);
}

.entry-head {
  color: var(--fg);
  font-weight: 700;
  margin-top: 0;
  padding-left: 0;
}

.entry-head.space-top { margin-top: 16px; }

.indent {
  padding-left: 12px;
}

.bullet {
  position: relative;
  padding-left: 30px;
  margin-top: 2px;
}
.bullet::before {
  content: ">";
  position: absolute;
  left: 12px;
  top: 0;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}

a:hover { text-decoration-thickness: 2px; }

strong { color: var(--fg); font-weight: 700; }

footer { margin-top: 0; }

::selection { background: var(--accent); color: var(--bg); }

@media (max-width: 520px) {
  main { padding: 32px 16px 48px; }
  body { font-size: 13px; line-height: 1.65; }
  hr { margin: 20px 0; }
  .line .label { min-width: 78px; }
  .bullet { padding-left: 24px; }
  .bullet::before { left: 10px; }
}
