:root {
  --blue: #4c8bf5;
  --blue-dark: #3d78e0;
  --green: #1f8a3d;
  --ink: #1f2430;
  --muted: #676c74;
  --border: #e2e5ea;
  --bg-soft: #f7f8fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: var(--blue); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
}

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

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

.footer-links { display: flex; gap: 18px; }

@media (max-width: 560px) {
  .nav-links { display: none; }
}

/* ---------- BLOG ---------- */

.blog-hero {
  padding: 48px 0 8px;
  text-align: center;
}

.blog-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(76, 139, 245, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.blog-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 14px;
}

.blog-hero p.sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

.blog-list {
  padding: 24px 0 64px;
}

.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.post-card:hover,
.post-card:focus-visible,
.post-card:active {
  border-color: var(--blue);
  background: var(--bg-soft);
  outline: none;
}

.post-card-thumb {
  display: block;
  width: calc(100% + 48px);
  margin: -24px -24px 18px;
  aspect-ratio: 1280 / 800;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 560px) {
  body { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .wrap { padding: 0; }
  .blog-hero { padding: 36px 0 4px; }
  .blog-list { padding: 16px 0 48px; }
  .post-card { padding: 16px; margin-bottom: 14px; }
  .post-card h2 { font-size: 17px; }
  .post-card-thumb { width: calc(100% + 32px); margin: -16px -16px 14px; }
}

.post-card h2 {
  font-size: 19px;
  margin: 0 0 8px;
}

.post-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.post-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

article.post {
  max-width: 680px;
  margin: 0 auto;
  padding: 44px 0 72px;
}

article.post .post-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

article.post h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
}

article.post .post-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 32px;
}

article.post h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 14px;
}

article.post p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

article.post ul, article.post ol {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
  padding-left: 22px;
}

article.post li { margin-bottom: 6px; }

article.post img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(31, 36, 48, 0.1);
  margin: 10px 0 30px;
}

article.post .callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--ink);
  margin: 0 0 24px;
}

article.post .cta-box {
  background: rgba(76, 139, 245, 0.06);
  border: 1px solid rgba(76, 139, 245, 0.25);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  margin-top: 40px;
}

article.post .cta-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

article.post .cta-box p {
  margin: 0 0 18px;
  color: var(--muted);
}
