:root {
  --bg: #f3f7ef;
  --panel: #ffffff;
  --ink: #1d2a22;
  --muted: #5d6c61;
  --line: #d6e0d4;
  --green-1: #1f6d42;
  --green-2: #2f855a;
  --green-3: #3e9b6a;
  --paper: #f9fbf7;
  --shadow: 0 10px 30px rgba(21, 41, 26, 0.08);
  --link: #2f7f44;
  --link-hover: #215e31;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #f8fcf6, var(--bg) 45%);
  line-height: 1.45;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.wrap {
  width: min(1020px, 100% - 32px);
  margin: 0 auto;
}

.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.topbar {
  padding: 5px 0;
}

.brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.brand h1 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.2px;
}

.brand h1 a {
  color: var(--ink);
}

.brand small {
  color: var(--muted);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.top-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.top-meta-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-meta-links a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bfd2bf;
  background: #f3f8f1;
  color: #275337;
  text-decoration: none;
  line-height: 1;
}

.top-meta-links a:hover {
  background: #e8f3e5;
  text-decoration: none;
}

.hero {
  background-image:
    radial-gradient(circle at 18% 40%, rgba(112, 176, 111, 0.18), rgba(0, 0, 0, 0)),
    linear-gradient(115deg, rgba(12, 57, 34, 0.88), rgba(24, 96, 58, 0.72)),
    url('/_sanity/images/z6y8xp63/production/dd3cd8a39cd5a4af182658b8bb7c37ed31e8262e-1500x473.jpg');
  background-size: cover;
  background-position: center 38%;
  min-height: 300px;
}

.hero-overlay {
  min-height: inherit;
  display: flex;
  align-items: center;
}

.hero-content {
  color: #f6fff8;
  padding: 28px 0;
}

.hero-content .kicker {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  opacity: 0.9;
}

