@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Pinyon+Script&display=swap');

:root {
  --paper: #f1eee9;
  --ink: #2f3a2b;        /* dark green title */
  --text: #3a3630;
  --muted: #6b6356;
  --taupe: #b3a48d;      /* badge + tagline */
  --rule: #bdb2a0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--paper);
  background-image: url("images/paper.jpg");
  background-repeat: repeat;
  color: var(--text);
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 14px; }

/* Double rule used above/below header, nav, and hero */
.rule { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); height: 7px; }

/* ---------- Header ---------- */
.masthead { padding: 18px 0 16px; text-align: center; }
.masthead img { display: inline-block; width: 100%; max-width: 760px; height: auto; }

/* ---------- Nav ---------- */
nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}
nav li { flex: 1 1 auto; white-space: nowrap; text-align: center; position: relative; }
nav li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 16px; margin-top: -8px; border-left: 1px solid var(--text); opacity: .6; }
nav a {
  display: block;
  padding: 4px 8px;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: var(--ink); text-decoration: underline; }
nav a.current { color: var(--muted); }

/* ---------- Content ---------- */
.hero { margin: 28px 0; }
.hero img { display: block; width: 100%; height: auto; }

main { padding: 20px 0 40px; }
main h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 32px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
main h2 { font-weight: 400; font-style: italic; color: var(--ink); font-size: 22px; margin: 30px 0 10px; }
main p { max-width: 68ch; margin-bottom: 1em; }
main img { max-width: 100%; height: auto; margin: 10px 0 20px; }
main a { color: var(--ink); }

