*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Large (top-of-page) header height; reused by the fixed header and the
     body offset that reserves its space. */
  --header-h: clamp(130px, 20vw, 168px);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-size: 14px;
  font-family: Inter, sans-serif;
  background: rgba(246, 238, 228, 0.95);
  color: #000;
  line-height: 1.4;
  padding-top: var(--header-h); /* clears the fixed branding bar */
}

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

/* ---------- Header (fixed branding bar, shrinks on scroll) ----------
   The header is taken out of flow (position: fixed) so shrinking it never
   reflows the page — and, crucially, never reflows the <video> below it.
   The only relayout each frame is the header's own short content (logo +
   one line of text), which is cheap, so the easing stays smooth.
   Its space is reserved by body { padding-top: var(--header-h) }. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #d3a84a;
  padding: 0 24px;
  height: var(--header-h);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: height 0.35s ease, box-shadow 0.35s ease;
}

.site-header__inner {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}

.site-header__logo {
  width: clamp(72px, 12vw, 110px);
  height: auto;
  flex: 0 0 auto;
  transition: width 0.35s ease;
}

.site-header__tagline {
  margin: 0;
  font-family: 'Fondamento', cursive;
  color: #7a1d0c;
  font-size: clamp(26px, 5vw, 46px);
  line-height: 1.15;
  max-width: 9.5em; /* two-line wrap in the large state */
  transition: font-size 0.35s ease;
}

/* Scrolled / compact state — all relayout stays inside the fixed header */
.site-header.is-scrolled {
  height: 72px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.site-header.is-scrolled .site-header__logo {
  width: clamp(40px, 7vw, 52px);
}

.site-header.is-scrolled .site-header__tagline {
  font-size: clamp(18px, 3vw, 28px);
  max-width: none; /* collapse to one line (instant — not animated, so no snap) */
}

/* ---------- Construction message ---------- */

.construction {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 24px;
  color: #6D6D6D;
  font-style: italic;
}

/* ---------- Page title (welcome heading) ---------- */
.page-title {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Fondamento', cursive;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.2;
}

/* ---------- Mission statement ---------- */
.mission__statement {
  margin: 0;
  font-family: 'Funnel Sans', sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.6;
}

/* ---------- Video still frame ---------- */
.still {
  width: 100%;
  display: flex;
  justify-content: center;
}

.still__figure {
  margin: 0;
  width: 100%;
  max-width: 800px;
}

.still__img {
  width: 100%;
  height: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.still__caption {
  margin-top: 16px;
  text-align: center;
  font-family: 'Funnel Sans', sans-serif;
  font-style: italic;
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.5;
  color: #3a342c;
}

/* ---------- Page wrap ---------- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ---------- Video ---------- */
.video {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video__title {
  margin: 0 0 24px;
  font-family: 'Fondamento', cursive;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
  text-align: center;
}

.video__frame {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.video__frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Address ---------- */
.address {
  text-align: center;
}

.address__title {
  margin: 0 0 12px;
  font-family: 'Fondamento', cursive;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
}

.address__lines {
  font-family: 'Funnel Sans', sans-serif;
  font-style: normal;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.5;
}

/* ---------- Donate section ---------- */
.donate-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.donate-section__title {
  margin: 0;
  font-family: 'Fondamento', cursive;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  position: relative;
  padding-bottom: 16px;
}

.donate-section__title::after {
  content: "";
  display: block;
  width: min(386px, 80vw);
  height: 2px;
  background: #000;
  margin: 16px auto 0;
}

.donate-section__text {
  margin: 0;
  font-family: 'Funnel Sans', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
}

.paypal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 28px;
  background: #FFC439;
  border-radius: 999px;
  text-decoration: none;
  color: #003087;
  font-family: 'Funnel Sans', sans-serif;
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.paypal-btn:hover {
  background: #F5BE2B;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.paypal-btn:active {
  transform: translateY(0);
}

.paypal-btn__logo {
  height: 22px;
  width: auto;
  display: block;
}

.paypal-btn__label {
  letter-spacing: 0.2px;
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  background: #000;
  color: rgba(173, 172, 172, 1);
  padding: 32px 20px;
  text-align: center;
}

.copyright {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header__inner {
    gap: 14px;
  }

  .page {
    padding: 32px 16px;
    gap: 48px;
  }

  .site-footer {
    padding: 24px 16px;
  }
}
