:root {
  --bg: #0b0d10;
  --panel: #13161a;
  --border: #23282f;
  --text: #e7e9ec;
  --muted: #9aa3ad;
  --accent: #5bffb0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}
main { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; color: var(--accent); }
.tagline { font-size: 1.1rem; margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 0.92rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.panel { margin-top: 36px; padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.panel h2 { margin-top: 0; font-size: 1.05rem; }
form#ask-form { display: flex; gap: 8px; }
#question {
  flex: 1; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: #0e1114; color: var(--text); font-family: inherit; font-size: 0.95rem;
}
button {
  padding: 10px 16px; border-radius: 6px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent); cursor: pointer; font-family: inherit;
}
button:hover { background: var(--accent); color: #0b0d10; }
.result { margin-top: 18px; white-space: pre-wrap; font-size: 0.9rem; }
.result .answer { margin-bottom: 14px; }
.result .badge {
  display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--muted); margin-bottom: 10px;
}
.citation { border-left: 2px solid var(--accent); padding-left: 10px; margin: 10px 0; color: var(--muted); font-size: 0.85rem; }
.citation .loc { color: var(--text); }
pre { background: #0e1114; border: 1px solid var(--border); border-radius: 6px; padding: 14px; overflow-x: auto; }
.small { color: var(--muted); font-size: 0.85rem; }
footer { margin-top: 40px; font-size: 0.85rem; }
.loading { color: var(--muted); }

.story-timeline { margin-top: 16px; }
.story-beat { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--border); }
.story-beat:last-child { border-left-color: transparent; padding-bottom: 0; }
.story-beat::before {
  content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.story-beat .year { display: block; color: var(--accent); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.story-beat .label { display: block; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.story-beat .body { color: var(--muted); font-size: 0.88rem; margin: 0; }
.story-intro { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
