/* greenability.com — "Field Notes" theme: editorial / nature, deep forest + leaf + cream */
:root {
  --cream: #f8f5ec;
  --cream-deep: #efe9d8;
  --paper: #ffffff;
  --ink: #142318;
  --ink-soft: #4a5b51;
  --line: #d9d4c2;
  --forest: #1d4d2e;
  --forest-deep: #0f3a20;
  --leaf: #4a8a3a;
  --leaf-light: #7eb86a;
  --amber: #c98a30;
  --serif: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(29,77,46,0.25); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); text-decoration-color: var(--forest); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.topbar .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}
.topnav { display: flex; gap: 22px; }
.topnav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.topnav a:hover { color: var(--forest); }

/* Hero (home) */
.hero {
  background: var(--forest-deep);
  color: #f0eedc;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(15,58,32,0.78), rgba(29,77,46,0.92));
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf-light);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  color: #f0eedc;
  max-width: 880px;
  margin: 0;
}
.hero h1 .accent { color: var(--leaf-light); font-style: italic; }
.hero p.lead {
  font-size: 1.2rem;
  color: #d8d8c8;
  max-width: 700px;
  margin: 22px 0 0;
}

/* Section */
section.block { padding: 70px 0; }
section.block.alt { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 0 0 8px; }
.section-head p { color: var(--ink-soft); max-width: 640px; margin: 0 0 36px; }

/* Article cards (home + index) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,58,32,0.10);
  border-color: var(--leaf);
  text-decoration: none;
}
.card .thumb {
  display: block;
  width: 100%;
  height: 200px;
  background: var(--cream-deep);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card .thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leaf);
  font-family: var(--serif);
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--cream-deep), var(--leaf-light));
  opacity: 0.55;
}
.card .body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card .meta {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--leaf); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
.card .dek {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
  margin: 0;
}
.card .more {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}
.tag {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--forest);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  font-family: var(--sans);
  text-transform: uppercase;
}

/* Article page */
.article-hero {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  background: var(--cream-deep);
  background-size: cover;
  background-position: center;
  position: relative;
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(20,35,24,0.55) 100%);
}
.article-hero .container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 40px;
  z-index: 1;
}
.article-hero .kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 12px;
}
.article-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.015em;
  max-width: 880px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.article-hero .dek {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 720px;
  margin-top: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.article-hero.no-image {
  background: linear-gradient(135deg, var(--forest-deep), var(--leaf));
  color: #fff;
}
.article-hero.no-image::after { display: none; }

.article-meta-bar {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.article-meta-bar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--forest); }
.crumbs .sep { margin: 0 8px; color: var(--leaf); }

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 24px 60px;
}
.prose p { margin: 0 0 1.1em; font-size: 1.05rem; }
.prose h2 {
  margin-top: 1.7em;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 0.5em; }
.prose code { background: var(--cream-deep); padding: 1px 6px; border-radius: 3px; font-size: 0.92em; color: var(--forest-deep); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--leaf);
  font-style: italic;
  color: var(--ink-soft);
}

/* Prev/next */
.pn {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding: 36px 0 50px;
}
.pn .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pn a {
  display: block;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}
.pn a:hover { border-color: var(--leaf); transform: translateY(-2px); }
.pn .tiny {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.pn .ttl { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.pn .right { text-align: right; }

/* About prose */

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9c8b6;
  padding: 50px 0 30px;
  margin-top: 60px;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal {
  border-top: 1px solid #2c3934;
  padding-top: 16px;
  font-size: 0.78rem;
  color: #8a948f;
}

@media (max-width: 700px) {
  .topnav { gap: 14px; }
  .topnav a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .hero { padding: 60px 0 50px; }
  .pn .row { grid-template-columns: 1fr; }
  .pn .right { text-align: left; }
  .site-footer .row { grid-template-columns: 1fr; gap: 24px; }
}
