:root {
  --purple-950: #1a0b2e;
  --purple-900: #22103d;
  --purple-800: #2e1652;
  --purple-700: #3d1f6b;
  --pink-500: #ff3d8f;
  --orange-400: #ff8a3d;
  --gold-400: #ffb648;
  --ink: #f4f1fa;
  --ink-dim: #cabfe0;
  --ink-faint: #9384b3;
  --surface: #251340;
  --surface-border: rgba(255, 255, 255, 0.09);
  --max-width: 960px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--purple-950);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 11, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: radial-gradient(120% 140% at 15% -10%, var(--purple-700) 0%, var(--purple-900) 45%, var(--purple-950) 75%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}

.hero::before {
  width: 340px;
  height: 340px;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle at 35% 35%, var(--pink-500), transparent 70%);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -100px;
  background: radial-gradient(circle at 40% 40%, var(--orange-400), transparent 70%);
  opacity: 0.35;
}

.hero.hero-sm {
  padding: 44px 0 36px;
}

.hero.hero-sm::before {
  width: 200px;
  height: 200px;
  right: -60px;
  top: -80px;
}

.hero.hero-sm::after {
  width: 150px;
  height: 150px;
  left: -50px;
  bottom: -70px;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(60% 80% at 80% 20%, black 0%, transparent 70%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 6px rgba(255, 61, 143, 0.15), 0 20px 50px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 4px 0 16px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--orange-400));
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff 30%, #e9d8ff 60%, var(--pink-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1.post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--ink);
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--ink-dim);
  margin: 0 0 6px;
}

.hero .location {
  font-size: 0.92rem;
  color: var(--ink-faint);
  margin: 0 0 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--surface-border);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--pink-500), var(--orange-400));
  color: #1a0b2e;
  border: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Sections */

section {
  padding: 56px 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-500);
  margin: 0 0 8px;
}

.section-intro {
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 0 36px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.about-body p {
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.skills-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}

.skills-card h3 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* Experience */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--surface-border);
}

.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--orange-400));
  box-shadow: 0 0 0 4px var(--purple-950);
}

.timeline-role {
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0;
}

.timeline-meta {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin: 2px 0 8px;
}

.timeline-desc {
  color: var(--ink-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* Projects */

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 143, 0.4);
}

.project-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(255, 182, 72, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}

.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project-card p {
  color: var(--ink-dim);
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.project-links a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.project-links a:hover {
  border-bottom-color: var(--pink-500);
}

.project-card.placeholder {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-faint);
}

/* Blog teaser */

.blog-teaser {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.blog-teaser p {
  color: var(--ink-dim);
  max-width: 480px;
  margin: 8px auto 20px;
}

/* Contact / Footer */

.contact-card {
  background: linear-gradient(120deg, var(--purple-700), var(--purple-800));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.contact-card p {
  margin: 0;
  color: var(--ink-dim);
}

footer {
  border-top: 1px solid var(--surface-border);
  padding: 28px 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-faint);
}

.footer-links a:hover {
  color: var(--ink-dim);
}

/* Blog page */

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
}

.blog-empty {
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-faint);
}

.blog-post-card:hover {
  border-color: rgba(255, 61, 143, 0.4);
}

.blog-post-card .timeline-role a {
  text-decoration: none;
  color: var(--ink);
}

.blog-post-card .timeline-role a:hover {
  color: var(--pink-500);
}

/* Post content (rendered markdown) */

.post-content {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--ink-dim);
  font-size: 1.02rem;
}

.post-content p {
  margin: 0 0 20px;
}

.post-content h2,
.post-content h3 {
  color: var(--ink);
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}

.post-content h2 {
  font-size: 1.35rem;
}

.post-content h3 {
  font-size: 1.15rem;
}

.post-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 61, 143, 0.5);
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--pink-500);
}

.post-content ul,
.post-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content strong {
  color: var(--ink);
}

.post-content blockquote {
  margin: 0 0 20px;
  padding: 4px 20px;
  border-left: 2px solid var(--pink-500);
  color: var(--ink-faint);
}

.post-content code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
}

.post-content pre {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
  margin: 0 0 20px;
}

.post-content pre code {
  background: none;
  padding: 0;
}

@media (max-width: 720px) {
  section {
    padding: 40px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    text-align: center;
    justify-content: center;
  }

  .cta-row {
    justify-content: center;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .nav .wrap {
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 8px 16px;
    font-size: 0.85rem;
  }
}
