
:root {
  --purple: #9a40ec;
  --purple-dark: #67339b;
  --purple-deep: #52206e;
  --magenta: #a2307d;
  --magenta-dark: #8b296c;
  --lavender: #f6effd;
  --lavender-strong: #ead9fb;
  --ink: #302935;
  --muted: #655b6b;
  --white: #ffffff;
  --line: rgba(103, 51, 155, .18);
  --shadow: 0 16px 38px rgba(79, 34, 100, .11);
  --shadow-small: 0 7px 20px rgba(79, 34, 100, .09);
  --radius: 18px;
  --radius-small: 12px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f8f2fc url('../images/purplebgrsm.jpg') repeat;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute; left: -999px; top: auto;
}
.skip-link:focus {
  left: 18px; top: 18px; z-index: 999; padding: 10px 14px;
  border-radius: 10px; background: var(--white); color: var(--purple-deep);
  box-shadow: var(--shadow-small);
}

.site-shell {
  width: min(calc(100% - 28px), var(--content));
  margin: 16px auto 28px;
  overflow: hidden;
  border: 1px solid rgba(153, 51, 102, .24);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
}

.site-header { background: var(--white); }
.brand-banner {
  display: block;
  overflow: hidden;
  background: #eef2f8;
}
.brand-banner img {
  display: block; width: 100%; aspect-ratio: 801 / 252; object-fit: cover;
}
.nav-wrap {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  box-shadow: 0 6px 18px rgba(78, 29, 109, .16);
}
.nav-home {
  display: none;
  color: #fff; font-weight: 700; letter-spacing: .01em; text-decoration: none;
}
.site-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 3px; }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 11px; border-radius: 999px;
  color: rgba(255,255,255,.94); font-size: .84rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255,255,255,.17); color: #fff; transform: translateY(-1px); }
