/* PayParity blog styles — mirrors index.html design tokens */
:root {
  color-scheme: light dark;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --ink: #112823;
  --muted: #526862;
  --line: #cdd8d2;
  --line-strong: #9db0a7;
  --green: #0d6b50;
  --green-2: #d9f2e8;
  --green-3: #b9e5d6;
  --coral: #ce5a42;
  --coral-soft: #f9e2dc;
  --sun: #f3c56a;
  --navy: #153a43;
  --shadow: 0 18px 55px rgba(15, 52, 43, .10);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1715;
    --surface: #15211e;
    --ink: #eef8f3;
    --muted: #a7bbb3;
    --line: #2d423b;
    --line-strong: #587268;
    --green: #62d0aa;
    --green-2: #173b32;
    --green-3: #235244;
    --coral: #f28a70;
    --coral-soft: #43271f;
    --sun: #f0c875;
    --navy: #bfe6dc;
    --shadow: 0 18px 55px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Topbar — same as homepage */
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.topbar a { text-decoration: none; }
.topbar a:not(.nav-cta):hover { color: var(--green); }
.topbar a[aria-current="page"] { color: var(--green); }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; display: block; }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-cta:hover, .button:hover { background: var(--green); border-color: var(--green); }

/* Article */
.article { max-width: 760px; padding: clamp(48px, 6vw, 84px) 0 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font: 500 13px/1.3 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.article h1 {
  margin: 0 0 16px;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.deck {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}
.byline {
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.hero-img { margin: 0 0 44px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-img img { display: block; width: 100%; height: auto; }
.post-card .thumb { margin: 0 0 22px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.post-card .thumb img { display: block; width: 100%; height: auto; }
.prose { font-size: 18px; line-height: 1.75; }.prose p { margin: 0 0 1.4em; }
.prose h2 {
  margin: 2.2em 0 0.7em;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prose strong { font-weight: 700; }
.prose ol, .prose ul { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose hr {
  margin: 3em 0;
  border: none;
  border-top: 1px solid var(--line);
}

/* CTA box */
.cta-box {
  margin: 48px 0;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta-box h2 {
  margin: 0 0 12px;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
}
.cta-box p { margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.cta-box .fine { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-nav a { text-decoration: none; font-weight: 600; font-size: 15px; max-width: 45%; }
.post-nav a:hover { color: var(--green); }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav .label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }

/* Blog index */
.blog-index { padding: clamp(48px, 6vw, 84px) 0 80px; }
.blog-index h1 {
  margin: 0 0 16px;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.blog-index > .lede { max-width: 640px; color: var(--muted); font-size: 19px; margin: 0 0 56px; }
.post-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.post-card .kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  background: var(--green-2);
  color: var(--green);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.post-card h2 {
  margin: 0 0 12px;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.post-card p { margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.post-card .meta { font-size: 13.5px; color: var(--muted); }
.post-card .read { font-weight: 700; color: var(--green); }

/* Footer */
footer.shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
footer.shell a { text-decoration: none; }
footer.shell a:hover { color: var(--green); }

@media (max-width: 720px) {
  .topbar { gap: 16px; }
  .topbar > a:not(.nav-cta):not(.brand) { display: none; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; }
  .post-nav .next { text-align: left; margin-left: 0; }
}
