/* Pibbl blog — uses the exact design system from the main marketing site. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amber: #F59E0B;
  --amber-light: #FDE68A;
  --amber-dark: #D97706;
  --coral: #F97316;
  --teal: #0D9488;
  --teal-light: #CCFBF1;
  --navy: #1E293B;
  --ink: #0F172A;
  --slate: #475569;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --bg: #FFFBF5;
  --white: #FFFFFF;
  --warm-50: #FFF7ED;
  --warm-100: #FFEDD5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV (copied from site) ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--slate); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber); color: var(--ink); font-weight: 700; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 10px; text-decoration: none;
  transition: background 0.15s, transform 0.1s; white-space: nowrap;
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* ── Layout ── */
main { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }

/* ── Blog index ── */
.index-head { max-width: 1100px; margin: 0 auto; padding: 72px 24px 8px; }
.eyebrow-pill {
  display: inline-block; background: var(--teal-light); color: var(--teal);
  font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.index-head h1 { font-size: 2.8rem; font-weight: 800; color: var(--ink); letter-spacing: -1.5px; line-height: 1.08; }
.index-head h1 .accent { color: var(--coral); }
.index-head p { font-size: 1.1rem; color: var(--slate); margin-top: 14px; max-width: 600px; line-height: 1.6; }
.post-grid { max-width: 1100px; margin: 0 auto; padding: 36px 24px 88px; display: grid; gap: 22px; }
.post-card {
  display: block; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 32px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .tag { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--coral); margin-bottom: 12px; }
.post-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); line-height: 1.28; letter-spacing: -0.5px; }
.post-card p { font-size: 0.98rem; color: var(--slate); margin-top: 10px; line-height: 1.6; }
.post-card .read { font-size: 0.82rem; color: var(--muted); margin-top: 16px; font-weight: 600; }

/* ── Article ── */
.back-link { display: inline-block; margin-bottom: 26px; font-size: 0.88rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); margin-bottom: 14px; }
article h1 { font-size: 2.5rem; font-weight: 800; color: var(--ink); line-height: 1.12; letter-spacing: -1.2px; margin-bottom: 16px; }
.byline { font-size: 0.85rem; color: var(--muted); margin-bottom: 44px; font-weight: 500; }
.byline a { color: var(--slate); }
article h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 44px 0 14px; letter-spacing: -0.6px; }
article h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 30px 0 10px; }
article p { font-size: 1.05rem; line-height: 1.8; color: var(--slate); margin-bottom: 20px; }
article ul, article ol { margin: 0 0 20px 0; padding-left: 26px; }
article li { font-size: 1.05rem; line-height: 1.75; color: var(--slate); margin-bottom: 9px; }
article strong { color: var(--ink); font-weight: 700; }
article a { color: var(--coral); font-weight: 600; }
article a:hover { color: var(--amber-dark); }
article blockquote {
  border-left: 4px solid var(--amber); background: var(--warm-50);
  padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 24px; font-size: 1.1rem; color: var(--navy); font-weight: 600;
}

/* ── CTA box (mirrors site's dark CTA) ── */
.cta-box { background: var(--ink); border-radius: var(--radius); padding: 38px 40px; margin: 52px 0 0; text-align: center; box-shadow: var(--shadow-lg); }
.cta-box h3 { color: var(--white); font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.cta-box p { color: #94A3B8; font-size: 1.02rem; margin-bottom: 22px; }
.cta-box a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber); color: var(--ink); font-weight: 700; text-decoration: none;
  padding: 13px 26px; border-radius: 10px; font-size: 0.98rem; transition: background 0.15s, transform 0.1s;
}
.cta-box a:hover { background: var(--amber-dark); transform: translateY(-1px); }

/* ── FOOTER (copied from site) ── */
footer { background: var(--ink); padding: 56px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr auto auto auto; gap: 48px; margin-bottom: 48px; }
.footer-brand { max-width: 260px; }
.footer-logo { font-weight: 800; font-size: 1.2rem; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo img { height: 38px; width: auto; }
.footer-brand p { font-size: 0.82rem; color: #64748B; line-height: 1.65; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748B; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.85rem; color: #94A3B8; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8rem; color: #475569; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: #475569; text-decoration: none; }
.footer-legal a:hover { color: #94A3B8; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  main { padding: 44px 20px 64px; }
  .index-head { padding: 48px 20px 8px; }
  .index-head h1 { font-size: 2rem; }
  article h1 { font-size: 1.85rem; }
  .post-grid { padding: 28px 20px 64px; }
  .footer-top { grid-template-columns: 1fr; }
}
