:root {
  --ink: #1c241d;
  --paper: #f6f4ee;
  --moss: #2f5d3a;
  --moss-dark: #1e3d26;
  --max: 900px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--moss); }

/* Header — solid forest-green bar by default (works on light interior pages) */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #fff;
  background: var(--moss-dark);
}
/* On the home page, float transparently over the full-viewport hero instead. */
.has-hero .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}
.site-header a { color: #fff; text-decoration: none; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 56px; width: auto; display: block; }
.site-header nav a { opacity: 0.9; margin-left: 1.25rem; }

/* Full-viewport forest hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(rgba(20, 35, 22, 0.45), rgba(20, 35, 22, 0.55)),
    url("/img/forest.jpg");
  background-size: cover;
  background-position: center;
}
.hero-overlay { max-width: 40rem; padding: 1.5rem; }
.hero-logo { width: min(420px, 80vw); height: auto; margin: 0 auto 1rem; display: block; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin: 0 0 0.5rem; }
.hero p { font-size: 1.25rem; margin: 0 0 1.5rem; opacity: 0.95; }
.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--moss);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}
.hero-cta:hover { background: var(--moss-dark); }

/* Feed */
.feed, .single { max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem; }
.feed > h2 { font-size: 2rem; margin-bottom: 2rem; }

.feed-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(28, 36, 29, 0.12);
}
.feed-poster { flex: 0 0 160px; }
.feed-poster img { width: 100%; border-radius: 8px; display: block; }
.feed-body h3 { margin: 0.25rem 0; font-size: 1.4rem; }
.feed-body h3 a { text-decoration: none; }
.feed-meta { color: #5a655c; margin: 0; }
.feed-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--moss);
  background: rgba(47, 93, 58, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.empty { color: #5a655c; font-style: italic; }

/* Single item */
.single .back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; }
.single h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.5rem 0; }
.single-poster { width: 100%; max-width: 480px; border-radius: 10px; margin: 1.5rem 0; display: block; }
.single-body { font-size: 1.1rem; }

/* Footer + contact form */
.site-footer { background: var(--moss-dark); color: #e9efe9; padding: 3.5rem 1.5rem 2rem; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.site-footer h2 { margin-top: 0; }
.site-footer a { color: #cfe6d2; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { margin: 0.35rem 0; }

.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-form label { display: flex; flex-direction: column; font-size: 0.9rem; gap: 0.25rem; }
.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 6px;
  font: inherit;
}
.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 1.75rem;
  background: var(--moss);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.contact-form button:hover { background: #3a7049; }
.copyright { text-align: center; margin: 2.5rem 0 0; opacity: 0.7; font-size: 0.85rem; }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .feed-item { flex-direction: column; }
  .feed-poster { flex-basis: auto; }
}
