:root {
  --green: #1f8a3e;
  --green-strong: #12702a;
  --bg: #ffffff;
  --muted: #6c7680;
  --dark: #0f1720;
  --card-radius: 14px;
  --container: 1150px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem;
}

header.site-header {
  border-bottom: 1px solid #e9f5ee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ecf8ef, #e6f6ea);
  border: 2px solid rgba(31,138,62,0.12);
  font-weight: 700;
  color: var(--green-strong);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.35rem;
  padding: .25rem;
}

nav.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

nav.site-nav a {
  color: var(--dark);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 8px;
}

nav.site-nav a:hover {
  background: rgba(31,138,62,0.06);
}

.hero {
  padding: 2.2rem 0 1.2rem;
}

.hero h1 {
  margin: 0;
  font-size: 1.8rem;
  text-align: center;
  color: var(--dark);
}

.hero p.lead {
  margin: .6rem 0 1.25rem;
  text-align: center;
  color: var(--muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.cat-card {
  background: #fff;
  border: 1px solid #eef6ef;
  border-radius: var(--card-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 28px rgba(13,18,20,0.03);
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,138,62,0.08);
  color: var(--green-strong);
  font-weight: 700;
  margin-bottom: .6rem;
}

.cat-title {
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.cat-sub {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .4rem;
}

.section-title {
  font-size: 1.6rem;
  text-align: center;
  margin: 2rem 0 .5rem;
  color: var(--dark);
  font-weight: 700;
}

.section-sub {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  margin-bottom: 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.post-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid #eef3f2;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(9,12,14,0.03);
}

.post-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

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

.post-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.post-title {
  margin: 0 0 .6rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
}

.post-excerpt {
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}

.post-cta {
  display: inline-block;
  padding: .55rem .9rem;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.read-more {
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.post-cta-alt {
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  background: transparent;
  color: var(--green);
  text-decoration: none;
}

.search-row input,
.search-form input,
#searchInput,
.newsletter input[type="email"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
}

.search-row {
  margin: 1rem 0;
}

.newsletter {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #fff;
  padding: 2.4rem 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(18,112,42,0.12);
}

.newsletter .inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h3 {
  margin: 0;
  font-size: 1.4rem;
}

.newsletter p {
  color: rgba(255,255,255,0.95);
  margin: .6rem 0 1rem;
}

.newsletter .form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  padding: .85rem 1rem;
  border-radius: 999px;
  border: 0;
  min-width: 220px;
}

.newsletter button {
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.post-container {
  padding: 2rem 0;
}

.post-full {
  max-width: 900px;
  margin: 0 auto;
}

.post-full h1 {
  margin-top: 0;
  color: var(--dark);
}

.post-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-figure figcaption {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .5rem;
}

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

.back-link {
  display: inline-block;
  margin-top: 1.25rem;
  text-decoration: none;
  color: #fff;
}

footer.site-footer {
  margin-top: 2.4rem;
  background: #0f1620;
  color: #cbd5da;
  padding: 2.2rem 1rem;
  border-top: 6px solid rgba(31,138,62,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid h4 {
  color: #fff;
  margin-top: 0;
}

.socials {
  display: flex;
  gap: .6rem;
  margin-top: .8rem;
}

.credits {
  max-width: var(--container);
  margin: 1.1rem auto 0;
  padding: 0 1rem;
  color: #94a3b8;
  text-align: center;
  font-size: .9rem;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.muted.small-list a {
  color: inherit;
  text-decoration: none;
}

@media (min-width:700px) {
  .nav-toggle { display: none; }
  nav.site-nav { display: flex; }
  .posts-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .categories { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
}

@media (min-width:1000px) {
  .posts-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: repeat(4,1fr); }
  .hero h1 { font-size: 2.25rem; }
  .header-inner { padding: 1rem 0; }
}

@media (max-width:420px) {
  .post-thumb { aspect-ratio: 16/9; }
  .post-title { font-size: .98rem; }
  .brand { font-size: 1rem; }
  .hero h1 { font-size: 1.4rem; }
}

@media (max-width:700px) {
  nav.site-nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 64px;
    background: #fff;
    border: 1px solid #eee;
    padding: .8rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    flex-direction: column;
    width: 220px;
  }
  nav.site-nav.open {
    display: flex;
  }
}

a:focus, button:focus, input:focus {
  outline: 3px solid rgba(31,138,62,0.12);
  outline-offset: 2px;
}

.post-card .post-body a {
  color: #fff;
  text-align: center;
  font-size: 20px;
  text-decoration: none;
}

.skeleton .post-thumb,
.skeleton .post-meta,
.skeleton .post-title,
.skeleton .post-excerpt,
.skeleton .read-more {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 6px;
}

.skeleton .post-thumb {
  height: 210px;
  margin-bottom: 1rem;
}

.skeleton .post-meta {
  height: 12px;
  width: 40%;
  margin-bottom: 0.4rem;
}

.skeleton .post-title {
  height: 18px;
  width: 70%;
  margin-bottom: 0.5rem;
}

.skeleton .post-excerpt {
  height: 14px;
  width: 100%;
  margin-bottom: 0.6rem;
}

.skeleton .read-more {
  height: 32px;
  width: 30%;
  margin-top: auto;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.socials a svg {
  width: 30px;
  height: 30px;
}

.post-body a,
.post-excerpt a {
  color: var(--green);
  text-decoration: none;
  word-break: break-word;
}

.post-body a:hover,
.post-excerpt a:hover {
  text-decoration: underline;
}

.post-card .post-body a {
  text-decoration: none !important;
}

