/*
  The Little Green Cart styles
  ------------------------------------------------------------
  First Codex review build: static, accessible and faithful to the approved
  parchment, deep green, dementia purple and botanical watercolour direction.
*/

:root {
  --green-deep: #1f4427;
  --green: #355f33;
  --sage: #8fa276;
  --cream: #f6efdf;
  --paper: #fffaf0;
  --purple: #60307f;
  --red: #a32626;
  --text: #24301f;
  --muted: #5f684f;
  --border: rgba(31, 68, 39, 0.22);
  --radius: 8px;
  --shadow: 0 16px 36px rgba(31, 68, 39, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
.brand span,
.hero__tagline {
  color: var(--green-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: 3rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--green-deep);
  font-weight: 700;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.25rem);
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--green-deep);
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1rem;
}

.main-nav a {
  color: var(--green-deep);
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  color: var(--green-deep);
  background: transparent;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem);
}

.hero__copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 0.9rem 0 1.1rem;
  font-size: 2.05rem;
  font-weight: 700;
}

.hero__tagline span:last-child {
  color: var(--purple);
}

.hero__lead {
  max-width: 620px;
  color: #2e3929;
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button--primary {
  color: #ffffff;
  background: var(--green-deep);
}

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

.hero__art {
  margin: 0;
}

.hero__art img {
  width: 100%;
  max-height: 548px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__art figcaption {
  margin-top: 0.55rem;
  color: var(--green-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: var(--cream);
}

.feature-strip article {
  padding: 0.9rem 1rem;
  border-left: 1px solid var(--border);
}

.feature-strip article:first-child {
  border-left: 0;
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  color: var(--green-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.feature-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem);
}

.section--tint,
.section--contact {
  max-width: none;
  padding-inline: max(clamp(1rem, 3vw, 2rem), calc((100vw - var(--max-width)) / 2));
  background: rgba(143, 162, 118, 0.16);
  border-block: 1px solid rgba(31, 68, 39, 0.08);
}

.section__heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section__heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.image-card,
.content-card,
.promo-card,
.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card {
  overflow: hidden;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card__body,
.content-card,
.promo-card {
  padding: 1rem;
}

.image-card p,
.content-card p,
.promo-card p {
  color: var(--muted);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.promo-card {
  border-top: 4px solid var(--red);
}

.promo-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--purple);
}

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.split--balanced {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split--story {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
}

.rounded-image {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.tick-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.1rem 0 1.3rem;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 1.45rem;
}

.tick-list li::before {
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--sage);
  border-radius: 50%;
  content: "";
}

.supporter-grid {
  margin-top: 2rem;
}

.cause-note {
  padding: 1rem;
  background: rgba(96, 48, 127, 0.08);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  font-style: normal;
}

.contact-card span {
  display: block;
}

.contact-card strong {
  display: block;
  color: var(--purple);
}

.site-footer {
  padding: 2rem clamp(1rem, 3vw, 2rem);
  color: var(--paper);
  background: var(--green-deep);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 760px) {
  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .hero__tagline {
    font-size: 2.75rem;
  }
}

@media (min-width: 1120px) {
  h1 {
    font-size: 5.15rem;
  }

  .hero__tagline {
    font-size: 3.15rem;
  }
}

@media (max-width: 980px) {
  .hero__inner,
  .split,
  .contact-layout,
  .feature-strip,
  .promo-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-strip article {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .feature-strip article:first-child {
    border-top: 0;
  }
}

@media (max-width: 840px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 126px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand span {
    font-size: 1.05rem;
  }

  .hero__tagline {
    font-size: 1.8rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .card-grid--four,
  .card-grid--three,
  .main-nav.is-open {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
