:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --white: #fffdf8;
  --ink: #192d26;
  --muted: #52625a;
  --green: #183c33;
  --green-hover: #28604f;
  --line: #d7dcd1;
  --sage: #e8eee5;
  --red: #903b26;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

main {
  flex: 1;
}

.wrap {
  width: min(100% - 2.5rem, 71rem);
  margin-inline: auto;
}

h1, h2, h3, p, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 5.7vw, 5.2rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--red);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 3px solid #b04a30;
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption, .attribution {
  font-size: 0.925rem;
  color: var(--muted);
}

figcaption {
  margin-top: 0.6rem;
}

.skip-link {
  position: absolute;
  inset: 0.7rem auto auto 0.8rem;
  z-index: 1;
  transform: translateY(-180%);
  padding: 0.55rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner, .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.header-inner {
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2.85rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  background: var(--paper);
  text-decoration: underline;
}

nav a[aria-current="page"] {
  background: var(--sage);
  text-decoration: underline;
}

.home-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
  background: var(--green);
  color: var(--white);
}

.home-hero :focus-visible {
  outline-color: #ffcca5;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem 2.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #f6cead;
}

.lead {
  max-width: 41rem;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.5;
}

.button {
  display: inline-block;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--green);
  border-radius: 0.45rem;
  background: var(--green);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: var(--green-hover);
  text-decoration: underline;
}

.button-light, .button-light:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--green);
}

.button-outline {
  background: transparent;
  color: var(--green);
}

.button-outline:hover {
  background: var(--sage);
}

.hero-photo img {
  width: 100%;
  border-radius: 0.65rem;
}

.hero-photo figcaption {
  color: #dbe7de;
}

.page-intro {
  padding-block: clamp(2.5rem, 7vw, 5rem) 0;
}

.page-intro .lead {
  margin-top: 1rem;
  color: var(--muted);
}

.page-content {
  padding-block: clamp(1.8rem, 4.5vw, 3.4rem) clamp(2.7rem, 6vw, 5rem);
}

.reading-width {
  max-width: 46rem;
}

.visit-note {
  margin-bottom: clamp(2rem, 5vw, 3.8rem);
  padding: 1.1rem 1.25rem;
  border-inline-start: 0.25rem solid var(--red);
  background: var(--sage);
}

.visit-note h2 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.story-grid, .contact-grid, .help-grid, .photo-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}

.story-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

.story-grid section > a {
  display: inline-block;
  margin-top: 0.8rem;
}

.pull-quote {
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.section-rule {
  margin-top: clamp(1.75rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.help-grid, .photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portrait {
  max-width: 28rem;
}

.portrait img {
  width: 100%;
  border-radius: 0.55rem;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  padding-block: 0.15rem;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

summary:hover {
  text-decoration: underline;
}

details > p, details > blockquote {
  margin-top: 0.7rem;
}

details blockquote {
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--line);
}

.photo-feature {
  grid-column: 1 / -1;
}

.photo a {
  display: block;
  width: 100%;
  border-radius: 0.55rem;
}

.photo img {
  width: 100%;
  border-radius: 0.55rem;
}

.photo:not(.photo-feature) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

html:has(.photo-viewer[open]) {
  overflow: hidden;
}

.photo-viewer {
  width: min(62rem, calc(100% - 1.25rem));
  max-width: none;
  max-height: calc(100vh - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--white);
  color: var(--ink);
}

.photo-viewer::backdrop {
  background: rgb(13 29 24 / 80%);
}

.photo-viewer-content {
  padding: 0.75rem;
}

.photo-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 650;
}

.photo-viewer-controls .button {
  flex-shrink: 0;
  min-height: 2.75rem;
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}

.photo-viewer img {
  width: 100%;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  border-radius: 0.4rem;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-panel {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
}

.contact-panel address {
  margin-bottom: 0.75rem;
  font-style: normal;
}

.contact-panel .phone {
  margin-top: 1rem;
}

.site-footer {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--sage);
}

.footer-inner {
  color: var(--muted);
  font-size: 0.925rem;
}

.footer-inner p + p {
  margin: 0;
}

@media (max-width: 48rem) {
  .home-intro, .story-grid, .contact-grid, .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-intro {
    align-items: start;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 27rem) {
  .wrap {
    width: calc(100% - 2rem);
  }

  nav ul {
    gap: 0.1rem;
  }

  nav a {
    padding-inline: 0.45rem;
  }

  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
