:root {
  --purple-950: #24102b;
  --purple-900: #34143e;
  --purple-800: #4b2059;
  --purple-700: #613170;
  --olive-800: #58613e;
  --olive-700: #6f7950;
  --olive-600: #7e895b;
  --paper: #f7ecd5;
  --paper-deep: #ead7b8;
  --wood: #9b6844;
  --ink: #271d1a;
  --muted: #685d55;
  --white: #fffdf8;
  --shadow-sm: 0 7px 22px rgba(42, 21, 20, .14);
  --shadow-lg: 0 20px 60px rgba(22, 8, 27, .30);
  --radius: 18px;
  --script: "Segoe Script", "Brush Script MT", "Bradley Hand", cursive;
  --display: Georgia, "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--purple-950); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -18%, rgba(125, 89, 138, .7), transparent 36rem),
    var(--purple-950);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-social svg, .footer-social svg { fill: currentColor; stroke: none; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1rem;
  color: #fff;
  background: #111;
  border-radius: .5rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Mobile/tablet navigation. The supplied artwork contains the desktop navigation. */
.site-header {
  display: none;
  position: sticky;
  z-index: 1000;
  top: 0;
  color: var(--white);
  background: rgba(52, 20, 62, .98);
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  width: min(1120px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: .45rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle {
  flex: 0 0 auto;
  width: 45px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 9px;
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: .7rem;
  background: rgba(52, 20, 62, .995);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 30px rgba(0,0,0,.32);
}
.site-nav.is-open { display: grid; }
.site-nav > a {
  padding: .78rem .9rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}
.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav > a[aria-current="page"] { background: var(--olive-700); outline: none; }
.nav-social { display: flex; gap: .65rem; padding: .8rem .5rem .25rem; }
.nav-social a, .footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  text-decoration: none;
}

/* Exact supplied desktop compositions */
.desktop-art {
  width: min(1024px, 100%);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.artwork-wrap { position: relative; width: 100%; line-height: 0; overflow: hidden; }
.page-artwork { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.hotspot {
  position: absolute;
  z-index: 10;
  display: block;
  border-radius: 5px;
  font-size: 0;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  outline: none;
  transition: background-color .16s ease, box-shadow .16s ease;
}
.hotspot:hover,
.hotspot:focus-visible {
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.75), 0 0 0 2px rgba(55,19,66,.65);
}
.desktop-anchor { position: absolute; display: block; width: 1px; height: 1px; }
.responsive-content { display: none; }

/* Responsive reconstructed pages */
.responsive-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 12%, rgba(121, 86, 43, .06) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 25%, rgba(121, 86, 43, .05) 0 1px, transparent 2px),
    linear-gradient(100deg, rgba(255,255,255,.16), transparent 45%, rgba(121,86,43,.05)),
    var(--paper);
  background-size: 23px 23px, 31px 31px, auto, auto;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.responsive-content.always-visible { display: block; min-height: 70vh; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { color: var(--purple-800); font-family: var(--script); font-weight: 700; }
h1 { margin: .1em 0 .3em; font-size: clamp(2.55rem, 10vw, 5rem); letter-spacing: -.035em; }
h2 { margin: .1em 0 .55em; font-size: clamp(2rem, 7vw, 3.25rem); }
h3 { margin: 0 0 .35rem; color: var(--olive-800); font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  margin: 0 0 .4rem;
  color: var(--olive-800);
  font-family: var(--script);
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
}
.script-tagline { color: var(--purple-700); font-family: var(--script); font-size: 1.25rem; font-weight: 700; line-height: 1.4; }

.mobile-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #6f7950;
}
.mobile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(27,14,28,.08) 15%, rgba(27,14,28,.25) 48%, rgba(29,13,34,.96) 100%);
  pointer-events: none;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-brand { position: absolute; z-index: 2; top: 1rem; left: 1rem; width: min(46vw, 210px); filter: drop-shadow(0 7px 14px rgba(0,0,0,.28)); }
.hero-brand img { display: block; width: 100%; height: auto; }
.hero-copy { position: relative; z-index: 3; padding: 16rem 1.15rem 2rem; text-shadow: 0 2px 12px rgba(0,0,0,.75); }
.hero-copy h1, .hero-copy .eyebrow, .hero-copy .script-tagline { color: #fff; }
.hero-copy p:not(.eyebrow):not(.script-tagline) { max-width: 760px; font-size: 1.05rem; }

.inner-hero {
  display: grid;
  background: linear-gradient(145deg, #fff7e8, #ead9bd);
  border-bottom: 8px solid rgba(95,49,111,.14);
}
.inner-hero > img { width: 100%; height: min(56vw, 440px); min-height: 280px; object-fit: cover; }
.inner-hero > div { padding: 1.4rem 1.15rem 1.8rem; }
.inner-hero h1 { margin-top: 0; }
.inner-hero--programs > img { object-position: 58% center; }
.inner-hero--animals > img { object-position: 61% center; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.button {
  min-height: 48px;
  padding: .75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #fff;
  background: linear-gradient(#6d397c, #4b2059);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 10px;
  box-shadow: 0 5px 0 #2b1233, 0 9px 18px rgba(31,14,36,.25);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); filter: brightness(1.07); outline: 3px solid rgba(255,255,255,.75); outline-offset: 2px; }
.button--olive { background: linear-gradient(#859064, #5b6442); box-shadow: 0 5px 0 #434a30, 0 9px 18px rgba(31,14,36,.22); }
.button--light { color: var(--olive-800); background: #fffdf8; box-shadow: 0 5px 0 rgba(34,18,39,.4), 0 9px 18px rgba(31,14,36,.22); border-color: rgba(255,255,255,.7); }
.button svg { fill: currentColor; stroke: none; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(75,32,89,.16);
  border-top: 1px solid rgba(75,32,89,.2);
  border-bottom: 1px solid rgba(75,32,89,.2);
}
.feature-strip span { min-height: 76px; padding: .85rem .65rem; display: grid; place-items: center; text-align: center; font-weight: 700; background: rgba(255,253,248,.78); }
.feature-strip span:last-child { grid-column: 1 / -1; }
.paper-section { padding: 2.7rem 1rem; }
.paper-section + .paper-section { border-top: 1px solid rgba(101,70,48,.16); }
.section-heading { max-width: 760px; margin: 0 auto 1.4rem; text-align: center; }
.split-section { display: grid; gap: 1.6rem; align-items: center; }
.polaroid { max-width: 430px; margin: 0 auto; padding: .7rem .7rem 2rem; background: #fff; border: 1px solid rgba(88,61,45,.18); box-shadow: 0 10px 28px rgba(62,39,26,.22); transform: rotate(-1.2deg); }
.polaroid img { display: block; width: 100%; height: auto; }
.heart-list { margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; list-style: none; }
.heart-list li { position: relative; padding-left: 1.8rem; }
.heart-list li::before { content: "♥"; position: absolute; left: .1rem; color: var(--purple-700); }

.card-grid, .program-grid, .animal-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.image-card {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: var(--purple-800);
  border: 1px solid rgba(56,30,24,.18);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.image-card img { width: 125px; height: 100%; min-height: 110px; object-fit: cover; }
.image-card span { padding: .9rem; display: grid; place-items: center start; font-weight: 700; line-height: 1.25; }
.image-card:hover, .image-card:focus-visible { transform: translateY(-2px); outline: 3px solid var(--olive-600); outline-offset: 2px; }

.funding-banner {
  margin: 0 1rem 2rem;
  padding: 1.2rem;
  display: grid;
  gap: .3rem;
  color: #fff;
  background: linear-gradient(145deg, #747d55, #4f5739);
  border: 4px double rgba(255,255,255,.35);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.funding-banner strong { font-size: 1.3rem; }
.funding-banner a { margin-top: .55rem; font-weight: 700; }

.promise-grid, .details-grid, .program-options, .contact-grid { display: grid; gap: 1rem; padding: 1rem; }
.promise-grid article, .details-grid article, .program-options article, .contact-grid article, .notice {
  padding: 1.35rem;
  background: rgba(255,253,248,.78);
  border: 1px solid rgba(92,58,34,.2);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.promise-grid article:first-child { color: #fff; background: linear-gradient(145deg, #7b835c, #596140); }
.promise-grid article:first-child h2, .promise-grid article:first-child .heart-list li::before { color: #fff; }
.philosophy-grid { display: grid; gap: 1rem; }
.philosophy-grid article { padding: 1.25rem; position: relative; background: rgba(255,253,248,.78); border: 1px solid rgba(92,58,34,.18); border-radius: 13px; }
.philosophy-grid article > span { position: absolute; right: 1rem; top: .65rem; color: rgba(95,49,112,.22); font-size: 2.4rem; font-weight: 800; }
.simple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.simple-grid article { min-height: 100px; padding: 1rem; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #6f7950, #596140); border-radius: 10px; box-shadow: var(--shadow-sm); text-align: center; font-weight: 700; }

.program-options { background: rgba(105,116,77,.10); }
.program-options article h2 { font-family: var(--display); font-size: 1.4rem; }
.program-card, .animal-card {
  overflow: hidden;
  background: rgba(255,253,248,.84);
  border: 1px solid rgba(92,58,34,.2);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 80px;
}
.program-card img, .animal-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.program-card > div, .animal-card > div { padding: 1rem; }
.program-card h2, .animal-card h2 { margin: 0 0 .35rem; font-size: 1.7rem; }
.program-card p, .animal-card p { margin: 0; }
.schedule { margin: 0; }
.schedule div { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed rgba(90,60,42,.28); }
.schedule dt { color: var(--purple-700); font-weight: 700; }
.schedule dd { margin: 0; }
.new-animals { padding: 2.4rem 1rem; color: #fff; background: linear-gradient(145deg, #5b6442, #3d452c); text-align: center; }
.new-animals h2 { color: #fff; }
.new-animals ul { margin: 1rem auto 0; padding: 0; max-width: 800px; display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; list-style: none; }
.new-animals li { padding: .45rem .7rem; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }

.cta-band {
  padding: 1.5rem 1rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(67,25,78,.93), rgba(67,25,78,.93)),
    url('../images/home-programs-strip.webp') center/cover;
  border-top: 7px solid rgba(82,50,33,.5);
  text-align: center;
}
.cta-band h2 { margin: 0 0 .25rem; color: #fff; }
.cta-band p { margin: 0; }
.cta-band .button { justify-self: center; }

.utility-hero { min-height: 390px; padding: 7rem 1.15rem 3rem; display: grid; align-content: center; color: #fff; background: linear-gradient(rgba(48,19,57,.75),rgba(48,19,57,.93)), url('../images/home-animals.webp') center/cover; text-align: center; }
.utility-hero h1, .utility-hero .eyebrow { color: #fff; }
.utility-hero p { max-width: 760px; margin-left: auto; margin-right: auto; }
.notice { max-width: 780px; margin: 0 auto; text-align: center; }
.contact-grid { padding: 1rem; background: rgba(105,116,77,.1); }
.contact-grid article { text-align: center; }
.contact-grid h2 { font-size: 1.8rem; }
.contact-grid a { color: var(--purple-700); font-weight: 700; overflow-wrap: anywhere; }

.site-footer {
  display: none;
  color: #fff;
  background: #42482f;
  border-top: 1px solid rgba(255,255,255,.16);
}
.site-footer__inner { width: min(1120px, 100%); margin: 0 auto; padding: 1.5rem 1rem; display: grid; gap: 1.2rem; }
.footer-brand { display: grid; }
.footer-brand strong { font-size: 1.2rem; }
.footer-brand span { font-family: var(--script); }
.footer-contact { display: grid; gap: .55rem; }
.footer-contact > a, .footer-contact > span { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact svg { flex: 0 0 auto; }
.footer-social { display: flex; gap: .6rem; }
.copyright { margin: 0; padding: 1rem; border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: .86rem; opacity: .8; }

.toast {
  position: fixed;
  z-index: 5000;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  width: min(92vw, 520px);
  padding: .85rem 1rem;
  color: #fff;
  background: rgba(30,14,35,.97);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: .65rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.34);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 899px) {
  body { background: var(--paper); font-size: 16px; }
  .site-header, .site-footer { display: block; }
  .desktop-art { display: none; }
  .responsive-content { display: block; box-shadow: none; }
  .page--programs:target .responsive-content { display: block; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .site-header__inner { min-height: 72px; }
  .brand img { width: 56px; height: 56px; }
  .inner-hero { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .inner-hero > img { height: 100%; min-height: 480px; }
  .inner-hero > div { padding: 3.3rem 2rem; align-self: center; }
  .split-section { grid-template-columns: .8fr 1.2fr; padding-left: 2rem; padding-right: 2rem; }
  .split-section--reverse { grid-template-columns: 1.2fr .8fr; }
  .promise-grid, .program-options, .contact-grid { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .details-grid { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .details-grid article:last-child { grid-column: 1 / -1; }
  .philosophy-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--programs { grid-template-columns: repeat(2, 1fr); }
  .image-card { grid-template-columns: 130px 1fr; }
  .program-grid, .animal-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .feature-strip span:last-child { grid-column: auto; }
  .simple-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { grid-template-columns: 1fr auto; padding: 2rem; text-align: left; }
  .site-footer__inner { grid-template-columns: 1fr 1.5fr auto; align-items: center; }
}

@media (min-width: 900px) {
  .site-footer { display: none; }
  .page:has(.always-visible) .site-header { display: block; }
  .page:has(.always-visible) .site-footer { display: block; }
}

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

/* Pages without supplied full-page artwork stay live-text at every width. */
.page--funding .responsive-content,
.page--events .responsive-content,
.page--support .responsive-content,
.page--contact .responsive-content { display: block; }
.page--funding .site-header,
.page--events .site-header,
.page--support .site-header,
.page--contact .site-header,
.page--funding .site-footer,
.page--events .site-footer,
.page--support .site-footer,
.page--contact .site-footer { display: block; }

@media (min-width: 900px) {
  .page--funding .site-header__inner,
  .page--events .site-header__inner,
  .page--support .site-header__inner,
  .page--contact .site-header__inner,
  .page:has(.always-visible) .site-header__inner { min-height: 82px; }

  .page--funding .menu-toggle,
  .page--events .menu-toggle,
  .page--support .menu-toggle,
  .page--contact .menu-toggle,
  .page:has(.always-visible) .menu-toggle { display: none; }

  .page--funding .site-nav,
  .page--events .site-nav,
  .page--support .site-nav,
  .page--contact .site-nav,
  .page:has(.always-visible) .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: .15rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .page--funding .site-nav > a,
  .page--events .site-nav > a,
  .page--support .site-nav > a,
  .page--contact .site-nav > a,
  .page:has(.always-visible) .site-nav > a { padding: .6rem .55rem; font-size: .92rem; }

  .page--funding .nav-social,
  .page--events .nav-social,
  .page--support .nav-social,
  .page--contact .nav-social,
  .page:has(.always-visible) .nav-social { padding: 0 0 0 .5rem; }

  .page--funding .brand img,
  .page--events .brand img,
  .page--support .brand img,
  .page--contact .brand img,
  .page:has(.always-visible) .brand img { width: 60px; height: 60px; }

  .page--funding .site-footer__inner,
  .page--events .site-footer__inner,
  .page--support .site-footer__inner,
  .page--contact .site-footer__inner,
  .page:has(.always-visible) .site-footer__inner { grid-template-columns: 1fr 1.5fr auto; align-items: center; }

  .page--funding .promise-grid,
  .page--events .promise-grid,
  .page--support .promise-grid,
  .page--contact .contact-grid { grid-template-columns: repeat(4, 1fr); padding: 2rem; }
}
