/* GroupSettle Blog shared styles */
:root {
  --ink: #0B1220;
  --ink-2: #1a2438;
  --ink-3: #2d3a52;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --muted: #475569;
  --muted-2: #64748b;
  --accent: #1e2a6b;
  --accent-2: #3b82f6;
  --highlight: #fef3c7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  border: 1px solid transparent; border-radius: 8px;
}
.nav-link:hover { border-color: var(--line); background: var(--bg-2); color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; margin-left: 4px;
  background: var(--ink); color: #fff;
  text-decoration: none; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.15s, background 0.15s;
}
.nav-cta:hover { background: var(--ink-2); transform: translateY(-1px); }
@media (max-width: 760px) {
  .nav-actions .desktop-only { display: none; }
}

/* HERO (listing page) */
.blog-hero {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 60px 24px 50px;
}
.blog-hero-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-3);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.blog-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px; margin: 0 auto;
}

/* POST LIST */
.posts {
  max-width: 900px; margin: 0 auto;
  padding: 60px 24px 80px;
}
.post-card {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform 0.15s;
}
.post-card:first-of-type { padding-top: 0; }
.post-card:last-of-type { border-bottom: 0; }
.post-card:hover h2 { color: var(--accent); }
.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted-2);
  margin-bottom: 10px;
}
.post-pill {
  background: var(--bg-3);
  color: var(--accent);
  font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.post-card h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  transition: color 0.15s;
}
.post-card p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}
.read-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* ARTICLE (post page) */
.article-hero {
  max-width: 760px; margin: 0 auto;
  padding: 60px 24px 30px;
}
.article-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 14px 0 16px;
}
.article-dek {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 24px;
  font-weight: 400;
}
.article-byline {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.byline-name { font-weight: 600; color: var(--ink); }
.byline-meta { color: var(--muted-2); }
.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 40px 24px 30px;
  font-size: 18px;
  line-height: 1.7;
}
.article-body p { margin: 0 0 22px; color: var(--ink-2); }
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 50px 0 18px;
  line-height: 1.25;
}
.article-body ol, .article-body ul {
  margin: 0 0 22px;
  padding-left: 24px;
}
.article-body ol li, .article-body ul li {
  margin-bottom: 8px;
  color: var(--ink-2);
}
.article-body em { font-style: italic; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.article-body .lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 0 0 32px;
}
.article-cta {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0;
}
.article-cta p { margin: 0; color: var(--ink-2); }
.article-cta strong { color: var(--ink); }
.article-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.article-cta a:hover { text-decoration: underline; }
.article-bio {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 22px 26px;
  font-size: 15px;
  color: var(--muted);
  margin: 30px 0 0;
  font-style: italic;
  line-height: 1.55;
}
.article-bio strong { color: var(--ink); font-style: normal; }

/* RELATED */
.related {
  max-width: 900px; margin: 0 auto;
  padding: 40px 24px 80px;
  border-top: 1px solid var(--line);
}
.related h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 600;
  margin: 0 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.related-card {
  display: block;
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.related-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.related-card .post-pill { margin-bottom: 10px; }
.related-card h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 12px;
}
.foot a:hover { color: var(--ink); text-decoration: underline; }
