:root {
  --soil: #2b241b;
  --ink: #231e17;
  --olive: #3d4a2a;
  --olive-deep: #2a3320;
  --leaf: #5d7343;
  --wheat: #d4b06a;
  --cream: #f6f0e4;
  --paper: #fffaf2;
  --mist: #ebe3d4;
  --muted: #6b6256;
  --terracotta: #9a5638;
  --line: rgba(43, 36, 27, 0.12);
  --shadow: 0 18px 50px rgba(43, 36, 27, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 176, 106, 0.18), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(93, 115, 67, 0.12), transparent 26%),
    var(--cream);
  font-family: "Heebo", "Segoe UI", sans-serif;
  line-height: 1.75;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  right: 16px;
  top: -48px;
  background: var(--olive);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 7vw;
  background: rgba(246, 240, 228, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 88px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.2rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--olive-deep);
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.button-primary {
  background: var(--terracotta);
  color: #fffaf2;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--olive);
  color: #f6f0e4;
}

.button-ghost {
  background: transparent;
  color: var(--olive-deep);
  border: 1px solid rgba(61, 74, 42, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 7vw 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--olive);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1,
.section-title,
.donate-copy h2 {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.lede,
.section-intro {
  font-size: 1.12rem;
  color: #3b342b;
  max-width: 42rem;
}

.hero-actions,
.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.4), rgba(255, 250, 242, 0.08)),
    var(--olive-deep);
  color: #f6f0e4;
  border-radius: 36px;
  min-height: 420px;
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.memorial-portraits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.memorial-portrait {
  display: block;
  width: 150px;
  height: 190px;
  border: 4px solid rgba(246, 240, 228, 0.85);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(24, 30, 17, 0.28);
  object-fit: cover;
}

.memorial-portrait-uniform {
  object-position: center 12%;
}

.hero-panel h2 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 2rem;
  margin: 0 0 8px;
}

.hero-panel p {
  margin: 0;
  color: rgba(246, 240, 228, 0.86);
}

.hero-panel small {
  display: block;
  margin-top: 18px;
  color: var(--wheat);
  font-weight: 700;
}

.memorial-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  color: #f6f0e4;
  border: 1px solid rgba(246, 240, 228, 0.55);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.memorial-link:hover {
  background: rgba(246, 240, 228, 0.1);
  transform: translateY(-1px);
}

.section {
  padding: 28px 7vw 12px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.story p {
  font-size: 1.08rem;
  margin: 0 0 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.fact {
  background: var(--cream);
  border-radius: 20px;
  padding: 18px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.fact strong {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.soft-card {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.soft-card h3 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.55rem;
  margin: 0 0 10px;
}

.farm-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.farm-photo {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.farm-photo-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.farm-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.farm-photo:hover img {
  transform: scale(1.02);
}

.donate {
  margin: 18px 7vw 48px;
}

.donate-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.farm-update {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
  overflow: hidden;
}

.farm-update summary {
  padding: 20px 24px;
  color: var(--olive-deep);
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.farm-update[open] summary {
  border-bottom: 1px solid var(--line);
}

.farm-update-content {
  padding: 24px;
}

.farm-update-content p {
  margin: 0 0 16px;
}

.farm-update-content h3 {
  margin: 24px 0 10px;
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.25rem;
}

.farm-update-content ul {
  margin: 0 0 20px;
  padding-right: 22px;
}

.farm-update-content li {
  margin-bottom: 7px;
}

.farm-update-closing {
  color: var(--olive-deep);
  font-weight: 700;
}

.farm-update-credit {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.farm-update-credit a {
  color: var(--olive-deep);
  font-weight: 700;
}

.site-footer {
  padding: 28px 7vw 48px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--olive-deep);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.photo-credit {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    width: 72px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .brand-text span {
    font-size: 0.74rem;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .nav a {
    font-size: 0.92rem;
  }

  .nav .button {
    flex: 0 0 auto;
    width: auto;
    align-self: center;
    min-height: 40px;
    padding: 0 18px;
  }

  .hero,
  .split,
  .donate,
  .facts {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .donate,
  .site-footer,
  .site-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-panel,
  .panel,
  .donate-copy {
    padding: 24px;
  }

  .memorial-portraits {
    gap: 10px;
  }

  .memorial-portrait {
    width: min(42vw, 150px);
    height: min(53vw, 190px);
  }

  .farm-gallery {
    grid-template-columns: 1fr;
  }

  .farm-photo,
  .farm-photo-wide {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 600px) {
  .donate {
    margin-right: 0;
    margin-left: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .donate-copy {
    padding: 20px 12px;
  }

  .farm-update summary {
    padding: 18px 14px;
  }

  .farm-update-content {
    padding: 20px 16px;
  }
}
