:root {
  --primary: #245C46;
  --meadow: #6F9B4E;
  --stone: #D9C7A3;
  --sky: #EAF5F7;
  --ink: #27312D;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  color: var(--primary);
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: 0;
}

h1 { font-size: 2.6rem; line-height: 1.12; }
h2 { font-size: 1.55rem; margin-top: 1.8rem; }
h3 { font-size: 1.15rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
  border-bottom: 4px solid var(--stone);
  box-shadow: 0 8px 24px rgba(39, 49, 45, .14);
}

.site-navbar {
  min-height: 4.5rem;
  gap: 1rem;
}

.site-brand {
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-kicker {
  color: var(--stone);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-title {
  color: #fff;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.1;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  justify-content: flex-end;
}

.site-nav .nav-link {
  color: #fff;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: .35rem .45rem;
  text-transform: uppercase;
}

.site-nav .nav-link:hover {
  color: var(--stone);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  background: #fff;
  border: 1px solid rgba(36, 92, 70, .18);
  box-shadow: 0 12px 24px rgba(39, 49, 45, .16);
  display: none;
  min-width: 12rem;
  padding: .35rem;
  position: absolute;
  right: 0;
  top: 100%;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu .menu-item {
  color: var(--ink);
  display: block;
  padding: .38rem .5rem;
  text-decoration: none;
}

.dropdown-menu .menu-item:hover {
  background: var(--sky);
  color: var(--primary);
}

.site-main {
  min-height: 70vh;
}

.site-breadcrumbs {
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(36, 92, 70, .1);
  margin: 0;
  padding: .7rem max(1rem, calc((100vw - 960px) / 2));
}

.page-band {
  padding: 2.2rem 0 3rem;
}

.content-shell {
  background: #fff;
  border: 1px solid rgba(36, 92, 70, .14);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(39, 49, 45, .12);
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2.2rem);
}

.content-header {
  border-bottom: 1px solid var(--stone);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.eyebrow {
  color: var(--meadow);
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .4rem;
  text-transform: uppercase;
}

.lead {
  border-left: 4px solid var(--meadow);
  color: #41524b;
  font-size: 1.05rem;
  padding-left: 1rem;
}

.date-row {
  color: #62716b;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
}

.main-image {
  border-radius: 8px;
  float: right;
  margin: 0 0 1rem 1.4rem;
  max-width: 33%;
}

.toc {
  background: var(--sky);
  border: 1px solid rgba(111, 155, 78, .25);
  border-radius: 8px;
  margin: 1rem 0;
  padding: .8rem;
}

.toc p {
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 .35rem;
}

.toc a {
  display: inline-block;
  margin: .15rem .7rem .15rem 0;
}

.directory-links {
  background: #f7fbf7;
  border: 1px solid rgba(111, 155, 78, .28);
  border-radius: 8px;
  display: grid;
  gap: .35rem .75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 1rem 0 1.4rem;
  padding: 1rem;
}

.directory-links a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(111, 155, 78, .45);
}

.site-prose p {
  margin: 0 0 1rem;
}

.site-prose a,
.site-block--paragraph a,
.site-category-meta a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(111, 155, 78, .5);
}

.site-prose a:hover,
.site-block--paragraph a:hover,
.site-category-meta a:hover {
  color: var(--meadow);
  text-decoration-color: var(--primary);
}

.site-prose figure {
  margin: 1.2rem 0;
}

.site-prose img,
.content-card img,
.main-image {
  height: auto;
  max-width: 100%;
}

.image-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.3rem 0;
}

.image-grid figure {
  background: var(--sky);
  border: 1px solid rgba(36, 92, 70, .12);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.image-grid img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
}

.table th {
  background: var(--sky);
  color: var(--primary);
}

.content-card {
  background: #fff;
  border: 1px solid rgba(36, 92, 70, .16);
  border-radius: 8px;
  height: 100%;
  margin-bottom: 1rem;
  padding: 1rem;
}

.content-card h2 {
  font-size: 1.1rem;
  margin-top: .4rem;
}

.horizontal-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 140px 1fr;
}

.minimal-card {
  border-left: 4px solid var(--meadow);
  box-shadow: none;
}

.btn.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.site-sidebar {
  background: #fff;
  border-left: 4px solid var(--stone);
  padding: 1rem;
}

.site-sidebar a {
  color: var(--primary);
  display: block;
  margin: .25rem 0;
}

.sidebar-title {
  font-weight: 700;
}

.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 2rem 0;
}

.footer-title {
  color: var(--stone);
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.2rem;
}

.footer-copy {
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
}

.footer-links {
  display: grid;
  gap: .35rem .9rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--stone);
}

@media (max-width: 840px) {
  h1 { font-size: 2rem; }
  .site-navbar,
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav {
    justify-content: flex-start;
  }
  .dropdown-menu {
    position: static;
  }
  .main-image {
    float: none;
    margin: 0 0 1rem;
    max-width: 100%;
  }
}
