/* Core Merchants blog. Light, warm theme that matches the main site. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --bg: #FFFAF3;
  --bg-alt: #FFF3E3;
  --card: #FFFFFF;
  --border: #EFE3D0;
  --ink: #1B2540;
  --text: #5A6475;
  --text-strong: #33405A;
  --accent: #E8913A;
  --accent-hover: #D17E2E;
  --blue: #2F7DD9;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar-logo img { width: 260px; height: 40px; object-fit: cover; margin-left: -22px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-strong); }
.nav-links a:hover { color: var(--blue); }
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn.btn-lg { padding: 16px 36px; font-size: 16px; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .navbar-logo img { width: 200px; height: 32px; margin-left: -17px; }
}

/* Blog index */
.blog-hero { padding: 72px 0 40px; text-align: center; }
.label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 145, 58, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.blog-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: var(--ink); line-height: 1.15; margin-bottom: 16px; }
.blog-hero p { font-size: 18px; max-width: 600px; margin: 0 auto; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 24px 0 96px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(27, 37, 64, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 37, 64, 0.1); }
.post-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: 13px; color: var(--text); }
.post-card h2 { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.post-card p { font-size: 15px; }
.post-card .read-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.empty { padding: 24px 0 96px; text-align: center; }

/* Single post */
.post-header { padding: 64px 0 32px; }
.post-header .back { font-size: 14px; font-weight: 600; color: var(--blue); }
.post-header h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; color: var(--ink); line-height: 1.15; margin: 16px 0 12px; }
.post-header .post-lede { font-size: 19px; color: var(--text-strong); }
.post-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 50px rgba(27, 37, 64, 0.12); }
.post-body { padding: 40px 0 24px; }
.post-body h2 { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.3; margin: 36px 0 12px; }
.post-body p { font-size: 17px; margin-bottom: 18px; }
.post-figure { float: right; width: 46%; height: auto; margin: 6px 0 14px 26px; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 30px rgba(27, 37, 64, 0.08); }
.post-body h2 { clear: both; }
.post-takeaway { clear: both; }
@media (max-width: 600px) { .post-figure { float: none; width: 100%; margin: 4px 0 18px; } }
.post-takeaway {
  margin: 32px 0 8px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
}
.post-takeaway strong { display: block; color: var(--ink); margin-bottom: 6px; }
.post-takeaway p { margin: 0; font-size: 17px; color: var(--text-strong); }
.post-cta {
  margin: 48px 0 96px;
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(27, 37, 64, 0.06);
}
.post-cta h2 { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.25; margin-bottom: 10px; }
.post-cta p { margin-bottom: 24px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer img { width: 230px; height: 36px; object-fit: cover; margin-left: -19px; }
.footer p { font-size: 13px; }
