:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-alt: #f0f0ee;
  --border: #e3e2de;
  --text: #1c1c1a;
  --text-muted: #666560;
  --accent: #b45309;
  --accent-soft: #fef3e2;
  --link: #1d4ed8;
  --positive: #15803d;
  --negative: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --surface: #1e1e23;
    --surface-alt: #26262c;
    --border: #35353c;
    --text: #f0efec;
    --text-muted: #a3a29c;
    --accent: #f0b429;
    --accent-soft: #2a2311;
    --link: #7aa2ff;
    --positive: #4ade80;
    --negative: #f87171;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #1c1c1a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand h1 {
  font-size: 19px;
  margin: 0;
  font-weight: 700;
}

.tagline {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.slot-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.headline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 500;
}

#sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.report-section h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.report-section .body {
  font-size: 14.5px;
  color: var(--text);
  white-space: pre-line;
}

.report-section .sources {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
}

.report-section .sources a {
  color: var(--link);
  text-decoration: none;
}

.report-section .sources a:hover { text-decoration: underline; }

.insight-card {
  margin-top: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.insight-card h2 {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--accent);
}

.insight-card p {
  margin: 0;
  font-size: 14.5px;
  white-space: pre-line;
}

.history {
  margin-top: 36px;
}

.history h2 {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history a {
  color: var(--link);
  text-decoration: none;
  font-size: 13.5px;
}

.history a:hover { text-decoration: underline; }

.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.error-banner {
  background: var(--accent-soft);
  color: var(--negative);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13.5px;
}

@media (max-width: 480px) {
  .site-header { flex-direction: column; }
  .brand h1 { font-size: 17px; }
}
