/* Exact layout + design inspired by linkedin_profile_strategy_guide.html */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf9;
  --bg-secondary: #f3f2ef;
  --bg-primary: #ffffff;
  --text-primary: #1a1a18;
  --text-secondary: #5a5a56;
  --text-tertiary: #9a9a94;
  --border: rgba(0,0,0,0.10);
  --border-md: rgba(0,0,0,0.18);
  --border-strong: rgba(0,0,0,0.28);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --purple-bg: #EEEDFE;
  --purple-text: #3C3489;
  --teal-bg: #E1F5EE;
  --teal-text: #0F6E56;
  --amber-bg: #FAEEDA;
  --amber-text: #854F0B;
  --coral-bg: #FAECE7;
  --coral-text: #993C1D;
  --accent: #7F77DD;
  --success: #1D9E75;
  --danger: #D85A30;
  --font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181816;
    --bg-secondary: #222220;
    --bg-primary: #2a2a28;
    --text-primary: #f0efe8;
    --text-secondary: #aaa9a0;
    --text-tertiary: #6a6a64;
    --border: rgba(255,255,255,0.08);
    --border-md: rgba(255,255,255,0.14);
    --border-strong: rgba(255,255,255,0.22);
    --purple-bg: #26215C;
    --purple-text: #CECBF6;
    --teal-bg: #04342C;
    --teal-text: #9FE1CB;
    --amber-bg: #412402;
    --amber-text: #FAC775;
    --coral-bg: #4A1B0C;
    --coral-text: #F5C4B3;
  }
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }

.layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border-md);
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.page-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 15px;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}

.follow-btn:hover {
  border-color: var(--border-strong);
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-header-main {
  min-width: 0;
  flex: 1 1 auto;
}

.page-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 0.5px solid var(--border);
  background: var(--bg-primary);
}

.page-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.65;
}

/* Follow dropdown */
.follow-details {
  position: relative;
}

.follow-details[open] .follow-btn {
  border-color: var(--border-strong);
}

.follow-details summary {
  list-style: none;
}

.follow-details summary::-webkit-details-marker {
  display: none;
}

.follow-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
  z-index: 20;
}

.follow-item {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.follow-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 15px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all .15s ease;
}

.nav-btn:hover {
  border-color: var(--border-md);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--bg-primary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 500;
}

.section { display: none; }
.section.active { display: block; animation: fadeIn .2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.5rem;
}

.thesis {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin-bottom: 1.75rem;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.65;
  font-style: italic;
}

.divider {
  height: 0.5px;
  background: var(--border);
  margin: 1.75rem 0;
}

/* Callout block (avoid/instead style) */
.example-block {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 12px;
}

.example-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.example-bad {
  font-size: 13px;
  color: var(--danger);
  line-height: 1.5;
  margin-bottom: 10px;
}

.example-good {
  font-size: 13px;
  color: var(--success);
  line-height: 1.5;
}

.example-block ul {
  padding-left: 1.2rem;
  margin: 0;
}

.example-block li {
  margin-bottom: 10px;
}

.example-block li:last-child {
  margin-bottom: 0;
}

/* Cards (principles) */
.principles { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.75rem; }

.principle,
.archive__item,
.cv-header,
.cv-entry {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.principle-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.principle-title,
.archive__item-title,
.cv-entry__role {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.principle-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Small pill metadata (dates) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  margin-left: 8px;
  vertical-align: middle;
}

/* Make existing archive/cv markup feel like the reference */
.archive__item {
  margin-bottom: 12px;
}

.list__item {
  margin-bottom: 12px;
}

.cv-header,
.cv-entry {
  margin-bottom: 12px;
}

.archive__item-excerpt,
.archive__item-body,
.cv-entry__tagline,
.cv-entry__bullets,
.cv-header__links,
.pubs__meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.archive__item-title a {
  color: var(--text-primary);
}

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

.pub-chip,
.metric-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  margin-left: 0.35rem;
}

/* Feature-row cards used on the homepage */
.feature__wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.75rem;
}

.feature__item { width: 100%; }

.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.75rem;
}

/* Buttons inside content */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  color: var(--text-primary);
  transition: all .15s ease;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--border-md);
}

.btn--primary {
  background: var(--bg-primary);
  border-color: var(--border-strong);
}

/* Markdown-ish content */
.content h2, .content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.content p { margin-bottom: 0.9rem; color: var(--text-secondary); }
.content ul { padding-left: 1.25rem; margin-bottom: 1rem; color: var(--text-secondary); }
.content li { margin-bottom: 0.4rem; }
.content hr { border: none; border-top: 0.5px solid var(--border); margin: 1.25rem 0; }
.content a { text-decoration: underline; text-underline-offset: 2px; }

/* Mindset cards */
.mindset-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: .06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mindset-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 2rem;
}

@media (max-width: 560px) {
  .mindset-cards { grid-template-columns: 1fr; }
}

.mindset-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.mindset-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.mindset-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mindset-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Prev/next row */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}

.arrow-btn {
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all .15s;
  display: inline-block;
}

.arrow-btn:hover {
  border-color: var(--border-md);
  color: var(--text-primary);
}

.arrow-btn.disabled,
.arrow-btn[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.progress-dots { display: flex; gap: 6px; align-items: center; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-md);
  transition: background .2s;
  cursor: pointer;
}

.dot.active { background: var(--accent); }
