@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #1a1a1a;
  --ink-light: #444;
  --ink-muted: #888;
  --rule: #d4c9b8;
  --paper: #faf8f4;
  --paper-dark: #f0ece4;
  --accent: #c0392b;
  --accent-dark: #96281b;
  --nav-bg: #111;
  --nav-text: #f5f5f5;
  --tag-bg: #f0ece4;
  --col-width: 1200px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.nav-inner {
  max-width: var(--col-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.nav-brand span { color: var(--accent); }
.nav-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── MASTHEAD ── */
.masthead {
  border-bottom: 3px double var(--rule);
  padding: 1.5rem 2rem 1rem;
  text-align: center;
  background: var(--paper-dark);
}
.masthead h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.masthead .edition {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.masthead .dateline {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
  font-style: italic;
}

/* ── LAYOUT ── */
.container { max-width: var(--col-width); margin: 0 auto; padding: 0 2rem; }

.front-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

/* ── LEAD STORY ── */
.lead-story { border-right: 1px solid var(--rule); padding-right: 2rem; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.lead-story h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.lead-summary {
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.stats-bar {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
.stat { text-align: center; }
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat .label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}
.watchlist h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}
.watchlist ul { list-style: none; }
.watchlist li {
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.9rem;
}
.watchlist li::before { content: '→ '; color: var(--accent); font-weight: bold; }

/* ── SIDEBAR ── */
.sidebar {}
.archive-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.archive-item {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
.archive-item:hover { color: var(--accent); }
.archive-item .arc-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.archive-item .arc-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.2rem;
  line-height: 1.3;
}
.archive-item .arc-stats {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}
.arc-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* ── REPORT PAGE ── */
.report-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 3px double var(--rule);
  margin-bottom: 2rem;
}
.report-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.report-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ── CATEGORIES ── */
.category-block {
  margin-bottom: 2rem;
  border: 1px solid var(--rule);
  background: #fff;
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-dark);
  user-select: none;
}
.category-header:hover { background: var(--rule); }
.category-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.category-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: bold;
  transition: transform 0.2s;
}
.category-toggle.open { transform: rotate(45deg); }
.category-body { padding: 1.25rem; display: none; }
.category-body.open { display: block; }
.category-summary {
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
}

/* ── POSTS ── */
.post-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-card:last-child { border-bottom: none; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.post-author {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
.post-handle {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.post-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-left: auto;
}
.post-content {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.post-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  color: var(--ink-muted);
}
.post-tag.credibility { border-color: #2ecc71; color: #27ae60; }
.post-tag.credibility.warn { border-color: #e67e22; color: #d35400; }
.post-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}
.post-link:hover { text-decoration: underline; }
.why-popular {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 0.4rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--rule);
}

/* ── FOOTER ── */
footer {
  border-top: 3px double var(--rule);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  background: var(--paper-dark);
}
footer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ── LOADING / EMPTY ── */
.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .front-page { grid-template-columns: 1fr; }
  .lead-story { border-right: none; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; }
  .stats-bar { gap: 1rem; }
  nav { padding: 0 1rem; }
  .container { padding: 0 1rem; }
}

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