.site-nav a[aria-current="page"] { background: #fff; color: var(--purple-dark); }
.site-nav .nav-donate { background: var(--magenta); color: #fff; margin-left: 4px; }
.site-nav .nav-donate:hover, .site-nav .nav-donate:focus-visible { background: var(--magenta-dark); }
.external-mark { margin-left: 4px; font-size: .72em; opacity: .85; }
.menu-button {
  display: none; border: 0; background: rgba(255,255,255,.14); color: #fff;
  padding: 8px 11px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer;
}

main { min-height: 360px; }
.content { width: min(calc(100% - 40px), 1010px); margin-inline: auto; }
.page-intro { padding: 46px 0 22px; }
.eyebrow { margin: 0 0 8px; color: var(--purple-dark); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--magenta); line-height: 1.22; font-weight: 700; }
h1 { margin: 0; font-size: clamp(2rem, 4.3vw, 3.1rem); letter-spacing: -.025em; }
h2 { margin-top: 0; font-size: clamp(1.42rem, 2.6vw, 1.92rem); letter-spacing: -.014em; }
h3 { margin: 0 0 7px; font-size: 1.1rem; }
.lead { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }
.section { padding: 28px 0 44px; }
.section.soft { background: linear-gradient(180deg, rgba(246,239,253,.68), rgba(255,255,255,.3)); border-block: 1px solid var(--line); }
.section-title { margin-bottom: 18px; }
.section-title p { max-width: 720px; color: var(--muted); }

.hero { padding: 30px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(260px, .72fr); gap: 22px; align-items: stretch; }
.hero-card, .card, .profile, .supporter, .contact-card, .wish-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.96); box-shadow: var(--shadow-small);
}
.hero-image { overflow: hidden; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-message { padding: 27px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #fff, var(--lavender)); }
.hero-message p { margin-top: 10px; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border-radius: 11px; border: 1px solid transparent;
  background: var(--magenta); color: #fff; font-size: .91rem; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { color: #fff; background: var(--magenta-dark); transform: translateY(-2px); box-shadow: 0 9px 20px rgba(116,36,78,.18); }
.button.secondary { color: var(--purple-dark); background: #fff; border-color: rgba(103,51,155,.24); }
.button.secondary:hover, .button.secondary:focus-visible { color: var(--purple-deep); background: var(--lavender); }
.button.purple { background: var(--purple-dark); }
.button.purple:hover, .button.purple:focus-visible { background: var(--purple-deep); }

.fact-band { padding: 20px; background: linear-gradient(135deg, var(--purple-dark), var(--purple)); color: #fff; }
.fact-band-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; width: min(100%, 940px); margin: auto; }
.fact-label { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .86; }
.fact-text { min-height: 30px; text-align: center; font-size: 1.06rem; font-weight: 680; transition: opacity .2s ease; }
.fact-dots { display: flex; gap: 5px; }
.fact-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.36); }
.fact-dot.active { background: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 22px; }
.card p { margin: 9px 0 0; color: var(--muted); }
.card .meta { margin: 0 0 7px; color: var(--purple-dark); font-size: .8rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.card img.card-image { display: block; width: 100%; max-height: 320px; margin: 14px 0 0; object-fit: contain; border-radius: 12px; background: #fff; }
.card-link { display: inline-flex; margin-top: 14px; font-weight: 700; }

.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); gap: 20px; align-items: center; }
.mission-panel { padding: 26px; border-radius: var(--radius); background: linear-gradient(140deg, var(--purple-deep), var(--purple)); color: #fff; box-shadow: var(--shadow-small); }
.mission-panel h2 { color: #fff; }
.mission-panel p:last-child { margin-bottom: 0; }
.mission-side { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--lavender); }
.mission-side strong { display: block; color: var(--magenta); font-size: 1.2rem; }

.story-copy { max-width: 850px; }
.story-copy p { margin: 0 0 1rem; }
.quote { margin: 20px 0; padding: 22px 24px; border-left: 5px solid var(--purple); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: var(--lavender); color: var(--purple-deep); font-size: 1.04rem; font-weight: 680; }

.profiles { display: grid; gap: 15px; }
.profile { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 17px; align-items: start; }
.profile img { width: 150px; max-height: 205px; border-radius: 15px; object-fit: cover; background: var(--lavender); }
.profile h3 { margin-top: 3px; }
.profile-role { margin: 0 0 8px; color: var(--purple-dark); font-weight: 700; }
.profile p:last-child { margin-bottom: 0; }

.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.help-card { position: relative; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-small); }
.help-card h3 { padding-right: 34px; }
.help-number { position: absolute; right: 17px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lavender-strong); color: var(--purple-deep); font-size: .78rem; font-weight: 700; }
.help-card p:last-child { margin-bottom: 0; }
.donation-banner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 23px; border-radius: var(--radius); background: linear-gradient(145deg, var(--magenta), #b94782); color: #fff; box-shadow: var(--shadow-small); }
.donation-banner h2 { color: #fff; margin-bottom: 6px; }
.donation-banner p { margin: 0; }
.donation-banner .button { background: #fff; color: var(--magenta-dark); }
.donation-banner .button:hover { color: var(--purple-deep); background: var(--lavender); }

.event-stack { display: grid; gap: 18px; }
.event-card { display: grid; grid-template-columns: minmax(230px, .86fr) minmax(0, 1.2fr); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-small); }
.event-card .event-image { display: grid; place-items: center; min-height: 240px; padding: 18px; background: var(--lavender); }
.event-card .event-image img { max-height: 340px; object-fit: contain; }
.event-card .event-content { padding: 26px; }
.event-card .event-content p:last-child { margin-bottom: 0; }
.event-meta { margin: 0 0 8px; color: var(--purple-dark); font-size: .83rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.logo-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 15px; }
.logo-row img { max-height: 75px; max-width: 210px; object-fit: contain; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.contact-card { padding: 22px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; }

.supporters-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.supporter { display: grid; grid-template-columns: 160px 1fr; gap: 17px; padding: 17px; align-items: center; }
.supporter-logo { display: grid; place-items: center; min-height: 112px; padding: 8px; border-radius: 14px; background: #fff; }
.supporter-logo img { max-height: 112px; max-width: 100%; object-fit: contain; }
.supporter p { margin: 5px 0 0; color: var(--muted); font-size: .93rem; }

.wish-layout { display: grid; grid-template-columns: minmax(260px, .86fr) minmax(0, 1.14fr); gap: 22px; align-items: start; }
.wish-card { overflow: hidden; }
.wish-card img { display: block; width: 100%; }
.wish-copy { padding: 4px 0; }
.wish-quote { padding: 22px; border-radius: var(--radius); background: linear-gradient(145deg, var(--purple-deep), var(--purple)); color: #fff; box-shadow: var(--shadow-small); font-size: 1.05rem; font-weight: 700; }

.sitemap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.sitemap-list a { display: block; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-small); }
.sitemap-list span { display: block; margin-top: 3px; color: var(--muted); font-size: .89rem; font-weight: 520; }

.site-footer { padding: 28px 20px 22px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--lavender)); }
.footer-inner { width: min(100%, 1010px); margin: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 15px; margin-bottom: 16px; }
.footer-links a { color: var(--purple-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social-links { display: flex; justify-content: center; gap: 10px; margin: 12px 0; }
.social-links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(79,34,100,.08); transition: transform .16s ease; }
.social-links a:hover { transform: translateY(-2px); }
.social-links img { width: 19px; height: 19px; object-fit: contain; }
.footer-small { margin: 0; color: var(--muted); text-align: center; font-size: .79rem; }

.notice { padding: 14px 16px; border-radius: 14px; background: #fff9e8; border: 1px solid rgba(153, 111, 0, .18); color: #6b5000; font-size: .9rem; }


/* Homepage story feature and updates carousel */
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(245px, .62fr);
  gap: 18px;
  align-items: stretch;
}
.story-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, .96fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-small);
}
.story-photo { min-height: 390px; overflow: hidden; background: var(--lavender); }
.story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(145deg, #fff, rgba(246,239,253,.72));
}
.story-feature-copy p { margin: 0 0 15px; color: var(--muted); font-size: .98rem; line-height: 1.62; }
.story-feature-copy strong { color: var(--magenta); font-weight: 700; }
.story-feature-copy .button-row { margin-top: 10px; }
.updates-slider {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, #fff, rgba(246,239,253,.78));
  box-shadow: var(--shadow-small);
}
.updates-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.updates-heading h2 { margin-bottom: 0; font-size: 1.55rem; }
.updates-body { flex: 1; padding: 20px 0 16px; transition: opacity .14s ease, transform .14s ease; }
.updates-slider.is-changing .updates-body { opacity: 0; transform: translateY(4px); }
.update-meta { margin: 0 0 8px; color: var(--purple-dark); font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.updates-body h3 { color: var(--magenta); font-size: 1.12rem; }
.updates-body p:not(.update-meta) { margin: 9px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.58; }
.updates-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.updates-dots, .updates-arrows { display: flex; gap: 7px; align-items: center; }
.update-dot, .slider-arrow { border: 0; cursor: pointer; }
.update-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgba(103,51,155,.23); transition: background .16s ease, transform .16s ease; }
.update-dot.active { background: var(--purple-dark); transform: scale(1.16); }
.slider-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--purple-dark); border: 1px solid var(--line); font-size: 1rem; line-height: 1; transition: background .16s ease, transform .16s ease; }
.slider-arrow:hover, .slider-arrow:focus-visible { background: var(--lavender); transform: translateY(-1px); }
.legacy-intro { padding: 0 0 28px; }
.legacy-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, rgba(246,239,253,.84));
  box-shadow: var(--shadow-small);
}
.legacy-banner h1 { max-width: 760px; font-size: clamp(1.85rem, 3.7vw, 2.7rem); }
.legacy-banner p:last-child { max-width: 780px; margin: 10px 0 0; color: var(--muted); }

