:root {
  --donation-ink: #17243b;
  --donation-muted: #59677b;
  --donation-violet: #9e52cd;
  --donation-violet-dark: #843cb1;
  --donation-blue: #2f7fb7;
  --donation-lilac: #eeeafd;
  --donation-mist: #f4f8fb;
  --donation-line: #dce4ed;
}

.donation-page {
  color: var(--donation-ink);
  overflow: hidden;
}

.donation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(245px, 0.87fr);
  min-height: 440px;
  background:
    radial-gradient(circle at 86% 18%, rgba(101, 70, 207, 0.16), transparent 29%),
    linear-gradient(135deg, #fbfdff 0%, #f4f1ff 100%);
  border-bottom: 1px solid var(--donation-line);
}

.donation-hero-copy {
  padding: 58px 24px 48px 42px;
  position: relative;
  z-index: 2;
}

.donation-eyebrow {
  color: var(--donation-violet-dark);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.donation-hero h2 {
  color: var(--donation-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 7vw, 4.55rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.84;
  margin: 0 0 26px;
}

.donation-hero h2 em {
  color: var(--donation-violet);
  font-weight: 500;
}

.donation-lede {
  color: var(--donation-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 410px;
}

.donation-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-top: 28px;
}

.donation-primary,
.donation-primary:hover {
  align-items: center;
  background: var(--donation-violet);
  border: 1px solid var(--donation-violet);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(68, 49, 154, 0.2);
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-width: 174px;
  padding: 11px 12px;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.donation-kofi-icon {
  display: block;
  flex: 0 0 auto;
  height: 20px;
  object-fit: contain;
  width: 25px;
}

.donation-primary:hover {
  background: var(--donation-violet-dark);
  box-shadow: 0 8px 20px rgba(68, 49, 154, 0.28);
  transform: translateY(-1px);
}

.donation-primary:focus-visible,
.donation-closing > a:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

.donation-secondary {
  color: var(--donation-violet-dark);
  font-size: 0.78rem;
  font-weight: 650;
}

.donation-note {
  color: #778397;
  font-size: 0.69rem;
  line-height: 1.45;
  margin-top: 15px;
  max-width: 410px;
}


.open-record {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 42px 32px 42px 8px;
  position: relative;
}

.record-orbit {
  border: 1px solid rgba(101, 70, 207, 0.16);
  border-radius: 50%;
  position: absolute;
}

.record-orbit-one {
  height: 322px;
  width: 322px;
}

.record-orbit-two {
  height: 230px;
  width: 230px;
}

.record-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(101, 70, 207, 0.25);
  border-radius: 10px;
  box-shadow: 0 20px 55px rgba(54, 43, 112, 0.17);
  padding: 17px 18px 19px;
  position: relative;
  transform: rotate(2.5deg);
  width: min(220px, 100%);
  z-index: 1;
}

.record-card-top {
  color: #6d7686;
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.52rem;
  justify-content: space-between;
  letter-spacing: 0.06em;
}

.record-live {
  color: #25765d;
}

.record-live i {
  background: #34a477;
  border-radius: 50%;
  display: inline-block;
  height: 5px;
  margin-right: 3px;
  width: 5px;
}

.record-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 35px 0 14px;
  width: 48px;
}

.record-mark span {
  background: linear-gradient(90deg, var(--donation-violet), var(--donation-blue));
  border-radius: 50%;
  height: 12px;
  transform: skewY(-8deg);
}

.record-mark span:nth-child(2) { opacity: 0.72; }
.record-mark span:nth-child(3) { opacity: 0.42; }

.record-card strong {
  color: var(--donation-ink);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
}

.record-card p {
  color: var(--donation-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 4px 0 20px;
}

.record-rule {
  background: var(--donation-line);
  height: 1px;
  margin-bottom: 10px;
}

.record-card small {
  color: #7b8493;
  font-size: 0.57rem;
}

.donation-purpose {
  display: grid;
  gap: 44px;
  grid-template-columns: 0.78fr 1.22fr;
  padding: 54px 42px 58px;
}

.purpose-heading h3,
.donation-closing h3 {
  color: var(--donation-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}

.purpose-list article {
  border-top: 1px solid var(--donation-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 54px 1fr;
  padding: 17px 0 18px;
}

.purpose-list article:last-child {
  border-bottom: 1px solid var(--donation-line);
}

.purpose-code {
  color: var(--donation-violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.purpose-list h4 {
  color: var(--donation-ink);
  font-size: 0.88rem;
  margin: 0 0 5px;
}

.purpose-list p {
  color: var(--donation-muted);
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 0;
}

.donation-closing {
  align-items: center;
  background: var(--donation-ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 38px 42px 40px;
}

.donation-closing .donation-eyebrow {
  color: #b7aaf4;
  margin-bottom: 10px;
}

.donation-closing h3 {
  color: #fff;
  font-size: 1.75rem;
}

.donation-closing p:not(.donation-eyebrow) {
  color: #bdc6d3;
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 9px 0 0;
  max-width: 470px;
}

.donation-closing > a {
  border: 1px solid #8894a5;
  border-radius: 4px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  margin-left: 28px;
  padding: 10px 12px;
}

.donation-closing > a:hover {
  background: #fff;
  color: var(--donation-ink);
  text-decoration: none;
}

@media screen and (max-width: 700px) {
  .donation-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .donation-hero-copy {
    padding: 38px 22px 22px;
  }

  .donation-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.11em;
    line-height: 1.45;
    margin-bottom: 13px;
  }

  .donation-hero h2 {
    font-size: clamp(3.25rem, 16vw, 4.1rem);
    line-height: 0.88;
    margin-bottom: 22px;
  }

  .donation-lede {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .donation-actions {
    margin-top: 24px;
  }

  .donation-primary,
  .donation-primary:hover {
    box-sizing: border-box;
    font-size: 0.92rem;
    min-height: 46px;
    padding: 11px 16px;
    width: 100%;
  }

  .open-record {
    min-height: 290px;
    padding: 24px 22px 38px;
  }

  .record-orbit-one {
    height: 300px;
    width: 300px;
  }

  .record-orbit-two {
    height: 218px;
    width: 218px;
  }

  .record-card {
    box-sizing: border-box;
    padding: 16px 17px 18px;
    transform: rotate(1.5deg);
    width: min(225px, 78vw);
  }

  .record-mark {
    margin-top: 28px;
  }

  .donation-purpose {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
    padding: 42px 22px 46px;
  }

  .purpose-heading h3,
  .donation-closing h3 {
    font-size: 1.85rem;
  }

  .purpose-list article {
    gap: 14px;
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 18px 0 19px;
  }

  .purpose-list h4 {
    font-size: 0.92rem;
  }

  .purpose-list p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .donation-closing {
    align-items: stretch;
    flex-direction: column;
    padding: 36px 22px 38px;
  }

  .donation-closing p:not(.donation-eyebrow) {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .donation-closing > a {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 24px 0 0;
    min-height: 44px;
    padding: 0 14px;
  }
}

@media screen and (max-width: 380px) {
  .donation-hero-copy,
  .donation-purpose,
  .donation-closing {
    padding-left: 17px;
    padding-right: 17px;
  }

  .donation-hero h2 {
    font-size: 3rem;
  }

  .open-record {
    padding-left: 17px;
    padding-right: 17px;
  }

  .record-orbit-one {
    height: 275px;
    width: 275px;
  }

  .record-card {
    width: min(218px, 82vw);
  }

  .purpose-list article {
    gap: 10px;
    grid-template-columns: 46px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .donation-primary { transition: none; }
}
