/* Shared styling for the Famaly blog (listing + article pages) */
:root {
  --blue: #5D87FF; --blue-soft: #ECF2FF; --teal: #13DEB9; --amber: #FFAE1F;
  --red: #FA896B; --ink: #2A3547; --muted: #5A6A85; --bg: #F6F9FC; --card: #ffffff; --line: #EBF1F6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav { position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 20; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: .9rem; background: var(--blue); color: #fff !important; }
.btn:hover { text-decoration: none; }

/* Listing */
.blog-hero { text-align: center; padding: 56px 0 30px; }
.blog-hero .kicker { color: var(--blue); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.blog-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; margin: 8px 0 12px; }
.blog-hero p { color: var(--muted); font-size: 1.1rem; max-width: 40rem; margin: 0 auto; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding-bottom: 80px; }
.post-card { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(42,53,71,.06);
  display: flex; flex-direction: column; transition: transform .12s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(42,53,71,.12); text-decoration: none; }
.post-card .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--blue-soft); display: block; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card .cat { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.post-card h2 { font-size: 1.18rem; font-weight: 800; margin: 6px 0 8px; color: var(--ink); line-height: 1.3; }
.post-card p { font-size: .92rem; color: var(--muted); flex-grow: 1; }
.post-card .meta { margin-top: 14px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-card .more { margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--blue); }

/* Article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
.article-top { padding: 26px 0 8px; }
.crumb { font-size: .85rem; color: var(--muted); font-weight: 600; }
.article-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin: 18px 0 8px;
  box-shadow: 0 14px 40px rgba(42,53,71,.12); background: var(--blue-soft); }
.article-cat { color: var(--blue); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 20px; }
.article-meta { color: var(--muted); font-size: .88rem; margin: 4px 0 8px; }

/* Article typography — the marketer's HTML body drops in here */
.article { font-size: 1.06rem; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.18; margin: 6px 0 6px; }
.article h2 { font-size: 1.5rem; font-weight: 800; margin: 34px 0 10px; }
.article h3 { font-size: 1.15rem; font-weight: 700; margin: 22px 0 8px; }
.article p { margin: 0 0 16px; color: var(--ink); }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 9px; }
.article strong { color: var(--ink); }
.article blockquote { margin: 24px 0; }
.article table { font-size: .95rem; }
.article canvas { max-width: 100%; }
.article a { font-weight: 600; }

.article-cta { margin: 40px 0 0; padding: 26px; border-radius: 16px; background: var(--blue-soft); text-align: center; }
.article-cta h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.article-cta p { color: var(--muted); margin-bottom: 16px; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .88rem; }
.foot { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}
