:root {
  --ink: #172117;
  --muted: #5c6658;
  --paper: #f4f1e8;
  --sheet: #fffcf6;
  --line: #e3ddd0;
  --green: #163024;
  --green-2: #234232;
  --leaf: #2f6b45;
  --lime: #d7e38a;
  --shadow: 0 1px 2px rgba(22, 48, 36, 0.04), 0 18px 40px rgba(22, 48, 36, 0.07);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(880px 420px at 110% -8%, rgba(184, 206, 120, 0.38), transparent 62%),
    radial-gradient(640px 360px at -12% -4%, rgba(47, 107, 69, 0.1), transparent 58%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--leaf); text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
p { margin: 0 0 0.85rem; }
::selection { background: #d7e7c4; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3.2rem;
  z-index: 20;
  background: var(--green);
  color: #f6f3ea;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 0.6rem; }

.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede { font-size: 1.18rem; max-width: 38rem; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 241, 232, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 221, 208, 0.9);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.4rem;
}
.brand { text-decoration: none; color: inherit; }
.brand img { display: block; height: 48px; width: auto; }
.wordmark, .footer-brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--green);
  text-decoration: none;
}
.wordmark em, .footer-brand em { font-style: italic; color: var(--leaf); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.15rem; align-items: center; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(22, 48, 36, 0.06); color: var(--ink); }
.site-nav a[aria-current="page"] { background: #e7f0df; color: var(--green); }
.nav-cta {
  background: var(--green) !important;
  color: #f7f4ec !important;
  margin-left: 0.35rem;
}
.nav-cta:hover { background: var(--green-2) !important; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars {
  width: 1rem;
  height: 0.7rem;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}

.hero { padding: 3.6rem 0 1.4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 2rem 1.75rem;
  align-items: end;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  margin: 0 0 0.7rem;
  color: var(--green);
  white-space: nowrap;
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.35rem 0 0; }
.hero-aside {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1.25rem;
  padding-bottom: 0.15rem;
  justify-self: end;
}
.tree {
  flex: 0 0 auto;
  display: block;
  width: 15rem;
  height: auto;
  margin: 0 0 -0.7rem;
  opacity: 0.92;
  user-select: none;
  pointer-events: none;
}
.facts {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
}
.facts li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.facts li + li { margin-top: 1.15rem; }
.facts strong {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--green);
}
.facts span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
}

.button, button.button, .search button {
  display: inline-block;
  background: var(--green);
  color: #f7f4ec;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #cfc6b4;
}
.button:hover, .search button:hover { background: var(--green-2); color: white; }
.button-quiet:hover { background: var(--sheet); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.2rem; padding-bottom: 3.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 40rem); padding-bottom: 3rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-title { margin: 0; font-size: 1.7rem; }
.page-head { padding: 3rem 0 0.4rem; }
.page-head h1, .prose h1, .post h1, main > section.wrap > h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  color: var(--green);
}
main > section.wrap:first-child,
main > article.wrap:first-child { padding-top: 3rem; }
.prose, .post { padding-bottom: 3.2rem; }
.post { max-width: 740px; }

.feature-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.9rem; align-items: stretch; }
.feature-stack {
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-stack .feature { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.feature-stack .feature:first-child { border-top: 0; }
.feature a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature-stack .feature:has(img) a {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
}
.feature img { width: 100%; height: 150px; object-fit: cover; display: block; }
.feature-lead img { height: 250px; }
.feature-stack img { width: 104px; height: 100%; min-height: 92px; object-fit: cover; }
.feature-text { padding: 0.95rem 1.05rem 1.05rem; }
.feature-lead .feature-text { padding: 1.15rem 1.25rem 1.25rem; }
.feature-lead:not(:has(img)) {
  background:
    linear-gradient(155deg, #fbfaf4 0%, #e5efd4 100%);
}
.feature-lead:not(:has(img)) .feature-text { padding: 1.5rem 1.4rem 1.45rem; }
.feature time, .card time, .byline, .timeline time { color: var(--muted); font-size: 0.84rem; }
.feature h3 { margin: 0.25rem 0 0.35rem; font-size: 1.2rem; }
.feature-lead h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); margin-top: 0.4rem; }
.feature p { color: var(--muted); margin-bottom: 0; }
.feature a:hover h3 { color: var(--leaf); }

.post-index { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.post-index li {
  display: grid;
  grid-template-columns: 8.6rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.85rem 0.2rem;
  border-top: 1px solid var(--line);
}
.post-index li:hover { background: rgba(255, 252, 246, 0.55); }
.post-index a { color: var(--ink); font-weight: 620; text-decoration: none; }
.post-index span { color: var(--muted); font-size: 0.9rem; }
.more { font-weight: 650; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

.sidebar {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 0.35rem;
  align-self: start;
  position: sticky;
  top: 5.4rem;
}
.sidebar h2 { font-size: 1.05rem; margin: 0 0 0.45rem; }
.sidebar section { margin-bottom: 1.25rem; }
.sidebar ul, .archive-list { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0.4rem 0; }
.sidebar a { text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }
.search { margin-bottom: 1.2rem; }
.search label { display: block; font-weight: 650; margin-bottom: 0.4rem; }
.search div { display: flex; gap: 0.4rem; }
.search input, .stack-form input, .stack-form textarea, .stack-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: inherit;
}
.search input { flex: 1; min-width: 0; width: auto; }
.stack-form input[type="radio"],
.stack-form input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--green);
  flex: none;
}
.search button { border-radius: 12px; padding: 0.55rem 0.85rem; }
.archive-list li { display: flex; justify-content: space-between; gap: 0.6rem; }
.archive-list span { color: var(--muted); }

