@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Imprima;
  src: url("../fonts/Imprima-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #367714;
  --dark-green: #254316;
  --ink: #444;
  --muted: #64665d;
  --paper: #fff;
  --footer: #f0f0f0;
  --width: 1050px;
  color-scheme: light;
  font-family: Imprima, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--dark-green); }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-navigation {
  min-height: 80px;
  position: relative;
  z-index: 5;
  background: var(--paper);
}
.navigation-inner { max-width: var(--width); margin: auto; padding: 17px 0; }
.navigation-items {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation-item { position: relative; }
.navigation-item > a {
  display: block;
  padding: 10px 15px;
  border-bottom: 1px solid #e7e7e7;
  color: var(--muted);
  font: 400 16px/24px "Archivo Black", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}
.navigation-item > a:hover,
.navigation-item > a[aria-current],
.navigation-item > a.is-ancestor { color: var(--green); border-color: var(--green); }
.submenu {
  min-width: 210px;
  padding: 8px;
  list-style: none;
  background: var(--paper);
}
.submenu a { display: block; padding: 8px 12px; text-decoration: none; }
.submenu a[aria-current] { font-weight: bold; }
.submenu-toggle {
  position: absolute;
  right: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
}
.has-children > a { padding-right: 22px; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid #ddd; background: white; color: var(--dark-green); padding: 8px 14px; }
.site-header {
  background: url("../images/background.png") center center / cover no-repeat;
  padding: 70px 20px 48px;
}
.header-inner { max-width: var(--width); margin: auto; }
.site-title {
  display: block;
  text-align: right;
  text-decoration: none;
  color: var(--dark-green);
  font: 400 55px/1.05 "Archivo Black", sans-serif;
  padding: 5px;
}
.site-title:hover { color: var(--dark-green); }
.site-logo { display: block; width: 160px; margin: 50px 5px 0; }
.site-logo img { display: block; width: 160px; height: 160px; }
.main-content { background: var(--paper); }
.page-content { max-width: 1100px; padding: 50px 30px 40px; margin: auto; }
h1, h2, h3 { color: var(--green); font-family: "Archivo Black", sans-serif; font-weight: 400; }
h1 { font-size: 36px; line-height: 1.25; text-align: center; margin: 4px 0 40px; }
h2 { font-size: 26px; line-height: 1.3; margin: 1.8em 0 .7em; }
h3 { font-size: 20px; }
.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 24px; }
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 28px; }
.prose li { padding-left: 4px; margin-bottom: 16px; }
.prose li > p { margin: 0; }
.page-content--home .prose > ul { margin-left: 17%; margin-bottom: 52px; }
.page-content--home .prose > ul li { margin: 0; }
.markdown-image { display: inline-block; vertical-align: top; max-width: 100%; text-align: center; }
.markdown-image img { display: block; max-width: 100%; height: auto; margin: auto; }
.image-link { display: block; cursor: zoom-in; }
.image-caption { display: block; font-size: 13px; padding-top: 3px; color: var(--ink); }
.prose p:has(> .markdown-image),
.prose p:has(> a > .markdown-image) {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
}
.prose p > .markdown-image,
.prose p > a:has(> .markdown-image) { flex: 1; min-width: 0; }
.prose p:not(.gallery-track):has(> .markdown-image:nth-child(4)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.page-content--home .prose p:has(.markdown-image) img { height: 245px; width: 100%; object-fit: contain; }
.breadcrumb { display: flex; gap: 12px; font-size: 14px; margin: -28px 0 34px; }
.breadcrumb a { text-decoration: none; }
.page-content--action .prose { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.page-content--action .prose > ul { margin-top: 18px; }
.page-content--action .prose > p:has(.markdown-image) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.activity-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; align-items: start; margin-top: 32px; }
.activity-row > :is(.gallery, p:has(> .markdown-image)) { grid-column: 1; grid-row: 1 / span 10; }
.activity-row > :not(.gallery):not(p:has(> .markdown-image)) { grid-column: 2; }
.activity-row--reverse > :is(.gallery, p:has(> .markdown-image)) { grid-column: 2; }
.activity-row--reverse > :not(.gallery):not(p:has(> .markdown-image)) { grid-column: 1; }
.page-content--contact .prose > p:has(.markdown-image) { float: left; width: 38%; justify-content: center; }
.page-content--contact .prose > p:has(.markdown-image) + p { margin-left: 42%; min-height: 180px; }
.page-content--contact .prose > p:has(.markdown-image) + p + p { clear: both; }
.action-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 10px; }
.action-links a { padding: 10px 16px; border: 1px solid #cad6c4; text-decoration: none; }
.gallery { min-width: 0; margin-bottom: 24px; }
.prose p.gallery-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin: 0;
}
.prose .gallery-track > .markdown-image { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-track img { width: 100%; height: 326px; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0; }
.gallery-controls button {
  width: 40px;
  height: 36px;
  border: 1px solid #b9c5b4;
  background: var(--paper);
  color: var(--green);
  font-size: 23px;
  line-height: 1;
}
.gallery-controls button:disabled { opacity: .4; cursor: default; }
.gallery-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.association-footer { text-align: center; background: var(--footer); padding: 26px 20px 35px; }
.association-footer p { margin: 22px 0 12px; }
.association-footer p a { color: inherit; text-decoration: none; }
.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #252a2b;
  color: white;
  font: bold 40px/1 Imprima, sans-serif;
  text-decoration: none;
}
.facebook-link:hover { background: var(--dark-green); color: white; }
.share-link { font-size: 14px; }
.legal-footer { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 24px 25px 38px; margin: auto; font-size: 13px; }
.legal-footer a { color: var(--muted); }
.lightbox {
  max-width: min(1100px, 95vw);
  max-height: 95vh;
  padding: 48px 20px 20px;
  background: #fff;
  color: var(--ink);
  border: 0;
}
.lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figure img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; margin: auto; }
.lightbox figcaption { margin-top: 8px; }
.lightbox-close { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; padding: 4px 10px; color: var(--dark-green); }
.lightbox-close span { font-size: 24px; margin-left: 8px; }
.lightbox-original { display: block; text-align: center; font-size: 14px; margin-top: 12px; }
body:has(.lightbox[open]) { overflow: hidden; }

