/* ==========================================================================
   /rescue-donations/ — the giving page.

   Same four colours as the weekly board, borrowed on purpose: a shop that
   changes palette between its own pages stops reading as one shop.

     --rs-cream    surfaces and fills
     --rs-moss     every line, every word, the dark bands
     --rs-butter   the one highlighter (numbers that need a lift)
     --rs-orange   the programme's own colour: stars, counts, one button

   Scoped under .rs so this page can use the site's serif and paper without
   inheriting its section rhythm. Radii stay at 0 or 2px — the rest of the shop
   is printed, not rounded, and a page of 16px corners reads as a different
   product.
   ========================================================================== */

.rs {
  --rs-cream: #fdfbf4;
  --rs-moss: #22392c;
  --rs-butter: #f2c14e;
  --rs-sage: #e7ebd8;
  --rs-orange: #e8753f;
  --rs-line: rgba(34, 57, 44, 0.14);
  --rs-body: rgba(34, 57, 44, 0.72);
  --rs-mute: rgba(34, 57, 44, 0.5);

  background: var(--pi-paper, #f7f6f1);
  color: var(--rs-moss);
  overflow-x: clip;
  padding-bottom: clamp(0px, 2vw, 24px);
}

.rs-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rs-mute);
}

.rs h1,
.rs h2,
.rs h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--rs-moss);
}

.rs p {
  margin: 0;
}

/* ------------------------------------------------------------------- hero */

.rs-hero {
  display: grid;
  /* Weighted left: the headline is two long sentences, and the picture is a
     scene that gains from being a little smaller than the words. */
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding-top: clamp(44px, 6vw, 82px);
  padding-bottom: clamp(44px, 6vw, 78px);
}

.rs-hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.9rem, 5.75vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.rs-hero__accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.rs-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  width: 100%;
  height: 0.13em;
  overflow: visible;
  fill: none;
  stroke: var(--rs-orange);
  stroke-width: 6;
  stroke-linecap: round;
}

.rs-lede {
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--rs-body);
}

.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--rs-moss);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rs-btn span {
  font-size: 14px;
  transition: transform 0.18s ease;
}

.rs-btn--ink {
  background: var(--rs-moss);
  color: var(--rs-cream);
}

.rs-btn--ink:hover {
  background: var(--rs-orange);
  border-color: var(--rs-orange);
  color: #fff;
}

.rs-btn--ink:hover span {
  transform: translateX(3px);
}

.rs-btn--line {
  background: transparent;
  color: var(--rs-moss);
}

.rs-btn--line:hover {
  background: var(--rs-moss);
  color: var(--rs-cream);
}

/* The scene ---------------------------------------------------------------- */

.rs-art {
  position: relative;
  margin: 0;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--rs-sage);
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs-scene {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* When the owner fits a photo instead of the drawing, it sits inside the same
   sage frame, cropped to the frame — a photo on a mat, not a full-bleed banner,
   because the note and the stamp are printed on that mat. */
.rs-art__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-art__note {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-mute);
}

/* A rubber stamp, not a badge: rotated, hairline, and half expecting to be
   taken off before the box is posted. */
.rs-art__stamp {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(34, 57, 44, 0.45);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(34, 57, 44, 0.62);
  transform: rotate(-5deg);
}

.rs-art__line {
  fill: none;
  stroke: var(--rs-moss);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rs-art__line--thin {
  stroke-width: 2.2;
}

.rs-art__solid {
  fill: var(--rs-cream);
  stroke: var(--rs-moss);
  stroke-width: 3.2;
  stroke-linejoin: round;
}

.rs-art__heart {
  fill: var(--rs-orange);
  stroke: none;
}

.rs-art__spark {
  fill: none;
  stroke: var(--rs-orange);
  stroke-width: 3;
  stroke-linecap: round;
}

.rs-art__ground {
  stroke-width: 2.6;
}

/* ------------------------------------------------------------------ figures */

.rs-stats {
  border-top: 1px solid var(--rs-line);
  border-bottom: 1px solid var(--rs-line);
}

.rs-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rs-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'value unit'
    'label label';
  align-items: end;
  column-gap: 9px;
  padding: clamp(22px, 2.6vw, 34px) clamp(14px, 2vw, 28px) clamp(20px, 2.4vw, 30px) 0;
}

.rs-stat + .rs-stat {
  padding-left: clamp(18px, 2.6vw, 34px);
  border-left: 1px solid var(--rs-line);
}

.rs-stat__value {
  grid-area: value;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.rs-stat__unit {
  grid-area: unit;
  padding-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rs-orange);
}

.rs-stat__label {
  grid-area: label;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--rs-mute);
}

/* ------------------------------------------------------------------ headings */

.rs-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 4vw, 60px);
  align-items: end;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rs-line);
  margin-bottom: clamp(28px, 3.4vw, 46px);
  background: transparent;
}

.rs-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.rs-head__lede {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rs-body);
  padding-bottom: 4px;
}

.rs-channels {
  padding-top: clamp(48px, 6vw, 78px);
}

/* ------------------------------------------------------------------ channels */

.rs-channels__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.rs-channel {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.rs-channel__no {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--rs-orange);
  font-variant-numeric: tabular-nums;
}

