:root {
  --ink: #16202a;
  --muted: #627080;
  --paper: #faf8f3;
  --surface: #ffffff;
  --line: #e6e0d6;
  --saffron: #d9822b;
  --maroon: #8c2f2f;
  --green: #1f6b55;
  --blue: #244f73;
  --shadow: 0 22px 60px rgba(22, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(230, 224, 214, 0.86);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  font-weight: 850;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-logo img {
  width: 144px;
  height: 144px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 32, 42, 0.12);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--maroon);
  box-shadow: 7px 7px 0 var(--saffron);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: #eee7db;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--maroon);
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(140, 47, 47, 0.22);
}

.button.alt {
  background: var(--green);
  box-shadow: 0 14px 28px rgba(31, 107, 85, 0.2);
}

.button.light {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  min-height: calc(75svh - 57px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image, url("assets/photos/home-hero.jpeg")) center/cover;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 27, 35, 0.78), rgba(18, 27, 35, 0.46) 55%, rgba(18, 27, 35, 0.1));
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 56px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--saffron);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  font-size: 1.6rem;
  line-height: 1.15;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.86rem, 1.6vw, 1.06rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.impact-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateY(50%);
  box-shadow: var(--shadow);
}

.impact-item {
  min-height: 118px;
  padding: 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.impact-item span {
  color: var(--muted);
  font-weight: 750;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section.after-hero {
  padding-top: 132px;
}

.section-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-header p,
.lead,
.card p,
.story p,
.timeline p {
  color: var(--muted);
}

.grid-3,
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card,
.story,
.profile-card,
.timeline-item,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 1.28;
}

.card-body {
  padding: 24px;
}

.card,
.story,
.profile-card,
.detail-block,
.timeline-item,
.contact-panel,
.donation-card {
  min-width: 0;
}

.icon-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.card:nth-child(2) .icon-tile {
  background: var(--green);
}

.card:nth-child(3) .icon-tile {
  background: var(--saffron);
}

.split {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 40px;
}

.split-media {
  position: relative;
  min-height: 520px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.split-media img {
  height: 100%;
  border-radius: 8px;
}

.photo-caption,
.hero-caption,
[data-home-local-caption],
[data-home-hero-caption] {
  display: none !important;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--maroon);
}

.quote-band {
  background: var(--blue);
  color: #fff;
}

.quote-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.quote-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) center/cover;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 58px;
}

.page-hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--maroon);
  background: #f5e4dc;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story {
  padding: 30px;
}

.story.highlight {
  border-left: 6px solid var(--saffron);
}

.link-card {
  display: block;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.comparison-below {
  margin-top: 72px;
  padding-top: 12px;
}

.grid-3 + .comparison-below {
  margin-top: 72px;
}

.image-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-auto-rows: 240px;
  gap: 20px;
}

.image-grid img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-grid img:first-child {
  grid-row: span 2;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-grid.detailed {
  grid-template-columns: 1fr;
}

.profile-card {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  min-height: 330px;
}

.profile-grid.detailed .profile-card {
  grid-template-columns: 360px 1fr;
}

.profile-body {
  padding: 24px;
}

.profile-body p {
  color: var(--muted);
}

.mini-button {
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.profile-details {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px 18px;
  margin: 18px 0 0;
}

.profile-details dt {
  color: var(--ink);
  font-weight: 850;
}

.profile-details dd {
  margin: 0;
  color: var(--muted);
}

.story-detail-grid {
  display: grid;
  gap: 22px;
}

.detail-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-block:nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.detail-block:nth-child(even) img {
  order: 2;
}

.detail-block img {
  aspect-ratio: 1.35;
  min-height: 280px;
  max-height: 420px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-block img.fit-contain {
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

.detail-block h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

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

.back-link {
  margin-top: 28px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px;
}

.timeline-date {
  color: var(--maroon);
  font-weight: 900;
}

.donation-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.donation-card {
  padding: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.donation-card strong {
  display: block;
  margin: 12px 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}

.contact-panel {
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-section {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.cta-band {
  background: var(--maroon);
  color: #fff;
}

.cta-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #111820;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong {
  color: #fff;
}

@media (max-width: 1160px) {
  .nav {
    width: min(100% - 24px, 1180px);
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: clamp(2.45rem, 12vw, 4.6rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 3rem);
  }

  .nav {
    width: 100%;
    padding: 12px 12px 10px;
  }

  .nav-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 0 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .nav-links a {
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.52);
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
    align-items: end;
  }

  .hero::after,
  .page-hero::after {
    background: linear-gradient(180deg, rgba(18, 27, 35, 0.28), rgba(18, 27, 35, 0.8));
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding: 135px 0 36px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 1.03rem;
  }

  .impact-strip,
  .grid-3,
  .people-grid,
  .split,
  .donation-layout,
  .comparison,
  .profile-grid,
  .profile-card,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-auto-rows: 260px;
  }

  .image-grid img:first-child {
    grid-row: auto;
  }

  .profile-grid.detailed .profile-card,
  .profile-details,
  .detail-block,
  .detail-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .detail-block:nth-child(even) img {
    order: 0;
  }

  .profile-details {
    gap: 2px 0;
  }

  .impact-strip {
    width: min(100% - 28px, 1180px);
    margin-bottom: 28px;
    transform: none;
  }

  .impact-item {
    min-height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section.after-hero {
    padding-top: 56px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero-inner {
    width: min(100% - 28px, 1180px);
    padding: 116px 0 38px;
  }

  .split-media {
    min-height: 0;
    aspect-ratio: 1.2;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta-inner,
  .footer-inner {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-inner {
    padding: 48px 0;
  }

  .shop-section {
    width: min(100% - 28px, 1400px);
    padding: 28px 0 48px;
  }

  .profile-card {
    min-height: 0;
  }

  .profile-card > img {
    height: auto;
    aspect-ratio: 1.2;
  }

  .profile-body,
  .story,
  .contact-panel,
  .donation-card,
  .timeline-item {
    padding: 22px;
  }

  .detail-block {
    gap: 18px;
    padding: 18px;
  }

  .detail-block img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.18;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .nav-links a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo img {
    width: 128px;
    height: 128px;
  }

  .hero-inner {
    padding-top: 112px;
  }

  .hero-actions,
  .cta-inner {
    align-items: stretch;
  }

  .hero-actions .button,
  .cta-inner .button,
  .back-link {
    width: 100%;
  }

  .impact-item strong {
    font-size: 1.7rem;
  }

  .card-body,
  .profile-body,
  .story,
  .contact-panel,
  .donation-card,
  .timeline-item {
    padding: 18px;
  }

  .grid-3,
  .people-grid,
  .profile-grid,
  .story-detail-grid,
  .timeline {
    gap: 16px;
  }

  .image-grid {
    grid-auto-rows: auto;
  }

  .image-grid img {
    height: auto;
    aspect-ratio: 1.16;
  }

  .footer-inner {
    gap: 8px;
  }
}
