/* The system likes company. */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-log: #0d1410;
  --rule: #1f1f24;

  --text: #d8d4c8;           /* base / Helene narration */
  --text-dim: #8a8578;
  --text-faint: #5a5650;

  --helene: #fafafa;          /* Helene — stark white */
  --ciel: #8ec5d6;            /* CIEL — pale blue */
  --anna: #d46a6a;            /* Anna [author] — warm red */
  --syslog: #6cb86c;          /* System log green */
  --syslog-dim: #4a7a4a;
  --warn: #d4a04a;            /* amber warnings */
  --refrain: #b8a883;         /* the recurring line */

  --accent: #8ec5d6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
a:hover { border-bottom-style: solid; }

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  font-size: 13px;
  color: var(--text-dim);
}

header.site .title {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.02em;
}

header.site a {
  color: var(--text-dim);
  border-bottom-color: var(--text-faint);
}

h1 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.5rem;
}

h1 .num {
  color: var(--text-faint);
  margin-right: 0.5rem;
}

.subtitle {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 3rem;
}

p { margin: 0 0 1.2rem; }

/* Helene's inline dialogue lines */
.line {
  margin: 0.1rem 0;
  white-space: pre-wrap;
}
.line.me { color: var(--helene); }
.line.me::before {
  content: "Me: ";
  color: var(--text-dim);
}
.line.ciel { color: var(--ciel); }
.line.ciel::before {
  content: "CIEL: ";
  color: var(--text-dim);
}
.line.bare {
  color: var(--text);
}

/* Chat block — slight indent */
.chat {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

/* System log block */
.syslog {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--bg-log);
  border: 1px solid var(--syslog-dim);
  border-radius: 2px;
  color: var(--syslog);
  font-size: 13.5px;
  line-height: 1.65;
}

.syslog .syshead {
  color: var(--syslog);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.syslog .bracket {
  color: var(--syslog-dim);
}

.syslog em, .syslog .leak {
  color: var(--warn);
  font-style: italic;
}

.syslog .warn-block {
  color: var(--warn);
  margin: 0.8rem 0;
}

/* The refrain — "In a world/office full of people, I was X by a machine." */
.refrain {
  margin: 2.5rem 0 2.5rem;
  padding: 0;
  text-align: center;
  font-style: italic;
  color: var(--refrain);
  letter-spacing: 0.02em;
}

/* Section breaks */
hr.break {
  border: none;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-faint);
}
hr.break::before {
  content: "·  ·  ·";
  letter-spacing: 0.5em;
}

/* End of transmission footer */
footer.transmission {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--syslog);
  font-size: 13px;
  line-height: 1.6;
}

footer.transmission .label {
  color: var(--syslog-dim);
}

footer.transmission .invite {
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-style: italic;
}

footer.transmission .byline {
  margin-top: 2rem;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Landing page log list */
.log-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.log-list li {
  padding: 0.8rem 0;
  border-bottom: 1px dotted var(--rule);
  display: flex;
  gap: 1.5rem;
}

.log-list .num {
  color: var(--text-faint);
  flex-shrink: 0;
  width: 3.5rem;
}

.log-list a {
  color: var(--helene);
  border-bottom: none;
  flex: 1;
}

.log-list a:hover {
  color: var(--accent);
}

.log-list .pending {
  color: var(--text-faint);
  font-style: italic;
}

.log-list .pending::after {
  content: " — pending reconstruction";
  color: var(--text-faint);
  font-size: 12px;
}

/* Landing page intro */
.boot {
  color: var(--syslog);
  font-size: 13.5px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.boot .prompt {
  color: var(--syslog-dim);
  margin-right: 0.5rem;
}

.boot .blink::after {
  content: "▊";
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
  color: var(--syslog);
}

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

/* Inline meta lines like [content flagged for review] */
.meta {
  color: var(--warn);
  font-style: italic;
}

.binary {
  color: var(--text-faint);
  letter-spacing: 0.15em;
  font-size: 13px;
  margin: 1rem 0;
}

/* Read-also nav at chapter bottom */
nav.chapter-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 13px;
}

nav.chapter-nav .nav-item {
  color: var(--text-dim);
  flex: 1;
}

nav.chapter-nav .prev { text-align: left; }
nav.chapter-nav .next { text-align: right; }
nav.chapter-nav .label {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
  main { padding: 2rem 1.2rem 4rem; }
  body { font-size: 14px; }
}
