:root {
  color-scheme: dark;
  --bg: #030303;
  --fg: #e6edf3;
  --muted: #8b949e;
  --line: #d8dee9;
  --blue: #58a6ff;
  --green: #00d17d;
  --yellow: #f2cc60;
  --red: #ff6b6b;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.2;
}

body.light {
  color-scheme: light;
  --bg: #f7f7f2;
  --fg: #111820;
  --muted: #5f6975;
  --line: #111820;
  --blue: #0969da;
  --green: #087443;
  --yellow: #806000;
  --red: #c33b3b;
}

.terminal-header,
.shell,
.shell-footer {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
}

.terminal-header { padding: 14px 0 4px; }

pre { margin: 0; }

.ascii-header,
.ascii-block,
.node-card {
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}

.shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0 32px;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, max-content));
  gap: 22px 34px;
  align-items: start;
}

.node-card {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.node-card:hover { color: var(--blue); }

.node-card:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 5px;
}

.linkish,
a { color: var(--blue); }

.ok { color: var(--green); }
.warn { color: var(--yellow); }
.bad { color: var(--red); }
.muted,
.shell-footer { color: var(--muted); }

.shell-footer { padding: 18px 0 32px; }

@media (max-width: 720px) {
  html,
  body { font-size: 12px; }

  .terminal-header,
  .shell,
  .shell-footer { width: calc(100vw - 18px); }

  .node-grid { grid-template-columns: 1fr; }
}
