@charset "UTF-8";

:root {
  --bg: #f7fafc;
  --panel: #ffffff;
  --panel-light: #f1f4fb;
  --text: #0f1626;
  --muted: #4c5567;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --border: #e4e7f0;
  --pill: rgba(15, 22, 38, 0.06);
  --card-radius: 14px;
  --shadow: 0 18px 50px rgba(15, 22, 38, 0.08);
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

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

body {
  margin: 0;
  background: linear-gradient(135deg, #f7fafc 0%, #eef3fb 100%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  padding: 28px;
  min-height: 100vh;
}

.sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
  position: sticky;
  top: 24px;
  height: fit-content;
  box-shadow: var(--shadow);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 14px;
}

h1 {
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.role {
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 600;
}

.meta {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 14px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.links a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--pill);
  border: 1px solid var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.links a:hover {
  background: rgba(63, 207, 142, 0.12);
  transform: translateY(-1px);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-group span,
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--border);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
}

.lede {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 10px;
}

.body {
  margin: 0 0 10px;
  color: var(--muted);
}

.now {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--card-radius);
  background: var(--panel-light);
  border: 1px solid var(--border);
}

.now .label {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

ul {
  padding-left: 20px;
  margin: 6px 0 10px;
}

li {
  margin-bottom: 6px;
  color: var(--muted);
}

.card {
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-kicker.saved {
  color: var(--muted);
}

.card.featured {
  background: var(--panel);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.08);
}

.card.saved {
  background: var(--panel);
  border-color: rgba(76, 85, 103, 0.18);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.card-title {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.card-meta {
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent-2);
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.list .card {
  margin-bottom: 12px;
}

.stack .card {
  margin-bottom: 12px;
}

.archive {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.archive .legacy-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px;
  margin-bottom: 12px;
}

.archive h2,
.archive h3,
.archive h4,
.archive h5 {
  margin-top: 14px;
  margin-bottom: 8px;
}

.archive img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pill);
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
}

.fa-ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.fa-ul li {
  margin-left: 0;
}

.book-list {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.book-list li {
  margin-bottom: 6px;
}

.link-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
}
.link-pill:hover {
  color: var(--accent-2);
  text-decoration: none;
}

.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 20px; }
.subheading { color: var(--muted); font-weight: 600; }
.d-flex { display: flex; flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.flex-md-row { flex-direction: row; }
.justify-content-between { justify-content: space-between; }
.flex-grow-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.text-primary { color: var(--accent); }

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .sidebar {
    position: relative;
    top: 0;
  }
}
