:root {
  --green: #284e1c;
  --green-light: #3a6b2a;
  --coral: #e06b63;
  --coral-soft: #f7d4d1;
  --ink: #1f2933;
  --muted: #52606d;
  --paper: #faf8f5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
  --radius: 18px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

a {
  color: var(--green-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.container.narrow {
  width: min(calc(100% - 2rem), 760px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(40, 78, 28, 0.08);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
}

.site-nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--coral);
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid rgba(40, 78, 28, 0.08);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 6rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(20, 35, 15, 0.15), rgba(20, 35, 15, 0.72)),
    url("../img/parkcity.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(40, 78, 28, 0.35), rgba(224, 107, 99, 0.25));
}

.hero-content {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(224, 107, 99, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  background: #cf5a53;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
}

.section {
  padding: 5rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.mission {
  background: var(--white);
}

.memory {
  background: linear-gradient(180deg, var(--coral-soft), var(--paper));
}

.memory-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.memory-names {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--green);
  margin: 0 0 1rem;
}

.memory-portrait {
  margin: 0;
  text-align: center;
}

.memory-portrait img {
  width: min(100%, 320px);
  margin-inline: auto;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}

.memory-portrait figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.causes {
  background: var(--white);
}

.cause-cards {
  display: grid;
  gap: 1.5rem;
}

.cause-card {
  background: var(--paper);
  border: 1px solid rgba(40, 78, 28, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.04);
}

.cause-card h3 {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 1.35rem;
}

.cause-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.link-list a::after {
  content: "↗";
  font-size: 0.85rem;
}

.gallery {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item--wide img {
  aspect-ratio: 16 / 9;
}

.contact {
  background: var(--green);
  color: var(--white);
}

.contact h2 {
  color: var(--white);
}

.contact a {
  color: #dff0d8;
}

.contact-note {
  margin-top: 1.5rem;
  opacity: 0.85;
}

.site-footer {
  background: #162412;
  color: rgba(255, 255, 255, 0.82);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
}

.footer-inner p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--white);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .site-nav.is-open {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .memory-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .cause-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
