:root {
  --accent: #4d3bfe;
  --accent-dark: #3b2ce0;
  --text: #26262e;
  --muted: #6b6b76;
  --bg-alt: #f4f5fb;
  --border: #e6e6f0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(4px);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  position: relative;
}

.logo {
  font-family: "Lobster", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
  text-decoration: none;
}
.logo span { color: var(--text); }
.logo:hover { text-decoration: none; }

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.3rem;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--text);
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .92rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}

.main-nav a:hover {
  text-decoration: none;
}
.main-nav a:hover::after { transform: scaleX(1); }

/* Intro */
.intro {
  padding: 48px 0 36px;
  text-align: center;
}

.intro-title {
  font-family: "Lobster", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.6rem;
  color: var(--accent);
  margin: 0 0 14px;
}
.intro-title span { color: var(--text); }

.intro-lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 14px;
}

.intro p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.pill-nav a {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: .88rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.pill-nav a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Sections */
.section { padding: 46px 0; }
.section.alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.7rem;
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* Post / article */
.post { margin-bottom: 46px; }
.post:last-child { margin-bottom: 0; }

.post-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.post-thumb {
  flex: none;
  width: 96px;
  margin: 0;
}
.post-thumb img {
  border-radius: 10px;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.post-headtext { flex: 1; min-width: 0; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 1em;
  padding: .3em 1.1em;
  margin-bottom: 8px;
}

.post h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

.post-meta {
  color: var(--muted);
  font-size: .82rem;
  margin: 0;
}

.post-body p { margin: 0 0 16px; }
.post-body h3 {
  font-size: 1.1rem;
  margin: 26px 0 10px;
  color: var(--accent-dark);
}
.post-body ul, .post-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.post-body li { margin-bottom: 6px; }

.post-img {
  margin: 20px 0;
}
.post-img img {
  border-radius: 8px;
  border: 1px solid var(--border);
}
.post-img figcaption {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Footer */
.site-footer {
  background: #1c1c26;
  color: #c6c6d4;
  padding: 36px 0;
  margin-top: 20px;
  text-align: center;
}
.footer-logo {
  font-family: "Lobster", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 8px;
}
.footer-logo span { color: var(--accent); }
.footer-text { margin: 0 0 14px; font-size: .88rem; }
.footer-bottom {
  margin: 0;
  font-size: .78rem;
  color: #8a8a9a;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 10px; }
  .post-head { flex-direction: column; }
  .post-thumb { width: 100%; }
  .post-thumb img { width: 100%; height: auto; max-height: 220px; }
  .intro-title { font-size: 2rem; }
}
