:root {
  --green: #3d9a37;
  --green-bright: #48a741;
  --green-dark: #166534;
  --green-soft: #f0fdf4;
  --green-border: #bbf7d0;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Navigation Bar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--slate-900);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  line-height: 1.3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--slate-900);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  border: 1.5px solid var(--green);
  background: var(--green-bright);
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(61, 154, 55, 0.22);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(61, 154, 55, 0.3);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.82rem 1.5rem;
  border-radius: 10px;
}

/* Main Container */
.page-wrap {
  max-width: 820px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 2.75rem 3rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  margin: 0 0 1.5rem;
}

#banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  margin: 0 0 2rem;
  display: block;
}

/* Article Prose */
.article-prose {
  font-size: 1.05rem;
  color: var(--slate-700);
}

.article-prose p {
  margin: 0 0 1.25rem;
  text-align: left;
}

.article-prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 2.5rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--slate-200);
}

.article-prose h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 1.8rem 0 0.6rem;
}

.article-prose a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(61, 154, 55, 0.5);
}

.article-prose a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

.article-prose strong {
  color: var(--slate-900);
  font-weight: 700;
}

.article-prose em {
  background-color: var(--slate-100);
  color: var(--slate-800);
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  font-style: italic;
}

.article-prose blockquote {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--slate-800);
  font-weight: 500;
}

.article-prose blockquote p:last-child {
  margin-bottom: 0;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.45rem;
}

.article-prose li p {
  margin: 0;
}

.article-prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--slate-100);
  color: var(--slate-800);
  padding: 0.16em 0.42em;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
}

.article-prose pre {
  background: var(--slate-900);
  color: var(--slate-50);
  padding: 1.1rem 1.35rem;
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.55;
  margin: 1.5rem 0;
}

.article-prose pre code {
  padding: 0;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 0.9rem;
}

.article-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.article-prose img[src$=".svg"] {
  width: 44px;
  height: 44px;
  padding: 8px;
  background: var(--slate-100);
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: none;
}

/* CTA Banner */
.cta-banner {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #14532d 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(20, 83, 45, 0.18);
}

.cta-banner h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 850;
  margin: 0 0 0.6rem;
  color: #ffffff;
  border: none;
}

.cta-banner p {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 540px;
  margin: 0 auto 1.4rem;
}

/* More Articles Section */
.more-articles {
  margin-top: 3rem;
}

.more-articles-header {
  margin-bottom: 1.25rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.more-articles-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
}

.more-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.article-link-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-link-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.article-link-card strong {
  font-size: 1rem;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-link-card p {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card-cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* Footer */
.article-footer {
  border-top: 1px solid var(--slate-200);
  background: #ffffff;
  padding: 2rem 1.25rem;
  font-size: 0.88rem;
  color: var(--slate-500);
}

.article-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.article-footer-links a {
  color: var(--slate-600);
  text-decoration: none;
  font-weight: 500;
}

.article-footer-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-nav {
    padding: 0.55rem 1rem;
  }
  .brand-tag,
  .hide-mobile {
    display: none;
  }
  .page-wrap {
    margin: 1.25rem auto 2.5rem;
    padding: 0 0.75rem;
  }
  .article-card {
    padding: 1.5rem 1.25rem;
  }
}