.cards { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 0.85rem; }
.card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-text { grid-template-columns: 1fr; box-shadow: inset 4px 0 0 #c5d7a4; }
.card-photo img { width: 210px; height: 100%; min-height: 168px; object-fit: cover; display: block; }
.card > div { padding: 1.05rem 1.15rem 1.1rem; }
.card h2 { margin: 0.2rem 0 0.4rem; font-size: 1.4rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--leaf); }
.card p { color: var(--muted); }

.post-hero { width: 100%; border-radius: var(--radius); margin: 1rem 0 1.2rem; max-height: 460px; object-fit: cover; }
.archive-note {
  background: #f4efd2;
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
}
.post-body { font-size: 1.06rem; }
.post-body figure { margin: 0.4rem 0.4rem 0.4rem 0; display: inline-block; width: calc(33% - 0.5rem); vertical-align: top; }
.post-body figure img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; }
.post-body ul { padding-left: 1.2rem; }

.history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.6rem; align-items: start; }
.photo-column img { width: 100%; border-radius: 16px; margin-bottom: 0.7rem; display: block; }
.photo-column figure { margin: 0; }

.team, .gallery { list-style: none; padding: 0; margin: 1.5rem 0 3rem; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.team li, .gallery li {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.team img, .avatar { width: 100%; aspect-ratio: 1.05; object-fit: cover; display: block; }
.avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f3f6ec, #d5e3c4);
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--green);
}
.team h2 { font-size: 1.12rem; margin: 0.85rem 0.95rem 0.15rem; }
.team p { margin: 0 0.95rem 0.25rem; color: var(--muted); }
.team .phone { padding-bottom: 0.9rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.gallery img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery figcaption { padding: 0.6rem 0.8rem 0.8rem; color: var(--muted); font-size: 0.9rem; }
.gallery figure { margin: 0; }

.timeline { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.timeline li { padding: 1rem 0; border-top: 1px solid var(--line); }
.timeline a {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}
.timeline a:hover { color: var(--leaf); }
.timeline p { color: var(--muted); margin-top: 0.3rem; }

.stack-form {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.35rem;
  margin-top: 1.1rem;
}
.stack-form p { margin-bottom: 0.95rem; }
.stack-form label { display: block; font-weight: 620; margin-bottom: 0.3rem; }
.stack-form ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.stack-form li label,
.stack-form div div label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  margin: 0 0 0.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}
.stack-form .errorlist { color: #8d2b16; padding-left: 0; font-weight: 500; }
.form-note { color: var(--muted); font-size: 0.92rem; }
.messages { list-style: none; padding: 1rem 0 0; margin: 0; }
.messages li {
  background: #e5f0d4;
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
}

.site-footer {
  background: var(--green);
  color: #e7eee4;
  padding: 2.8rem 0 1.1rem;
  margin-top: 0.5rem;
}
.site-footer a { color: var(--lime); text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-brand { margin: 0 0 0.25rem; color: #f7f4ec; font-size: 1.7rem; }
.footer-tag { color: #c5d2c0; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 0.8fr; gap: 2rem; }
.footer-grid h2 { font-size: 1.15rem; margin: 0 0 0.55rem; color: #f7f4ec; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0.35rem 0; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.8rem;
  padding: 0.9rem 0 0.3rem;
  color: #c5d2c0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem 1.2rem 1rem;
    background: rgba(255, 252, 246, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.65rem 0.7rem; }
  .nav-cta { margin: 0.35rem 0 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }
  .header-bar { position: relative; }
}

@media (max-width: 860px) {
  .hero { padding-top: 2.2rem; }
  .hero-grid, .home-layout, .feature-grid, .history-layout, .footer-grid, .card, .post-index li {
    display: block;
  }
  .hero-aside {
    margin-top: 1.8rem;
    max-width: 100%;
    justify-self: stretch;
  }
  .hero h1 { white-space: normal; }
  .tree {
    width: 11.5rem;
    margin-right: 0;
  }
  .feature, .card, .team li, .gallery li { margin-bottom: 0.8rem; }
  .feature-stack { margin-top: 0.2rem; }
  .feature-stack .feature:has(img) a { display: block; grid-template-columns: 1fr; }
  .feature-stack img, .card-photo img { width: 100%; height: 180px; }
  .sidebar { position: static; margin-top: 1.5rem; }
  .post-index li { padding: 0.8rem 0; }
  .post-index span { display: block; margin-top: 0.15rem; }
  .team { grid-template-columns: repeat(2, 1fr); display: grid; }
  .gallery { grid-template-columns: repeat(2, 1fr); display: grid; }
  .post-body figure { width: calc(50% - 0.5rem); }
  .section-head { display: flex; }
}

@media (max-width: 560px) {
  .team, .gallery { grid-template-columns: 1fr; }
  .post-body figure { width: 100%; }
  .hero h1 { font-size: 2.7rem; }
}
