:root {
  --accent:       #2563eb;
  --accent-light: #eff6ff;
  --accent-hover: #1d4ed8;
  --pro:          #15803d;
  --pro-bg:       #f0fdf4;
  --con:          #b91c1c;
  --con-bg:       #fef2f2;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --bg:           #f8fafc;
  --card-bg:      #ffffff;
  --border:       #e2e8f0;
  --radius:       8px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --max-w:        1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 60px;
}
.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.nav-brand span { color: var(--accent); }
.nav-tagline {
  font-size: .78rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  font-weight: 500;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Page header ─────────────────────────────────────────── */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }
.page-header p  { color: var(--text-muted); margin-top: .4rem; max-width: 600px; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ── Tags / pills ────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: .73rem;
  font-weight: 500;
  padding: .18rem .6rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.tag:hover { background: var(--accent); color: #fff; }

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.filter-bar .filter-label {
  font-size: .83rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: .25rem;
}
.filter-pill {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .78rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Cards grid ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: box-shadow .15s, border-color .15s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(37,99,235,.1);
  border-color: #bfdbfe;
}
.card h3 { font-size: 1rem; font-weight: 600; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.5;
  flex: 1;
}
.card-meta {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  gap: .75rem;
}

/* ── Hero (home page) ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

/* ── Home section strip ──────────────────────────────────── */
.home-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.home-section-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1rem;
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: background .15s;
}
.home-section-link:last-child { border-right: none; }
.home-section-link:hover { background: var(--accent-light); }
.hsl-count {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1;
}
.hsl-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Home categories ─────────────────────────────────────── */
.home-categories {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.home-cat-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .85rem;
}

/* ── Detail page ─────────────────────────────────────────── */
.detail-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.detail-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ── Pro/Con cards ───────────────────────────────────────── */
.procon-section { margin: 2rem 0; }
.procon-section h2 { font-size: .78rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.procon-list { display: flex; flex-direction: column; gap: 1.75rem; }
.procon-item {}
.aspect-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .6rem;
}
.procon-card {
  padding: .85rem 1rem .85rem 1.1rem;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  margin-bottom: .5rem;
  font-size: .9rem;
  line-height: 1.6;
}
.procon-card p { margin: 0; }
.procon-card--pro { background: var(--pro-bg); border-left-color: var(--pro); }
.procon-card--con { background: var(--con-bg); border-left-color: var(--con); }
.procon-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.procon-card--pro .procon-badge { color: var(--pro); }
.procon-card--con .procon-badge { color: var(--con); }

/* ── Related links ───────────────────────────────────────── */
.related-links { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-links h2 { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.related-links ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.related-links li::before { content: '→ '; color: var(--accent); }
.related-links a { font-size: .9rem; }

/* ── Influencer grid ─────────────────────────────────────── */
.influencer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.influencer-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s;
}
.influencer-card:hover {
  box-shadow: 0 4px 12px rgba(37,99,235,.1);
  border-color: #bfdbfe;
}
.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .7rem;
}
.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin: 0 auto .7rem;
}
.influencer-card .name {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Influencer photo ────────────────────────────────────── */
.influencer-photo {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.influencer-photo img {
  max-width: 280px;
  border-radius: 8px;
  display: block;
}
.influencer-photo[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: .72rem;
  line-height: 1.5;
  padding: .4rem .6rem;
  border-radius: 4px;
  white-space: normal;
  width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.influencer-photo[data-tooltip]:hover::after {
  opacity: 1;
}
.photo-credit {
  font-size: .67rem;
  color: var(--text-muted);
  margin-top: .3rem;
  max-width: 280px;
  line-height: 1.4;
}
.photo-credit a { color: var(--text-muted); text-decoration: none; }
.photo-credit a:hover { color: var(--accent); }

/* ── Influencer quotes ───────────────────────────────────── */
.influencer-quotes { margin-top: 2rem; }
.quotes-heading {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.influencer-quote { margin-bottom: 1.5rem; }
.quote-block {
  margin: 0;
  padding: .9rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}
.quote-cite {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
  font-style: normal;
}
.quote-cite a { color: var(--text-muted); }
.quote-cite a:hover { color: var(--accent); }
.quote-debate { margin-top: .5rem; }

/* ── Debate influencer quotes ────────────────────────────── */
.debate-quotes { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.debate-quotes h2 { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.debate-quotes .influencer-quote { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.5rem; }
.quote-avatar { flex-shrink: 0; display: block; }
.quote-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; display: block; }
.quote-avatar--initials {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.quote-body { flex: 1; min-width: 0; }
.quote-author { margin-top: .4rem; font-size: .8rem; font-weight: 600; }
.quote-author a { color: var(--accent); text-decoration: none; }
.quote-author a:hover { text-decoration: underline; }

/* ── Narrative content (challenges) ─────────────────────── */
.narrative { line-height: 1.8; color: var(--text); }
.narrative p { margin-bottom: 1rem; }
.narrative h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .5rem; }

/* ── Category / debate list ──────────────────────────────── */
.debate-list { display: flex; flex-direction: column; gap: .5rem; }
.debate-list-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s;
}
.debate-list-item:hover { border-color: #bfdbfe; }
.debate-list-item h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  min-width: 200px;
}
.debate-list-item p {
  font-size: .83rem;
  color: var(--text-muted);
  flex: 1;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: #fff;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--text-muted);
  align-items: center;
}
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-copy { margin-left: auto; }

@media (max-width: 640px) {
  .hero-content h1 { font-size: 2rem; }
  .home-sections { grid-template-columns: repeat(2, 1fr); }
  .home-sections .home-section-link:nth-child(2) { border-right: none; }
  .home-sections .home-section-link:nth-child(3) { border-top: 1px solid var(--border); }
  .home-sections .home-section-link:nth-child(4) { border-top: 1px solid var(--border); }
  .nav-tagline { display: none; }

  .footer-copy { margin-left: 0; }
  .debate-list-item { flex-direction: column; gap: .25rem; }
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal-prose h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 .6rem;
  color: var(--text);
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--border);
}
.legal-prose p { margin-bottom: .9rem; color: var(--text); line-height: 1.75; }
.legal-prose ul { margin: 0 0 .9rem 1.25rem; }
.legal-prose li { margin-bottom: .35rem; line-height: 1.7; font-size: .95rem; }
.legal-prose code { font-size: .85em; background: var(--accent-light); padding: .1em .35em; border-radius: 3px; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0 1.25rem;
  font-size: .875rem;
}
.legal-table th {
  text-align: left;
  padding: .5rem .75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.legal-table td {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table tr:nth-child(even) td { background: var(--bg); }