/* ---------- Page headings (homepage intro + inner pages) ---------- */
.intro { text-align: center; padding: 30px 0 26px; }
.page { padding: 30px 0 30px; }
.intro h1, .page h1 {
  text-align: center;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.intro h1::after, .page h1::after {
  content: ""; display: block; width: 112px; margin: 14px auto 0;
  border-top: 2px solid var(--rule);
}
.intro p { max-width: none; font-size: 1em; line-height: 2.2; margin: 0; }
.page p { max-width: 70ch; margin: 0 auto 1.2em; font-size: 1em; line-height: 2; }

/* ---------- Title with subtitle (Conservancy) ---------- */
.page h1.h1-bold { font-weight: 700; font-size: 26px; margin-bottom: 6px; }
.page h1.h1-bold::after { display: none; }
.page .subtitle { text-align: center; font-style: italic; font-size: 21px; margin: 0 auto 26px; }
.page .subtitle::after {
  content: ""; display: block; width: 112px; margin: 12px auto 0;
  border-top: 2px solid var(--rule);
}

.page h1.h1-bold.h1-rule::after { display: block; }
.page .intro-italic { max-width: none; text-align: center; font-style: italic; margin: 0 0 12px; }
.short-rule { width: 112px; margin: 0 auto 12px; border: 0; border-top: 2px solid var(--rule); }
.page .section-photo + .short-rule { margin-top: 12px; }

/* ---------- Visitor info ---------- */
.visitor-info { margin-top: 30px; }
.visitor-info p { max-width: none; margin: 0 0 14px; }
.visitor-info .label { font-size: 1em; font-weight: 700; font-style: normal; color: var(--text); margin: 0 0 14px; }
.visitor-info a { color: var(--text); }
.activities { columns: 3; column-gap: 24px; padding-left: 50px; margin: 30px 0 10px; line-height: 1.45; }
.activities li { padding-left: 4px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 50px; }
.contact address { font-style: normal; text-align: center; line-height: 1.9; }
.contact address a { color: var(--text); }
.contact .contact-rule { margin: 34px auto 22px; }

.page .intro-small { font-size: 1em; margin-bottom: 18px; }
.page .subhead { text-align: center; font-style: italic; font-weight: 400; font-size: 21px; color: var(--text); margin: 18px 0 16px; }
.page p.full { max-width: none; margin: 0 0 20px; }

.page .subhead--tight { margin-top: 0; }
.page .wide-photo { display: block; width: 100%; max-width: 960px; height: auto; margin: 10px auto 14px; }

/* ---------- Two-column section ---------- */
.two-col { display: grid; grid-template-columns: 38fr 62fr; gap: 24px; text-align: left; }
.two-col p { max-width: none; margin: 0 0 1.1em; }
.two-col .col-head { font-weight: 700; font-style: italic; font-size: 1em; line-height: 1.45; color: var(--text); margin: 0 0 14px; }
.two-col strong { font-weight: 700; }
.two-col .lead { font-weight: 700; font-size: 1em; line-height: 1.8; }

/* ---------- Section heading between rules ---------- */
.section-head {
  text-align: center; font-weight: 700; font-style: italic; font-size: 21px;
  color: var(--text); margin: 40px 0 12px;
}
.section-head::before, .section-head::after {
  content: ""; display: block; width: 112px; margin: 0 auto;
  border-top: 2px solid var(--rule);
}
.section-head::before { margin-bottom: 12px; }
.section-head::after { margin-top: 12px; }
.page .section-photo { display: block; max-width: 100%; width: 664px; height: auto; margin: 0 auto 22px; }
.page .section-photo:has(+ .short-rule) { width: 617px; margin-bottom: 0; }
.members p { max-width: none; margin: 0 0 1em; }
.section-head--light { font-weight: 400; }
.projects .list-intro { max-width: none; font-weight: 700; font-size: 1em; margin: 0 0 10px; }
.projects ol { padding-left: 40px; }
.projects li { margin: 0 0 0.9em; padding-left: 2px; }

/* ---------- Book (Support page) ---------- */
.book { display: grid; grid-template-columns: 36fr 64fr; gap: 22px; align-items: start; margin-top: 28px; }
.page .book img { display: block; width: 100%; height: auto; margin: 0; box-shadow: 0 1px 4px rgba(60, 50, 40, 0.25); }
.book p { max-width: none; margin: 0 0 20px; }
.page a.button {
  display: inline-flex; align-items: center; gap: 12px;
  background: #3f3b36; color: #fff; text-decoration: none;
  font-size: 1em; padding: 11px 24px; border-radius: 3px;
}
.page a.button:hover, .page a.button:focus-visible { background: var(--ink); }

/* ---------- Photo gallery ---------- */
.gallery { columns: 3 260px; column-gap: 26px; max-width: 940px; margin: 40px auto 0; }
.gallery figure { break-inside: avoid; margin: 0 0 26px; }
.gallery img {
  display: block; width: 100%; height: auto; margin: 0;
  background: #fff; padding: 7px;
  box-shadow: 0 1px 4px rgba(60, 50, 40, 0.25);
}
.gallery figcaption { margin-top: 8px; font-style: italic; font-size: 16px; line-height: 1.5; text-align: center; color: var(--muted); }

/* ---------- Homepage tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 4px; }
.tile { position: relative; display: block; aspect-ratio: 324 / 150; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tile img { transition: filter .2s; }
.tile:hover img, .tile:focus-visible img { filter: saturate(1.3) contrast(1.05); }
.tile span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Pinyon Script', cursive;
  font-size: 50px;
  color: #fff;
  text-shadow: 2px 3px 4px rgba(40, 35, 30, 0.6);
}

/* ---------- Footer ---------- */
footer { padding: 16px 0 30px; text-align: center; font-style: italic; color: var(--text); }
footer p { margin: 0 0 6px; }
footer .credit { font-size: 18px; }
footer .maint { font-size: 15px; }
footer a { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  nav ul { padding: 8px 0; }
  nav a { padding: 9px 4px; font-size: 15px; letter-spacing: 0; }
  .intro p, .page .intro-italic { text-align: left; line-height: 1.9; }
  .intro h1, .page h1 { font-size: 24px; line-height: 1.35; }
  .page .subtitle, .page .subhead, .section-head { font-size: 20px; }
  .tile span { font-size: 46px; }
  .projects ol { padding-left: 26px; }
  .contact address, .contact .intro-italic { text-align: center; }
  nav ul { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  nav li { white-space: normal; }
  nav a { line-height: 1.3; }
  nav li + li::before { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .activities { columns: 2; padding-left: 24px; }
  .page .book img { max-width: 320px; margin: 0 auto; }
  .intro p { line-height: 1.9; }
}

/* ---------- Comfortable reading width for long text ---------- */
.intro p,
.page .intro-italic,
.page p.full,
.members p,
.visitor-info p,
.visitor-info .label,
.activities,
.projects .list-intro,
.projects ol {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
