:root {
  --paper: #f8f6ef;
  --surface: #fffdf8;
  --ink: #262720;
  --muted: #6a675d;
  --line: #d7d0bf;
  --moss: #596d48;
  --moss-dark: #33422f;
  --clay: #a1533b;
  --blue: #456775;
  --gold: #b8893e;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(38, 39, 32, 0.12);
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(89, 109, 72, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(69, 103, 117, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--moss-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus {
  color: var(--clay);
}

p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  font-size: 3.2rem;
  max-width: 13ch;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.2rem;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.brand__mark {
  width: 54px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(38, 39, 32, 0.08);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 0.05rem;
}

.brand__name {
  font-size: 1rem;
}

.brand__tag {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--clay);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  position: relative;
  background: currentColor;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  width: 18px;
  height: 2px;
  position: absolute;
  left: 0;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  position: relative;
  color: var(--white);
  background: #2f3a2c;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 39, 28, 0.9), rgba(31, 39, 28, 0.45) 52%, rgba(31, 39, 28, 0.16)),
    linear-gradient(0deg, rgba(31, 39, 28, 0.78), transparent 45%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
}

.hero__logo {
  width: min(170px, 42vw);
  height: auto;
  margin-bottom: 1.25rem;
  padding: 0.65rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero p {
  max-width: 620px;
  font-size: 1.18rem;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--moss-dark);
  border-radius: 3px;
  color: var(--surface);
  background: var(--moss-dark);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus {
  color: var(--surface);
  background: var(--clay);
  border-color: var(--clay);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.84);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.button--quiet {
  color: var(--moss-dark);
  background: transparent;
}

.section {
  padding: 5rem 0;
  background: var(--surface);
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  color: var(--surface);
  background: var(--moss-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark a {
  color: var(--surface);
}

.section__intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 3rem;
  align-items: center;
}

.split--top {
  align-items: start;
}

.media-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.media-panel--logo {
  padding: 2.5rem;
}

.media-panel--logo img {
  width: min(360px, 100%);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  object-fit: contain;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  margin-top: 2rem;
}

.fact-list > div {
  padding: 1.25rem;
  background: var(--surface);
}

.fact-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--moss-dark);
  font-size: 1.55rem;
  font-weight: 600;
}

.board-grid,
.path-grid,
.donation-grid,
.intention-grid,
.gallery-grid,
.farm-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.farm-media-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card,
.path-card,
.donation-card,
.intention-card,
.gallery-card,
.farm-media-card {
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.member-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.9rem;
}

.member-card__portrait,
.profile__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(89, 109, 72, 0.15), rgba(184, 137, 62, 0.14)),
    var(--paper);
}

.member-card__portrait img,
.profile__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--moss-dark);
  padding: 1rem;
  font-size: 2.1rem;
  font-weight: 600;
  text-align: center;
}

.member-card h3 {
  margin-bottom: 0.2rem;
}

.member-card p,
.path-card p,
.donation-card p,
.intention-card p,
.gallery-card p {
  color: var(--muted);
}

.intention-card h3 {
  color: var(--moss-dark);
}

.gallery-grid {
  align-items: start;
}

.gallery-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.farm-media-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.gallery-card--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.farm-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card--wide img {
  aspect-ratio: 16 / 10;
}

.gallery-card figcaption {
  padding: 0.95rem 1rem 1.05rem;
  color: var(--muted);
}

.farm-media-card figcaption {
  padding: 0.85rem 0.95rem 0.95rem;
  color: var(--muted);
}

