@font-face {
  font-family: "Merriweather";
  src: url("/img/fonts/Merriweather/Merriweather-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/img/fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --green: #004225;
  --green-soft: #7a9d54;
  --cream: #fffaf3;
  --ink: #17211b;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: var(--green); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: var(--green);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.site-brand,
.site-nav a,
.site-nav summary {
  color: white;
  text-decoration: none;
}

.site-brand {
  font-family: "Merriweather", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav details { position: relative; }
.site-nav summary { cursor: pointer; list-style: none; }
.site-nav details > div {
  position: absolute;
  right: 0;
  min-width: 12rem;
  padding: .6rem;
  border-radius: .5rem;
  background: var(--green);
  box-shadow: 0 10px 25px rgb(0 0 0 / 25%);
}
.site-nav details a { display: block; padding: .35rem .5rem; }

.site-main {
  width: min(1120px, calc(100% - 2rem));
  min-height: 65vh;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.rich-text { margin: 1.25rem auto; max-width: 78ch; }
.rich-text.legacy-centered { text-align: center; }
.rich-text h1, .rich-text h2, .rich-text h3 { font-family: "Merriweather", serif; line-height: 1.2; }

.media-block { margin: 2rem auto; text-align: center; }
.media-block img { display: block; width: auto; max-width: 100%; max-height: 75vh; margin: auto; border-radius: .75rem; }
.media-block.legacy-full-width img { width: 100%; max-height: none; }
.media-block.legacy-logo img { max-width: min(18rem, 70vw); }
.media-block figcaption { margin-top: .5rem; color: #425047; }

.listing-collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1.5rem; margin: 2rem 0; }
.listing-collection article { overflow: hidden; padding: 1rem; border-radius: .8rem; background: var(--card); box-shadow: 0 8px 24px rgb(0 66 37 / 12%); }
.listing-collection img { width: 100%; height: auto; border-radius: .55rem; }
.listing-collection.gallery_only article { padding: .5rem; }

.news-list { margin: 2rem auto; max-width: 78ch; }
.news-list article { padding: .9rem 0; text-align: center; }
.news-separator { display: block; width: 2.25rem; height: auto; margin: .5rem auto; }

form[action="/contact"] { display: grid; gap: 1rem; max-width: 42rem; margin: 2rem auto; padding: 1.5rem; border-radius: .8rem; background: var(--card); }
form[action="/contact"] label { display: grid; gap: .35rem; }
form[action="/contact"] input, form[action="/contact"] textarea { width: 100%; padding: .7rem; }
form[action="/contact"] button { justify-self: start; padding: .7rem 1.2rem; border: 0; border-radius: .4rem; background: var(--green); color: white; }

.site-footer { padding: 2rem 1rem; background: var(--green); color: white; text-align: center; }
.site-footer img { display: block; width: min(20rem, 80vw); max-height: 9rem; object-fit: contain; margin: 0 auto 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.site-footer a { color: white; }

@media (max-width: 760px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; gap: .75rem; }
  .site-nav { align-items: flex-start; flex-wrap: wrap; gap: .75rem 1rem; }
  .site-nav details > div { right: auto; left: 0; }
}
