:root {
  --ink: #1d1c1c;
  --muted: #5c5a56;
  --paper: #fffaf4;
  --panel: #ffffff;
  --line: #e4ddd3;
  --accent: #ff7800;
  --accent-hot: #f89d35;
  --accent-deep: #d96200;
  --danger: #eb1c26;
  --ok: #1f7a4d;
  --shadow: 0 18px 50px rgba(29, 28, 28, 0.12);
  --radius: 14px;
  --font: "Poppins", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 120, 0, 0.16), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(248, 157, 53, 0.12), transparent 55%),
    linear-gradient(180deg, #fff7ee 0%, var(--paper) 40%, #f3eee6 100%);
  min-height: 100vh;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 250, 244, 0.86);
  border-bottom: 1px solid rgba(255, 120, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(255, 120, 0, 0.35);
}

.brand-text {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-deep);
}

.hero {
  position: relative;
  min-height: min(58vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(29, 28, 28, 0.25), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23ffb457'/%3E%3Cstop offset='.55' stop-color='%23ff7800'/%3E%3Cstop offset='1' stop-color='%237a3b10'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Cg fill='%23fff' fill-opacity='.08'%3E%3Ccircle cx='220' cy='180' r='120'/%3E%3Ccircle cx='1280' cy='260' r='180'/%3E%3Ccircle cx='980' cy='720' r='220'/%3E%3C/g%3E%3C/svg%3E")
      center/cover no-repeat;
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.15), rgba(20, 16, 12, 0.72));
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3rem;
  color: #fff;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
}

.lede {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.donate-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 1.75rem;
  padding: 2.5rem 0 3.5rem;
}

.story,
.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story {
  padding: 1.75rem;
  align-self: start;
  animation: riseIn 0.8s ease 0.1s both;
}

.story h2 {
  margin: 0 0 0.85rem;
  font-size: 1.55rem;
}

.story p {
  color: var(--muted);
  line-height: 1.6;
}

.trust-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.trust-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
  font-weight: 500;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.form-panel {
  padding: 1.5rem 1.5rem 1.75rem;
  animation: riseIn 0.85s ease 0.18s both;
}

.form-kicker {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.donation-form {
  display: grid;
  gap: 1.1rem;
}

.block {
  margin: 0;
  padding: 0;
  border: 0;
}

.block + .block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.block-title {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0;
}

.amount-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.amount-chip {
  display: block;
  cursor: pointer;
}

.amount-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-chip .amount {
  display: grid;
  place-items: center;
  min-height: 3.1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  transition: 0.18s ease;
  background: #fff;
}

.amount-chip input:checked + .amount,
.amount-chip:hover .amount {
  border-color: var(--accent-hot);
  background: rgba(248, 157, 53, 0.12);
  color: var(--accent-deep);
}

.amount-chip input:checked + .amount {
  background: var(--accent-hot);
  color: #fff;
  box-shadow: 0 10px 22px rgba(248, 157, 53, 0.35);
}

.custom-amount {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.custom-radio-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.custom-donation-input,
.field input,
.field select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.custom-donation-input:focus,
.field input:focus,
.field select:focus {
  outline: 2px solid rgba(255, 120, 0, 0.35);
  border-color: var(--accent);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.field label,
.field .label {
  font-weight: 500;
  font-size: 0.92rem;
}

.field abbr,
.label abbr {
  color: var(--danger);
  text-decoration: none;
}

.period-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.period-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.check-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500;
}

.fineprint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.StripeElement {
  border: 1px solid #ccc;
  padding: 1em;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.StripeElement--focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 120, 0, 0.18);
}

#card-errors {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.5em 0 0;
  min-height: 1.2em;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.donate-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(255, 120, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.donate-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.donate-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.processing {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-weight: 500;
}

.spinner {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 120, 0, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

.notice {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.notice-error {
  background: #fff1f1;
  border: 1px solid #f5b5b8;
  color: #8f141a;
}

.payment-result {
  margin-top: 1rem;
  padding: 1rem;
  background: #1d1c1c;
  color: #f8f5ef;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 320px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ajax-result {
  border-left: 4px solid #ff7800;
}

.details-result {
  border-left: 4px solid #1f7a4d;
  max-height: 480px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 0.35rem;
}

.footer-inner p {
  margin: 0;
}

.center-card {
  width: min(560px, calc(100% - 2rem));
  margin: 4rem auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  animation: riseIn 0.7s ease both;
}

.center-card h1 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.center-card p {
  color: var(--muted);
  line-height: 1.55;
}

.center-card .ok {
  color: var(--ok);
  font-weight: 700;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 880px) {
  .donate-layout {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 0.85rem;
    font-size: 0.88rem;
  }

  .form-panel,
  .story {
    padding: 1.15rem;
  }
}