@media (min-width: 801px) {
  .submenu { position: absolute; top: 100%; left: 0; box-shadow: 0 6px 15px rgb(0 0 0 / 10%); }
  .has-children:not(:hover):not(:focus-within) .submenu { display: none; }
  .has-children:has(.submenu-toggle:not([hidden])) .submenu { display: none; }
  .has-children:has(.submenu-toggle[aria-expanded="true"]) .submenu { display: block; }
}

@media (max-width: 800px) {
  .site-navigation { min-height: 60px; }
  .menu-toggle { display: block; }
  .navigation-inner { padding: 10px 20px; }
  .navigation-items { display: block; }
  .navigation-item > a { padding: 12px 8px; font-size: 14px; }
  .has-children > a { padding-right: 45px; }
  .submenu { padding: 4px 0 8px 20px; }
  .submenu-toggle { right: 6px; width: 34px; height: 34px; top: 7px; border: 1px solid #ddd; }
  .menu-toggle:not([hidden]) + .navigation-items { display: none; }
  .menu-toggle[aria-expanded="true"] + .navigation-items { display: block; padding-top: 12px; }
  .has-children:has(.submenu-toggle[aria-expanded="false"]:not([hidden])) .submenu { display: none; }
  .site-header { padding: 28px 24px; }
  .site-title { font-size: clamp(28px, 6vw, 42px); }
  .site-logo { margin-top: 24px; }
  .site-logo, .site-logo img { width: 110px; height: 110px; }
  .page-content { padding: 32px 24px; }
  h1 { font-size: 26px; margin: 2px 0 28px; }
  h2 { font-size: 23px; }
  .page-content--home .prose > ul { margin-left: 0; margin-bottom: 32px; }
  .prose p:has(> .markdown-image),
  .prose p:has(> a > .markdown-image) { flex-direction: column; align-items: center; gap: 24px; }
  .prose p > .markdown-image, .prose p > a:has(> .markdown-image) { flex: auto; }
  .prose p:not(.gallery-track):has(> .markdown-image:nth-child(4)) { grid-template-columns: 1fr 1fr; }
  .page-content--home .prose p:has(.markdown-image) img { height: auto; max-height: 360px; }
  .page-content--action .prose { display: block; }
  .activity-row { display: block; }
  .page-content--contact .prose > p:has(.markdown-image) { float: none; width: auto; }
  .page-content--contact .prose > p:has(.markdown-image) + p { margin-left: 0; min-height: 0; }
  .page-content--action .prose > ul { margin-top: 24px; }
  .prose p.gallery-track { flex-direction: row; align-items: start; gap: 0; }
  .prose .gallery-track > .markdown-image { flex: 0 0 100%; }
  .gallery-track img { height: 300px; }
  .breadcrumb { margin: -10px 0 24px; }
  .legal-footer { padding: 24px; gap: 12px 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s, background-color .15s; }
}
