/* Blog — same Soft Candy Glass system as the lander, laid out for reading.
   Loaded only on /blog pages so the lander stays lean. */

body.blog {
  display: block;
  min-height: 100vh;
  padding: 0 20px 72px;
  background: linear-gradient(180deg, var(--ground-1) 0%, var(--ground-2) 55%, var(--ground-3) 100%);
  background-attachment: fixed;
}

body.blog a {
  color: var(--pink);
}

.back-home {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}

.back-home:hover {
  color: var(--pink);
}

/* ---------- header ---------- */

.blog-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 28px;
  text-align: center;
}

.blog-header h1 {
  font-family: 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.15;
  color: #ffffff;
  margin: 18px 0 8px;
  text-shadow: 0 2px 18px rgba(255, 179, 217, 0.35);
}

.blog-tagline {
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.post-header {
  text-align: left;
  border-bottom: 1px solid rgba(255, 179, 217, 0.18);
  padding-bottom: 26px;
}

.post-meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tags li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: var(--lilac);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

/* ---------- index ---------- */

.blog-main {
  max-width: 720px;
  margin: 0 auto;
}

.post-card {
  margin-bottom: 16px;
}

.post-card-link {
  display: block;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 217, 0.6);
  box-shadow: 0 0 30px rgba(255, 179, 217, 0.18);
}

.post-card h2 {
  font-family: 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #ffffff;
}

.post-excerpt {
  color: rgba(253, 244, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.62;
  margin: 12px 0 14px;
}

.post-more {
  color: var(--pink);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- post body ---------- */

.post-body {
  padding-top: 30px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: rgba(253, 244, 255, 0.85);
}

.post-body p {
  margin-bottom: 18px;
}

.post-body section {
  margin-bottom: 12px;
}

.post-body h2 {
  font-family: 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.24rem;
  line-height: 1.3;
  color: var(--pink);
  margin: 34px 0 14px;
}

.post-intro {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text);
  padding-left: 16px;
  border-left: 2px solid rgba(255, 179, 217, 0.5);
}

.post-outro {
  margin-top: 30px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 164, 255, 0.22);
  color: var(--text);
}

/* ---------- footer ---------- */

.blog-footer {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
}

.blog-footer .btn {
  margin: 0 auto;
}

.cta-card {
  padding: 26px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 179, 217, 0.12), rgba(200, 164, 255, 0.12));
  border: 1px solid rgba(255, 179, 217, 0.3);
  margin-bottom: 28px;
}

.cta-card p {
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 26px;
  text-align: left;
}

.post-nav a {
  flex: 1 1 240px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(253, 244, 255, 0.82);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.post-nav a:hover {
  border-color: rgba(169, 232, 255, 0.5);
  color: var(--text);
}

.post-nav-next {
  text-align: right;
}

@media (max-width: 560px) {
  .blog-header {
    padding-top: 32px;
  }

  .post-card-link {
    padding: 20px 20px;
  }

  .post-nav a {
    flex-basis: 100%;
    text-align: left;
  }
}
