/* new covenant — a bare terminal. line by line, colour tells the story. */

:root {
  --bg: #0d1210;        /* dark nordic slate, green-tinted */
  --fg: #d3ded6;        /* soft bone-white */
  --dim: #5f6f66;       /* muted moss */
  --accent: #9dc2a9;    /* muted sage */
  --amber: #d9a662;     /* hygge cursor */
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  padding-bottom: 4.25rem; /* room for the fixed shell */
}

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

/* the session is the page — no headline, no chrome */
.term {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 1rem;
}

/* the live shell — pinned to the bottom of the screen, always ready */
.shell {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
}

.shell-inner {
  display: flex;
  align-items: baseline;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.75rem 1.75rem 1.5rem;
}

.shell-prompt {
  color: var(--accent);
  white-space: pre;
  user-select: none;
}

.shell input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* keep mobile keyboards from zooming */
  caret-color: var(--amber);
}

.term p,
.term pre,
.t-dim {
  margin: 0 0 1.25rem;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* the law number, drawn as heavy ink lines — yang solid, yin broken */
.dcap {
  display: block;
  white-space: pre;
  color: var(--accent);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

/* colour is the only variation */
.t-prompt { color: var(--accent); }
.t-text   { color: var(--fg); }
.t-name   { color: var(--dim); font-style: italic; }
.t-dim    { color: var(--dim); }

/* blinking block cursor */
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 1px;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 0; }
}