.photo-credit {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.text-link {
  color: var(--moss-dark);
  font-weight: 700;
  text-decoration: none;
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 0;
  align-items: start;
}

.mission-aside {
  padding: 1.25rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background:
    linear-gradient(135deg, rgba(89, 109, 72, 0.12), rgba(184, 137, 62, 0.1)),
    var(--surface);
}

.mission-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.mission-statement {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mission-statement--image {
  background:
    linear-gradient(90deg, rgba(31, 39, 28, 0.9), rgba(31, 39, 28, 0.68)),
    linear-gradient(0deg, rgba(31, 39, 28, 0.78), rgba(31, 39, 28, 0.34)),
    url("/assets/img/twcf/sunflower-barn.jpg") center / cover;
}

.mission-statement p {
  position: relative;
  z-index: 1;
  max-width: 78ch;
  color: var(--ink);
  font-size: 1.08rem;
}

.mission-statement--image p {
  color: var(--white);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.28);
}

.mission-statement__lead {
  color: var(--moss-dark);
  font-size: 1.18rem;
}

.mission-statement--image .mission-statement__lead {
  color: var(--white);
}

.mission-statement hr {
  position: relative;
  z-index: 1;
  width: 7rem;
  margin: 2rem 0;
  border: 0;
  border-top: 2px solid var(--gold);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(89, 109, 72, 0.16), transparent 44%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero--image {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 0;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 39, 28, 0.86), rgba(31, 39, 28, 0.42) 58%, rgba(31, 39, 28, 0.22)),
    linear-gradient(0deg, rgba(31, 39, 28, 0.72), transparent 56%);
}

.page-hero--image .shell {
  position: relative;
  z-index: 1;
  padding: 6rem 0 3.25rem;
}

.page-hero--image h1,
.page-hero--image p,
.page-hero--image .breadcrumbs,
.page-hero--image .breadcrumbs a {
  color: var(--white);
}

.page-hero--image .eyebrow {
  color: var(--gold);
}

.mission-hero {
  background-image: url("/assets/img/twcf/sunflower-barn.jpg");
  background-position: center 48%;
}

.page-hero--video {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 0;
  color: var(--white);
  background: #2f3a2c;
}

.page-hero--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 39, 28, 0.9), rgba(31, 39, 28, 0.54) 55%, rgba(31, 39, 28, 0.22)),
    linear-gradient(0deg, rgba(31, 39, 28, 0.78), transparent 50%);
}

.page-hero--video .shell {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 3.5rem;
}

.page-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.page-hero--video h1,
.page-hero--video p,
.page-hero--video .breadcrumbs,
.page-hero--video .breadcrumbs a {
  color: var(--white);
}

.page-hero--video .eyebrow {
  color: var(--gold);
}

.breadcrumbs {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--line);
}

.profile {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.profile__body {
  max-width: 780px;
}

.profile__body .lead {
  color: var(--moss-dark);
  font-size: 1.18rem;
}

.note {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  background: rgba(184, 137, 62, 0.12);
}

.donation-embed {
  min-height: 260px;
  display: grid;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.donation-embed h2 {
  font-size: 1.4rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field label {
  color: var(--ink);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  padding: 3rem 0;
  color: var(--surface);
  background: #272c25;
}

.site-footer a,
.site-footer h2,
.site-footer h3,
.site-footer p {
  color: var(--surface);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 2rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.copyright {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.45rem;
  }

  .site-header__inner {
    min-height: 76px;
  }

  .brand__mark {
    width: 48px;
    height: 52px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: min(320px, calc(100% - 40px));
    position: absolute;
    right: 20px;
    top: 74px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .split,
  .profile,
  .mission-layout {
    grid-template-columns: 1fr;
  }

  .board-grid,
  .path-grid,
  .donation-grid,
  .intention-grid,
  .gallery-grid,
  .farm-media-grid,
  .fact-list,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .gallery-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .brand__tag {
    display: none;
  }

  .shell {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero__inner {
    padding: 6rem 0 3rem;
  }

  .page-hero--video {
    min-height: 460px;
  }

  .page-hero--video .shell {
    padding: 5.75rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__video {
    display: none;
  }

  .page-hero--video {
    background:
      linear-gradient(90deg, rgba(31, 39, 28, 0.9), rgba(31, 39, 28, 0.52)),
      url("/assets/img/video/twcf-cows-dancing-poster.jpg") center / cover;
  }
}