.rs-channel h3 {
  margin: 10px 0 14px;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.06;
}

.rs-channel__body {
  font-size: 15px;
  line-height: 1.72;
  color: var(--rs-body);
}

/* Each point gets a rule, not a bullet: these are the three things we will
   actually put in the box, and a list of them should look like an inventory. */
.rs-channel__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--rs-line);
}

.rs-channel__list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--rs-line);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rs-channel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 2px;
  background: var(--rs-orange);
}

.rs-channel__caveat {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--rs-sage);
  font-size: 13px;
  line-height: 1.68;
  color: var(--rs-mute);
}

.rs-channel__metric {
  margin-top: auto;
  padding-top: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  color: var(--rs-moss);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- the path */

.rs-path {
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(48px, 6vw, 84px) 0 clamp(44px, 5.4vw, 76px);
  background: var(--rs-moss);
  color: var(--rs-cream);
}

.rs-path h2,
.rs-path h3 {
  color: var(--rs-cream);
}

.rs-head--light {
  border-bottom-color: rgba(253, 251, 244, 0.18);
  margin-bottom: clamp(30px, 3.4vw, 46px);
}

.rs-head--light .rs-eyebrow,
.rs-head--light .rs-head__lede {
  color: rgba(253, 251, 244, 0.62);
}

.rs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}

.rs-step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid rgba(253, 251, 244, 0.22);
}

.rs-step__no {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rs-butter);
  font-variant-numeric: tabular-nums;
}

.rs-step h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.1;
}

.rs-step p {
  font-size: 13px;
  line-height: 1.68;
  color: rgba(253, 251, 244, 0.66);
}

/* --------------------------------------------------------------- where it went */

.rs-where {
  padding-top: clamp(52px, 6.4vw, 88px);
}

.rs-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.rs-place {
  display: flex;
  flex-direction: column;
  background: var(--rs-cream);
  border: 1px solid var(--rs-line);
}

/* Optional photo. Blank in the admin means no figure at all, and the card is
   the same padded card it always was — which is why the padding moved onto
   the body instead of staying on the card. */
.rs-place__shot {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rs-sage);
  border-bottom: 1px solid var(--rs-line);
}

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

.rs-place__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 30px);
}

.rs-place__stat {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 9px;
  background: var(--rs-sage);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.rs-place h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.1;
}

.rs-place p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--rs-body);
}

/* --------------------------------------------------------------- the ledger */

.rs-ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(56px, 7vw, 96px);
}

.rs-ledger h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.99;
}

.rs-ledger__lede {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rs-body);
}

.rs-ledger__panel {
  border-top: 2px solid var(--rs-moss);
}

.rs-ledger__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rs-line);
}

.rs-ledger__row dt {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--rs-body);
}

.rs-ledger__row dd {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The zero is the whole point of the panel, so it is the one row allowed to
   shout. Everything else stays at reading weight. */
.rs-ledger__row--zero dd {
  color: var(--rs-orange);
}

.rs-ledger__note {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 12px;
  line-height: 1.65;
  color: var(--rs-mute);
}

/* --------------------------------------------------------------------- cta */

.rs-cta {
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--rs-sage);
}

.rs-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(44px, 5.4vw, 72px);
  padding-bottom: clamp(44px, 5.4vw, 72px);
}

.rs-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.99;
  text-wrap: balance;
}

.rs-cta__copy p:not(.rs-eyebrow) {
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--rs-body);
}

.rs-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .rs-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .rs-art {
    aspect-ratio: 1 / 0.78;
    max-height: 420px;
  }

  .rs-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .rs-head h2 {
    max-width: 18ch;
  }

  .rs-places {
    grid-template-columns: 1fr;
  }

  .rs-ledger,
  .rs-cta__inner {
    grid-template-columns: 1fr;
  }

  .rs-cta__actions {
    justify-content: flex-start;
  }

  .rs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .rs-hero__title {
    font-size: clamp(2.6rem, 12.4vw, 4.2rem);
  }

  .rs-hero__accent {
    white-space: normal;
  }

  /* The swipe stays: it is the one mark that ties this headline to the rest of
     the shop. Only the no-wrap is dropped, so a narrow screen may break the
     line without the rule drifting off the end of it. */
  .rs-underline {
    bottom: -0.06em;
  }

  .rs-stat {
    padding-right: 10px;
  }

  .rs-stat__value {
    font-size: 30px;
  }

  .rs-stat__label {
    font-size: 10.5px;
  }
}

@media (max-width: 640px) {
  .rs-stats__grid {
    grid-template-columns: 1fr;
  }

  .rs-stat,
  .rs-stat + .rs-stat {
    grid-template-columns: auto 1fr;
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--rs-line);
  }

  .rs-stats__grid > .rs-stat:first-child {
    border-top: 0;
  }

  .rs-stat__value {
    font-size: 28px;
  }

  .rs-stat__label {
    margin-top: 4px;
  }

  .rs-channels__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rs-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rs-channel__metric {
    padding-top: 16px;
  }

  .rs-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rs-actions .rs-btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-btn,
  .rs-btn span {
    transition: none;
  }
}