.hero-content h2 {
  margin: 10px 0 8px;
  font-family: "Avenir Next", "Segoe UI", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-content p {
  margin: 0;
  max-width: 58ch;
  color: #e7f8ea;
}

.nav-wrap {
  padding: 10px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.categories-primary {
  justify-content: center;
  width: 100%;
}

.category-pill {
  display: inline-block;
  border: 1px solid #a6c2ab;
  border-radius: 999px;
  padding: 6px 12px;
  color: #275337;
  background: linear-gradient(180deg, #f8fcf6, #ecf5ea);
  font-size: 0.9rem;
}

.category-pill:hover {
  background: linear-gradient(180deg, #eef8ec, #deefdb);
  text-decoration: none;
}

.layout {
  width: min(1020px, 100% - 32px);
  margin: 18px auto;
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover {
  border-color: #c8dccb;
  box-shadow: 0 14px 28px rgba(20, 50, 28, 0.12);
}

.intro-panel {
  display: flex;
  gap: 8px;
  justify-self: center;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}
.intro-panel h2 {
  margin: 0;
}

#postList {
  display: grid;
  gap: 12px;
}

.post-card-body {
  display: grid;
  gap: 12px;
}

.post-card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
}

.category-box {
  margin-top: 2px;
  background: #f4faf2;
  border: 1px solid #dbe8d8;
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-box a {
  display: inline-block;
  margin-right: 6px;
  font-weight: 600;
}

.post-card h2 {
  margin: 0 0 6px;
  font-family: "Avenir Next", "Segoe UI", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.25;
}

.post-card h2 a {
  color: #234f34;
}

.thumb-link {
  display: block;
  margin: 0;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #edf2ec;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.thumb-link:hover .thumb {
  transform: scale(1.015);
  filter: saturate(1.06);
  box-shadow: 0 8px 18px rgba(24, 58, 34, 0.2);
}

.thumb-placeholder {
  margin: -2px 0 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  aspect-ratio: 16 / 8;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f7faf6;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.excerpt {
  margin-top: 2px;
  line-height: 1.55;
}

.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: auto;
}

.share-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef6ec;
  border: 1px solid #d4e4d1;
  text-decoration: none;
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2f7f44;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1;
}

.post-content {
  margin-top: 14px;
  line-height: 1.6;
  max-width: 920px;
}

.single-post .panel > h1,
.single-post .post-meta-wrap,
.single-post .post-featured,
.single-post .post-content {
  margin-left: auto;
  margin-right: auto;
}

.single-post .panel > h1 {
  font-family: "Avenir Next", "Segoe UI", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-weight: 800;
  max-width: 920px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.post-meta-wrap {
  max-width: 920px;
  display: grid;
  gap: 5px;
  background: #f6fbf5;
  border: 1px solid #dce8db;
  border-radius: 10px;
  padding: 10px 12px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-featured {
  max-width: 920px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.post-featured img,
img {
  max-width: 100%;
  height: auto;
}

.post-featured img {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-featured:hover img {
  transform: scale(1.01);
  box-shadow: 0 12px 22px rgba(19, 54, 32, 0.2);
}

.post-share {
  max-width: 920px;
  margin: 14px auto 4px;
  padding-top: 20px;
  border-top: 1px solid #e4ece2;
}

.post-comments {
  max-width: 920px;
  margin: 18px auto 20px;
}

.post-comments > h2 {
  margin: 0 0 10px;
}

.post-comments .panel {
  margin: 0 0 10px;
}

.post-comments .panel:last-child {
  margin-bottom: 0;
}

.post-comments form p {
  margin: 0 0 12px;
}

.post-comments form p:last-child {
  margin-bottom: 0;
}

.post-comments label {
  display: block;
  color: #2a4732;
  font-weight: 600;
}

.post-comments input[type="text"],
.post-comments input[type="email"],
.post-comments textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #c7d8c7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.post-comments input[name="captchaAnswer"] {
  max-width: 140px;
}

.post-comments textarea {
  min-height: 130px;
  resize: vertical;
}

.post-comments input[type="text"]:focus,
.post-comments input[type="email"]:focus,
.post-comments textarea:focus {
  outline: none;
  border-color: #5d9a6b;
  box-shadow: 0 0 0 3px rgba(61, 132, 78, 0.15);
}

.post-comments button[type="submit"] {
  appearance: none;
  border: 1px solid #2f7f44;
  border-radius: 10px;
  background: linear-gradient(180deg, #3c9656, #2f7f44);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.post-comments button[type="submit"]:hover {
  filter: brightness(1.04);
}

.post-comments button[type="submit"]:active {
  transform: translateY(1px);
}

.post-comments + .panel {
  margin-top: 22px;
}

.contact-form {
  max-width: 920px;
}

.contact-form p {
  margin: 0 0 12px;
}

.contact-form p:last-child {
  margin-bottom: 0;
}

.contact-form label {
  display: block;
  color: #2a4732;
  font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #c7d8c7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.contact-form input[name="captchaAnswer"] {
  max-width: 140px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #5d9a6b;
  box-shadow: 0 0 0 3px rgba(61, 132, 78, 0.15);
}

.contact-form button[type="submit"] {
  appearance: none;
  border: 1px solid #2f7f44;
  border-radius: 10px;
  background: linear-gradient(180deg, #3c9656, #2f7f44);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.contact-form button[type="submit"]:hover {
  filter: brightness(1.04);
}

.contact-form button[type="submit"]:active {
  transform: translateY(1px);
}

.post-share + .panel {
  margin-top: 20px; 
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.post-share + .panel h2,
.post-share + .panel ul {
  margin: 0;
}

.post-content p,
.post-content li,
.post-content blockquote,
.post-content h2,
.post-content h3,
.post-content h4 {
  max-width: 88ch;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer {
  border-top: 1px solid var(--line);
  background: #eff5ed;
  margin-top: 20px;
}

.footer-posts {
  border-bottom: 1px solid #d6e3d4;
  background: linear-gradient(180deg, #edf5ea, #e8f1e6);
}

.footer-posts .wrap {
  padding: 18px 0 12px;
}

.footer-posts h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.footer-post-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-post-item {
  background: #fff;
  border: 1px solid #d3dfd1;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.footer-post-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f0f4ee;
}

.footer-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-post-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-post-copy {
  padding: 10px 10px 11px;
}

.footer-post-copy h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.footer-post-copy .meta {
  margin: 0;
}

.footer .wrap {
  padding: 14px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-meta-links {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: inline-block;
    align-self: flex-end;
    min-width:150px;
    margin-left:auto;
    margin-right:auto;
  }
  .menu-toggle[aria-expanded="true"]{
    margin-bottom: 10px;
  }

  .categories-primary {
    display: none;
    width: 100%;
  }

  .categories-primary.open {
    display: flex;
    justify-content: center;
    margin-top: -10px;
  }

  .hero {
    min-height: 170px;
  }

  .share-row > span {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  
  .share-row > a {
    font-size: 12px;
  }

  .footer-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 940px) {
  .post-card-body {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .post-card-main {
    order: 1;
  }

  .post-card .thumb-link,
  .post-card .thumb-placeholder {
    order: 2;
  }
}
