/* People of Internet — Global Tech Policy Think Tank */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #1d4ed8;
  --accent-light: #eff6ff;
  --border: #e5e7eb;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

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

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.logo svg { width: 48px; height: 32px; }

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
}

.hero-figures {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* ── Featured Article ── */
.featured-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.featured-article .article-img {
  width: 100%;
  height: 280px;
  background: #1e3a8a;
  overflow: hidden;
}

.featured-article .article-body { padding: 28px; }
.featured-article .article-body h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.featured-article .article-body p { color: var(--muted); margin-bottom: 16px; }

/* ── Article Grid ── */
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.article-card .card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.article-card .card-body { padding: 16px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-region {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
}

.article-card h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--accent); text-decoration: none; }
.article-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Sidebar ── */
.sidebar {}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 16px;
}

.topic-list { list-style: none; }
.topic-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.topic-list li:last-child { border-bottom: none; }
.topic-count {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
}

.about-box { text-align: center; }
.about-figures { margin-bottom: 12px; }
.about-box p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.about-box .follow-btn {
  display: inline-block;
  margin-top: 14px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ── Article Page ── */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-page .article-header { margin-bottom: 32px; }
.article-page .article-region { margin-bottom: 12px; }
.article-page h1 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-page .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-page .article-infographic {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-page .article-content { font-size: 17px; line-height: 1.75; }
.article-page .article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
}
.article-page .article-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.article-page .article-content p { margin-bottom: 20px; }
.article-page .article-content ul,
.article-page .article-content ol {
  margin: 0 0 20px 24px;
}
.article-page .article-content li { margin-bottom: 8px; }

.article-page .article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

.citations {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.citations h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
}

.citations ol {
  margin-left: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.citations ol li { margin-bottom: 6px; }
.citations a { color: var(--accent); }

.share-bar {
  margin-top: 40px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-bar span { font-size: 14px; font-weight: 600; }
.share-btn {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ── Footer ── */
footer {
  background: var(--text);
  color: #9ca3af;
  padding: 40px 24px;
  font-size: 13px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { color: white; font-weight: 700; font-size: 15px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: white; text-decoration: none; }

/* ── Infographic SVG styles ── */
.infographic-wrap {
  background: #1e3a8a;
  padding: 32px;
  border-radius: var(--radius);
  color: white;
}
