@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --brand: #6cbf84;
  --brand-dark: #367d50;
  --ink: #242a26;
  --muted: #737c75;
  --line: #e8ede9;
  --paper: #fff;
  --soft: #f5f9f6;
  --content: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }

.site-header {
  width: min(100% - 64px, 1200px);
  margin: 0 auto;
  padding: 22px 0 19px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.identity-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 1.04rem;
}
.custom-intro {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}
.nav-intro {
  display: flex;
  align-items: center;
  padding: 9px 8px 9px 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}
.identity-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 7px 7px 3px 3px;
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.identity-nav a:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-5px);
  border-color: #b8dfc2;
  background: #eaf6ed;
  color: #245d39;
  box-shadow: 0 7px 0 var(--brand), 0 10px 18px rgba(37, 92, 56, .13);
}
.identity-nav a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 0 var(--brand-dark);
}
.hero {
  width: 100%;
  overflow: hidden;
  background: #6cbf84;
}
.hero img {
  display: block;
  width: 100%;
  height: clamp(220px, 29vw, 370px);
  object-fit: cover;
  object-position: center;
}

.main-content {
  width: min(100% - 64px, var(--content));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
}
.intro {
  padding: clamp(10px, 10vw, 20px) 0 58px;
  max-width: 700px;
}
.eyebrow {
  margin: 0 0 17px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 17px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.55rem, 6vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.intro-copy {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.posts-section { padding: 0 0 95px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag-filter-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .8rem;
}
.tag-filter-wrap[hidden] { display: none; }
select {
  max-width: 180px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
}
.post-card {
  padding: 25px 0 27px;
  border-bottom: 1px solid var(--line);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .76rem;
}
.post-category { color: var(--brand-dark); font-weight: 700; }
.post-card h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-dark); }
.post-excerpt { margin: 0 0 14px; color: #626b64; font-size: .93rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--soft);
  color: #647269;
  font-size: .7rem;
}
.empty-state { padding: 28px 0; color: var(--muted); }
.site-footer {
  width: min(100% - 64px, 1200px);
  margin: 0 auto;
  padding: 23px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.quiet-link { color: var(--muted); text-decoration: none; }
.quiet-link:hover { color: var(--brand-dark); }

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 36px, 1200px);
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 21px 0 18px;
  }
  .identity-nav { justify-content: flex-start; gap: 5px; }
  .nav-intro { width: 100%; padding: 0 0 3px; font-size: 1.12rem; }
  .identity-nav a { padding: 8px 10px; font-size: .92rem; }
  .hero img { height: 235px; }
  .main-content { width: min(100% - 36px, var(--content)); }
  .intro { padding: 66px 0 44px; }
  .post-grid { grid-template-columns: 1fr; }
  .site-footer { width: min(100% - 36px, 1200px); }
}
@media (max-width: 420px) {
  .identity-nav { font-size: .82rem; }
  .identity-nav a { padding: 7px 8px; font-size: .84rem; }
  .hero img { height: 190px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
}
