:root {
  --page: #f7fbf8;
  --ink: #17231f;
  --muted: #62726b;
  --line: #dce6df;
  --accent: #176957;
  --accent-strong: #0b463a;
  --accent-soft: #e7f3ee;
  --spark: #c8d943;
  --violet: #6d4c88;
  --surface: #fffefb;
  --surface-warm: #fbf6ea;
  --footer: #050806;
  --shadow: 0 18px 52px rgba(20, 33, 29, 0.1);
}

* { box-sizing: border-box; }

body.blog-page {
  margin: 0;
  background:
    linear-gradient(rgba(23, 105, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 87, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f8fcf9 0%, #fbf9f4 48%, #f4fbf7 100%);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.blog-page a {
  color: inherit;
  text-decoration: none;
}

.blog-page .site-footer .footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-shell {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 22px 0;
  border-bottom: 1px solid rgba(23, 35, 31, 0.09);
  background: rgba(247, 251, 248, 0.86);
  backdrop-filter: blur(18px);
}

.blog-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.blog-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
}

.blog-nav a:hover {
  border-color: var(--spark);
  color: var(--accent);
}

.blog-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fffefb;
  box-shadow: 0 10px 24px rgba(23, 105, 87, 0.18);
}

.blog-hero {
  position: relative;
  padding: 78px 0 42px;
}

.blog-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 105, 87, 0.16);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.78);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-hero h1,
.blog-article h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 70px;
  line-height: 0.98;
  letter-spacing: 0;
}

.blog-hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.post-list {
  display: grid;
  gap: 18px;
  padding: 18px 0 70px;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  overflow: hidden;
  padding: 28px 28px 28px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 251, 0.96), rgba(231, 243, 238, 0.92)),
    var(--surface);
  box-shadow: 0 1px 2px rgba(20, 33, 29, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--accent), var(--spark));
}

.post-card:hover {
  border-color: rgba(23, 105, 87, 0.34);
  box-shadow: 0 10px 28px rgba(20, 33, 29, 0.08);
  transform: translateY(-2px);
}

.post-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.post-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.05;
}

.post-card p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.post-arrow {
  align-self: center;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(23, 105, 87, 0.2);
  border-radius: 50%;
  background: #fffefb;
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
}

.blog-article {
  max-width: 820px;
  padding: 70px 0 78px;
}

.article-meta {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 105, 87, 0.16);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.82);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.article-lede {
  margin: 30px 0 34px;
  padding: 4px 0 4px 24px;
  border-left: 5px solid var(--spark);
  color: #40514a;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.55;
}

.blog-article h2 {
  margin: 50px 0 14px;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.12;
}

.blog-article p,
.blog-article li {
  color: #34413c;
  font-size: 18px;
  line-height: 1.7;
}

.blog-article p { margin: 0 0 18px; }

.blog-article ul {
  display: grid;
  gap: 10px;
  padding-left: 24px;
  margin: 0 0 20px;
}

.blog-article li::marker {
  color: var(--accent);
  font-weight: 900;
}

.blog-article ol {
  display: grid;
  gap: 12px;
  padding-left: 24px;
  margin: 0 0 20px;
}

.blog-article a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.blog-article strong {
  background: linear-gradient(transparent 58%, rgba(200, 217, 67, 0.38) 58%);
  color: var(--accent-strong);
  font-weight: 850;
}

.article-table {
  width: 100%;
  margin: 30px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(20, 33, 29, 0.07);
}

.article-table th,
.article-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: #34413c;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: #e9f4ec;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.article-table tbody tr:nth-child(even) td {
  background: rgba(231, 243, 238, 0.42);
}

.article-table td:not(:first-child),
.article-table th:not(:first-child) {
  text-align: right;
}

.article-table td:not(:first-child) {
  color: var(--accent-strong);
  font-weight: 850;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-note {
  margin: 38px 0;
  padding: 20px 22px;
  border: 1px solid rgba(23, 105, 87, 0.16);
  border-left: 7px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(231, 243, 238, 0.98), rgba(255, 254, 251, 0.96)),
    var(--accent-soft);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(20, 33, 29, 0.06);
}

.article-note p {
  margin: 0;
  color: var(--ink);
}

.article-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 16px;
  border: 1px solid rgba(23, 105, 87, 0.18);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.84);
  color: var(--accent);
  font-weight: 800;
}

.blog-page .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.blog-page .header-brand-icon { display: block; }

.blog-page .wordmark {
  font-size: 24px;
  font-weight: 800;
}

.blog-page .brand-ink { color: var(--ink); }

.blog-page .brand-accent {
  display: inline-block;
  color: var(--accent);
  transform: translateY(-0.14em);
}

@media (max-width: 700px) {
  .blog-shell { width: calc(100% - 36px); }
  .blog-header-row { align-items: flex-start; flex-direction: column; }
  .blog-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .blog-hero {
    display: block;
    padding: 52px 0 28px;
  }
  .blog-hero h1,
  .blog-article h1 { font-size: 42px; }
  .blog-hero-copy { font-size: 18px; }
  .post-card {
    grid-template-columns: 1fr;
    padding: 24px 22px 24px 28px;
  }
  .post-card h2 { font-size: 29px; }
  .post-arrow { display: none; }
  .blog-article { padding-top: 48px; }
  .article-lede {
    padding-left: 18px;
    font-size: 21px;
  }
  .blog-article h2 {
    font-size: 28px;
  }
  .blog-article p,
  .blog-article li { font-size: 17px; }
  .blog-page .site-footer .footer-grid { grid-template-columns: 1fr; }
  .article-table {
    display: block;
    overflow-x: auto;
  }
}
