:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #656d76;
  --border: #e6e8eb;
  --accent: #111827;
  --accent-soft: #eef2ff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12), 0 4px 12px rgba(16, 24, 40, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 18px; font-size: 0.95rem; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }

.hero {
  padding: 72px 0 40px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

section { padding: 28px 0; }
.section-title {
  font-size: 1.35rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 720px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.feature h3 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: inherit;
}
.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #d9dde3;
  text-decoration: none;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex: 0 0 56px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}
.avatar.a { background: linear-gradient(135deg, #111827, #4b5563); }
.avatar.b { background: linear-gradient(135deg, #374151, #9ca3af); }
.channel-meta { min-width: 0; }
.channel-name { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.channel-handle { margin: 2px 0 6px; color: var(--muted); font-size: 0.92rem; }
.channel-desc { margin: 0; color: var(--muted); font-size: 0.93rem; }
.channel-cta {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 16px; }

/* Policy pages */
.prose h2 { margin-top: 28px; margin-bottom: 8px; font-size: 1.15rem; }
.prose p, .prose li { color: #374151; }
.prose ul { padding-left: 20px; }
.prose code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
.muted { color: var(--muted); }

@media (max-width: 640px) {
  .header-inner { height: auto; padding: 12px 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding-top: 44px; }
  .panel { padding: 20px; }
  .channel-card { align-items: flex-start; }
  .channel-cta { display: none; }
}
