:root {
  --ink: #1c1c1c;
  --muted: #5f6368;
  --paper: #fffdf8;
  --card: #ffffff;
  --accent: #0d9488;
  --accent-2: #2563eb;
  --border: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: #f5f2ea;
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 500px at 10% -10%, #ffe9c5 0%, transparent 55%),
              radial-gradient(1000px 600px at 100% 0%, #dbeafe 0%, transparent 55%),
              linear-gradient(180deg, #f7f2e8 0%, #eef2ff 100%);
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #0f172a; color: #fff;
  font-weight: 600;
}
.title { font-family: "Fraunces", serif; font-size: 20px; }
.subtitle { font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 16px; }
.nav-link {
  text-decoration: none; color: var(--ink);
  padding: 6px 10px; border-radius: 8px;
}
.nav-link:hover { background: rgba(0,0,0,0.05); }

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 28px 40px;
}

.sidebar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  height: fit-content;
}

.sidebar-header { font-weight: 600; margin-bottom: 12px; }
.list { display: grid; gap: 8px; }

.community-link {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed transparent;
}
.community-link:hover { border-color: var(--border); background: #f8fafc; }

.content { display: grid; gap: 12px; }
.view-header { font-size: 14px; color: var(--muted); }

.feed { display: grid; gap: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--muted);
}

.badge {
  background: #eef2ff;
  color: #334155;
  border: 1px solid #c7d2fe;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

.badge.accent { background: #ecfeff; color: #0f766e; border-color: #99f6e4; }
.badge.warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.link {
  color: var(--accent-2);
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

.cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 45%, #0f766e 100%);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.25);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 70%);
  opacity: 0.6;
  transform: rotate(18deg);
}

.cta-left, .cta-right { position: relative; z-index: 1; }

.cta-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

.cta-title {
  font-family: "Fraunces", serif;
  font-size: 26px;
  margin-top: 4px;
}

.cta-body {
  margin-top: 6px;
  color: rgba(255,255,255,0.85);
}

.cta-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-link {
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.cta-link.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}

.cta-kicker {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.cta-code {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15,23,42,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .nav { display: none; }
}


.footer {
  padding: 16px 28px;
  color: var(--muted);
  font-size: 12px;
}
