/* Shared: variables, base, nav, footer, buttons */
:root {
  --brand: #0B5B00;
  --ink: #0b1a0b;
  --muted: #4b5b4b;
  --line: rgba(0,0,0,.06);
  --shadow: 0 12px 32px rgba(0,0,0,.08);
  --radius: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font-family: "Lexend", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(170%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; position: relative; }
.brand img { height: 36px; width: auto; }

.hamburger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 30;
}
.hamburger span { display: block; width: 24px; height: 3px; background: var(--brand); border-radius: 2px; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-backdrop { display: none; }

.btn {
  display: inline-block; text-decoration: none; color: #fff; padding: 12px 18px;
  border-radius: 999px; background: var(--brand); font-weight: 700; transition: .2s;
  border: 1px solid var(--brand);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn.current { background: rgba(11,91,0,.12); color: var(--brand); border-color: var(--brand); }

main { padding: 48px 0 60px; }

/* Footer */
footer { background: var(--brand); color: #fff; padding: 36px 0; margin-top: 10px; }
footer .brand img { height: 30px; width: auto; display: block; filter: none; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.footer-social img { width: 18px; height: 18px; display: block; }
.footer-social img.x-icon { filter: invert(1); }

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .brand img { height: 32px; }
  .hamburger { display: flex; position: relative; z-index: 25; }
  .nav-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 85vw);
    min-height: 65dvh;
    background: #fff; border-left: 1px solid #eef3ee;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 80px 0 24px; transform: translateX(100%);
    transition: transform .3s ease; z-index: 22;
    overflow-y: auto;
  }
  .nav-menu.active { transform: translateX(0); }
  .nav-menu .btn { margin: 0 20px; text-align: center; justify-content: center; border-radius: 8px; padding: 14px 18px; }
  .nav-menu .btn:not(:last-child) { margin-bottom: 10px; }
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 21;
    background: rgba(0,0,0,.35); backdrop-filter: blur(2px);
  }
  .nav-backdrop.active { display: block; }
}

@media (max-width: 480px) {
  .brand img { height: 28px; }
  .nav-inner { padding: 10px 0; }
}

/* Blog single post (used on blog-week1.html etc.) */
.blog-article { max-width: 720px; margin: 0 auto; }
.blog-article .back-link { display: inline-block; margin-bottom: 20px; color: var(--brand); text-decoration: none; font-weight: 600; }
.blog-article .back-link:hover { text-decoration: underline; }
.blog-article h1 { font-size: 28px; margin: 0 0 12px; line-height: 1.25; }
.blog-article .blog-meta { font-size: 0.95rem; color: var(--muted); margin: 0 0 28px; }
.blog-article .blog-body h2 { font-size: 22px; margin: 28px 0 12px; }
.blog-article .blog-body h3 { font-size: 18px; margin: 22px 0 8px; }
.blog-article .blog-body p { margin: 0 0 16px; }
.blog-article .blog-body ul, .blog-article .blog-body ol { margin: 0 0 16px; padding-left: 24px; }
.blog-article .blog-body li { margin: 6px 0; }
.blog-article .blog-lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; font-style: italic; }
.blog-article .blog-body blockquote { margin: 20px 0; padding: 16px 20px; background: rgba(11,91,0,.06); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink); }
.blog-article .blog-cta { margin-top: 32px; padding: 24px; background: #f7fbf7; border: 1px solid rgba(11,91,0,.12); border-radius: var(--radius); }
.blog-article .blog-cta .btn { margin-top: 12px; }
.blog-article .featured-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; border: 1px solid var(--line); }
