/* ── Reset & Root ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f4f7;
  --surface: #ffffff;
  --border: #e2e0ed;
  --ink: #1a1730;
  --muted: #6b6884;
  --purple: #7952cc;
  --purple-dark: #5b39a8;
  --purple-light: #eeecf7;
  --purple-mid: #c4b8eb;
  --accent: #ff6b35;
  --teal: #0abf8f;
  --yellow: #f5a623;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

.site-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

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

img { max-width: 100%; height: auto; }

/* ── Navigation ── */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
}
.nav-bar.top { margin-bottom: 40px; }
.nav-bar.bottom { margin-top: 40px; }

.nav-logo {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links li a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.nav-links li a:hover,
.nav-links li.current-menu-item a,
.nav-links li.current-page-ancestor a {
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 600;
}

/* ── Hero block ── */
.hero-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px 44px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.hero-block::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(121,82,204,0.12), transparent 70%);
  pointer-events: none;
}
.hero-block h1 {
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}
.hero-block h1 .name-highlight { color: var(--purple); }
.hero-tagline { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; }
.hero-tagline span { font-size: 0.84rem; color: var(--muted); }
.hero-intro { font-size: 0.97rem; line-height: 1.75; color: var(--muted); margin-top: 20px; max-width: 520px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: var(--purple);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.hero-cta:hover { background: var(--purple-dark); text-decoration: none; color: white; }

/* ── Card section wrapper ── */
.card-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
  display: block;
}
.card-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Philosophy pillars ── */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pillar:hover {
  border-color: var(--purple-mid);
  box-shadow: 0 2px 12px rgba(121,82,204,0.08);
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 10px;
}
.pillar:nth-child(1) .pillar-icon { background: rgba(245,166,35,0.15); }
.pillar:nth-child(2) .pillar-icon { background: rgba(10,191,143,0.15); }
.pillar:nth-child(3) .pillar-icon { background: rgba(121,82,204,0.12); }
.pillar:nth-child(4) .pillar-icon { background: rgba(255,107,53,0.12); }
.pillar-label { font-size: 0.78rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.pillar p { font-size: 0.84rem; line-height: 1.55; color: var(--muted); margin: 0; }

/* ── Portfolio list ── */
.portfolio-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.portfolio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.portfolio-row:hover {
  border-color: var(--purple-mid);
  background: var(--purple-light);
  text-decoration: none;
  color: var(--ink);
}
.portfolio-row-left { display: flex; align-items: center; gap: 12px; }
.portfolio-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.portfolio-arrow { font-size: 0.8rem; color: var(--purple-mid); }
.portfolio-row:hover .portfolio-arrow { color: var(--purple); }

/* ── Single portfolio page ── */
.portfolio-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 32px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.portfolio-hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(121,82,204,0.1), transparent 70%);
  pointer-events: none;
}
.portfolio-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--purple); letter-spacing: -0.5px; }
.kpi-label { font-size: 0.72rem; color: var(--muted); margin-top: 3px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Now page ── */
.now-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.now-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.now-section p { font-size: 0.93rem; color: var(--muted); line-height: 1.7; }
.now-section ul { list-style: none; padding: 0; margin-top: 10px; }
.now-section ul li {
  font-size: 0.92rem; color: var(--muted); padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.55;
}
.now-section ul li::before { content: '→'; color: var(--purple); flex-shrink: 0; font-size: 0.82rem; margin-top: 2px; font-weight: 600; }
.now-section ul li:last-child { border-bottom: none; }

/* ── Blog archive ── */
.blog-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.blog-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.blog-item:hover {
  border-color: var(--purple-mid);
  box-shadow: 0 2px 12px rgba(121,82,204,0.07);
  text-decoration: none;
  color: var(--ink);
}
.blog-date { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.blog-item h2 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.2px; }
.blog-item .excerpt { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── Single post ── */
.post-header { margin-bottom: 28px; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.post-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-light); padding: 3px 10px; border-radius: 999px;
}
.post-date-label { font-size: 0.78rem; color: var(--muted); }
.post-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 12px; }
.post-deck { font-size: 1rem; color: var(--muted); line-height: 1.7; }

.post-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 32px 28px;
}
.post-body h2,
.post-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 28px 0 10px; letter-spacing: -0.2px; }
.post-body h2:first-child,
.post-body h3:first-child { margin-top: 0; }
.post-body p { font-size: 0.95rem; color: #3d3a52; line-height: 1.8; margin-bottom: 16px; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin-bottom: 16px; }
.post-body li { font-size: 0.93rem; color: #3d3a52; line-height: 1.7; margin-bottom: 6px; }
.post-body blockquote {
  background: var(--purple-light);
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--purple-dark);
  line-height: 1.65;
}
.post-body blockquote p { color: var(--purple-dark); margin: 0; }

/* ── Contact page ── */
.contact-email-block {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--purple-light);
  border: 1px solid var(--purple-mid);
  border-radius: 11px;
  margin: 20px 0;
}
.contact-email-block a { font-size: 1rem; font-weight: 700; color: var(--purple-dark); text-decoration: none; }
.social-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-link {
  font-size: 0.8rem; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--purple-mid); color: var(--purple); text-decoration: none; }

/* ── Page header ── */
.page-title-bar { margin-bottom: 28px; }
.page-title-bar h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.page-subtitle { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

/* ── Back link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--purple); text-decoration: none; margin-bottom: 20px; transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; text-decoration: none; }
.back-link svg { width: 13px; height: 13px; }

/* ── Tag row ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-light); padding: 4px 10px; border-radius: 999px;
}

/* ── Portfolio section content ── */
.portfolio-content { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.portfolio-content h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.portfolio-content p { font-size: 0.93rem; color: #3d3a52; line-height: 1.75; margin-bottom: 12px; }
.portfolio-content ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.portfolio-content li { font-size: 0.91rem; color: #3d3a52; display: flex; align-items: flex-start; gap: 10px; line-height: 1.65; }
.portfolio-content li::before { content: '→'; color: var(--purple); flex-shrink: 0; font-size: 0.8rem; margin-top: 3px; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-wrapper { padding: 32px 16px 60px; }
  .hero-block { padding: 32px 22px; }
  .pillars { grid-template-columns: 1fr; }
  .portfolio-kpis { grid-template-columns: 1fr 1fr; }
  .nav-links li a { padding: 5px 8px; font-size: 0.72rem; }
  .post-body { padding: 22px 18px; }
}

/* ── How I Work steps ── */
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.hiw-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.hiw-step:hover {
  border-color: var(--purple-mid);
  box-shadow: 0 2px 12px rgba(121,82,204,0.08);
}

/* connector line between steps */
.hiw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -7px;
  width: 12px;
  height: 1px;
  background: var(--purple-mid);
  z-index: 1;
}

.hiw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.hiw-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.hiw-step p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 600px) {
  .hiw-steps {
    grid-template-columns: 1fr 1fr;
  }
  .hiw-step:not(:last-child)::after {
    display: none;
  }
}

/* ── What I Can Bring cards (icon variant of hiw-step) ── */
.wicb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-light);
  font-size: 18px;
  margin-bottom: 10px;
}

.wicb-card:nth-child(1) .wicb-icon { background: rgba(245,166,35,0.15); }
.wicb-card:nth-child(2) .wicb-icon { background: rgba(10,191,143,0.15); }
.wicb-card:nth-child(3) .wicb-icon { background: rgba(121,82,204,0.12); }
.wicb-card:nth-child(4) .wicb-icon { background: rgba(255,107,53,0.12); }

/* no connector line on wicb cards since they aren't numbered steps */
.wicb-card::after { display: none !important; }
