/* Gaza Animal Rescues — warm sand from their footage, accents from the flag of Palestine. */
:root {
  --sand: #f5eee3;
  --sand-2: #ebe0cf;
  --paper: #fffdf9;
  --ink: #1e1a16;
  --ink-2: #5b5148;
  --line: rgba(30, 26, 22, 0.12);
  --night: #15110e;
  --night-2: #221c17;

  --flag-black: #000000;
  --flag-white: #ffffff;
  --flag-green: #009736;
  --flag-red: #ee2a35;

  --green: #00703a;
  --red: #c8102e;
  --red-hover: #a90d26;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(30, 26, 22, 0.06), 0 12px 32px -12px rgba(30, 26, 22, 0.25);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 10vw, 120px);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 38em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--flag-green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Flag ---------- */
.flag {
  width: 36px;
  height: 18px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.brand .flag { width: 44px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 227, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 14px;
  border-radius: 999px;
}
.nav a:hover { background: rgba(30, 26, 22, 0.06); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--sand); }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 0 10px; padding-top: 10px; min-height: 0; }
  .brand { gap: 10px; }
  .brand .flag { width: 36px; height: 18px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: 0.6rem; letter-spacing: 0.1em; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    padding: 6px 0 8px;
    margin: 0 -8px;
  }
  .nav a { padding: 7px 12px; font-size: 0.95rem; }
  .header-inner .btn { min-height: 40px; padding: 0 14px; gap: 7px; font-size: 0.92rem; }
  .header-inner .btn svg { width: 16px; height: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-donate { background: var(--red); color: #fff; }
.btn-donate:hover { background: var(--red-hover); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #005a2e; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark { background: var(--ink); color: var(--sand); }
.btn-dark:hover { background: #000; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(90svh, 880px);
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.92) 0%, rgba(12, 9, 7, 0.55) 42%, rgba(12, 9, 7, 0.15) 75%),
    linear-gradient(to right, rgba(12, 9, 7, 0.72), rgba(12, 9, 7, 0.2) 55%, rgba(12, 9, 7, 0) 80%);
}
.hero-content { padding-top: 120px; padding-bottom: clamp(40px, 8vw, 88px); }
.hero h1 { max-width: 11em; text-wrap: balance; }
.hero .lede { color: rgba(255, 255, 255, 0.88); margin-bottom: 1.6em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .eyebrow {
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tagline {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
}
.tagline b { color: #fff; font-weight: 600; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.page-hero video, .page-hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12, 9, 7, 0.9), rgba(12, 9, 7, 0.45));
}
.page-hero .wrap { padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(48px, 7vw, 84px); }
.page-hero .lede { color: rgba(255, 255, 255, 0.88); }
.page-hero--plain { background: var(--ink); }
.page-hero--plain::after { display: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--sand-2); }
.section--paper { background: var(--paper); }
.section--night { background: var(--night); color: #fff; }
.section--night .lede { color: rgba(255, 255, 255, 0.78); }
.section-head { max-width: 44em; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section--night .kicker { color: #6fd39a; }

/* Split: media + text */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  font-size: 0.85rem;
  color: var(--ink-2);
  padding: 10px 14px;
  background: var(--paper);
}
.names {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin: 4px 0 18px;
}
.link-arrow { font-weight: 700; color: var(--green); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.section--night .link-arrow { color: #6fd39a; }

/* ---------- Video card ---------- */
.vcard {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.vcard video { width: 100%; height: 100%; object-fit: cover; }
.vcard .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%);
  color: #fff;
}
.vcard .play span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.vcard .play:hover span { transform: scale(1.06); }
.vcard .play svg { width: 28px; height: 28px; margin-left: 4px; }
.vcard .play em {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
}
.vcard.is-playing .play { display: none; }

/* Three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.pillar h3 { margin-top: 22px; }
.pillar .kicker { margin: 20px 0 6px; }
.pillar p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .pillars {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 340px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 12px;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { scroll-snap-align: center; }
}

/* Quote beside a video */
.feature { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature .vcard { max-width: 360px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature .vcard { max-width: 420px; width: 100%; margin: 0 auto; }
}
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 20px;
}
.quote p { margin: 0 0 0.35em; }
.cite { font-size: 0.95rem; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.section--night .cite { color: rgba(255, 255, 255, 0.7); }

/* ---------- Donate ---------- */
.donate-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) {
  .donate-band { grid-template-columns: 1fr; }
  .donate-band--card-first .donate-card { order: -1; }
}
.donate-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.donate-card h3 { margin-bottom: 6px; }
.donate-card .organiser { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 18px; }
.donate-card .btn { width: 100%; }
.donate-card .btn + .btn { margin-top: 10px; }
.gfm-slot { margin: 0 0 18px; min-height: 0; }
.gfm-slot iframe { width: 100% !important; border-radius: 12px; }
.secure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin: 16px 0 0;
}
.secure svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }

.helps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
@media (max-width: 860px) { .helps { grid-template-columns: 1fr; } }
.help {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.help .icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: #e5f3ea; color: var(--green);
  margin-bottom: 16px;
}
.help .icon svg { width: 28px; height: 28px; }
.help h3 { font-size: 1.35rem; margin-bottom: 8px; }
.help p { color: var(--ink-2); margin: 0; }

/* ---------- Stories ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.story:first-child { border-top: 0; padding-top: 0; }
.story:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.story:nth-child(even) .story-media { order: 2; }
.story-media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story:has(.story-media--pair) { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.story:nth-child(even):has(.story-media--pair) { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.story-media .label {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px;
}
.story-date { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.story h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 8px; }
.their-words {
  border-left: 4px solid var(--flag-green);
  padding: 4px 0 4px 20px;
  margin: 0 0 18px;
  font-size: 1.1rem;
}
.their-words p { margin: 0 0 0.6em; }
.their-words footer { font-size: 0.88rem; color: var(--ink-2); }
.ig-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.ig-link svg { width: 18px; height: 18px; }
.ig-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .story, .story:nth-child(even), .story:has(.story-media--pair) { grid-template-columns: 1fr; }
  .story:nth-child(even) .story-media { order: 0; }
  .story-media { max-width: 400px; width: 100%; }
  .story-media--pair { max-width: 520px; }
}

/* ---------- Social ---------- */
.socials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social:hover { transform: translateY(-3px); }
.social svg { width: 40px; height: 40px; }
.social strong { display: block; font-size: 1.1rem; }
.social span { display: block; font-size: 0.9rem; color: var(--ink-2); word-break: break-word; }
.social .follow { margin-top: auto; font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.social--instagram svg { color: #ff0069; }
.social--tiktok svg { color: #000; }
.social--youtube svg { color: #ff0000; }
.social--facebook svg { color: #0866ff; }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--green); font-weight: 600; }
.prose .updated { color: var(--ink-2); font-size: 0.95rem; }
.prose .in-brief {
  background: var(--paper);
  border-left: 4px solid var(--flag-green);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 2em;
  box-shadow: var(--shadow);
}
.prose .in-brief p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.82); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: rgba(255, 255, 255, 0.6); }
.site-footer h4 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.16); }
.footer-social svg { width: 20px; height: 20px; color: #fff; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 48px; padding-top: 24px;
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.6);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.footer-note a { color: rgba(255, 255, 255, 0.82); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer .footer-credit a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.site-footer .footer-credit a:hover { text-decoration-color: #fff; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
