:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #f64749;
  --accent-dark: #cf3234;
  --container: 1024px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 20% -10%, #ffecec 0, rgba(255, 236, 236, 0) 55%), var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; }

.wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.blogHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.blogNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 116px;
  height: auto;
}

.navLinks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navLinks a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
}

.navLinks a:hover {
  border-color: var(--line);
  background: #fff;
}

.hero {
  padding: 48px 0 24px;
}

.heroCard {
  background: linear-gradient(170deg, #fff 0%, #fff7f7 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.kicker {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 6px 10px;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0 54px;
}

.postCard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.postCard:hover {
  border-color: #fca5a5;
  transform: translateY(-2px);
  transition: 0.15s ease;
}

.postCard h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.postCard p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.postMeta {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.badge {
  width: fit-content;
  font-size: 12px;
  font-weight: 800;
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-radius: 999px;
  padding: 5px 9px;
}

.article {
  padding: 34px 0 56px;
}

.articleWrap {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.article h1 {
  font-size: clamp(28px, 5vw, 42px);
}

.article h2 {
  margin: 30px 0 12px;
  font-size: 24px;
  line-height: 1.24;
}

.article p,
.article li {
  font-size: 17px;
  color: #1f2937;
}

.article ul,
.article ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.article .lede {
  color: #374151;
  font-size: 19px;
}

.articleCta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 12px 20px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.articleCta:hover {
  background: var(--accent-dark);
}

.backLink {
  display: inline-flex;
  margin-bottom: 14px;
  font-weight: 700;
  color: #b91c1c;
  text-decoration: none;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .blogNav {
    min-height: 60px;
  }

  .navLinks {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .heroCard {
    padding: 20px;
    border-radius: 16px;
  }

  .hero p {
    font-size: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }

  .articleWrap {
    border-radius: 16px;
    padding: 20px;
  }

  .article p,
  .article li {
    font-size: 16px;
  }
}
