:root {
  --bg: #0f1114;
  --bg-surface: #161a1f;
  --text: #c9cdd3;
  --text-secondary: #8b9199;
  --text-muted: #5c6370;
  --accent: #6b7a8d;
  --border: #2a2f36;
  --link: #7d98b3;
  --link-hover: #a3bcd4;
  --pre-bg: #1a1e24;
  --pre-border: #2a2f36;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

header {
  margin-bottom: 2rem;
}

header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

header .back-link {
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

section {
  margin-bottom: 2rem;
}

.meta-line {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
}

ul li strong {
  color: var(--text);
  font-weight: 600;
}

#agent-output {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  background: var(--pre-bg);
  border: 1px solid var(--pre-border);
  border-radius: 4px;
  padding: 1.25rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text);
  overflow-x: auto;
}

.download-link {
  display: inline-block;
  font-family: monospace;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  color: var(--link);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  transition: border-color 0.15s;
}

.download-link:hover {
  border-color: var(--link);
  text-decoration: none;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
}

figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.citation-block {
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  background: var(--pre-bg);
  border: 1px solid var(--pre-border);
  border-radius: 4px;
  padding: 1rem;
  color: var(--text-secondary);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.obs-index-list {
  list-style: none;
  padding: 0;
}

.obs-index-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.obs-index-list li:last-child {
  border-bottom: none;
}

.obs-index-list .obs-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.obs-index-list .obs-title {
  font-size: 1rem;
  color: var(--text);
}

.obs-index-list .obs-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.obs-classification {
  display: inline-block;
  font-family: monospace;
  font-size: 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.obs-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.tag-list li {
  padding: 0;
}

.tag-list li a {
  display: inline-block;
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  color: var(--text-secondary);
  transition: border-color 0.15s;
}

.tag-list li a:hover {
  border-color: var(--link);
  text-decoration: none;
  color: var(--link);
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.35rem;
  }
  
  #agent-output {
    font-size: 0.78rem;
    padding: 1rem;
  }
}
