/* === LDS Transparency Project -- stylesheet === */
/* Design: investigative journalism, documentary -- slate dark bg, amber accent, editorial type */

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

/* === Tokens === */
:root {
  --bg:          #0f1117;
  --bg-card:     #161b27;
  --bg-card2:    #1c2333;
  --border:      #2a3044;
  --text:        #d4d8e4;
  --text-muted:  #7b8299;
  --text-head:   #eef0f6;
  --accent:      #e8a840;
  --accent-dim:  rgba(232,168,64,0.12);
  --accent-glow: rgba(232,168,64,0.06);
  --red:         #e05c5c;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      6px;
  --max-w:       860px;
}

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

html { scroll-behavior: smooth; }

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

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

/* === Nav === */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,17,23,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text-head);
  background: var(--bg-card2);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1rem;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* === Hero (homepage) === */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--text-head);
  margin-bottom: 1.5rem;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #0f1117;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* === Topic cards grid === */
.topic-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text);
}
.topic-card:hover {
  border-color: var(--accent);
  background: var(--bg-card2);
  text-decoration: none;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topic-card h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-head);
  line-height: 1.25;
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* === Disclaimer bar === */
.disclaimer-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--accent-glow);
  padding: 1.25rem 2rem;
}
.disclaimer-bar .container {
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.disclaimer-bar strong { color: var(--text); }

/* === Page hero (inner pages) === */
.page-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-head);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
}

/* === Content main === */
.content-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* === Fact blocks === */
.fact-block {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.fact-block:last-child { border-bottom: none; }

.fact-stat {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  min-width: 120px;
  line-height: 1.1;
  padding-top: 0.2rem;
  flex-shrink: 0;
}

.fact-body { flex: 1; }

.fact-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-head);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.fact-body p {
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.75;
}
.fact-body p:last-of-type { margin-bottom: 0.75rem; }

.source-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.source-tag a { color: var(--accent); font-size: 0.7rem; }

/* === Sources page === */
.sources-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.sources-section:last-child { border-bottom: none; }

.sources-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.source-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.source-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-head);
  margin-bottom: 0.25rem;
}

.source-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.source-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.source-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* === Page nav bar === */
.page-nav-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.page-nav-bar a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.page-nav-bar a:hover { color: var(--accent); text-decoration: none; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-inner a { font-size: 0.78rem; }

/* === Responsive === */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  .topic-grid { padding: 2rem 1.25rem; }
  .content-main { padding: 1.5rem 1.25rem 3rem; }
  .fact-block { flex-direction: column; gap: 0.75rem; }
  .fact-stat { font-size: 2rem; min-width: unset; }
  .page-nav-bar { padding: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .sources-section { padding: 1.25rem 0; }
  .source-entry { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
