* {
  box-sizing: border-box;
}

:root {
  --cream: #f4edde;
  --cream-light: #fbf7ee;
  --forest: #274436;
  --forest-dark: #182e25;
  --forest-soft: #48624f;
  --ink: #17231d;
  --line: rgba(39, 68, 54, 0.18);
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  min-height: 102px;
  padding: 12px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 237, 222, 0.97);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand img {
  width: 175px;
  height: 72px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}

.main-nav a:not(.donate-button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--forest);
  transition: right 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.donate-button {
  padding: 13px 24px !important;
  border-radius: 8px;
  background: var(--forest);
  color: var(--cream-light) !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--forest);
}

.page-heading {
  padding: 46px 20px 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 800;
}

.page-heading h1 {
  margin: 0;
  color: var(--forest-dark);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -2px;
}

.subhead {
  margin: 18px 0 0;
  font-size: 18px;
}

.stories {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 70px;
}

.story-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  min-height: 330px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 247, 238, 0.62);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.25s ease;
}

.story-card.visible {
  opacity: 1;
  transform: none;
}

.story-card:hover {
  box-shadow: 0 16px 40px rgba(24, 46, 37, 0.10);
}

.story-photo {
  width: 330px;
  height: 100%;
  min-height: 298px;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd4c4;
}

.story-photo img {
  width: 100%;
  height: 100%;
  min-height: 298px;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.55s ease;
}

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

.story-copy {
  padding: 14px 26px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-copy h2 {
  margin: 0 0 4px;
  color: var(--forest);
  font-size: 26px;
  line-height: 1.08;
}

.story-copy h3 {
  margin: 0;
  color: var(--forest-soft);
  font-size: 17px;
}

.accent-line {
  width: 28px;
  height: 2px;
  margin: 14px 0 13px;
  background: var(--forest);
}

.story-copy p {
  margin: 0;
  max-width: 100%;
  font-size: 15.5px;
  line-height: 1.47;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 34px 5%;
  background: var(--forest-dark);
  color: var(--cream);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-inner img {
  width: 160px;
  padding: 6px;
  border-radius: 9px;
  background: var(--cream);
}

.footer-inner p {
  margin: 2px 0 0;
  opacity: 0.76;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
}

/* iPad / tablet */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 102px;
    left: 0;
    right: 0;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .donate-button {
    text-align: center;
  }

  .story-card {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .story-photo {
    width: 280px;
  }

  .story-copy p {
    font-size: 14.5px;
  }
}

/* Phone */
@media (max-width: 720px) {
  .site-header {
    min-height: 86px;
    padding: 9px 18px;
  }

  .brand img {
    width: 145px;
    height: 62px;
  }

  .main-nav {
    top: 86px;
  }

  .page-heading {
    padding-top: 38px;
  }

  .page-heading h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .subhead {
    font-size: 16px;
  }

  .stories {
    width: calc(100% - 28px);
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .story-photo {
    width: 100%;
    height: 360px;
    min-height: 0;
  }

  .story-photo img {
    min-height: 0;
    height: 100%;
  }

  .story-copy {
    padding: 24px 12px 18px;
  }

  .story-copy h2 {
    font-size: 23px;
  }

  .story-copy h3 {
    font-size: 16px;
  }

  .story-copy p {
    font-size: 15px;
    line-height: 1.62;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .story-photo {
    height: 320px;
  }

  .page-heading h1 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .story-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