@media (max-width: 880px) {
  .site-shell { width: min(calc(100% - 18px), var(--content)); margin-top: 9px; border-radius: 20px; }
  .nav-wrap { justify-content: space-between; }
  .nav-home, .menu-button { display: inline-flex; }
  .site-nav {
    display: flex;
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    padding: 9px;
    border-radius: 16px;
    background: var(--purple-deep);
    box-shadow: var(--shadow);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a { justify-content: flex-start; padding: 10px 13px; }
  .site-nav .nav-donate { margin-left: 0; margin-top: 3px; }
  .hero-grid, .home-hero-grid, .mission, .event-card, .wish-layout { grid-template-columns: 1fr; }
  .story-feature { grid-template-columns: minmax(0, .95fr) minmax(260px, 1.05fr); }
  .hero-image img { aspect-ratio: 664 / 265; }
  .event-card .event-image { min-height: 180px; }
  .supporters-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .content { width: min(calc(100% - 28px), 1010px); }
  .page-intro { padding-top: 34px; }
  .hero { padding-top: 20px; }
  .grid-2, .grid-3, .help-grid, .contact-grid, .sitemap-list { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 94px 1fr; gap: 14px; padding: 14px; }
  .profile img { width: 94px; max-height: 128px; border-radius: 12px; }
  .profile p { grid-column: 1 / -1; margin-top: 5px; }
  .supporter { grid-template-columns: 118px 1fr; }
  .fact-band-inner { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .fact-dots { justify-content: center; }
  .donation-banner, .legacy-banner { grid-template-columns: 1fr; }
  .story-feature { grid-template-columns: 1fr; }
  .story-photo { min-height: 0; }
  .story-photo img { aspect-ratio: 739 / 568; }
  .story-feature-copy { padding: 21px; }
  .updates-slider { padding: 19px; }
}

/* Typography refinements */
.site-nav a {
  font-weight: 600;
}

h1,
h2,
h3 {
  font-weight: 650;
}

.hero-message h1,
.legacy-banner h1 {
  letter-spacing: -0.035em;
}

.button {
  font-weight: 650;
}

.legacy-banner h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}
